I am learning Mahalonobis Distance by following: https://www.machinelearningplus.com/statistics/mahalanobis-distance/
I kind of confused by the concept of the covariance matrix of arrays, assume we have a data frame like this:
comedy disaster action
movie1 0.2 0.3 0.6
movie2 0.4 0.6 0.2
movie3 0.1 0.4 0.8
...
Each row represents an observation and each column represents a variable Now I want to calculate the Mahalonobis Distance between them so I can get a similarity, but first I need to calculate the covraince matrix, I used np.cov(), but it seems this function assumes each column represents an observation, I'm very confused, can someone shows me a detailed process how to calculate the covraince matrix of this? Many thanks.