Solution (source code)

= Solution
{c}

<Principal component analysis> finds orthogonal directions of greatest sample variation, ordered by the variance explained. It can summarize correlated variables, reveal lower-dimensional structure, and provide a reduced representation by retaining only the first few <principal components>. Centering is standard; scaling may also be appropriate when the variables have incomparable units.