▚DATAJIN

Principal component analysis (PCA) online

Principal component analysis reduces many correlated variables to a few uncorrelated components that capture most of the variation. DATAJIN runs PCA on the correlation matrix, so variables measured on different scales count equally, and reports how much variance each component explains and how each variable loads on the first two components.

No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.

When to use it

  • Summarising many correlated measurements (questionnaire items, morphometrics, chemical profiles).
  • Finding the main patterns of variation in a dataset before clustering or regression.
  • Reducing multicollinearity among predictors.

Assumptions

  • Variables are numeric and at least some of them are correlated.
  • Relationships are roughly linear.
  • DATAJIN excludes rows with missing values in the selected variables and reports how many were excluded.

How to run it in DATAJIN

  1. Load a dataset with several numeric columns, one observation per row.
  2. Open Analyze and choose Principal Component Analysis.
  3. Select the variables to include and click Run.

Example: open the Iris flower dataset (four flower measurements that reduce well to two components) and follow the steps above.

What you get

  • Eigenvalue, % of variance and cumulative % for each component
  • Loadings of every variable on PC1 and PC2

How to interpret the result

Keep the components that together explain most of the variance (often 70–90%) or those with eigenvalues above 1 (Kaiser criterion). Large positive or negative loadings show which variables drive a component; variables with loadings of the same sign move together.

Frequently asked questions

Why use the correlation matrix rather than covariance?

The correlation matrix standardises every variable, so a variable measured in large units (such as grams instead of kilograms) does not dominate the components.

How many components should I keep?

Common rules are: eigenvalue greater than 1, enough components to reach about 80% cumulative variance, or the "elbow" where the eigenvalues level off.