AI GLOSSARY · AI CONCEPTS

Principal component analysis (PCA)

Markdown version · Wikidata Q2873

Definition

Principal component analysis (PCA) is a linear technique that expresses centered data along orthogonal directions called principal components, ordered by the variance they explain. Keeping only leading components reduces dimensionality.

Also called: PCA, PCA machine learning, PCA algorithm, principal components.

In plain language

PCA takes a table of numeric columns and builds new columns from them. Each new column is a combination of the original ones. The first new column captures the most variation in the data, and each later one captures no more variation than the preceding one. You can keep the first few and drop the rest. PCA is a linear technique, so it suits linear relationships between variables better than non-linear ones, and IBM advises evaluating whether the data needs normalization first.

Technical definition

PCA decomposes a multivariate dataset into successive orthogonal components that explain a maximum amount of the variance (scikit-learn). The components are linear combinations of the original variables, and the second component must be uncorrelated with the first (IBM). In scikit-learn, PCA centers but does not scale each feature before applying the singular value decomposition (SVD), learns its components in fit, and can then project new data onto them. IBM contrasts PCA, a linear technique, with the non-linear t-SNE and UMAP.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.
    Why it exercises the concept
    IBM says PCA is often used in exploratory data analysis, the kind of work this skill covers.

How it shows up when you use agents

PCA is a data-analysis technique rather than a coding-agent feature. IBM says it is commonly used for data preprocessing for machine learning algorithms and helps visualize high-dimensional data by projecting it into a 2D or 3D plot. In scikit-learn, PCA is implemented as a transformer object. An agent asked to explore or compress a table of numbers for a machine learning model may reach for it.

Scaling matters. scikit-learn centers the data but does not scale it, and IBM says PCA can bias towards specific features, so it is important to evaluate whether normalization is needed.

Interpretation takes care. IBM notes that keeping more components retains more variation, but the results may be harder to interpret. PCA is one technique for dimensionality reduction.

Worked example: new axes, not selected columns

For a toy dataset with rows (1, 1), (2, 2) and (3, 3), subtracting each column's mean gives (-1, -1), (0, 0) and (1, 1). A first principal direction is (1/√2, 1/√2). Projecting onto it gives scores -√2, 0 and √2. The perpendicular direction has zero variance for this chosen dataset, so one component represents its centered variation exactly.

The component combines both input columns. That differs from selecting one original column. The result is special to these perfectly collinear points; dropping components from a general dataset can discard variation. This is a hand calculation, not an empirical claim about a real dataset.

Common confusions

  • PCA versus dimensionality reduction. PCA is one method. IBM lists others, including linear discriminant analysis, UMAP and t-SNE. See Dimensionality reduction.
  • PCA versus original features. PCA's components are linear combinations of the original variables, so they are new variables, not columns of the original table. See Feature engineering.
  • PCA versus supervised methods. IBM says that, in contrast to LDA, PCA is not limited to supervised tasks and can reduce dimensions without considering class labels. See Unsupervised learning.
  • Myth. The first component is the most important feature. IBM defines it as the direction along which the data points have the highest variance, and components are combinations of variables rather than single original features.

Terms that mention Principal component analysis (PCA)

3 terms mention this one

More in AI concepts

Next steps

  1. data-analysis-eda A skill that exercises it.
  2. Dimensionality reduction Related term.
  3. Machine learning (ML) Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude and Codex (automated drafting); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (6)
  • : US Google Ads query estimate aligned to cached receipt; close variants may overlap and no traffic is promised.
  • : Independent automated factual and example-source review completed; exact-version technical and demand checks recorded separately. Publication remains disabled.
  • : Codex scope correction after independent source review; peer acceptance pending, not indexable.
  • : First version.
  • : Stage-3 accuracy pass: dropped unsourced claims (leakage, interpretation advice, plain-language example) and three weak examples; narrowed claims to scikit-learn and IBM text; added scikit-learn PCA API page.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.