Bayesian Factor Analysis

Statistics
Introduced by
Lopes & West (2004) for Bayesian model assessment in factor analysis
Year
2004
Type
Bayesian latent variable model

What does it do?

Bayesian Factor Analysis is a probabilistic latent-variable method that places prior distributions on the factor loading matrix and the residual variances, then infers a posterior distribution over these parameters from the data.

It extends classical exploratory and confirmatory factor analysis by reporting uncertainty for each loading rather than a single point estimate. The Bayesian model assessment underlying this approach is associated with Lopes and West (2004).

The intuition behind the method

Classical factor analysis gives one loading per variable-factor pair and treats that value as if it were exact. Bayesian factor analysis asks a different question: given prior beliefs about how large loadings can plausibly be, and given the observed data, which loading values remain consistent with the evidence? The answer is a posterior distribution. A loading may have its highest density near one value while its interval still spans a wide range, which shows how much the data actually constrain it. When data are limited, the posterior stays closer to the prior; when data are abundant, the data dominate. Priors can shrink weak, noise-driven loadings towards zero, which can temper the overconfident loading estimates that classical EFA may produce in small samples.

History

The Bayesian treatment of factor analysis discussed on this page is associated with Lopes and West (2004), published in Statistica Sinica (14(1), 41–67). That paper concerns Bayesian model assessment in factor analysis. Other contributions to Bayesian factor modelling are outside the scope of this entry.

When to use it

Choose this method when the sample is small and classical loading estimates would be unstable, or when you want each loading's uncertainty expressed as a posterior distribution. It also fits when prior knowledge about the factor structure should shape estimation, for instance by constraining loadings to be positive or encouraging sparsity. Both exploratory and confirmatory uses appear within the Bayesian framework. The likelihood described on this page is a multivariate Normal model for continuous indicators. Ordinal indicators call for a model that respects the ordinal scale, such as a threshold formulation, and are not covered by that likelihood. Avoid the method if you cannot specify a number of factors or a defensible prior, or cannot run MCMC with convergence checks. The model as written does not handle missing data, which must be treated before estimation.

Limitations and considerations

  • With small samples the posterior can be dominated by the prior, so conclusions partly reflect the prior chosen rather than the data alone.
  • Rotational indeterminacy means identification constraints must be set before sampling; poorly chosen constraints can distort the interpretation of the factors.
  • MCMC is more computationally demanding than classical EFA, and results can be interpreted only after convergence diagnostics such as R-hat and effective sample size have been checked.
  • The number of factors must be fixed in advance or chosen through separate model comparisons; the model does not select it automatically.
  • Results rest on multivariate normality of the indicators, independence of observations, a diagonal unique-variance matrix and a fixed number of factors; departures from these assumptions can distort the loadings and the comparison of factor-number solutions.
  • Missing values are not handled by the model as specified and need a separate treatment before estimation; ordinal indicators need a model that respects their scale.

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

Strengths

  • Gives a full posterior distribution for each loading and residual variance, so uncertainty is reported directly rather than inferred from standard errors.
  • Priors on the loadings can regularise estimates when information is limited, which can curb overconfident loadings in small samples, though the result depends on the prior chosen.
  • Supports comparison of factor-number solutions through Bayesian model-comparison criteria such as DIC or WAIC.
  • Lets substantive knowledge enter through the prior, for example by constraining loadings to be positive or favouring sparse loading patterns.

Applications

  • Psychometric scale development where sample sizes are modest and uncertainty in each loading should be reported alongside the factor solution.
  • Exploratory dimension reduction of continuous survey data where prior substantive knowledge about the factor structure should inform estimation.
  • Confirmatory factor analysis in small clinical or experimental studies where classical loading estimates are unstable.
  • Comparative factor-structure studies that require formal probabilistic comparison between candidate factor-number solutions.

How it works

How it works

1

Bayes' rule is the core engine: the posterior over the loading matrix Λ and the residual variance matrix Ψ is proportional to the likelihood (how well the factor model fits the observed data) multiplied by the priors placed on Λ and Ψ. Priors encode the analyst's pre-data beliefs. For example, a Normal prior centred at zero on the loadings acts as a soft regulariser that shrinks small, noise-driven loadings towards zero without hard-zeroing them.

Formula
p(\Lambda, \Psi \mid Y) \propto p(Y \mid \Lambda, \Psi)\, p(\Lambda)\, p(\Psi)
2

