For a fitted PCA with as many components as features, what must be true of explained_variance_ratio_?
Correct answer
D. It sums to 1.0, because the retained components span the whole space
22 views
D. It sums to 1.0, because the retained components span the whole space
22 views
explained_variance_ratio_ reports the share of total variance carried by each component, so retaining every component makes the ratios sum to 1. Keeping a subset sums to less than 1, and setting n_components=0.95 keeps the smallest number of components that reach 95 percent. PCA centres the data first, so the ratios describe variance about the mean rather than raw sum of squares.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.