Skip to main content
Interactive 3D/Hierarchical Models
Structure
Groups5
Obs / group10
Hyperprior τ1.50
Variance Decomposition
Within-group σ² 0.000
Between-group σ² 0.000
Shrinkage λ 0.000
Hierarchical shrinkage.
Hollow = raw (MLE) estimate. Filled = pooled hierarchical estimate. High τ = little shrinkage (groups differ). Low τ = strong pooling toward μ₀.

Hierarchical Models - Interactive Visualization

Hierarchical (multilevel) models share statistical strength across groups. Individual estimates are pulled toward the group mean - a phenomenon called shrinkage or partial pooling. This is better than treating groups completely independently (no pooling) or completely ignoring groups (complete pooling). The degree of shrinkage depends on within-group sample size and between-group variance.

  • See plate notation diagram with hyperprior → group → observation hierarchy
  • Watch shrinkage: individual estimates pulled toward group mean
  • Adjust hyperprior strength τ to see more/less pooling
  • Compare no-pooling (independent) vs complete-pooling vs partial-pooling estimates
  • Foundation for mixed-effects models, meta-analysis, and federated learning

Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.