MAS-II · Linear Mixed Models · Free Lesson

Understand how to use a hierarchical model.

Free CAS MAS-II (Modern Actuarial Statistics II) lesson in Linear Mixed Models. 18 min read, ~2,679 words.

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 i=1,…,nji = 1,\dots,n_j within Level-2 group j=1,…,Jj = 1,\dots,J. The simplest hierarchical model is:

yij=β0+uj+εij,uj∼N(0,τ2),  εij∼N(0,σ2)y_{ij} = \beta_0 + u_j + \varepsilon_{ij}, \quad u_j \sim N(0,\tau^2),\;\varepsilon_{ij}\sim N(0,\sigma^2)

The fixed part is β0\beta_0; the random part is uj+εiju_j + \varepsilon_{ij}. Two variance components: between-group τ2\tau^2 and within-group σ2\sigma^2.

Intraclass correlation. The correlation between any two observations in the same group is:

ρ=τ2τ2+σ2\rho = \frac{\tau^2}{\tau^2 + \sigma^2}

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

If the question gives τ2\tau^2, σ2\sigma^2, njn_j, and yˉj\bar{y}_j, compute the BLUP via λj(yˉj−β^0)\lambda_j(\bar{y}_j - \hat{\beta}_0) and add to β^0\hat{\beta}_0; the same skeleton answers most random-intercept items. If two groups share yˉj\bar{y}_j but differ in njn_j, the larger group gets the larger λj\lambda_j and lands farther from the grand mean; rank by njn_j without recomputing.

The full lesson (about 2,679 words, 18 min read) adds 8 worked examples, all 6 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free MAS-II lessons or jump into free MAS-II practice questions.