Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Bayesian›Bayesian Hierarchical Model
Bayesian methods

Bayesian Hierarchical Model

Bayesian Hierarchical (Multilevel) Model · Also known as: multilevel Bayes, Bayesian multilevel model, Bayesian HLM, partial pooling model, Bayesian Hiyerarşik Model (Çok Düzeyli Bayes)

Bayesian hierarchical modelling, popularised by Gelman and Hill (2006), is a Bayesian approach to nested data structures — such as students within schools within districts — that estimates separate parameters at each level while allowing those levels to share statistical strength through a mechanism called partial pooling. Where a classical hierarchical linear model treats group means as fixed unknown quantities, the Bayesian version places hyperprior distributions on those group means so that information flows freely across levels, producing more reliable group-level estimates whenever any individual group has few observations.

ScholarGate
  1. Bayesian methods
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Bayesian Hierarchical Model
Bayesian RegressionHierarchical Linear ModelMCMCMixed Effects ModelBayesian Case-Crossover…Bayesian Model AveragingBayesian SEMCredibility TheoryMCMC with missing dataMultilevel Gibbs Sampling

+6 more

When to use it

Bayesian hierarchical modelling is the appropriate choice whenever data have a genuine nested or clustered structure and the interest lies in estimates at multiple levels simultaneously. It excels when some groups are small, because partial pooling stabilises those estimates by borrowing strength from larger groups. It is also preferred over classical hierarchical linear modelling when the sample size within any group is below roughly 30, when you need full uncertainty quantification for every group-level parameter, or when prior information about the between-group variance is available and should be incorporated. It requires at least five groups to estimate the hypervariance τ² reliably; with fewer groups, a simpler Bayesian regression should be considered. Data may be continuous, binary, or categorical, and the structure may be cross-sectional, longitudinal, or panel.

Strengths & limitations

Strengths
  • Partial pooling produces more stable group-level estimates than no-pooling alternatives, especially when individual groups have few observations.
  • The degree of shrinkage is learned from the data through the hyperprior on τ², rather than fixed in advance.
  • Full posterior uncertainty is reported for every parameter — group means, variance components, and predictions — as credible intervals.
  • Works with continuous, binary, and categorical outcomes and adapts naturally to cross-sectional, longitudinal, and panel structures.
Limitations
  • Requires at least five groups to estimate the between-group variance τ² reliably; fewer groups make the hyperprior dominate.
  • When the total sample is below about 30, shrinkage pulls all group estimates strongly toward the grand mean and individual estimates are unreliable.
  • Computationally heavier than frequentist HLM: posterior sampling with MCMC can take minutes to hours depending on model size and chain length.
  • Results depend on the choice of hyperprior for τ²; a prior-sensitivity analysis is mandatory to confirm robustness.

Frequently asked

How is this different from a classical hierarchical linear model (HLM / mixed-effects model)?

Classical HLM estimates variance components by restricted maximum likelihood (REML) and reports point estimates with standard errors. The Bayesian hierarchical model places hyperpriors on those variance components and samples the full joint posterior, yielding credible intervals for every parameter including τ². With small group sizes, the Bayesian approach is more reliable because the prior stabilises the between-group variance estimate; with large balanced samples the two tend to agree closely.

What is partial pooling and why does it matter?

Partial pooling is the middle ground between treating each group as completely independent ('no pooling', high variance) and collapsing all groups into one estimate ('complete pooling', high bias). In the Bayesian hierarchical model, each group's posterior mean is a weighted combination of its own data and the grand mean, with the weight determined by τ² relative to σ²/n_j. Groups with few observations are pooled more strongly; groups with many observations are barely affected. This shrinkage reduces mean squared error in prediction and is the main practical advantage of the hierarchical structure.

How many groups do I need?

At least five groups are needed for the model to estimate the between-group variance τ² from the data rather than rely entirely on the hyperprior. With two or three groups, the hyperprior dominates and the results are sensitive to that choice. There is no strict upper limit on the number of groups.

What hyperprior should I use for the between-group standard deviation τ?

The Half-Cauchy prior with a scale parameter around 1–5 (on the natural scale of the outcome) is widely recommended as weakly informative for standard deviations — it places negligible mass near zero while having heavy enough tails not to constrain large between-group variation. An Inverse-Gamma prior is conjugate but tends to be over-informative near zero and is less recommended in modern practice. Always run a prior-sensitivity analysis by re-fitting with an alternative hyperprior and checking whether the posterior group means shift substantially.

Sources

  1. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. DOI: 10.1017/CBO9780511790942 ↗
  2. Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A. & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press. ISBN: 978-1439840955

How to cite this page

ScholarGate. (2026, June 1). Bayesian Hierarchical (Multilevel) Model. ScholarGate. https://scholargate.app/en/bayesian/bayesian-hierarchical-model

Related methods

Bayesian RegressionHierarchical Linear ModelMCMCMixed Effects Model

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bayesian RegressionBayesian↔ compare
  • Hierarchical Linear ModelStatistics↔ compare
  • MCMCBayesian↔ compare
  • Mixed Effects ModelStatistics↔ compare
Compare side by side →

Referenced by

Bayesian Case-Crossover DesignBayesian Model AveragingBayesian SEMCredibility TheoryMCMC with missing dataMultilevel Gibbs SamplingMultilevel Variational InferencePopulation PharmacokineticsSmall Area EstimationSpatial Gibbs SamplingSpatial Variational InferenceTestlet Response Theory

Similar methods

Hierarchical Bayesian InferenceBayesian Hierarchical Linear ModelMultilevel Bayesian InferenceBayesian Mixed Effects ModelMultilevel MCMCHierarchical Markov Chain Monte CarloHierarchical Bayesian Model AveragingMultilevel Bayesian Model Averaging

Related reference concepts

Hierarchical Bayesian ModelsMultilevel and Partial Pooling ModelsHyperpriors and ShrinkageEmpirical Bayes MethodsWeakly Informative and Regularizing PriorsHierarchical Linear Modeling

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Bayesian Hierarchical Model (Bayesian Hierarchical (Multilevel) Model). Retrieved 2026-07-21 from https://scholargate.app/en/bayesian/bayesian-hierarchical-model · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Gelman & Hill (2006); Bayesian multilevel tradition
Year
2006
Family
Bayesian
Type
hierarchical probabilistic model
Purpose
predict / relationship / comparison
Var Types
continuous / binary / categorical
Data Structure
nested / longitudinal / panel
Inference
MCMC / variational
Pooling
partial pooling (shrinkage)
Outputs
posterior distributions / credible intervals / group-level estimates
Difficulty
3
Min Sample
30
Related methods
Bayesian RegressionHierarchical Linear ModelMCMCMixed Effects Model
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account