Scree Plot
Study guide: Exam MAS-II
A Scree Plot is a plot of the proportion of variance explained by each principal component, or of its eigenvalue, against the component number, in decreasing order. It is used to decide how many components of a principal components analysis to keep. The usual rules are:
- Keep the components before the elbow, the point after which the curve flattens.
- On standardized data, keep the components whose eigenvalue is greater than 1, since each must carry more than one variable's variance.
- Keep enough components to reach a target cumulative proportion of variance explained.
The components after the elbow each add little variance, and they tend to reflect noise, while the first components capture the main structure. The choice is a judgment, because there is no response to validate it against, which is the general condition of unsupervised learning. A plot of the cumulative proportion of variance explained beside the scree plot shows the tradeoff.
PCA on six standardized variables gives eigenvalues 2.9, 1.6, 0.7, 0.4, 0.3 and 0.1. Where is the elbow, and does the eigenvalue rule agree?
- The drops between successive eigenvalues are 1.3, 0.9, 0.3, 0.1 and 0.2.
- The large drops stop after the second component, so the elbow is at
m = 2and components 3 to 6 form a flat tail.- Two eigenvalues, 2.9 and 1.6, are greater than 1, so the eigenvalue rule also keeps two.
- The two components explain
(2.9 + 1.6)/6 = 75\%of the variance.
Zero eigenvalues
If the covariance or correlation matrix has rank r < p, the matrix is singular and p - r of its eigenvalues are exactly zero. This happens when one variable is an exact linear combination of others, as when two variables have correlation \pm 1. The scree plot then falls to zero, and the cumulative proportion of variance explained reaches 100% before the last component and stays there.
Three standardized variables are analysed, and the third is an exact linear combination of the first two. What does the scree plot show at the third component?
- The matrix has rank 2, so
3 - 2 = 1eigenvalue is zero.- The scree plot falls to zero at the third component.
- The first two components already explain 100% of the variance.
Correlated and uncorrelated variables
A group of highly correlated variables loads together on one dominant component. A variable nearly uncorrelated with the rest is left largely to a component of its own.
Four standardized variables are analysed. Three are highly correlated with each other, and the fourth is nearly uncorrelated with them. What does the scree plot look like?
- The three correlated variables share one large first component.
- The fourth variable is left to a second component of its own, with an eigenvalue near 1.
- The last two eigenvalues are small, so the elbow comes after the second component.