Actuarial Notes

Analysis of Covariance

Study guide: Exam MAS-I

Analysis of Covariance (ANCOVA) is a Normal linear model whose explanatory variables are a categorical factor and at least one continuous variable, the covariate. It fits a straight line in the covariate for each level of the factor, so the levels are compared after adjusting for the covariate.

\mu_{ij} = \mu + \alpha_i + \beta x_{ij}

\mu_{ij} = (\mu + \alpha_i) + (\beta + \gamma_i)\,x_{ij}

  • Y_{ij} \sim N(\mu_{ij}, \sigma^2) is the response of unit j in level i of the factor, i = 1, \ldots, k, and x_{ij} is its covariate value. The first model has a common slope \beta; the second gives each level its own slope \beta + \gamma_i.
  • Reference level: set \alpha_1 = 0 (and \gamma_1 = 0). Then \mu and \beta are the intercept and slope of level 1, and \alpha_i and \gamma_i are level i's differences in intercept and slope. In the Design Matrix this is a column of ones, k - 1 indicator columns for the factor and a column for the covariate.
  • Parallel lines: in the common-slope model the gap between level i and level 1 is \alpha_i at every value of x. The second model adds the factor-by-covariate Interaction, so the gap \alpha_i + \gamma_i x changes with x.
  • Special cases: with \beta = 0 the model is one-way ANOVA; with every \alpha_i = 0 it is a single regression line. ANCOVA adds the covariate to an ANOVA as a regression variable, which removes the variation the covariate explains before the levels are compared.
  • Testing: the models are nested, so each question is an F test on the drop in residual sum of squares, the rows of a sequential ANOVA table. The common-slope model has k + 1 parameters and the separate-slopes model 2k. Test parallelism (\gamma_2 = \cdots = \gamma_k = 0) on (k - 1,\ n - 2k) df first; if it holds, test the factor adjusted for the covariate (\alpha_2 = \cdots = \alpha_k = 0) on (k - 1,\ n - k - 1) df.
  • Adjusted means: compare the levels at one covariate value, usually the overall mean \bar{x}: \hat\mu + \hat\alpha_i + \hat\beta\bar{x}. If the slopes differ, no single gap describes the levels, so compare them at several covariate values.
  • A non-Normal response with the same mix of a factor and a continuous variable is fitted as a Generalized Linear Model (logistic or Poisson regression, for example).

Territory Effect on Severity After Adjusting for Vehicle Value An actuary models log claim severity for 24 claims, 8 from each of territories A, B and C, with vehicle value x as a covariate. Four nested Normal linear models give these residual sums of squares:

Model RSS Residual df
Intercept only 30.0 23
x only 18.0 22
x + territory (common slope) 12.0 20
x \times territory (separate slopes) 11.1 18

At the 5% level, are the territory lines parallel, and does territory matter once vehicle value is allowed for?

Answer Parallelism. The separate-slopes model adds 2 slope differences:

\begin{align*}
F &= \frac{(12.0 - 11.1)/2}{11.1/18} \\
&= \frac{0.45}{0.6167} \\
&= 0.73
\end{align*}

The CAS table's upper 5% point of F(2, 18) is 3.555. Since 0.73 < 3.555, keep the common slope.

Territory, adjusted for x. Compare the common-slope model with the x-only model, using the common-slope model's residual mean square:

\begin{align*}
F &= \frac{(18.0 - 12.0)/2}{12.0/20} \\
&= \frac{3.0}{0.6} \\
&= 5.0
\end{align*}

For F(2, 20) the table gives 3.493 (5%), 4.788 (2%) and 5.849 (1%). Since 5.0 > 3.493, reject H_0: \alpha_B = \alpha_C = 0; the p-value lies between 0.01 and 0.02. Territories differ in expected log severity at the same vehicle value, by the same amount at every vehicle value.

Adjusted Versus Raw Territory Means The common-slope model from the previous example is fitted with territory A as the reference level:

\hat\mu = 7.20 + 0.25\,B + 0.40\,C + 0.030\,x

where B and C are territory indicators and x is vehicle value in $000s. The territories' average vehicle values are \bar{x}_A = 10, \bar{x}_B = 20 and \bar{x}_C = 15, so the overall mean is \bar{x} = 15. Their raw average log severities are 7.50, 8.05 and 8.05. Find the adjusted means and explain why territories B and C look the same in the raw data.

Answer Evaluate each territory's line at \bar{x} = 15, where 0.030 \times 15 = 0.45:

\begin{align*}
\text{A} &= 7.20 + 0.45 \\
&= 7.65 \\
\text{B} &= 7.20 + 0.25 + 0.45 \\
&= 7.90 \\
\text{C} &= 7.20 + 0.40 + 0.45 \\
&= 8.05
\end{align*}

Territory B's claims come from more valuable vehicles (\bar{x}_B = 20), which adds 0.030 \times (20 - 15) = 0.15 to its raw mean. With vehicle value held at 15, territory C sits 0.15 above territory B on the log scale, a factor of e^{0.15} \approx 1.16 in severity, a difference the raw means hide.