MAS-II · Statistical Learning · Free Lesson

Interpret principal components analysis (PCA) software outputs.

Free CAS MAS-II (Modern Actuarial Statistics II) lesson in Statistical Learning. 12 min read, ~1,763 words.

R hands you prcomp() output with five pieces: sdev, rotation, x, center, scale. The exam tests whether you can read those numbers and pick the right number of components without re-running the code.

The geometry first, the printout second. PCA rotates the -variable data cloud to a new orthogonal basis where PC1 points along the direction of maximum variance, PC2 along the next, and so on. Software returns four things you must read: the eigenvalues, the loadings, the scores, and the centering/scaling metadata.

prcomp reports sdev, the standard deviations of the principal components. Square them to get eigenvalues of the covariance (or correlation) matrix.

If you ran PCA on the correlation matrix (scale. = TRUE), then exactly. On a raw covariance matrix, the sum equals total sample variance .

Cumulative PVE. Sort PCs descending and accumulate. The retained dimension is the smallest index where cumulative PVE crosses your threshold.

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

If the question gives sdev values, square them first and only then divide for PVE; reversing the order is the most common rounding trap. If the question asks "how many components" without naming a rule, default to the 80% cumulative PVE rule unless the data is standardized and Kaiser is mentioned.

The full lesson (about 1,763 words, 12 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free MAS-II lessons or jump into free MAS-II practice questions.