Math Formulas

Math Formulas

How to calculate mathematics in python

  1. covariance
    np.cov(x1, x2)
  2. correlation
    1
    2
    numpy: np.corrcoef(x1, x2)
    pandas: df.corr()

Comments