Method · Statistics Library

Exploratory factor analysis

Exploratory factor analysis models a set of correlated numeric variables as driven by a small number of unobserved latent factors plus variable-specific noise, so you can see what shared construct explains why they correlate.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

Imagine you measured four body dimensions on an animal: bill length, bill depth, flipper length, body mass. They all correlate with each other, and a natural guess is that there is one underlying thing (call it 'overall body size') driving all four measurements up or down together, with only a little bit of each measurement being its own separate story. That underlying, never-directly-measured 'body size' is a latent factor.

Factor analysis works backward from the correlations you can see to the factor(s) you cannot. Each variable gets a loading on each factor (how strongly it depends on that factor), and the share of a variable's variance the factors explain is its communality; what is left over is its uniqueness (its own private noise, not shared with anything else). A variable with high communality is well explained by the factor model; one with low communality is mostly doing its own thing.

This is a genuinely different tool from PCA, even though the two are often confused. PCA squeezes ALL of your variables' variance (shared and unshared alike) into new combined variables, with no claim about WHY they correlate. Factor analysis specifically tries to explain the correlations by proposing hidden causes: it is a model of the data, not just a repackaging of it.

Exploratory factor analysis, or EFA, fits a latent factor model: it assumes a few hidden factors drive the observed variables, and the factor loadings show how strongly each variable is tied to each factor.

Practitioner explanation

KernelStats standardizes each variable by default (fitting the factor model on the correlation matrix) before extraction; turning standardize off fits on the covariance matrix instead and additionally reports communality_variance in the variable's own squared units, since raw-covariance loadings let a high-variance column dominate the variance-explained percentages even though the underlying factor solution is identical. Varimax rotation is offered for 2+ factors (a single factor has only one axis, so rotation is a no-op); sign is fixed by the same convention R's factanal uses: any factor whose loadings sum negative is reflected, so a positively-keyed construct comes out positive.

The card checks identifiability BEFORE reporting a solution: a k-factor model on p variables has df = 0.5*[(p-k)^2 - (p+k)] degrees of freedom (the Ledermann bound), and a negative df means more free parameters than the data has distinct covariances to estimate them from; infinitely many loading matrices would fit equally well, so the card warns rather than silently reporting one arbitrary answer. It also flags a Heywood case (a communality driven to 1, an improper boundary solution), typically caused by too many factors, too few cases, or two nearly-redundant variables.

Two factorability screens run on every card: Bartlett's test of sphericity (is the correlation matrix distinguishable from an identity matrix; note this is easily significant at large n and is a floor, not evidence of good structure) and the Kaiser-Meyer-Olkin (KMO) measure (below 0.50 unacceptable, 0.60+ usually adequate) comparing raw to partial correlations. The number of factors is a required input, not chosen automatically: KernelStats does not implement parallel analysis or a scree-plot picker, so the count is a modeling decision the analyst makes and the card only validates for identifiability.

When to use it

Consider it when

Several continuous, correlated variables are believed to reflect a smaller number of unobserved constructs, and the goal is to discover and interpret those constructs: scale construction, questionnaire validation, or structure discovery.

Use caution when

When the goal is purely to compress variables into fewer numbers for downstream modeling with no interest in WHY they correlate (use PCA instead), when variables are not linearly related, when the sample is too small for the number of factors requested (unstable loadings, or a negative-df refusal), or when the correlations among variables are weak and mostly pairwise rather than shared (a low KMO signals the data has little common structure to extract).

Formulas and symbols

Communality

hi2=∑flif2h_i^2 = \sum_{f} l_{if}^2

l_if the loading of variable i on factor f; the share of variable i's variance explained by the common factors (1 - h_i^2 is its uniqueness).

Degrees of freedom (identifiability, Ledermann bound)

df=12[(p−k)2−(p+k)]df = \tfrac{1}{2}\left[(p-k)^2 - (p+k)\right]

p variables, k factors. df < 0 means the model is not identified: more free parameters than the data has distinct covariances.

