Unit 3 · Topic 3.7 Beta

Carrying Out a Test for a Population Proportion

4 min read · freeNot practiced

You have all the pieces: hypotheses and conditions (setup), the test statistic and p-value. This topic puts them together into one complete significance test and adds the last step, the decision and the conclusion. On the exam this is a whole free-response question, scored part by part, so we write every part out.

The decision: compare the p-value with α

The significance level α\alpha was chosen before the data. Now compare:

  • If the p-value is less than α\alpha, reject H0H_0. The result would be too unusual if H0H_0 were true, so there is convincing evidence for HaH_a.
  • If the p-value is greater than α\alpha, fail to reject H0H_0. The result is not unusual enough, so there is not convincing evidence for HaH_a.

"Fail to reject" is not "accept". A large p-value means the data are consistent with H0H_0, and also with many values near p0p_0. It never shows that H0H_0 is true, just as a "not guilty" verdict does not show that someone is innocent.

The conclusion has four parts

  1. Compare, naming both numbers and the inequality: "Because the p-value of 0.0136 is less than α=0.05\alpha = 0.05, we reject H0H_0."
  2. Evidence: "There is convincing evidence that ..." (or "is not convincing evidence").
  3. Parameter and direction: "... the true proportion of all ... is less than 0.18." Use the direction word of HaH_a, even when you fail to reject.
  4. Context: the population and variable, in the question's words.

Conclusions about the sample ("the sample proportion is less than 0.18") earn nothing: we knew that before the test. Conclusions about H0H_0 being true, and the words "prove" and "accept", lose the point.

A complete test: state, plan, do, conclude

Four boxes in a column joined by arrows, for a test about chronic absence in a school district. State: the hypotheses H0: p = 0.18 and Ha: p < 0.18, where p is the true proportion of all district students who are chronically absent, with alpha = 0.05. Plan: a one-sample z test for a proportion; random sample; 450 is less than 10% of the students; 450(0.18) = 81 and 450(0.82) = 369 are at least 10. Do: z = (0.14 − 0.18) / sqrt(0.18(0.82)/450) = −2.21 and p-value = 0.014. Conclude: because 0.014 < 0.05, reject H0; there is convincing evidence that the true proportion is less than 0.18.
Figure 1. The four steps of a significance test, filled in for the chronic absence example below. LevlPrep original diagram.

Worked example. Last year 18% of a large district's students were chronically absent. This year the district began a mentoring program. In a random sample of 450 of the district's 21,000 students, 63 are chronically absent. Is there convincing evidence at α=0.05\alpha = 0.05 that the proportion has gone down?

State. H0:p=0.18H_0: p = 0.18, Ha:p<0.18H_a: p < 0.18, where pp is the true proportion of all the district's students who are chronically absent this year. α=0.05\alpha = 0.05.

Plan. One-sample z test for a proportion. Random: a random sample of 450 students. 10%: 450 is less than 10% of the 21,000 students. Large counts: np0np_0=450(0.18)= 450(0.18)=81≥10= 81 \ge 10 and n(1−p0)n(1 - p_0)=450(0.82)= 450(0.82)=369≥10= 369 \ge 10.

Do. p^=63450=0.14\hat{p} = \frac{63}{450} = 0.14.

z=p^−p0p0(1−p0)n=0.14−0.180.18(0.82)450=−0.040.0181=−2.21z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}} = \frac{0.14 - 0.18}{\sqrt{\frac{0.18(0.82)}{450}}} = \frac{-0.04}{0.0181} = -2.21

p-value =P(Z≤−2.21)=0.0136= P(Z \le -2.21) = 0.0136. (Technology: a 1-proportion z test gives z=−2.21z = -2.21, p-value 0.0136.)

Conclude. Because the p-value of 0.0136 is less than α=0.05\alpha = 0.05, we reject H0H_0. There is convincing evidence that the true proportion of all the district's students who are chronically absent this year is less than 0.18.

With α=0.01\alpha = 0.01 instead, the same data give the opposite decision: 0.0136>0.010.0136 > 0.01, so we would fail to reject H0H_0, and there would not be convincing evidence that the true proportion is less than 0.18. That is why α\alpha is fixed in advance.

Reading computer output

Software prints a line such as "Test of p = 0.5 vs p > 0.5: X = 532, N = 1000, Sample p = 0.532, Z = 2.02, P-Value = 0.0215". Read the hypotheses from the first part (H0:p=0.5H_0: p = 0.5, Ha:p>0.5H_a: p > 0.5), then compare the p-value with α\alpha as usual. You still have to state the hypotheses with the parameter defined, check the conditions and write the conclusion; output is not work.

What a test can and cannot tell you

  • Generalize: with a random sample, the conclusion applies to the population sampled (all the district's students).
  • Cause: only random assignment to treatments supports cause and effect. The mentoring study compares this year with last year with no randomly assigned comparison group, so it cannot show that the program caused the drop; other changes could explain it.
  • Tests and intervals agree: a two-sided test at α=0.05\alpha = 0.05 almost always rejects H0:p=p0H_0: p = p_0 when p0p_0 is outside the 95% interval and fails to reject when it is inside. (The test's standard deviation uses p0p_0 and the interval's standard error uses p^\hat{p}, so in rare borderline cases the two can disagree.) A one-sided test at 0.05 goes with a 90% interval in the same way. The interval adds something the test does not: how far from p0p_0 the true proportion plausibly is.

Spot a mistake on this page?