Covariance Matrix: The Geometry of Correlated Data
The covariance matrix is one of the most fundamental objects in statistics and machine learning. It captures how the features of your data vary together – not just how each one varies on its own, but how they move in tandem. It is the mathematical heart of Principal Component Analysis (PCA), the Mahalanobis distance, Gaussian models, and portfolio theory. If you understand the covariance matrix, you understand the shape of your data.