The likelihood treats the observations y_i, for i = 1, …, n, as independent and identically distributed draws from a zero-mean multivariate Normal distribution. The covariance of each draw decomposes into a common-factor part ΛΛᵀ and a unique-variance part Ψ, where Ψ is diagonal with positive entries. This is the same covariance structure assumed in classical factor analysis. Priors are placed on the loadings and on the diagonal elements of Ψ. Typical choices, shown here for illustration, are λ_jk ~ N(0, τ²) for the loadings, with τ² a prior variance fixed by the analyst, or a spike-and-slab prior that mixes a concentrated component near zero with a diffuse one; and ψ_j ~ InvGamma(a, b) for the unique variances, with shape a and scale b fixed by the analyst. Because orthogonal rotations of Λ leave the likelihood unchanged, the model requires identification constraints imposed before sampling, such as fixing selected loadings to zero. The specific constraint pattern has to be chosen for the model being fitted.

Formula
Y \sim \mathcal{N}(0,\; \Lambda\Lambda^\top + \Psi)
3

Multiplying the likelihood by the priors gives the joint posterior over Λ and Ψ, which has no closed form in general. Markov chain Monte Carlo (MCMC) is used to draw samples from this posterior; the resulting chains are inspected for convergence via R-hat and effective sample size before the posterior is summarised. Posterior means serve as point estimates of the loadings, and 95% credible intervals communicate the uncertainty attached to each loading. Model selection, meaning the choice of the number of factors, can be guided by Bayesian model-comparison criteria such as DIC or WAIC, where the candidate with the lower value is preferred. This replaces classical scree plots or parallel analysis as the basis for that choice.

Formula
p(\Lambda, \Psi \mid Y) \propto \prod_{i=1}^{n} p(y_i \mid \Lambda, \Psi)\cdot p(\Lambda)\cdot p(\Psi)

Common pitfalls

  • Interpreting sampled chains without checking R-hat, effective sample size and trace plots, and treating non-converged output as posterior summaries.
  • Leaving the loading matrix without identification constraints, which allows rotated solutions and label switching to produce factors that cannot be interpreted.
  • Reporting results under a single prior without sensitivity analysis. Refit the model under alternative prior scales, for example a narrower and a wider prior variance on the loadings, and check whether each interpreted loading keeps its sign and whether its 95% credible interval keeps the same relation to zero. If these features change, the finding is not robust to the prior.
  • Reading a 95% credible interval for a loading as a frequentist confidence interval; it is a statement about the posterior given the chosen prior and model.
  • Choosing the number of factors by convention rather than comparing candidate solutions with DIC or WAIC.

Frequently asked questions

How does Bayesian factor analysis differ from classical EFA?

Classical EFA returns a single loading matrix estimated by maximum likelihood and selects the number of factors via heuristics such as scree plots or parallel analysis. Bayesian factor analysis places priors on the loadings and residual variances, samples the full posterior by MCMC, and can compare factor-number solutions with Bayesian model-comparison criteria such as DIC or WAIC. The result is a distribution over loadings rather than a point estimate, which makes uncertainty explicit and allows prior information to regularise estimates.

What is rotational indeterminacy and how is it handled?

In any factor model, multiplying the loading matrix by an orthogonal rotation matrix, with the factor scores transformed by its inverse, leaves the likelihood unchanged. In classical EFA this is addressed by post-hoc rotation such as Varimax or Oblimin. In the Bayesian setting, the indeterminacy is handled by identification constraints imposed before sampling, such as fixing selected loadings to zero. Without such constraints the MCMC sampler explores a non-identified surface and the chains may not mix to a meaningful posterior.

How do I choose the number of factors?

Within the Bayesian framework, candidate models with different numbers of factors are fitted and compared using Bayesian model-comparison criteria such as DIC (Deviance Information Criterion) or WAIC (Widely Applicable Information Criterion). The candidate with the lower DIC or WAIC is preferred. This replaces the scree plot and parallel analysis heuristics used in classical EFA with a model-based comparison.

How large a sample do I need?

The required sample size depends on the number of variables, the number of factors and the priors chosen, so no single minimum applies. With small samples the prior has a stronger influence on the posterior, and MCMC convergence can be harder to achieve. Check convergence and refit the model under alternative prior scales, reporting whether the conclusions hold. As the sample grows, the data play a larger role in shaping the posterior relative to the prior.

Related methods

Sources

  1. Lopes, H. F. & West, M. (2004). Bayesian Model Assessment in Factor Analysis. Statistica Sinica, 14(1), 41–67.

    Open publication reference