Exercises
Explore Principal Component Analysis (PCA), a widely used technique for dimensionality reduction. This quiz assesses how PCA identifies directions of variance, uses eigenvectors and eigenvalues, transforms features, and supports data visualization and compression. You will also interpret scree plots and biplots, examine reconstruction loss, recognize data leakage, and consider PCA's limitations with nonlinear data.
Answer the questions below and check the explanation for each answer.
0/12 answered
Auto audio on: the next questions will be read aloud when you click Continue.
The first principal component is the direction along which the projected observations have the greatest variance. It summarizes as much of the dataset's variability as possible in one dimension.
Centering subtracts each feature's mean, placing the data cloud around the origin. PCA can then identify directions of variation around the mean rather than directions influenced by the dataset's location.
Without standardization, income may dominate because its numerical variance is much larger. Standardizing features, commonly to zero mean and unit variance, lets PCA compare their variation on similar scales.
Principal-component directions are orthogonal to one another. Their projected scores are therefore uncorrelated when standard covariance-based PCA is used.
A component's eigenvalue measures the variance it captures. Dividing that eigenvalue by the sum of all eigenvalues gives the proportion of total variance explained by the component.
The plot drops sharply through PC2 and then levels off. The elbow method therefore suggests retaining two components, because later components add comparatively little explained variance.
In a PCA biplot, a small angle between feature-loading arrows indicates positive correlation. Arrows pointing in opposite directions suggest negative correlation, while near-right angles suggest weak correlation.
Reconstruction from only PC1 preserves variation along that component but removes variation along omitted components. Geometrically, points are projected onto the retained principal axis.
After centering, the data matrix has rank at most n − 1. With 50 observations, it can therefore have at most 49 principal components with nonzero variance, even though it has 200 features.
Eigenvector signs are arbitrary. If a loading vector is multiplied by −1, its scores also change sign, but the axis, explained variance, and reconstructed data remain equivalent.
PCA learns means and component directions from data. It must be fitted only on the training set; otherwise, information from validation or test data influences the learned representation and produces optimistic evaluation results.
Linear PCA represents data with linear subspaces, so it may not unfold a curved manifold. Kernel PCA can capture nonlinear structure by implicitly mapping observations into a feature space where linear separation is more effective.
Video Courses
recommended
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks