Random Intercept and Slope
Study guide: Exam MAS-II
Random Intercept and Slope are the two kinds of random effect in a linear mixed model. A random intercept is a cluster-specific random shift in the baseline level of the response. A random slope is a cluster-specific random change in the effect of a predictor. With both, observation t of cluster i is
Y_{ti} = (\beta_0 + u_{0i}) + (\beta_1 + u_{1i})x_{ti} + \varepsilon_{ti}
\begin{pmatrix} u_{0i} \\ u_{1i}\end{pmatrix} \sim N\!\left(\mathbf{0},\; \begin{pmatrix}\sigma_{u0}^{2} & \sigma_{u01} \\ \sigma_{u01} & \sigma_{u1}^{2}\end{pmatrix}\right)
\beta_0and\beta_1are the fixed intercept and slope.\sigma_{u01}is the intercept-slope covariance. A negative value means clusters that start high grow more slowly.
The predictor carrying a random slope also appears as a fixed effect. The random part is a mean-zero deviation from it.
In a profile plot of each subject's repeated measurements, what pattern does a random intercept alone give, and what does a random slope add?
- A random intercept alone gives parallel lines, one per subject, at different heights. The vertical separation is the subject-to-subject difference in baseline level.
- A random slope on the predictor lets the lines have different slopes, so they fan out or cross.
Random intercept models
A random intercept alone gives parallel lines, one per cluster, at different heights. It implies a compound-symmetric covariance structure: every pair of observations of a cluster has the same correlation.
Random slope models
A random intercept and slope give fanning lines, so the correlation between two observations depends on their x values. A random slope costs two extra parameters, \sigma_{u1}^2 and \sigma_{u01}, and often fails to converge when clusters are small, so it is tested before it is kept.
A random slope needs its predictor to vary within the cluster. A characteristic that is constant for each subject, a between-subject variable such as a policyholder's territory, can enter as a fixed effect but not with a by-subject random slope. Each subject belongs to only one of its levels, so a model with that random slope is unidentifiable. The same holds for the interaction of a 0/1 between-subject indicator with a within-subject predictor x_{ti}: across one subject's rows it is either all zeros or a copy of x_{ti}.
Log paid losses are modelled against development age with a random intercept by accident year, giving
-2\,l = 812.4under REML. Adding a random slope on age gives-2\,l = 803.1. Is the random slope kept at the 5% level?
- The random slope adds two parameters,
\sigma_{u1}^2and\sigma_{u01}.- The likelihood ratio statistic is
812.4 - 803.1 = 9.3on 2 degrees of freedom.9.3 > \chi^2_{0.95, 2} = 5.99, so the random slope is kept. The boundary of\sigma_{u1}^2 = 0makes the true p-value smaller still.