Latent Class Analysis (LCA)

Statistics
Introduced by
Paul F. Lazarsfeld
Year
1950s–1968
Type
Latent variable / person-centered classification
Family
Multivariate analysis

What does it do?

Latent class analysis identifies unobserved subgroups — latent classes — within a population by finding patterns of responses across a set of categorical observed indicators.

It is the categorical-variable counterpart of cluster analysis, but grounded in an explicit probabilistic model, and is widely used in social, health, and behavioral sciences to discover typologies in survey or diagnostic data.

The intuition behind the method

Suppose you ask many people a battery of yes/no health-behavior questions and you suspect the respondents do not form one homogeneous group. Some might be consistently healthy, others consistently risky, and still others mixed. LCA formalizes this intuition: it posits that the observed pattern of answers for each person is generated by their membership in one of K unobserved classes. Within each class, the items are assumed to be statistically independent — the class itself accounts for all the associations among the items. The algorithm estimates how large each class is (class prevalences) and how likely members of each class are to endorse each item (item-response probabilities), then assigns each person a probability of belonging to each class.

History

Paul F. Lazarsfeld developed latent structure ideas in the 1950s to model qualitative types in attitude surveys, with the full treatment published by Lazarsfeld and Henry in 1968. Leo A. Goodman's 1974 paper in Biometrika placed the model in formal statistical terms: it addressed which latent structure models are identifiable, gave maximum likelihood estimates of expected frequencies for models of m polytomous variables, and proposed tests of model fit.

When to use it

Use LCA when your indicators are categorical (binary or polytomous) and you hypothesize that the population contains qualitatively distinct subgroups whose differences account for the associations among the items. Typical settings include building typologies in health behavior, psychopathology, educational assessment, and segmentation with categorical data. Do not use LCA with continuous indicators; latent profile analysis is the matching model for those. Be cautious when the sample is small relative to the number of classes, indicators, and response categories, because EM estimation becomes unstable and sparse response patterns make the class solution unreliable. Avoid LCA when you expect item associations to persist within classes, for example from shared wording or method effects, since the model will then tend to extract spurious classes to absorb them.

Limitations and considerations

  • The local independence assumption is strong and often violated; items within a class may still covary due to unmeasured item-specific factors.
  • The EM algorithm can converge to local rather than global maxima, requiring many random starting values.
  • Identifying the correct number of classes is challenging; different fit indices can disagree and there is no single gold standard.
  • Large numbers of indicators with many response categories create sparse response patterns, making estimation unstable.
  • Modal class assignment discards uncertainty and can lead to overstated classification accuracy in downstream analyses.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Probabilistic model-based classification with explicit fit criteria, unlike heuristic distance-based clustering.
  • Naturally handles binary and polytomous categorical indicators without requiring interval-level measurement.
  • Yields soft assignments (posterior probabilities) that quantify classification uncertainty for each individual.
  • Information criteria (BIC, AIC) and significance tests provide principled guidance on the number of classes.
  • Classes can be interpreted substantively as latent typologies with distinct item-response profiles.
  • Extends naturally to latent class regression, latent transition analysis, and multilevel LCA.

Applications

  • Health behavior typologies, classifying individuals into risk-behavior profiles from binary self-report items.
  • Psychopathology research, identifying diagnostic subtypes from symptom checklists.
  • Educational assessment, detecting latent skill or misconception profiles from test response patterns.
  • Marketing and consumer research, segmenting customers by categorical preference or purchase patterns.
  • Epidemiology, uncovering disease subtypes or comorbidity clusters from symptom and diagnosis data.
  • Longitudinal studies, as a precursor to latent transition analysis examining class membership changes over time.

How it works

How it works

1

The model expresses the probability of observing any particular response pattern y as a finite mixture: the population is divided into K latent classes with prevalences π_k (summing to 1), and within each class k, the joint probability of the item responses factors as a product of class-specific item-response probabilities. The overall pattern probability is the prevalence-weighted sum across all classes.

Formula
P(\mathbf{Y}=\mathbf{y}) = \sum_{k=1}^{K} \pi_k \prod_{j=1}^{J} P(Y_j = y_j \mid c = k)
2

The local independence assumption is the core identifying restriction: conditional on class membership, the J observed indicators are mutually independent. This means the class fully explains the associations among the items — it is not that the items are unrelated in the population, but rather that all the covariation among them is attributable to which latent class a person belongs to.

Formula
P(\mathbf{Y} \mid c=k) = \prod_{j=1}^{J} P(Y_j \mid c=k)
3

Parameters (class prevalences and item-response probabilities) are estimated by maximum likelihood using the Expectation-Maximization (EM) algorithm. In the E-step, posterior class membership probabilities are computed for each respondent given current parameter estimates. In the M-step, parameters are updated by weighted frequency tables. The two steps alternate until the log-likelihood converges. Multiple random starting values are used to avoid local maxima.

4

