A pricing analyst has five years of loss ratios for each of 40 territories. Territory means vary, sample sizes vary, and the grand mean is informative. A hierarchical model gives you per-territory estimates that borrow strength from the rest of the portfolio.
Why hierarchy. Observations inside the same group are correlated. OLS treats them as independent and understates standard errors. A hierarchical model puts the correlation in the model where it belongs and yields a posterior-style estimate for each group that pulls noisy small-sample groups toward the grand mean.
Index Level-1 observations within Level-2 group . The simplest hierarchical model is:
The fixed part is ; the random part is . Two variance components: between-group and within-group .
Intraclass correlation. The correlation between any two observations in the same group is:
Common mistakes
- Reporting as the hierarchical estimate. The shrunk estimate is , not . Quoting 0.820 for territory C overstates expected loss ratio by about 5 points.
- Using ML log-likelihoods to compare variance structures. Variance-component comparisons require REML log-likelihoods (with identical fixed effects). ML biases downward and gives misleading LRTs across random structures.
- Treating the Level-2 group identifier as a fixed effect with 200 dummies. That is the no-pooling OLS approach. Group means have no shrinkage, no borrowing of strength, and inflated MSE for thinly observed groups.
Bottom line
- Hierarchical means grouped data with random effects. Level-1 units (claims, years, students) nest inside Level-2 groups (territories, schools, drivers), and random effects capture group-to-group variation.
- Random intercept model: , with , . ICC is the share of total variance between groups.
- BLUP shrinkage: the predicted group effect , with . Larger shrinks less.
- Shrinkage is toward the fixed-effect intercept, not zero; the group rate is , not the raw mean .
Exam shortcut
If the question gives , , , and , compute the BLUP via and add to ; the same skeleton answers most random-intercept items. If two groups share but differ in , the larger group gets the larger and lands farther from the grand mean; rank by without recomputing.
The full lesson (about 1,941 words, 13 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- B2
Browse all free MAS-II lessons or jump into free MAS-II practice questions.