How covariance matrix is got by np.dot(X_.T ,X_).
Why dot product is giving covariance?
PCA Covariance Matix
hey @aditrisriv ,
Mentor has done it correctly.
To understand it ,
actually the method to calculate covariance is
np.dot((x-mean_of_x),(x-mean_of_x).T)/(shape[0]-1)
But the mentor has already standardized the data , which means , X has already become , X-X.mean()
hence , on just calling the np.dot() function on X and X.T , it works and provides the correct cvariance matrix we actually needed.
I hope this helps.
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
1 Like