Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #covariance #matrix #python
ADD COMMENT
Topic
Name
3+7 =