Educerie

Educerie · AP · Statistics

AP Statistics 3.5

Setting Up a Test for a Population Proportion

How can a sample of a few hundred people tell us something reliable about thousands, and how sure can we be?

What you will learn

  • Know that a one-sample z-test for a population proportion is the procedure for a claim about one proportion
  • Understand that H0 is the status quo with p equal to p0, and Ha is the claim and fixes the direction
  • Know that hypotheses are about the parameter p and never about p-hat
  • Understand that the test's normality condition uses the null value, np0 and n(1-p0) both at least 10

You must be able to

  1. Write the null and alternative hypotheses from a described claim
  2. Define the parameter with the proportion, the variable and the population
  3. Name the procedure in full
  4. Verify the randomization, 10% and normality conditions with p0
  5. Choose a one-sided or a two-sided alternative from the wording
  6. Recognize from the question wording that a test, not an interval, is needed

In the exam. Section I multiple choice: choose the correct pair of hypotheses for a described study, pick the correct procedure, or choose the condition that needs checking. Section II: Question 3 usually asks for the procedure, the hypotheses, the parameter and the conditions before any calculation. Each of those is a separate point, so the setup alone can be worth about half of the ten marks. Skills: identify the method (2.C), identify the hypotheses (2.E), verify conditions (4.E).

1Intervals and tests: which one?

Both are inference for a population proportion. They answer different questions.

  • An interval estimates a value: "What proportion …\ldots?" "Estimate …\ldots".
  • A test decides about a claim: "Is there convincing evidence that …\ldots?" "Does the sample support the claim that …\ldots?"

When a free-response question asks whether data provide convincing evidence, it wants a significance test. A description of the sample alone is not enough.

2The null hypothesis

The null hypothesis is the status quo. It is the statement that is assumed to be correct unless convincing evidence says otherwise.

For one proportion it is always the same form:

