- Introduced by
- Bengt Muthén & Tihomir Asparouhov
- Year
- 2012
- Type
- Bayesian latent variable model
What does it do?
Bayesian SEM, introduced by Muthén and Asparouhov in 2012, extends structural equation modeling by placing prior distributions on factor loadings, path coefficients and covariances.
Instead of a single maximum-likelihood estimate for each parameter, it uses Markov chain Monte Carlo (MCMC) to approximate the full posterior distribution of every parameter, which allows uncertainty to be quantified in latent-variable models.
The intuition behind the method
Ordinary SEM asks which single set of loadings and paths best fits the data. Bayesian SEM asks which range of values is plausible for each loading and path, given the data and the priors placed on them. The key device is the approximate zero constraint: a cross-loading or residual covariance that theory expects to be small receives a tight prior centred on zero, rather than being fixed at exactly zero. The model can then let the data indicate a small non-zero value, which often suits measurement models that are imperfect in practice. This matters most when the sample is modest.
History
Classical SEM, usually estimated by maximum likelihood, can struggle in small samples and typically requires cross-loadings to be fixed at exactly zero, which rarely holds in practice. Muthén and Asparouhov (2012) proposed Bayesian SEM as an alternative that places priors on all parameter blocks, including small-variance priors on cross-loadings. The approach has since been implemented in software such as Mplus (ESTIMATOR=BAYES) and the R package blavaan.
When to use it
Choose Bayesian SEM when a confirmatory factor or path model is motivated by theory but the sample is small. A rough guide is about 50 observations, but no fixed minimum applies: adequacy depends on the number of free parameters and on how informative the priors are, so sensitivity to the priors should be checked. It is also suited to designs where prior information on parameter sizes is available and should be used formally, where small non-zero cross-loadings or residual covariances are more realistic than exact zeros, or where full posterior distributions for each loading and path are needed rather than point estimates and standard errors. Both continuous and ordinal outcomes are supported. Avoid it when the sample is large and the priors would be diffuse, since maximum-likelihood SEM then gives similar results more quickly. When there is no structural or confirmatory component, a Bayesian exploratory factor model is the more suitable choice.
Limitations and considerations
- With a small sample relative to the number of free parameters, the posterior may fail to converge or may be dominated by the priors. A sample of about 50 is a rough guide rather than a fixed minimum.
- Results depend on the priors. Poorly chosen priors, particularly on cross-loadings, can change conclusions or mask misfit.
- MCMC sampling takes considerably longer than a maximum-likelihood fit of the same model.
- Reading the output correctly requires Bayesian concepts (posterior distributions, credible intervals, PPP, convergence diagnostics), which adds a learning curve for users trained only in frequentist SEM.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a full posterior distribution for every loading and path, so the uncertainty in each parameter is reported directly.
- With informative priors, estimates can be stabilised when the sample is too small to pin down the parameters on its own.
- Approximate zero priors allow small cross-loadings and residual covariances to be non-zero, which matches measurement models where exact zeros rarely hold.
- PPP and DIC/WAIC provide fit and comparison indices without relying on the asymptotic chi-square reference distribution used in ML-SEM.
Applications
- Confirmatory measurement models in psychology and education with modest samples, where cross-loadings are expected to be small rather than absent.
- Mediation and path models in health and social science research, where full posterior uncertainty for indirect effects is needed.
- Longitudinal latent variable models that require flexible residual covariance structures.
- Multi-group or multi-level studies in which prior information from earlier work is available and can be formally included.
How it works
How it works
Bayes' rule is the core of the method. The posterior over the model parameters (loadings Λ, structural paths B, factor covariances Φ and residual parameters Ψ) is proportional to the likelihood of the observed data multiplied by the prior on each parameter block. Because the prior enters the calculation directly, informative priors can stabilise estimates when the sample alone carries limited information about the parameters.
Formula
p(\theta\mid y) \propto p(y\mid\theta)\,p(\theta)
The likelihood gives the probability of the observed data for given parameter values. Measurement equations link each indicator to its latent factor through the loading matrix Λ, and structural equations express latent variables as linear functions of other predictors through the path matrix B, with factor covariances Φ and residual parameters Ψ. Each parameter receives a prior. For example, a Normal(0, 0.01) prior on a cross-loading is an approximate zero constraint: the loading may be non-zero but is strongly pulled toward zero. Software conventions differ on whether the second argument is a variance or a standard deviation, and this changes how tight the prior is. The parameterisation must therefore be stated explicitly, and the same written prior should not be assumed to impose the same constraint in every package.
Formula
y \sim p(y \mid \Lambda,\, B,\, \Psi)
Multiplying the likelihood by the priors gives the joint posterior over Λ, B, Φ and Ψ. This posterior has no closed form, so it is explored by MCMC sampling, normally with several parallel chains. Convergence is checked with R-hat values and effective sample sizes. Fit is assessed with the posterior predictive p-value (PPP), which compares an observed discrepancy statistic with the same statistic computed on replicated data. It is read alongside discrepancy plots and the convergence diagnostics rather than against a fixed cut-off. Competing models are compared with DIC or WAIC rather than chi-square difference tests.
Formula
p(\Lambda, B, \Phi, \Psi \mid y) \propto p(y \mid \Lambda, B, \Phi, \Psi)\, p(\Lambda)\, p(B)\, p(\Phi)\, p(\Psi)
Common pitfalls
- Reporting posteriors without checking convergence. Inspect R-hat values (target below 1.01) and effective sample sizes before interpreting any parameter.
- Skipping a prior sensitivity analysis. If the posterior moves noticeably when reasonable alternative priors are used, the substantive conclusions are not robust.
- Ignoring the PPP check. A very small PPP flags possible misfit that should be investigated before paths are interpreted.
- Reading the PPP as a frequentist p-value. It compares the observed discrepancy with discrepancies in data replicated from the posterior predictive distribution; it is not the probability of data this extreme under a null hypothesis.
- Fixing cross-loadings at exactly zero when theory and data both suggest small non-zero values. In that case an approximate zero prior is the appropriate tool.
Frequently asked questions
What is the Posterior Predictive P-value (PPP) and how should I interpret it?
The PPP compares an observed discrepancy statistic (typically chi-square) with the same statistic computed on data replicated from the posterior predictive distribution. It is a posterior predictive check rather than a test to be rejected at a fixed level, so no universal cut-off is applied. Very small values flag possible misfit that should be investigated, for example by examining which part of the model the discrepancy points to. Read the PPP together with the discrepancy plots and the convergence diagnostics.
How do approximate zero constraints differ from ordinary cross-loading constraints?
In standard confirmatory factor analysis, cross-loadings are fixed to exactly zero. Approximate zero constraints instead use a tight prior, such as Normal(0, 0.01), that pulls a cross-loading strongly toward zero while allowing a small non-zero value if the data support one. This suits cases where theory predicts a minor rather than absent link between an indicator and a non-target factor. The prior's scale (variance or standard deviation) must be stated when it is reported, because software conventions differ; check the documentation of the package used.
When should I prefer Bayesian SEM over maximum-likelihood SEM?
Prefer Bayesian SEM when the sample is small, when prior knowledge about parameter sizes can be encoded formally, when approximate zero constraints are wanted, or when full posterior distributions are needed rather than point estimates. With large samples and diffuse priors, the two approaches often give similar results, and ML-SEM is faster.
How do I compare competing Bayesian SEM models?
Use DIC (Deviance Information Criterion) or WAIC (Widely Applicable Information Criterion) rather than likelihood-ratio chi-square tests. Both estimate expected out-of-sample predictive fit and include a penalty for effective model complexity, so a lower value indicates better expected predictive performance. A lower value does not by itself mean that a model has fewer parameters or is more parsimonious in that sense. Bayes factors are an alternative, but they require careful prior specification and are computationally demanding for complex SEM structures.
How do I read posterior means and 95% credible intervals?
The posterior mean is the average of the parameter values that the model, given the priors and the data, considers plausible. It is reported with a 95% credible interval, the range within which 95% of the posterior mass lies. An interval that excludes zero means that most of the posterior mass lies on one side of zero. This is not the same as a p-value or a frequentist significance test: the interval describes uncertainty under the model and the chosen priors, and it can shift if the priors change. Check the convergence diagnostics first, then assess whether the conclusion holds under reasonable alternative priors.
Related methods
Sources
Muthén, B. & Asparouhov, T. (2012). Bayesian SEM: A More Flexible Representation of Substantive Theory. Psychological Methods, 17(3), 313–335.
Open publication reference