Actuarial Notes

Hierarchical Model

Study guide: Exam MAS-II

A Hierarchical Model, also called a multilevel model, is a linear mixed model for data in levels, where units at a lower level are nested within units at a higher level. A two-level dataset has level-1 units, such as individual observations, nested within level-2 clusters, which may carry covariates of their own. With a random intercept for each cluster i, the model for observation t is

Y_{ti} = \beta_0 + \beta_1 x_{ti} + u_i + \varepsilon_{ti}

  • u_i \sim N(0, \sigma_u^2) is the random intercept, the cluster-level deviation from the population mean.
  • \varepsilon_{ti} \sim N(0, \sigma^2) is the residual.

Each cluster gets its own intercept \beta_0 + u_i, while the slope \beta_1 is shared. The share of the total variance between clusters is the intraclass correlation:

\text{ICC} = \frac{\sigma_u^2}{\sigma_u^2 + \sigma^2}

A high ICC means that knowing one observation's cluster says a lot about the other observations of that cluster.

A hierarchical model of claims in 200 territories has \sigma_u^2 = 0.04 between territories and \sigma^2 = 0.16 within them. What is the ICC?

  • \text{ICC} = 0.04/(0.04 + 0.16) = 0.20.
  • 20% of the total variance in claims is between territories.

Level 1 and Level 2 equations

The same model can be written one level at a time. The Level 1 equation describes an observation with cluster-specific coefficients, and holds only the observation-level covariates and the residual:

Y_{ti} = b_{0i} + b_{1i}x_{ti} + \varepsilon_{ti}

The Level 2 equations describe each coefficient with the cluster-level covariate w_i and the cluster random effects:

b_{0i} = \beta_0 + \beta_2 w_i + u_{0i}

b_{1i} = \beta_1 + \beta_3 w_i + u_{1i}

Substituting the Level 2 equations into the Level 1 equation gives one equation:

Y_{ti} = \beta_0 + \beta_1 x_{ti} + \beta_2 w_i + \beta_3 w_i x_{ti} + u_{0i} + u_{1i}x_{ti} + \varepsilon_{ti}

A random effect in a slope's equation comes out multiplied by that slope's covariate, so it is a random slope, not a second random intercept. A cluster-level covariate in a slope's equation becomes a cross-level interaction.

Policyholder i's claim cost in year t has Level 1 equation Y_ = b_ + b_\,\text_ + \varepsilon_, with b_ = \beta_0 + \beta_2\,\text_i + u_ and b_ = \beta_1 + u_. What is the single equation?

  • Substituting gives Y_{ti} = \beta_0 + \beta_1\,\text{year}_{ti} + \beta_2\,\text{urban}_i + u_{0i} + u_{1i}\,\text{year}_{ti} + \varepsilon_{ti}.
  • u_{0i} is a random intercept and u_{1i} a random slope on year.
  • Urban enters only the intercept's equation, so it is a main effect with no cross-level interaction.

Bayesian hierarchical model

In a Bayesian hierarchical model the cluster effects are given a prior distribution, typically N(0, \sigma_u^2), whose variance is itself estimated. A smaller \sigma_u^2 shrinks the cluster effects further toward the overall mean.

Practice questions

Actuarial Notes