Why can retaining 99% of feature variance still lose critical perception information?

Instruction: Two centered, uncorrelated features have variances 99 and 1. For this artificial case, an important binary label depends only on the sign of the second feature. Explain what one-component PCA retains, what it loses and how you would evaluate the representation.

Context:

Assume the two features are statistically independent with symmetric continuous distributions and the label is 1 exactly when the second feature is positive. PCA is fit without scaling the features. These are supplied mathematical assumptions, not a claim about a real sensor dataset.

Updated

Worked answer

The covariance matrix is diagonal with eigenvalues 99 and 1. One-component PCA keeps the first feature's direction, explaining 99/(99+1)=99% of variance, and discards the second direction.

The label depends entirely on the discarded feature. Under the stated independence and symmetry assumptions, the retained first feature provides no information about the balanced label, so the best classification accuracy from it alone is 50%. Retaining 99% of variance therefore does not imply retaining 99% of task information or safety-relevant evidence.

For a perception application, fit the representation only on training data and test downstream task quality on independent real cases, including rare and consequential slices. Compare with the uncompressed features and alternative representations. Scaling changes the PCA objective, so document it and test its effect rather than assuming a variance threshold is meaningful across units.

Clustering or reconstruction objectives can discover useful structure, but neither automatically assigns object semantics or preserves every small hazard. Evaluate the complete detector/tracker and report the loss introduced by preprocessing separately from the unsupervised objective.

Source: scikit-learn PCA components and explained variance.

Related Questions