I have two vectors. I want to evaluate Mahalanobis distance between them. None of software packages are able to evaluate the distance producing a warning that the number of rows should be greater than than number of columns, so as to obtain inverse of covariance matrix. Can a covariance matrix be set up manually to evaluate Mahalanobis distance? For a simple example.
v1 = [172.14 193.43 155.99 106.92 127.37 142.18 110.03 56.92 36.27 0.48 2.53 3.05 2.18 0.17 0.10 1.61 80.70 89.70] v2 = [170.61 192.41 156.66 106.50 125.50 142.43 110.18 57.02 35.94 0.42 2.54 2.94 2.16 0.12 0.16 1.61 81.50 88.20]
v1 = [172.14 193.43 155.99 106.92 127.37 142.18
110.03 56.92 36.27 0.48 2.53 3.05
2.18 0.17 0.10 1.61 80.70 89.70]
v2 = [170.61 192.41 156.66 106.50 125.50 142.43
110.18 57.02 35.94 0.42 2.54 2.94
2.16 0.12 0.16 1.61 81.50 88.20]