---
title: "Two claims. You never accept the first. | FiveStudy"
description: "A sensor manufacturer prints that no more than 5% of its sensors fail within a year. A lab draws 400 sensors at random from an inventory of about 600,000. Twenty-eight fail, which is 7%. A confidence "
url: https://fivestudy.com/guides/apstats-3-5-setting-up-a-proportion-test
---

[AP Statistics](https://fivestudy.com/ap-statistics) · Study guide

# Two claims. You never accept the first.

[Figure: FiveStudy]

FiveStudy

AP® Statistics · Unit 3 · Inference for Categorical Data: Proportions

AP® Statistics · Unit 3 · Inference for Categorical Data: Proportions

# Setting Up a Test for a *Proportion*

What a hypothesis test does, how to write the null and alternative hypotheses for a population proportion, one-sided versus two-sided alternatives, and the three conditions for a one-sample z-test.

1. What a test does 2. Hypotheses 3. One- or two-sided 4. Conditions 5. Quick reference

The idea in one paragraph

A **hypothesis test** uses sample data to decide about a claim concerning a population parameter. You start by assuming the status quo, the **null hypothesis**, and ask whether the data give convincing evidence for the researcher’s claim, the **alternative hypothesis**. Setting the test up correctly, before any data are seen, is half the work.

## 1 What a hypothesis test does

A **hypothesis test** is an inference procedure used to make a decision about the value of a population parameter. For one population proportion, the procedure is the **one-sample z-test for a population proportion**.

**Figure 1.** A hypothesis test reasons backward from an assumption: assume the null hypothesis, see how unusual the sample would be under it, and treat a very unusual result as evidence against it.

As with intervals, the parameter is defined in context: the parameter, the response variable, and the population. “\(p\) = the proportion of all students at the school who eat the school lunch.”

## 2 The null and alternative hypotheses

|  | Null hypothesis \(H_0\) | Alternative hypothesis \(H_a\) |
| --- | --- | --- |
| What it is | The status quo: assumed correct unless there is convincing evidence otherwise | The claim or belief the evidence is collected for: the researcher’s claim |
| Form | \(H_0: p = p_0\) (an equality) | \(p \lt p_0\), \(p \gt p_0\), or \(p \ne p_0\) |
| Lunch example | \(p = 0.60\) | \(p \lt 0.60\) |

Here \(p_0\) is the null hypothesized value. Even when the null is thought of as “\(p \ge 0.60\),” the test is carried out at the boundary, \(p = 0.60\): if the data are convincing against 0.60, they are even more convincing against any value above it.

Worked Example 1 Write the hypotheses

### School lunch

A school reports that 60% of its students eat the school lunch. The student council suspects the true proportion is lower and plans to survey a random sample of 150 students. State the hypotheses, defining the parameter.

1. 1Parameter: \(p\) = the proportion of all students at the school who eat the school lunch.
2. 2The null hypothesis is the status quo, the school’s figure: \(H_0: p = 0.60\).
3. 3The alternative is the council’s suspicion, which the evidence is collected for: \(H_a: p \lt 0.60\).

**Answer:** H₀: p = 0.60, Hₐ: p < 0.60, where p is the proportion of all students at the school who eat the school lunch. This is a one-sided test.

Common Mistake 1 · Writing hypotheses about p-hat

The sample proportion is known the moment the data are in, so there is nothing to test about it. Hypotheses are always statements about the population parameter \(p\).

## 3 One-sided or two-sided

An alternative with \(\lt\) or \(\gt\) is **one-sided**; an alternative with \(\ne\) is **two-sided**. The direction comes from the investigative question, decided before the data are collected.

**Figure 2.** The null hypothesis is always H₀: p = p₀. The alternative points where the researcher suspects the truth lies: below p₀, above it, or simply not equal to it.

Worked Example 2 A two-sided alternative

### Left-handed students

About 10% of people are left-handed. A teacher wonders whether the proportion at her school is different, in either direction. She will sample 250 students at random. State the hypotheses.

1. 1Parameter: \(p\) = the proportion of all students at the school who are left-handed.
2. 2\(H_0: p = 0.10\).
3. 3“Different, in either direction” calls for a two-sided alternative: \(H_a: p \ne 0.10\).

**Answer:** H₀: p = 0.10, Hₐ: p ≠ 0.10. Two-sided, because the teacher has no reason to expect higher or lower.

Worked Example 3 Fix the hypotheses

### Three flawed versions

1. \(H_0: \hat{p} = 0.60\), \(H_a: \hat{p} \lt 0.60\)
2. \(H_0: p \lt 0.60\), \(H_a: p = 0.60\)
3. After seeing \(\hat{p} = 0.64\), the council switches to \(H_a: p \gt 0.60\).
1. 1 **1.** Hypotheses are about the parameter \(p\), never the statistic \(\hat{p}\), which is already known once the data are in.
2. 2 **2.** The equality belongs in the null. The claim being tested belongs in the alternative.
3. 3 **3.** The alternative must come from the question asked before the data, not from the data. Changing it after seeing the result makes the evidence look stronger than it is.

**Answer:** Correct version: H₀: p = 0.60, Hₐ: p < 0.60, written before the sample is collected.

Common Mistake 2 · Choosing the direction after seeing the data

If the sample comes out above \(p_0\) and you then pick \(H_a: p \gt p_0\), you have let the data choose the question. The direction must come from the reason for the study. When there is no reason to expect a direction, use \(\ne\).

## 4 Conditions for a one-sample z-test

| Condition | Check for a test |
| --- | --- |
| Randomization | The data come from a random sample |
| 10% condition | When sampling without replacement, \(n \le 0.10N\) |
| Normality | Expected successes \(np_0 \ge 10\) and expected failures \(n(1-p_0) \ge 10\) |

**Figure 3.** The conditions match those for an interval with one change: a test assumes p = p₀, so the normality condition uses the expected counts np₀ and n(1 − p₀), not the observed counts.

Worked Example 4 Name the procedure and check conditions

### School lunch

The school has 2,100 students. For the lunch test, name the procedure and check the conditions.

1. 1Procedure: a one-sample z-test for a population proportion.
2. 2Randomization: the 150 students are a random sample.
3. 310% condition: \(150 \le 0.10(2{,}100) = 210\).
4. 4Normality: \(np_0 = 150(0.60) = 90 \ge 10\) and \(n(1 - p_0) = 150(0.40) = 60 \ge 10\).

**Answer:** All conditions are met, so a one-sample z-test for a proportion is appropriate.

Worked Example 5 When the normality condition fails

### A rare event

A company claims only 2% of its phone chargers are defective. An inspector plans to test a random sample of 200 chargers. Is a one-sample z-test appropriate?

1. 1Under \(H_0: p = 0.02\), the expected number of defective chargers is \(np_0 = 200(0.02) = 4\).
2. 24 is less than 10, so the normality condition fails and the null distribution of \(\hat{p}\) is not close to normal.

**Answer:** No. A larger sample (at least 500 chargers, so np₀ ≥ 10) would be needed for the z-test.

Common Mistake 3 · Checking normality with the sample counts

A test asks what would happen if \(H_0\) were true, so the normality condition uses \(p_0\): \(np_0\) and \(n(1-p_0)\). Confidence intervals, which make no assumption about \(p\), use the observed counts. Keep the two apart.

Say it like this

“Normality: assuming H₀ is true, the expected numbers of successes and failures are np₀ = 150(0.60) = 90 and n(1 − p₀) = 150(0.40) = 60, both at least 10.”

## 5 Quick reference

| Step | What to write |
| --- | --- |
| Parameter | p = the proportion of [population] who [response], in context |
| Hypotheses | \(H_0: p = p_0\); \(H_a: p \lt p_0\), \(p \gt p_0\), or \(p \ne p_0\) |
| Procedure | One-sample z-test for a population proportion |
| Conditions | Random sample; \(n \le 0.10N\); \(np_0 \ge 10\) and \(n(1-p_0) \ge 10\) |

FiveStudy AP® Statistics · Setting up a test for a proportion
