p-Value
Study guide: Exam MAS-I
A p-Value is the probability, computed under the null hypothesis H_0, that the test statistic of a hypothesis test is at least as extreme as the value observed, in the direction of the alternative hypothesis H_1. For an upper-tailed test with test statistic W and observed value w, the p-value is
p = P(W \ge w \mid H_0)
The p-value is the smallest significance level at which H_0 would be rejected. A test at significance level \alpha rejects H_0 when p \le \alpha, which is exactly when w is beyond the critical value.
A
ztest ofH_0: \mu = 5000againstH_1: \mu > 5000givesz = 2.50. What is the p-value, and does the test rejectH_0at significance level 0.05, and at 0.01?
- The alternative is upper-tailed, so the p-value is
P(Z \ge 2.50) = 0.0062.- Because
0.0062 < 0.05and0.0062 < 0.01, the test rejectsH_0at both levels.
p-value of a two-sided test
For a two-sided alternative and a test statistic whose distribution under H_0 is symmetric about 0, such as Z or T, the p-value counts both tails:
p = 2P(W \ge |w| \mid H_0)
The one-sided p-value is half the two-sided p-value when w lies on the side that H_1 points to. When a table gives only some percentiles, the p-value is bracketed by the tail areas of the two percentiles on either side of |w|.
A
ttest with 12 degrees of freedom givest = 2.30, and the alternative hypothesis is two-sided. Between which values does the p-value lie?
- The table gives
t_{0.025,12} = 2.179andt_{0.01,12} = 2.681.- Because
2.179 < 2.30 < 2.681, the upper tail beyond 2.30 is between 0.01 and 0.025.- The two-sided p-value is twice the upper tail, so it is between 0.02 and 0.05.
- The test rejects
H_0at significance level 0.05 but not at 0.02.
p-value of a regression coefficient
In the output of a linear regression or a generalized linear model, the test statistic for a coefficient \beta_j is
z = \frac{\hat{\beta}_j}{\text{SE}(\hat{\beta}_j)}
\text{SE}(\hat{\beta}_j)is the standard error of the estimate\hat{\beta}_j.
The p-value beside it tests H_0: \beta_j = 0, given the other terms in the model. It does not test any other value, such as \beta_j = 1. The predictor is significant at level \alpha when this p-value is less than \alpha. A coefficient that is not significant for a numeric predictor shows only that there is no significant linear trend in that predictor on the scale of the linear predictor. It does not show that the predictor has no predictive value.
A Poisson GLM gives a territory coefficient
\hat = 0.184with standard error 0.101. What is the two-sided p-value, and is the coefficient significant at 0.05?
- The test statistic is
z = \frac{0.184}{0.101} = 1.82.- The two-sided p-value is
2P(Z \ge 1.82) = 0.069.- Because
0.069 > 0.05, the coefficient is not significant at 0.05.
Reading the p-value as the probability that
H_0is true The p-value is a probability about the data, computed assumingH_0is true. A p-value of 0.03 does not mean thatH_0has probability 0.03 of being true.
Practice questions
- CAS Exam MAS-I Fall 2018, Question 22
- CAS Exam MAS-I Fall 2019, Question 21
- CAS Exam MAS-I Fall 2019, Question 39
- CAS Exam MAS-I Spring 2019, Question 23
- Exam MAS-I Practice Question 98
- Exam MAS-I Practice Question 103
- Exam MAS-I Practice Question 168
- Exam MAS-I Practice Question 170
- SOA Exam SRM Sample Question 27
- SOA Exam SRM Sample Question 54
- SOA Exam SRM Sample Question 72