Source: https://www.math.union.edu/~jaureguj/PCA.pdf