Statistics & probability

Horn parallel analysis calculator for principal component retention

Enter one independent observation per row and one continuous feature per column.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Enter one independent observation per row and one continuous feature per column. The page computes a Pearson correlation matrix, so every feature needs positive variance. Twenty through five hundred rows and two through twenty features are supported. The observations should refer to the same sampling unit across columns; concatenating unmatched columns creates a correlation structure that does not describe real joint observations.

THE FORMULAλ_observed=descending eig(cor(X)); cutoff_j=quantile_.95{λ_j(cor(Z_b))}, Z_b IID N(0,1), matching n,p. Retain leading λ_j>cutoff_j.

A worked example

The40×3 default correlation eigenvalues are1.909833988,0.967762103,0.122403909, summing to3; compare against matching Gaussian simulations.

Good to know

20–500 complete observations, 2–20 continuous columns, correlation PCA only. Compare observed eigenvalues to 95th percentiles from 500–3000 IID Gaussian matrices of matching n and p; simulation work cap; seed and Monte Carlo quantile uncertainty explicit. Title promises components, not common-factor selection. No ordinal/tetrachoric data, automatic rotation or certainty about true rank.

Supply a complete continuous data table

Enter one independent observation per row and one continuous feature per column. The page computes a Pearson correlation matrix, so every feature needs positive variance. Twenty through five hundred rows and two through twenty features are supported. The observations should refer to the same sampling unit across columns; concatenating unmatched columns creates a correlation structure that does not describe real joint observations.

Correlation PCA standardizes each feature's variance to one. As a result, changing units does not change the ideal correlation matrix, and the sum of its eigenvalues equals the number of features. This choice differs from covariance PCA, which can give high-variance units greater influence. The tool does not decide whether standardization is scientifically appropriate for the measurements you entered.

Compare each ordered eigenvalue with its own referenceRank-specific PCA comparison123Observed eigenvaluesIllustrative 95% referenceComponent rank; recompute simulated cutoffs for actual use.
Scroll across to see the full diagram.
Observed values match the default. The green reference is schematic; numerical cutoffs come from the seeded matching-size simulation.

Compare this with the Principal component analysis calculator from a data matrix. Simulates null correlation-matrix eigenvalue distributions to help choose how many components to retain. Existing PCA decomposes observed data and EFA needs a supplied factor count; neither calibrates component retention with a null simulation.

Compare components with a matching noise reference

Even a table of independent random Gaussian features has unequal sample eigenvalues. Its largest eigenvalue often exceeds one simply because the correlations are estimated from finite data. Parallel analysis compares observed eigenvalues with the distribution of eigenvalues produced by reference tables of the same shape, helping distinguish substantial sample structure from the amount of structure that can arise through sampling variation.

The comparison is rank-specific: the largest observed eigenvalue is compared with the reference largest eigenvalue, the second with the reference second, and so forth. This page uses the ninety-fifth percentile of each rank's simulated distribution. It implements a component-retention heuristic for correlation PCA, rather than a common-factor extraction method or a formal confidence statement that a particular population rank is correct.

Standardize every simulated table separately

Each simulation generates n by p IID standard normal entries. It computes that table's sample correlation matrix and sorts the eigenvalues from largest to smallest. Standardization is repeated within every simulation, matching the data calculation. Using the eigenvalues of an unstandardized random covariance matrix would produce a different reference and would not implement the stated correlation-PCA procedure.

For each rank the simulator stores the reference eigenvalues and estimates the ninety-fifth percentile using a declared quantile convention. The retained leading components are those that exceed their rank-specific thresholds before the first failure. Random numbers and finite quantile estimation matter near a crossing, so the seed, simulation count, and proximity to each threshold should be visible instead of presenting the selected count as exact.

The forty-row example has three features

The prefilled synthetic table contains forty observations and three continuous columns. Its correlation eigenvalues are approximately 1.909833988, 0.967762103, and 0.122403909. They sum to three as required. The small third eigenvalue reflects a strong relationship among some columns, but the raw eigenvalue greater-than-one rule alone does not provide the parallel-analysis comparison.

The reference calculation must generate forty-by-three Gaussian tables for this example, not reuse a threshold from another sample size. A typical run retains the dominant first component, but the numerical thresholds belong to the chosen seed and simulation procedure. The fixed observed eigenvalues supply an independent deterministic fixture, while repeated simulation runs reveal how stable any near-threshold selection is.

Read a rank-by-rank scree comparison

The figure places component rank on the horizontal axis and eigenvalue on the vertical axis. One series represents the observed table and another the ninety-fifth percentile Gaussian reference. A component is supported by this rule where the leading observed series remains above its corresponding reference point. A crossing is a comparison at that rank, not a geometric intersection with a universal horizontal cutoff.

A steep elbow can provide exploratory context, but the comparison should not be reduced to visual aesthetics. The displayed scale starts from nonnegative eigenvalues and makes the sum constraint understandable. If two curves nearly touch, additional simulations can reduce Monte Carlo uncertainty; more simulations do not increase the information in the original forty observations or remove their sampling variability.

Separate simulation error from model uncertainty

The simulator supports five hundred through three thousand reference tables under a bounded workload. The estimated ninety-fifth percentile can move slightly between seeds. This numerical Monte Carlo variation is distinct from uncertainty about the population correlation matrix, which is estimated from the entered observations. A stable threshold under many simulations does not by itself imply stable component retention under resampling the original study.

The Gaussian independent-feature reference is deliberate. Ordinal responses may require polychoric correlations and a different reference construction; dichotomous outcomes, clustered rows, missing values, and a common-factor target need appropriate extensions. The calculator does not rotate components, fit latent factor loadings, or certify a true dimension. It also does not silently repair a nonfinite or poorly specified correlation input by deleting troublesome columns.

Use a retention aid within a PCA workflow

An ordinary PCA calculator supplies scores, loadings, and explained variation for a selected representation. Parallel analysis adds a matching finite-sample noise benchmark to help choose how many components to examine. The Kaiser rule keeps eigenvalues above one without such a sample-size adjustment. Neither approach can replace substantive judgments about whether a component is interpretable or useful for the intended downstream task.

Record n, p, feature definitions, standardization, observed eigenvalues, reference generator, percentile, quantile convention, simulation count, seed, and retained count. If a selected component lies very close to the threshold, describe the choice as sensitive. Subsequent prediction, compression, or scientific modeling should be checked on its own merits rather than justified solely by having passed a parallel-analysis eigenvalue comparison.

A few questions, answered

Is this factor analysis?

No. The page compares correlation-PCA eigenvalues with Gaussian component references, not common-factor eigenvalues.

Why can a random largest eigenvalue exceed one?

Finite-sample correlations fluctuate, so independent features do not yield a sample identity matrix exactly.

Why does the seed matter?

Reference percentile estimates come from a finite Gaussian simulation and can change slightly across runs.

Can I enter ordinal responses?

This implementation is for complete continuous features and Pearson correlations; it does not estimate polychoric correlations.

Find your calculator

Start typing to explore the library.