Actuarial Notes

Bias

Study guides: VEE-MS, Exam PA, ATPA, Exam MAS-I, Exam ACIA-CAPSTONE

Bias is the systematic error of an estimator. The bias of an estimator \hat{\theta} of a parameter \theta is

\text{Bias}(\hat{\theta}) = E[\hat{\theta}] - \theta

  • E[\hat{\theta}] is the expected value of \hat{\theta} over repeated samples.

An estimator whose bias is 0 for every value of \theta is unbiased. The bias is one of the two parts of the mean square error, and the variance of the estimator is the other.

An actuary estimates the mean claim size \mu from three claims by dividing their total by 4. What is the bias of this estimator?

  • The estimator is \hat{\theta} = (X_1 + X_2 + X_3)/4.
  • Its expected value is E[\hat{\theta}] = 3\mu/4.
  • Its bias is 3\mu/4 - \mu = -\mu/4, so it underestimates the mean claim size by a quarter.

Bias of the variance estimator that divides by the sample size

The estimator of the variance \sigma^2 that divides the sum of squared deviations by n is

\hat{\sigma}^2 = \frac{1}{n}\sum_{i=1}^{n}(X_i - \bar{X})^2

The sum of squared deviations has expected value (n-1)\sigma^2, as shown under unbiasedness of the sample variance. The expected value of \hat{\sigma}^2 is therefore (n-1)\sigma^2/n, and its bias is

\text{Bias}(\hat{\sigma}^2) = -\frac{\sigma^2}{n}

The estimator underestimates \sigma^2. For a normal sample it is the maximum likelihood estimator of \sigma^2.

A sample of 4 is drawn from a population with variance 12. What are the expected value and the bias of \hat^2?

  • The expected value is E[\hat{\sigma}^2] = \frac{3}{4} \times 12 = 9.
  • The bias is 9 - 12 = -3, which is -\sigma^2/n = -12/4.

Bias of the sample maximum of a uniform sample

For a sample of n from the uniform distribution on (0, \theta), the expected value of the sample maximum X_{(n)} is

E[X_{(n)}] = \frac{n\theta}{n+1}

The bias of X_{(n)} as an estimator of \theta is therefore

\text{Bias}(X_{(n)}) = -\frac{\theta}{n+1}

The sample maximum can never exceed \theta, so it underestimates \theta. Multiplying it by (n+1)/n removes the bias, and \frac{n+1}{n}X_{(n)} is unbiased for \theta.

Losses are uniform on (0, \theta). The largest of 4 losses is 800. What is the bias of the sample maximum, and what is the unbiased estimate of \theta?

  • With n = 4, the bias of X_{(4)} is -\theta/5.
  • The unbiased estimator is \frac{5}{4}X_{(4)}.
  • The unbiased estimate is \frac{5}{4} \times 800 = 1{,}000.

Asymptotic unbiasedness

An estimator \hat{\theta}_n computed from a sample of size n is asymptotically unbiased if its bias goes to 0 as n grows:

\lim_{n \to \infty} \text{Bias}(\hat{\theta}_n) = 0

The variance estimator with divisor n and the sample maximum of a uniform sample are both biased for every n and asymptotically unbiased. An asymptotically unbiased estimator whose variance also goes to 0 is consistent.

Bias of a function of an unbiased estimator

If \hat{\theta} is unbiased for \theta, a function g(\hat{\theta}) is in general biased for g(\theta) unless g is linear. For the square of \hat{\theta}, the expected value is

E[\hat{\theta}^2] = \theta^2 + \text{Var}(\hat{\theta})

The square therefore overestimates \theta^2 by \text{Var}(\hat{\theta}). In the same way, the sample variance S^2 is unbiased for \sigma^2, but the sample standard deviation S underestimates \sigma, because the square root is concave.

A sample of 25 is drawn from a population with mean \mu and variance 100. What is the bias of \bar^2 as an estimator of \mu^2?

  • The sample mean is unbiased for \mu, with variance \text{Var}(\bar{X}) = 100/25 = 4.
  • The expected value of its square is E[\bar{X}^2] = \mu^2 + 4.
  • The bias of \bar{X}^2 is 4.

Bias from an omitted variable in regression

Suppose the response follows Y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \varepsilon, but the regression is fitted on x_1 alone. The expected value of the estimated coefficient of x_1 is

E[\hat{\beta}_1] = \beta_1 + \beta_2\,\delta

  • \delta is the slope of the regression of x_2 on x_1.

Omitting a variable that belongs in the model biases the coefficients of the variables that remain, unless the omitted variable is uncorrelated with them, in which case \delta = 0.

The true model has \beta_1 = 2 and \beta_2 = 3. The variable x_2 is omitted, and the slope of x_2 on x_1 is 0.5. What is the bias of \hat_1?

  • The expected value of \hat{\beta}_1 is 2 + 3 \times 0.5 = 3.5.
  • The bias of \hat{\beta}_1 is 3.5 - 2 = 1.5.

Bias of a model's predictions for a group

A predictive model is biased against a group when its predictions for that group are systematically wrong. Applying the definition to the records of a group g, the bias of the model for that group is

\text{Bias}_g = \bar{\hat{y}}_g - \bar{y}_g

  • \bar{\hat{y}}_g is the average prediction for the records in group g.
  • \bar{y}_g is the average actual outcome for the same records.

A positive bias overpredicts the group and a negative bias underpredicts it. Bias of this kind can come from data that under-represents the group, from past decisions recorded in the target, or from a variable that stands in for a protected characteristic as proxy discrimination. It is one of the ways a model produces unfair discrimination, and checking for it is part of data ethics.

Three common fairness criteria compare groups:

Criterion Holds when, in every group
Calibration The average prediction equals the average actual outcome, so \text{Bias}_g = 0
Demographic parity The average prediction, or the share flagged positive, is the same
Equal error rates The true positive and false positive rates are the same

When the groups' actual outcome rates differ, a calibrated model gives them different average predictions, so it cannot also meet demographic parity. A calibrated model also cannot have equal error rates across such groups unless it predicts every record correctly. Choosing a criterion is a judgment the business context has to support.

Is this claim model biased for either group? A claim model's predicted and actual claim rates on holdout data are:

Group Average prediction Actual claim rate
A 0.10 0.10
B 0.12 0.08

Answer

  • Group A's bias is 0.10 - 0.10 = 0, so the model is calibrated for group A.
  • Group B's bias is 0.12 - 0.08 = 0.04, so the model overpredicts group B by 4 claims per 100 records.
  • The model is not calibrated across the groups, and a variable correlated with membership of group B is the first place to look.

Treating the error of one estimate as bias The bias is an expected value over repeated samples. One estimate of 1.3 for a coefficient whose true value is 1.5 does not show a bias of -0.2. The difference is a sampling error, and the bias can only be found from the expected value of the estimator.

Practice questions

Actuarial Notes