Actuarial Notes

Hypothesis Testing

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

Hypothesis Testing is the use of a random sample to decide between two hypotheses about the distribution the sample was drawn from: the null hypothesis H_0 and the alternative hypothesis H_1. A test rejects H_0 when the sample falls in a critical region C, a set of possible samples chosen before the data are seen.

The four outcomes of a test are:

H_0 is true H_1 is true
Reject H_0 Type I Error Correct decision
Do not reject H_0 Correct decision Type II Error

The significance level of the test is the probability of a Type I error:

\alpha = P(\mathbf{X} \in C \mid H_0)

  • \mathbf{X} = (X_1, \ldots, X_n) is the sample.

The probability of a Type II error is \beta. The power of the test, 1 - \beta, is the probability that the test rejects H_0 when H_1 is true.

An actuary tests H_0: the current rates are adequate. The test rejects H_0 and rates are increased. Later analysis shows that the rates were adequate. Which error occurred?

  • H_0 was true, because the rates were adequate.
  • The test rejected H_0, so the error is a Type I error.
  • Its probability before the data were seen was the significance level \alpha.

Simple and composite hypotheses

A hypothesis is simple if it specifies the distribution completely, and composite otherwise. For a parameter \theta with null hypothesis H_0: \theta = \theta_0, the alternative hypothesis decides which tail of the test statistic's distribution forms the critical region:

Alternative Written Critical region
One-sided, upper H_1: \theta > \theta_0 Upper tail
One-sided, lower H_1: \theta < \theta_0 Lower tail
Two-sided H_1: \theta \ne \theta_0 Both tails

Test for a mean with known variance

For a random sample from a normal distribution with known standard deviation \sigma, the test statistic for H_0: \mu = \mu_0 is

Z = \frac{\bar{X} - \mu_0}{\sigma / \sqrt{n}}

  • \bar{X} is the sample mean.
  • \mu_0 is the mean under H_0.

Under H_0, Z has the standard normal distribution. Against H_1: \mu > \mu_0, the test rejects H_0 when Z \ge z_\alpha, the upper \alpha point of the standard normal distribution and the critical value of the test.

Claim sizes are normal with standard deviation 800. A sample of 100 claims has mean 5,200. Does a test of H_0: \mu = 5000 against H_1: \mu > 5000 at significance level 0.05 reject H_0?

  • The test statistic is Z = \frac{5{,}200 - 5{,}000}{800 / \sqrt{100}} = \frac{200}{80} = 2.50.
  • The critical value of an upper-tailed test at 0.05 is z_{0.05} = 1.645.
  • Because 2.50 > 1.645, the test rejects H_0.

Test for a mean with unknown variance

When \sigma is unknown, it is replaced by the sample standard deviation S, and the test statistic for H_0: \mu = \mu_0 is

T = \frac{\bar{X} - \mu_0}{S / \sqrt{n}}

Under H_0, T has a t distribution with n - 1 degrees of freedom.

Claim severities are normal. A sample of 16 claims has mean 5,400 and sample standard deviation 800. Does a test of H_0: \mu = 5000 against H_1: \mu > 5000 reject H_0 at significance level 0.05, and at 0.01?

  • The test statistic is T = \frac{5{,}400 - 5{,}000}{800 / \sqrt{16}} = \frac{400}{200} = 2.00, with 16 - 1 = 15 degrees of freedom.
  • At 0.05 the critical value is t_{0.05,15} = 1.753. Because 2.00 > 1.753, the test rejects H_0.
  • At 0.01 the critical value is t_{0.01,15} = 2.602. Because 2.00 < 2.602, the test does not reject H_0.

Test for paired observations

When the observations come in dependent pairs, such as the same unit measured twice, the test uses the n within-pair differences d_i as one sample. The test statistic for H_0: \mu_d = 0 is

T = \frac{\bar{d}}{s_d / \sqrt{n}}

  • \bar{d} and s_d are the mean and the sample standard deviation of the differences.
  • \mu_d is the mean difference.
  • n is the number of pairs, not the number of observations.

Under H_0, and with normal differences, T has a t distribution with n - 1 degrees of freedom.

Two body shops each estimate the repair cost of the same six vehicles. Shop A's estimate minus Shop B's, in hundreds, is 3, 1, 4, -2, 2 and 4. At significance level 0.05, are Shop A's estimates higher on average?

  • The estimates are paired by vehicle, so the six differences are one sample, with \bar{d} = 12/6 = 2.
  • The sample variance of the differences is s_d^2 = \frac{1 + 1 + 4 + 16 + 0 + 4}{5} = 5.2, so s_d = 2.280.
  • The test statistic is T = \frac{2}{2.280 / \sqrt{6}} = 2.148, with 5 degrees of freedom.
  • The alternative H_1: \mu_d > 0 is upper-tailed, and t_{0.05,5} = 2.015.
  • Because 2.148 > 2.015, the test rejects H_0. Shop A's estimates are higher on average.

Treating "do not reject" as "accept" A test that does not reject H_0 has not shown that H_0 is true. With low power, a false H_0 is often not rejected, so the conclusion is only that the data are consistent with H_0.

Practice questions

Actuarial Notes