Before solutions are compared, each model must be identifiable. A necessary counting condition is that the number of free parameters must not exceed the number of distinct response patterns minus one, so that the residual degrees of freedom are non-negative; a solution with too many classes for the given indicators and response categories can fail this condition. Goodman (1974) gives a method for determining whether the parameters of an estimated model are identifiable, and for replacing unidentifiable models that fit with identifiable models that fit. The number of classes K is not set in advance but is chosen by comparing models with K = 1, 2, 3, … classes. Information criteria — the Bayesian Information Criterion (BIC) and the Akaike Information Criterion (AIC) — penalize model complexity; lower values are preferred. The Lo-Mendell-Rubin likelihood ratio test and the Bootstrap Likelihood Ratio Test provide significance tests for adding one more class. Entropy, which summarizes how cleanly individuals are assigned to classes, is also considered. Interpretability of the class profiles is the final arbiter.

5

Once the model is fitted, each respondent receives a posterior probability of belonging to each class via Bayes' theorem. Modal assignment — assigning the person to the class with the highest posterior — yields a hard classification for downstream analysis, though analysts should carry the uncertainty by using the full posterior probabilities wherever possible.

Formula
P(c=k \mid \mathbf{y}) = \frac{\pi_k \prod_j P(Y_j=y_j \mid c=k)}{\sum_{k'} \pi_{k'} \prod_j P(Y_j=y_j \mid c=k')}

Common pitfalls

  • Running EM from a single set of starting values and accepting the first solution as the global optimum. Use many random starts and check that the best log-likelihood is reproduced across independent runs.
  • Choosing the number of classes solely on BIC or AIC without inspecting the interpretability and substantive meaning of the class profiles.
  • Reading entropy and average posterior probabilities in isolation. Low entropy means classes overlap heavily, so modal class labels are less trustworthy and should be interpreted cautiously.
  • Treating modal class assignments as error-free in regression or ANOVA without accounting for classification uncertainty (the three-step bias problem). Auxiliary-variable approaches such as BCH or ML are designed for this situation.
  • Confusing LCA (categorical indicators) with latent profile analysis (continuous indicators) and applying LCA to continuous outcomes or LPA to binary items.

Frequently asked questions

What is the difference between LCA and cluster analysis?

Both aim to identify subgroups, but cluster analysis is an algorithmic procedure without an underlying probability model, making it difficult to assess fit or quantify uncertainty. LCA is a model-based approach that specifies an explicit probabilistic generative model, provides formal fit statistics and model-comparison tests, and yields posterior membership probabilities rather than hard assignments. Grade-of-membership analysis, a related method for binary data, estimates grades of membership as parameters during clustering, whereas in LCA the class membership probabilities are obtained after the latent class model has been estimated. LCA is preferred when interpretability, fit assessment, and uncertainty quantification matter.

What is the difference between LCA and latent profile analysis?

LCA is designed for categorical indicators (binary or polytomous). Latent profile analysis (LPA) uses the same latent mixture logic but models continuous indicators with within-class normal distributions. Applying LCA to continuous data or LPA to binary data is a model misspecification; always match the model to the measurement level of your indicators.

How do I choose the number of classes?

Fit models with K = 1, 2, 3, … classes and compare them using BIC (tends to favor parsimony), AIC (more liberal), the Bootstrap Likelihood Ratio Test (BLRT), and entropy. The BLRT is computationally intensive, and because each bootstrap replicate requires EM estimation, which can converge to local maxima, it should be run with multiple random starts and interpreted alongside the other criteria. No single criterion is definitive; the preferred solution balances statistical fit with substantive interpretability of the class profiles. Classes that are very small or substantively redundant are signs of overextraction.

Can I use LCA with ordinal indicators?

Yes, though by default LCA treats each response category of a polytomous item separately (nominal). For ordinal indicators you can impose monotonicity constraints on item-response probabilities across classes, which reduces parameters and can improve stability. Alternatively, polychoric correlations combined with factor mixture models offer another approach for ordinal data.

How large a sample do I need for LCA?

No fixed threshold applies across all designs. Small samples make the EM algorithm prone to convergence problems and produce unstable class solutions. The required size grows with the number of classes, the number of indicators, and the number of response categories. Check stability by re-estimating the chosen solution from different starting values and by examining whether the classes replicate. Fit p-values need similar care: when many response patterns are sparse, the Pearson and likelihood-ratio chi-square statistics may not follow their asymptotic reference distribution, so a parametric bootstrap is preferable for judging fit. Goodman (1974) presents methods for testing whether a model fits the observed data.

Related methods

Sources

  1. Goodman, L. A. (1974). Exploratory latent structure analysis using both identifiable and unidentifiable models. Biometrika, 61(2), 215–231.

    Open DOI reference
  2. Lazarsfeld, P. F. & Henry, N. W. (1968). Latent Structure Analysis. Houghton Mifflin.

    Open publication reference
  3. Everitt, Landau & Lee, Cluster Analysis, p. 245