calculate covariance matrix in python code example
Example: covariance matrix python
import numpy as np
A = [45,37,42,35,39]
B = [38,31,26,28,33]
C = [10,15,17,21,12]
data = np.array([A,B,C])
covMatrix = np.cov(data,bias=True)
print (covMatrix)
import numpy as np
A = [45,37,42,35,39]
B = [38,31,26,28,33]
C = [10,15,17,21,12]
data = np.array([A,B,C])
covMatrix = np.cov(data,bias=True)
print (covMatrix)