Fixed Effects
Study guide: Exam MAS-II
Fixed effects are the regression coefficients \boldsymbol{\beta} of a linear mixed model that describe the population-average relationship between the predictors and the response. They are unknown constants to be estimated, not draws from a distribution. The population-average mean is
E[\mathbf{Y}_i] = \mathbf{X}_i\boldsymbol{\beta}
\mathbf{X}_iis the fixed-effects design matrix of clusteri, one column per fixed effect.
A factor is a fixed effect when its levels are the specific levels of interest, all present in the data, and would reappear in a replication of the study, such as vehicle class or coverage limit. A factor whose observed levels are a sample from a larger population of levels is a random effect. A continuous covariate is not a factor with levels, so it enters the model as a fixed effect.
A claims model has three candidate grouping variables: coverage (liability, collision, comprehensive), territory (68 rating territories) and year (5 calendar years). Which are fixed effects?
- Coverage is fixed: its three levels are all included, are all of interest, and each has plenty of data.
- Territory is random: its 68 levels are mostly thin, and the interest is in the distribution of territory effects and a shrunk estimate for each.
- Year is fixed if the five years are the object of interest, such as a trend, and random only if they are treated as a sample of years.
Interpretation of a fixed effect
Interpretation is the same as in linear regression: \beta_j is the change in the mean response per unit increase in x_j, holding the other predictors fixed. A fixed-effect coefficient is the same for every cluster. Only a random slope lets a coefficient vary across clusters.
Number of fixed-effect parameters
A categorical factor with L levels enters the model as L - 1 indicator variables, one level being the reference. The fixed part has
1 + \sum_{\text{factors}} (L - 1) + (\text{number of continuous covariates})
parameters. A random effect costs one variance parameter instead, however many levels it has.
A model has an intercept, coverage (3 levels), territory (68 levels) and driver age (continuous). How many parameters does territory cost as a fixed effect, and as a random effect?
- As fixed effects the model has
1 + 2 + 67 + 1 = 71parameters, territory costing 67 of them.- As a random intercept, territory costs one variance parameter
\sigma_u^2, so the model has1 + 2 + 1 = 4fixed effects and one variance component beside the residual variance.
Estimation of the fixed effects
Fixed effects are estimated by generalized least squares given the variance parameters, \hat{\boldsymbol{\beta}} = (\sum_i \mathbf{X}_i^T\mathbf{V}_i^{-1}\mathbf{X}_i)^{-1}\sum_i \mathbf{X}_i^T\mathbf{V}_i^{-1}\mathbf{Y}_i. Under both ML and REML, the estimated covariance parameters are plugged into this same formula. Random effects are predicted instead, by the BLUP. Comparing two models that differ in their fixed effects requires maximum likelihood, not REML.
A marginal model has only fixed effects in its mean and models the correlation through its covariance structure, so its coefficients are population averages with no cluster-specific effects.
Practice questions
- CAS Exam MAS-II Fall 2018, Question 2
- CAS Exam MAS-II Fall 2018, Question 8
- CAS Exam MAS-II Fall 2018, Question 10
- CAS Exam MAS-II Fall 2018, Question 11
- CAS Exam MAS-II Fall 2018, Question 14
- CAS Exam MAS-II Fall 2019, Question 9
- CAS Exam MAS-II Fall 2019, Question 10
- CAS Exam MAS-II Fall 2019, Question 12
- CAS Exam MAS-II Spring 2019, Question 1
- CAS Exam MAS-II Spring 2019, Question 11
- CAS Exam MAS-II Spring 2019, Question 16
- Exam MAS-II Practice Question 25