The one-proportion z test and P-values

About this lesson

Statistics (AP-aligned) › Significance tests

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

The one-proportion z test and P-values

Significance tests.

Warm-up

Three quick questions from earlier lessons.

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
  1. Boss problem. A coin is tossed 100 times and lands heads 52 times. Test H₀: p = 0.5 against Hₐ: p > 0.5.

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.

CC BY-SA 4.0