Read along with the audio summary
How do you uncover the low dimensional patterns hidden inside big data to build models off of it? This lecture episode came out on January 26, 2020, and features the instructor walking through the step by step mathematics of dimensionality reduction.
Compress complex datasets by capturing maximum variance. Principal Component Analysis, or PCA, transforms a dataset into a new coordinate system of perpendicular directions, called principal components, that capture the maximum possible spread in the data.
Use Singular Value Decomposition for statistical analysis. You can use SVD on your centered data to directly find the optimal hierarchy for representing variance, skipping the manual creation of a large covariance matrix.
Organize your data matrix the standard way. In PCA, each row typically represents a single observation or experiment, while the columns represent the different features measured.
Center your data around the average before doing anything else. You must calculate the average value for each column and subtract it from all data points, ensuring your analysis focuses purely on the spread around the center.
Map feature relationships through the covariance matrix. Multiplied from the centered data, this matrix describes how different features relate to one another, and its eigenvectors define the directions of your principal components.
This brings us to loadings and scores, which rebuild your coordinate system. Principal components, or scores, are the new coordinates of your original data points, found by projecting the centered data onto those loadings.
Rank your components by the variance they explain. To filter out noise, you can sum the largest values until you reach a desired threshold, such as ninety five percent of the total variance, and discard the rest.
"So the headline here is this very important statistical representation of your data can be achieved just by computing the SVD of your mean subtracted data."