Bartlett's test of sphericity

χ2=−[(n−1)−2p+56]ln⁡∣R∣\chi^2 = -\left[(n-1) - \tfrac{2p+5}{6}\right] \ln|R|

R the correlation matrix, |R| its determinant. Tests whether R is distinguishable from the identity matrix (no shared variance to model).

Assumptions and checks

  • Negative model degrees of freedom (more parameters requested than the data can identify, i.e. too many factors for the number of variables) mean the model is not statistically identified and its loadings are not uniquely determined.

    In KernelStats: Checked directly via the Ledermann bound: df = ((p-k)^2 - (p+k)) / 2 for p variables and k factors; the card reports the largest identifiable factor count whenever the requested one fails.

  • If the variables are already close to uncorrelated (the correlation matrix close to an identity matrix, or a low sampling-adequacy score), there is no shared variance for a factor model to explain, and the extracted factors will be unstable and dominated by noise.

    In KernelStats: Bartlett's test of sphericity and the Kaiser-Meyer-Olkin sampling-adequacy statistic, both computed on the correlation matrix and reported directly on the card, with an honest 'not computable' verdict when the matrix is singular.

  • Linearity. Factor analysis models each variable as a LINEAR combination of the common factors plus unique variance; a genuinely nonlinear relationship among the variables is not captured by any linear factor solution, however many factors are extracted.

    In KernelStats: Not checked by KernelStats: no nonlinearity diagnostic is run against the factor model.

Alternatives

  • Principal Component Analysis. You want to reduce dimensionality or build features by re-expressing all the variance in the data, without claiming the components are latent causes of the correlations.
  • Cronbach's Alpha (Scale Reliability). You already believe the variables measure one single construct (a single scale) and want a reliability coefficient for that scale, rather than discovering how many latent factors are present.
  • Hierarchical Clustering. You want to group the OBSERVATIONS (rows) rather than find latent structure among the VARIABLES (columns).

Worked example

Scenario

A single-factor exploratory factor analysis on four standardized penguin body measurements (bill length, bill depth, flipper length, body mass).

Result

KMO = 0.69 (mediocre), Bartlett's chi-square(6) = 838.1, p < .001; the single factor's maximum-likelihood loadings (as R's factanal() gives them) are flipper length 1.00 (0.9975), body mass 0.87, bill length 0.66 and bill depth -0.58, explaining 63% of total variance; communalities range from 0.34 (bill depth) to 0.995 (flipper length), and flipper length's uniqueness sits on the 0.005 floor, so the card shows a Heywood warning for it.

Interpretation

A single 'overall body size' factor plausibly explains most of the shared variance across these four measurements, with bill depth showing the weakest link to that common factor and loading NEGATIVELY on it: in the pooled data deeper-billed birds tend to be the smaller Adelie and Chinstrap penguins, a species-mix effect rather than a biological law, so the factor is worth re-fitting within species before it is read as 'size'.

Dataset: penguins.csv

Common misconceptions

Misconception

Factor analysis and PCA are basically the same technique with different names.

Correction

PCA re-expresses ALL of a dataset's variance (shared and variable-specific alike) as new orthogonal combinations, with no model of why variables correlate. Factor analysis explicitly SPLITS each variable's variance into a common part (explained by latent factors) and a unique part (noise/specific variance), and treats the factors as hidden causes to be inferred. Use PCA to compress; use factor analysis to explain.

Misconception

A significant Bartlett's test of sphericity proves the factor solution found is a good one.

Correction

Bartlett's test only checks that SOME shared variance exists to be modeled: it becomes significant very easily at large sample sizes even when the shared structure is weak. It is a minimum bar to clear before factoring at all, not a verdict on the quality, size, or interpretability of the specific factor solution you extracted.

References

  1. Using Multivariate Statistics, Tabachnick, B. G. and Fidell, L. S. (2013).
  2. A note on multiplying factors for various chi squared approximations, Bartlett, M. S. (1954), Journal of the Royal Statistical Society, Series B, 16(2), 296-298.