Unit 3 · Topic 3.5 Beta

Setting Up a Test for a Population Proportion

4 min read · freeNot practiced

A confidence interval answers "what is pp, roughly?". A significance test answers a different question: "is there evidence against one particular claimed value of pp?". This topic is the setup, the part you do before any data are analyzed: the hypotheses, the significance level, the procedure and the conditions. Most points lost on test questions are lost here, so we go slowly.

Two competing claims

Every test weighs two hypotheses about a parameter.

  • The null hypothesis H0H_0 is the "nothing new" claim: the proportion equals a specific value, the null value p0p_0. It always has the equals sign.
  • The alternative hypothesis HaH_a is what the study hopes to find evidence for: the proportion is less than, greater than, or different from p0p_0.

Write them with the parameter, then define the parameter in context right away:

H0:p=0.70H_0: p = 0.70    Ha:p<0.70H_a: p < 0.70, where pp is the true proportion of all the city's households that recycle this year.

Hypotheses are always about pp, the population, never about p^\hat{p}. We know p^\hat{p} exactly once we have data, so there is nothing to test about it.

One-sided or two-sided

The direction of HaH_a comes from the research question, in its own words, before the data are seen.

Three number lines for a proportion from 0.55 to 0.85, each with the null value 0.70 marked by a dot. First, alternative "p < 0.70": the values below 0.70 are highlighted. Second, alternative "p > 0.70": the values above 0.70 are highlighted. Third, alternative "p is not 0.70": the values on both sides of 0.70 are highlighted. The direction comes from the research question, before any data are seen.
Figure 1. The null value 0.70 and the three possible alternatives: less than, greater than, and different from (two-sided). LevlPrep original diagram.
The question saysAlternativeKind
"has dropped", "is lower", "fewer than"Ha:p<p0H_a: p < p_0one-sided
"has increased", "more than", "exceeds"Ha:p>p0H_a: p > p_0one-sided
"has changed", "is different", "is off", no directionHa:p≠p0H_a: p \ne p_0two-sided

Never choose the direction after looking at the sample. If a designer asks "is the spinner fair?" and then sees 31% red, the alternative is still p≠0.25p \ne 0.25. Picking p>0.25p > 0.25 because the data went that way makes ordinary chance results look more convincing than they are, and readers mark it wrong.

The significance level

Before collecting data, choose the significance level α\alpha (alpha), usually 0.05, sometimes 0.01 or 0.10. It is your standard of evidence: how unlikely the sample result must be, if H0H_0 were true, before you stop believing H0H_0. A smaller α\alpha is a stricter standard. In the next two topics you will compare a probability from the data with α\alpha, so it has to be fixed first.

The procedure and its conditions

For one random sample and a claim about one population proportion, the procedure is the one-sample z test for a proportion (also called a one-proportion z test). Name it in full. The conditions are the ones you know, with one change:

Why p0p_0 and not p^\hat{p}? A test reasons inside the world where H0H_0 is true, and in that world p=p0p = p_0. So the expected numbers of successes and failures come from p0p_0. (For a confidence interval there is no claimed value, so you used the sample's counts instead.)

Worked example. Last year 70% of a city's households recycled. After the city stopped collecting glass at the curb, an environmental group suspects the proportion has dropped. It will survey a random sample of 250 of the city's 82,000 households and use α=0.05\alpha = 0.05. Set up the test.

Hypotheses. H0:p=0.70H_0: p = 0.70, Ha:p<0.70H_a: p < 0.70, where pp is the true proportion of all the city's households that recycle this year. One-sided, because the group suspects a drop.

Significance level. α=0.05\alpha = 0.05, chosen in advance.

Procedure. One-sample z test for a proportion.

Conditions. Random: the group will survey a random sample of 250 households. 10%: 250 is less than 10% of the 82,000 households (8,200). Large counts: np0np_0=250(0.70)= 250(0.70)=175≥10= 175 \ge 10 and n(1−p0)n(1 - p_0)=250(0.30)= 250(0.30)=75≥10= 75 \ge 10.

All three conditions are met, so the sampling distribution of p^\hat{p}, assuming H0H_0 is true, is approximately normal with mean 0.70 and standard deviation 0.70(0.30)250\sqrt{\frac{0.70(0.30)}{250}}=0.029= 0.029.

A checklist for the setup

  1. Hypotheses about pp, with the null value from the claim and the direction from the question.
  2. pp defined in context: "the true proportion of all ... who ...".
  3. α\alpha stated before the data.
  4. Procedure named in full.
  5. Random, 10% and large counts with p0p_0, each in words with numbers.

Spot a mistake on this page?