Computational Thinking, Python, Linear Algebra, Math, Mathematics.
from the other without losing much information. The first processing we will do is to center the data around 0. PCA is a regression model without intercept and the first component is thus necessarily crossing the origin. Here is a simple function that subtract the mean of each column to each data