The one-proportion z test and P-values

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Statistics (AP-aligned) › Significance tests

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

The one-proportion z test and P-values

Significance tests.

Warm-up

Three quick questions from earlier lessons.

  1. A company claims that 80% of customers are satisfied. A researcher suspects fewer are. Which is the null hypothesis?
    1. H₀: p = 0.80
    2. H₀: p < 0.80
    3. H₀: p̂ = 0.80
  2. The mean wait at a clinic used to be 81 minutes. A manager wants to know whether it has changed, in either direction. Which alternative?
    1. Hₐ: μ ≠ 81
    2. Hₐ: μ > 81
    3. Hₐ: x̄ ≠ 81
  3. Why are hypotheses written about parameters such as p, not statistics such as p̂ (sample of 445)?
    1. Because we know p̂ exactly; the question is about the unknown population value
    2. Because statistics are harder to compute
    3. There is no difference between p and p̂

Discover

A coin lands heads 60 times in 100 tosses. If it were fair, p^\hat{p} would have SD 0.05. How many SDs above 0.5 is 0.6?

  1. 2
  2. 0.1

Key idea

How surprising is the data if H₀ is true?

One-proportion z test: z=p^−p0p0(1−p0)/nz = \dfrac{\hat{p} - p_0}{\sqrt{p_0(1 - p_0)/n}} (the SE uses the null value p0p_0). The P-value is the probability, assuming H₀ is true, of a result at least as extreme as the one observed, in the direction(s) of Hₐ.

Worked example

H₀: p=0.25p = 0.25, n=300n = 300, p^=0.30\hat{p} = 0.30.

SE=0.025SE = 0.025
√(0.25 × 0.75/300).
z=2z = 2
(0.30 − 0.25)/0.025.
P-value ≈0.023\approx 0.023
Upper tail for Hₐ: p > 0.25.

Your turn, guided

Your turn: SE = 0.04, p^−p0=0.06\hat{p} - p_0 = 0.06. Find zz.

z=1.5z = 1.5
0.06/0.04.

Practice ★

  1. Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 52/100. Find the z statistic.
  2. Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 58/100. Find the z statistic.
  1. Test H₀: p = 0.2 with n = 400 and p̂ = 28/100. Find the z statistic.

Watch out!

Practice ★★

  1. A test gives a P-value of 0.05. What does it mean?
    1. If H₀ were true, a result at least as extreme as ours would happen with probability 0.05
    2. There is a 0.05 probability that H₀ is true
    3. The result is due to chance with probability 0.05

Exit ticket

Three questions to check you have got it.

  1. Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 52/100. Find the z statistic.
  2. Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 58/100. Find the z statistic.
  3. Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 56/100. Find the z statistic.

Summary card

z test for p

z=(p^−p0)/p0(1−p0)/nz = (\hat{p} - p_0)/\sqrt{p_0(1 - p_0)/n}; P-value assumes H₀.

Watch out: use p0p_0 in the SE.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Test H₀: p = 0.5 with a random sample of 2,500 in which p̂ = 60/100. Find the z statistic.
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits