小弟我最近需要計算相關係數(correlation coefficient matri)矩陣的反矩陣
例如
Martrix array([[ 1. , 0.92531576, 0.81998247, 0.92586894],
[ 0.92531576, 1. , 0.70974912, 0.72358554],
[ 0.81998247, 0.70974912, 1. , 0.72669914],
[ 0.92586894, 0.72358554, 0.72669914, 1. ]])
這樣用numpy.linalg.inv算出來的值
會計算出
array([[ 6.51500296e+15, -3.18743561e+15, -7.89299760e+14,
-3.15207310e+15],
[ -3.18743561e+15, 1.55943840e+15, 3.86161323e+14,
1.54213745e+15],
[ -7.89299760e+14, 3.86161323e+14, 9.56245323e+13,
3.81877116e+14],
[ -3.15207310e+15, 1.54213745e+15, 3.81877116e+14,
1.52502845e+15]])
每個都十五次方
我想應該不是正確解答吧@@
請問要怎麼解決
先謝謝版上的大大了