H0:p=p0p_0 is the specific value the claim names, for example 0.40H_0 : p = p_0 \qquad \textcolor{#838c91}{\text{p\_0 is the specific value the claim names, for example 0.40}}

Three points about H0H_0:

  • It is about a parameter, the population proportion pp. It is never about a sample statistic. p^\hat{p} must not appear in either hypothesis.
  • It names a number, taken from the claim or the question.
  • It contains an equals. In AP Statistics a one-sided null may be written with ≤\le or ≥\ge, but the test is run at the boundary, the equals value. Writing p=p0p = p_0 is the standard form.

Example. A café chain says that 40% of all its orders are placed through its app. Then p0=0.40p_0 = 0.40 and H0:p=0.40H_0: p = 0.40.

3The alternative hypothesis

The alternative hypothesis is the claim or belief you are collecting evidence for. It tells the direction of the test. It has one of three forms:

FormNameUse when the wording says
Ha:p>p0H_a: p > p_0one-sided (upper)"more than", "greater than", "higher", "exceeds"
Ha:p<p0H_a: p < p_0one-sided (lower)"less than", "fewer", "lower", "below"
Ha:p≠p0H_a: p \ne p_0two-sided"different from", "has changed", "not equal"

The direction comes from the research question, written before the data are seen. It does not come from the sample. A sample proportion of 0.50 does not make the test upper-sided. If the investigator asked whether the share had risen, the test is upper-sided. If the investigator asked only whether it had changed, the test is two-sided.

When no direction is given, use two-sided.

4Three setups from scratch

Setup 1 (upper-sided). The café chain says that 40% of its orders are placed through its app. The manager believes that after a promotion the share is higher. A random sample of 90 orders is taken from the several thousand orders placed in one week.

  • Procedure: one-sample zz-test for a population proportion.
  • Parameter: pp = the proportion of all the chain's orders that are placed through the app.
  • Hypotheses: H0:p=0.40H_0: p = 0.40, Ha:p>0.40H_a: p > 0.40.

Setup 2 (lower-sided). A clinic's records show that 15% of patients miss their appointments. The clinic starts sending reminder texts and believes the share will now be lower. It follows a random sample of 200 patients.

  • Parameter: pp = the proportion of all the clinic's patients who miss an appointment after reminder texts are introduced.
  • Hypotheses: H0:p=0.15H_0: p = 0.15, Ha:p<0.15H_a: p < 0.15.

Setup 3 (two-sided). A newspaper reports that 50% of voters in a county support a measure. A pollster wants to know whether that is still true. She takes a random sample of 300 voters.

  • Parameter: pp = the proportion of all voters in the county who support the measure.
  • Hypotheses: H0:p=0.50H_0: p = 0.50, Ha:p≠0.50H_a: p \ne 0.50.

Each parameter has the same three pieces as in an interval: the proportion, the response variable and the population. Each hypothesis pair uses pp, never p^\hat{p}.

You may also be asked to state the hypotheses in words, which is the same pair in plain language: "The null hypothesis is that the proportion of all the chain's orders placed through the app is 0.40. The alternative hypothesis is that it is greater than 0.40."

5Verify the conditions

A one-sample zz-test needs three conditions.

  1. Randomization. The data come from a random sample.
  2. 10% condition. When sampling without replacement, the population is at least 10 times the sample size.
  3. Normality. The expected number of successes and of failures, assuming H0H_0 is true, are both at least 10: np0≥10np_0 \ge 10 and n(1−p0)≥10n(1-p_0) \ge 10.

This is the point where tests differ from intervals. A test starts by assuming H0H_0. So the expected counts use p0p_0, not p^\hat{p}.

Check Setup 1 in full:

  • Randomization: the orders were a random sample.
  • 10%: the chain placed several thousand orders that week, and 10×90=90010 \times 90 = 900 is below that. (You must give the population size or a number that is clearly larger than 900, as the question allows.)
  • Normality: np0=90(0.40)=36≥10np_0 = 90(0.40) = 36 \ge 10 and n(1−p0)=90(0.60)=54≥10n(1-p_0) = 90(0.60) = 54 \ge 10.

Check Setup 2:

  • np0=200(0.15)=30≥10np_0 = 200(0.15) = 30 \ge 10 and n(1−p0)=200(0.85)=170≥10n(1-p_0) = 200(0.85) = 170 \ge 10.

Check Setup 3:

  • np0=300(0.50)=150≥10np_0 = 300(0.50) = 150 \ge 10 and n(1−p0)=300(0.50)=150≥10n(1-p_0) = 300(0.50) = 150 \ge 10.

Why p0p_0 and not p^\hat{p}? The whole test is a thought experiment: "if H0H_0 were true, how would sample proportions behave?" Normality of that distribution needs the expected counts under H0H_0.

If the 10% condition is awkward because the population size is not given, the question usually gives it. If it does not, say what you assume ("the population is much larger than 900") and move on.

6Reading the claim: where HaH_a comes from

Phrases that look like claims can point to either hypothesis. Always ask which statement the investigator wants to collect evidence for.

Example (invented). A manufacturer says that at most 5% of its phone chargers fail within a year. A consumer group thinks the failure rate is higher than that.

  • The manufacturer's statement, "at most 5%", is the status quo. It becomes the null: H0:p=0.05H_0: p = 0.05.
  • The consumer group's belief, "higher than 5%", is what it wants evidence for: Ha:p>0.05H_a: p > 0.05.

Now reverse the roles. The manufacturer's own quality team wants evidence that the failure rate is below 5%. Then Ha:p<0.05H_a: p < 0.05 and H0:p=0.05H_0: p = 0.05.

The null stays the same number. The alternative follows the person asking the question.

7The whole setup in order

Question 3 awards points for each of these. Write them in this order.

  1. Name the procedure.
  2. Define the parameter.
  3. State H0H_0 and HaH_a.
  4. Verify the three conditions, with numbers.

The calculation and conclusion follow (3.7).

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.