Essential Math, Data Science, Machine Learning, Deep Learning, Mathematics.
the data as possible. The problem can be seen as a perpendicular least squares problem also called orthogonal regression. You’ll see here that the error of the orthogonal projections is minimized when the projection line corresponds to the direction where the variance of the data is maximal.