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 rejectsH_0and rates are increased. Later analysis shows that the rates were adequate. Which error occurred?
H_0was 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_0is the mean underH_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 = 5000againstH_1: \mu > 5000at significance level 0.05 rejectH_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 rejectsH_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}}
S^2is the sample variance, with divisorn - 1.
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 = 5000againstH_1: \mu > 5000rejectH_0at 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, with16 - 1 = 15degrees of freedom.- At 0.05 the critical value is
t_{0.05,15} = 1.753. Because2.00 > 1.753, the test rejectsH_0.- At 0.01 the critical value is
t_{0.01,15} = 2.602. Because2.00 < 2.602, the test does not rejectH_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}ands_dare the mean and the sample standard deviation of the differences.\mu_dis the mean difference.nis 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,2and4. 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, sos_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 > 0is upper-tailed, andt_{0.05,5} = 2.015.- Because
2.148 > 2.015, the test rejectsH_0. Shop A's estimates are higher on average.
Treating "do not reject" as "accept" A test that does not reject
H_0has not shown thatH_0is true. With low power, a falseH_0is often not rejected, so the conclusion is only that the data are consistent withH_0.
Practice questions
- CAS Exam 5 Fall 2019, Question 10
- CAS Exam 7 Spring 2016, Question 5
- CAS Exam 7 Spring 2016, Question 6
- CAS Exam 7 Spring 2016, Question 15
- CAS Exam 7 Spring 2018, Question 8
- CAS Exam 8 Fall 2012, Question 3
- SOA Exam ALTAM Fall 2025, Question 4
- SOA Exam ASTAM Sample Question 1
- SOA Exam ASTAM Sample Question 11
- SOA Exam ASTAM Sample Question 12
- SOA Exam ASTAM Sample Question 18
- SOA Exam ASTAM Fall 2023, Question 3
- CAS Exam MAS-I Fall 2018, Question 21
- CAS Exam MAS-I Fall 2018, Question 22
- CAS Exam MAS-I Fall 2018, Question 23
- CAS Exam MAS-I Fall 2018, Question 32
- CAS Exam MAS-I Spring 2018, Question 18
- CAS Exam MAS-I Spring 2018, Question 19
- CAS Exam MAS-I Spring 2018, Question 20
- CAS Exam MAS-I Spring 2018, Question 21
- CAS Exam MAS-I Spring 2018, Question 22
- CAS Exam MAS-I Spring 2018, Question 33
- CAS Exam MAS-I Fall 2019, Question 20
- CAS Exam MAS-I Fall 2019, Question 21
- CAS Exam MAS-I Spring 2019, Question 21
- CAS Exam MAS-I Spring 2019, Question 22
- CAS Exam MAS-I Spring 2019, Question 23
- Exam MAS-I Practice Question 33
- Exam MAS-I Practice Question 34
- Exam MAS-I Practice Question 68
- Exam MAS-I Practice Question 170
- CAS Exam MAS-II Fall 2018, Question 10
- CAS Exam MAS-II Fall 2019, Question 12
- CAS Exam MAS-II Fall 2019, Question 13
- CAS Exam MAS-II Spring 2019, Question 1
- CAS Exam MAS-II Spring 2019, Question 15
- SOA Exam SRM Sample Question 27
- SOA Exam SRM Sample Question 44
- SOA Exam SRM Sample Question 54
- SOA Exam SRM Sample Question 67