📜  协方差矩阵python代码示例

📅  最后修改于: 2022-03-11 14:45:09.871000             🧑  作者: Mango

代码示例1
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)