Actuarial Notes

Variance Function

Study guide: Exam MAS-II

A Variance Function V(\mu) is the function that says how the variance of a response depends on its mean. In a generalized linear model it is fixed by the choice of exponential-family distribution, and the variance of observation i is

\text{Var}(Y_i) = \frac{\phi\,V(\mu_i)}{w_i}

  • \phi is the dispersion parameter and w_i the prior weight (exposure, claim count).
  • \mu_i = E[Y_i] is the mean.

The prior weight sets how much each observation counts in the fit. In a severity GLM on average claim size, the number of claims is the prior weight.

A gamma severity GLM has \phi = 0.5. A claim with \hat = 5000 and claim count 1 has what standard deviation, and what if the observation were the average of 4 claims?

  • The gamma variance function is V(\mu) = \mu^2, so the variance is 0.5(5{,}000^2)/1 and the standard deviation is \sqrt{0.5}(5{,}000) = 3{,}536.
  • With a prior weight of 4, the variance is divided by 4, so the standard deviation halves to 1{,}768.

Variance functions of the common distributions

  • normal: 1 (constant variance)
  • Poisson: \mu
  • binomial: \mu(1 - \mu)
  • gamma: \mu^2 (constant coefficient of variation)
  • inverse Gaussian: \mu^3
  • Tweedie with 1 < p < 2: \mu^p

A normal model assumes constant variance, so it does not fit data whose spread grows with the mean. If the standard deviation is proportional to the mean, the variance is proportional to the mean squared, which is the gamma's variance function. Under a Poisson model the standard deviation grows like the square root of the mean.

Role of the variance function in the fit

A GLM's estimating equations weight each residual y_i - \mu_i by w_i/V(\mu_i), along with a factor from the link. The Pearson residual puts all residuals on one scale:

r_i = \frac{y_i - \hat{\mu}_i}{\sqrt{V(\hat{\mu}_i)}}

A fan shape in a residual plot of such residuals means the wrong V was chosen.

A gamma severity GLM has \phi = 0.5. Claim 1 has \hat = 5000 and settles for 8000, and claim 2 has \hat = 50000 and settles for 53000. How do the two misses compare, each divided by the claim's standard deviation?

  • The standard deviation is \sqrt{0.5}\,\hat{\mu}: 3{,}536 for claim 1 and 35{,}355 for claim 2.
  • Claim 1's miss is 3{,}000/3{,}536 = 0.849 standard deviations.
  • Claim 2's miss is 3{,}000/35{,}355 = 0.085 standard deviations.
  • The same 3{,}000 miss is ten times as surprising on the small claim.

Choosing a variance function

Plot group variances against group means on log–log axes. The slope estimates p in V(\mu) = \mu^p: 0 for normal, 1 for Poisson, 2 for gamma, and between 1 and 2 for Tweedie. A fan or wedge in a plot of the response against a predictor, with the spread widening as the mean grows, points the same way.

Pure premium data in three cells have means 200, 400 and 800 and variances 60,000, 180,000 and 540,000. Which variance function is indicated?

  • Each doubling of the mean triples the variance.
  • The log–log slope is p = \ln 3/\ln 2 = 1.585.
  • V(\mu) \approx \mu^{1.6} lies between Poisson and gamma, so a Tweedie with p \approx 1.6 is indicated.

Variance functions in a linear mixed model

In a linear mixed model the default residual covariance is \mathbf{R}_i = \sigma^2\mathbf{I}, a constant variance. It can be relaxed in two ways.

  1. Heterogeneous variances: a separate residual variance \sigma_g^2 for each level of a factor (a treatment group, a region). With G levels, the model has G - 1 extra variance parameters.
  2. Variance as a function of a covariate v_{ti}, such as development age or the fitted value, with an estimated coefficient \delta. The exponential form (varExp in R's nlme) and the power form (varPower) are

\text{Var}(\varepsilon_{ti}) = \sigma^2\exp(2\delta v_{ti})

\text{Var}(\varepsilon_{ti}) = \sigma^2\lvert v_{ti}\rvert^{2\delta}

Under the exponential form the residual standard deviation is \sigma\exp(\delta v_{ti}), and \delta = 0 gives a constant variance.

Testing a variance function

In a linear mixed model the variance function is a modelling choice with its own estimated parameters. The competing models share their fixed effects, so they are compared by a likelihood ratio test on REML fits, or by AIC from REML fits. The choice feeds the covariance structure, and so the standard errors of every fixed effect.

A random intercept model of loss ratios is fitted by REML with one residual variance, -2\,l_R = 1254.6, and with a separate residual variance for each of three regions, -2\,l_R = 1241.2. Is a common residual variance rejected at 5%?

  • The heterogeneous model has 2 extra variance parameters.
  • The statistic is 1{,}254.6 - 1{,}241.2 = 13.4.
  • 13.4 > \chi^2_{0.95,2} = 5.991, so a common residual variance is rejected.
  • Equal variances is not a boundary hypothesis, so the plain \chi^2_2 applies.

A variance of zero is on the boundary When the null hypothesis sets a variance to zero, as in testing whether a random effect is needed, the value lies on the boundary of the parameter space. The plain \chi^2 p-value is then too large. For a single variance component it is halved.

Practice questions

Actuarial Notes