- Introduced by
- Paul F. Lazarsfeld
- Year
- 1950
- Type
- Latent variable / probabilistic clustering
What does it do?
Latent class analysis is a probabilistic, model-based method that identifies unobserved subgroups, or latent classes, within a population from patterns of categorical, binary, or ordinal indicator responses.
It descends from Paul F. Lazarsfeld's latent structure work around 1950, and later computational estimation methods, in particular maximum likelihood fitted by the EM algorithm, made it practical to fit. It is used in the social, health, and behavioural sciences to examine hidden heterogeneity in a population.
The intuition behind the method
Imagine that a survey on health behaviours shows no obvious groupings by age or income, yet the pattern of responses — which combinations of items people endorse — suggests that distinct types of respondent exist. LCA formalises this: it supposes that a small number of hidden groups explain why certain item combinations occur far more often than chance would predict. Each person is assigned a probability of belonging to each group, not a hard cluster label, and the item response probabilities within each group are the fingerprints that make the groups interpretable.
History
The foundations of latent class analysis were laid by Paul F. Lazarsfeld in the late 1940s and early 1950s, as part of his latent structure analysis in survey research. Later computational estimation, based on maximum likelihood fitted by the EM algorithm, made the method practical to apply. Hagenaars and McCutcheon's 2002 edited volume, Applied Latent Class Analysis, is one applied reference in the literature. Nylund, Asparouhov and Muthén (2007) addresses how to decide the number of classes, and it treats that decision directly.
When to use it
Choose LCA when you suspect that a population consists of distinct qualitative types of respondent and your indicators are categorical, binary, or ordinal. If your indicators are continuous, Latent Profile Analysis is the appropriate alternative. Local independence must be plausible: once class membership is controlled for, the indicators should share no residual association. Clear violations mean either that specific indicator pairs need correlated residuals or that more classes are needed. The sample must be large enough to estimate class-conditional response probabilities stably. The required size depends on the number of classes, the number of indicators, and the number of response categories, since each adds parameters and cells to the response table. The main risk is sparse cells, where many response patterns contain few or no respondents; check cell counts and replicate estimates before interpreting a solution. Do not choose K simply because it gives the best fit. Use BIC together with the likelihood-ratio tests, entropy, and substantive interpretability, since additional classes can fit noise.
Limitations and considerations
- Stable estimates need enough respondents for the response table. When the number of indicators or response categories is large relative to the sample, many cells become sparse, and sparse cells cause estimation problems.
- Multiple random starts are necessary because the EM algorithm can converge to local maxima; results must be checked for replication across starts.
- The local independence assumption can be violated when indicators share content beyond what the latent classes explain, requiring model modification.
- Classes are latent constructs and their substantive interpretation depends on the researcher's judgment; the same data can support more than one defensible class solution.
- The model must be identified. The number of free parameters must be smaller than the number of distinct response patterns minus one, so that the degrees of freedom are positive. Models with few indicators, or with many classes relative to the indicators, can be unidentified or unstable.
- When comparing class structures across groups, test whether the class-conditional response probabilities are equal across groups (measurement invariance) before comparing class prevalences. Otherwise, differences in what the classes mean across groups confound the comparison.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models categorical, binary, or ordinal indicators directly through class-conditional response probabilities, so item responses do not have to be treated as continuous scores.
- Gives each respondent posterior class-membership probabilities, so uncertainty about membership is retained rather than discarded by a hard assignment.
- Local independence gives the classes a specific interpretation: each class is the common cause that accounts for the associations among the indicators.
- Information criteria such as BIC, together with likelihood-ratio tests, provide a formal basis for comparing solutions with different numbers of classes.
Applications
- Public health and epidemiology, identifying latent risk-behaviour profiles or disease subtypes from symptom checklists.
- Educational research, classifying students into latent achievement profiles or learning strategy types from item-response patterns.
- Marketing and consumer research, segmenting consumers into attitude or preference classes from survey items.
- Clinical psychology and psychiatry, uncovering latent diagnostic subgroups within heterogeneous patient populations.
- Political science and sociology, revealing latent attitude classes or lifestyle types from survey batteries.
How it works
How it works
The measurement model states that the joint probability of any response pattern y across J indicators is a finite mixture: a weighted sum over K latent classes, where each weight π_k is the prevalence of class k and each factor in the product is the class-conditional probability of observing response y_j on indicator j. The key assumption driving this decomposition is local independence: conditional on class membership, the J indicators are mutually independent. In other words, all the correlation among the indicators is explained by which class a person belongs to — the latent class is the common cause.
Formula
P(\mathbf{Y} = \mathbf{y}) = \sum_{k=1}^{K} \pi_k \prod_{j=1}^{J} P(Y_j = y_j \mid C = k)Because the latent classes are unobserved, the model is estimated by maximum likelihood via the Expectation-Maximisation (EM) algorithm. In the E-step, posterior class-membership probabilities are computed for each respondent given the current parameter estimates. In the M-step, class sizes and item-response probabilities are updated to maximise the expected log-likelihood. This cycle repeats until convergence. The number of classes K is not known in advance and must be chosen by comparing solutions across values of K using information criteria: BIC (Bayesian Information Criterion) is widely used, with lower values indicating a better balance of fit and parsimony. In the BIC penalty, p_K counts the free parameters of the model: the K − 1 independent class prevalences plus the class-conditional response probabilities for every indicator. Each added class therefore adds a full block of response probabilities, so the penalty rises quickly as the number of indicators and response categories grows. AIC tends to favour more complex solutions. The Lo–Mendell–Rubin likelihood-ratio test and the bootstrap likelihood-ratio test provide formal significance tests for adding one more class. Classification certainty is summarised by entropy, a normalised index in which higher values mean that the posterior probabilities separate the classes more sharply. Values above about 0.80 are commonly read as clean separation, but this is a rule of thumb rather than a formal cut-off, so entropy should be read alongside BIC, the likelihood-ratio tests, and the substantive interpretability of the classes.
Formula
\hat{K} = \arg\min_{K}\, \mathrm{BIC}(K) = -2\ell(\hat{\theta}_K) + p_K \ln nCommon pitfalls
- Choosing K solely by minimising BIC without checking class interpretability, entropy, and the bootstrap likelihood-ratio test — any one criterion alone can mislead.
- Using hard class assignments (modal assignment) in subsequent analyses without accounting for classification uncertainty, which inflates apparent precision.
- Failing to run multiple random starts. The EM algorithm is sensitive to starting values; a single run may converge to a local rather than the global maximum.
- Treating LCA like K-means clustering and ignoring the probabilistic structure. Unlike K-means, LCA is a generative probability model with testable assumptions.
- Applying LCA to continuous indicators directly instead of switching to Latent Profile Analysis, which uses Gaussian distributions within classes.
- Reporting only the selected solution. Report every value of K that was tested, with BIC, entropy, likelihood-ratio test results, and class sizes, so that readers can judge why the final solution was chosen.
Frequently asked questions
How is LCA different from cluster analysis?
Traditional cluster analysis (k-means, hierarchical) partitions individuals into groups using distance or similarity measures and produces hard, deterministic assignments. LCA is a probability model: it estimates the probability that each person belongs to each class, preserves that uncertainty in posterior probabilities, and provides formal model-fit criteria for choosing the number of classes. LCA also embeds a testable assumption — local independence — that gives the classes a causal interpretation, whereas cluster analysis makes no such structural claim.
How do I choose the number of classes?
Run solutions for K = 1, 2, 3, … classes and compare BIC values — lower is better. Also examine the Lo–Mendell–Rubin test and the bootstrap likelihood-ratio test for whether adding one more class significantly improves fit. Check entropy, a normalised summary of how cleanly respondents are assigned to classes, where values above about 0.80 are commonly read as clean separation, but this is only a rule of thumb. Most importantly, check whether the classes are substantively interpretable. The best-fitting model is not always the most useful one.
What is local independence and why does it matter?
Local independence states that, conditional on class membership, the indicators are statistically independent — the latent class fully explains the associations among the items. It is the core identifying assumption of LCA. If it is violated — if residual associations remain within classes — the model is misspecified. Bivariate residuals flag pairs of indicators that violate the assumption; remedies include allowing correlated residuals for those pairs or splitting one class into two.
Can I use LCA with continuous variables?
Standard LCA assumes categorical or ordinal indicators. For continuous indicators the appropriate extension is Latent Profile Analysis (LPA), which uses Gaussian distributions within each class. Mixing categorical and continuous indicators is possible in general mixture models but requires software that supports mixed-type measurement models.
Related methods
Sources
Hagenaars, J. A. & McCutcheon, A. L. (Eds.) (2002). Applied Latent Class Analysis. Cambridge University Press.
ISBN: 978-0521594516Nylund, K. L., Asparouhov, T. & Muthen, B. O. (2007). Deciding on the number of classes in latent class analysis and growth mixture modeling. Structural Equation Modeling, 14(4), 535–569.
Open publication reference