Actuarial Notes

Restricted Maximum Likelihood

Study guides: Exam MAS-II, Exam ACIA-CAPSTONE

Restricted Maximum Likelihood (REML), also called residual maximum likelihood, is a frequentist method that estimates the variance components of a linear mixed model by maximizing the likelihood of the residuals (error contrasts) left after removing the fixed effects, rather than the likelihood of the full data. Up to a constant, the REML log-likelihood is

l_R(\boldsymbol{\theta}) = -\frac{1}{2}\left[\sum_i \ln|\mathbf{V}_i| + \ln\Big|\sum_i \mathbf{X}_i^T\mathbf{V}_i^{-1}\mathbf{X}_i\Big| + \sum_i \mathbf{r}_i^T\mathbf{V}_i^{-1}\mathbf{r}_i\right]

  • \mathbf{V}_i is the marginal covariance of cluster i, a function of \boldsymbol{\theta}.
  • \mathbf{r}_i = \mathbf{Y}_i - \mathbf{X}_i\hat{\boldsymbol{\beta}} is the residual vector.

Maximum likelihood maximizes the full likelihood jointly over the fixed effects and the covariance parameters. Its covariance estimates are biased downward, because it treats \hat{\boldsymbol{\beta}} as known and ignores the p degrees of freedom spent estimating it. The middle term of l_R is the correction. Under both methods, the fixed effects are then estimated by generalized least squares with the estimated covariance parameters plugged in.

A sample of three independent observations, 2, 4 and 9, has only an unknown mean as its fixed effect. What are the ML and REML estimates of the variance?

  • The mean is 5, and the sum of squared deviations is 9 + 1 + 16 = 26.
  • ML divides by n: 26/3 = 8.67.
  • REML divides by n - 1, accounting for the degree of freedom spent on the mean: 26/2 = 13.

The bias matters most with few clusters. With many clusters ML and REML converge.

Comparing models fitted by REML

Models that differ only in their random part or covariance structure, with the same fixed effects, are compared with REML log-likelihoods. Models that differ in their fixed effects must be compared with ML fits, because their REML likelihoods are built on different error contrasts and are not comparable. AIC and BIC follow the same rule: a REML AIC may only be compared with another REML AIC on identical fixed effects.

An actuary tests whether a random slope by accident year is needed, and whether a region predictor belongs in the model. Which estimation method does each comparison use?

  • The random slope changes only the random part, so both models are fitted by REML and compared with a likelihood ratio test.
  • Region changes the fixed part, so both models are refitted by ML and compared there.

Failure of estimation

ML and REML are iterative, and the algorithm can fail to converge, stop with an estimated \mathbf{D} that is not positive definite, or leave a variance component on its boundary of 0. The remedies are:

  1. Supply other starting values for the covariance parameters (SAS's PARMS statement, which also runs a grid search).
  2. Rescale the effects so the covariance parameters are on similar scales.
  3. Drop a random effect whose variance is estimated at 0.
  4. Fit a marginal model instead, which models \mathbf{V}_i directly without random effects (implied marginal model).

REML likelihoods across fixed effects Two models with different fixed effects can't be compared by their REML -2\,l_R. Refit both by ML first.

Practice questions

Actuarial Notes