Skip to content

The z test for a proportion

Test a claim about a proportion by checking the conditions, computing z and the p-value, and stating the conclusion in context.

It opens on

Larch promises 90% on time, yet a sample of 300 orders shows 86% on time. If the promise were true, is a sample this low or lower about 1% likely, 10% likely or 40% likely?

Why it matters

Managers judge claims about rates, such as on-time delivery, defect or conversion rates, and need a sound way to say whether a sample contradicts the claim.

Good to know first

  • sample proportion and its standard error

Step by step

  1. The z test for the on-time claim

    State the hypotheses, compute z and the p-value for the on-time claim, and decide at α = 0.05.

    z = −0.04 / 0.0173 = −2.31. The sample is 2.31 standard errors below the claim.

    z = −2.31

    A common mix-up

    The standard error uses the sample proportion 0.86.

    In fact: In a test it uses the claimed p₀, because the test asks what samples look like if H₀ is true.

  2. Conditions and the decision rule

    Check the conditions for the z test, find the critical value and cut-off proportion, and compare two samples with it.

    In proportions, the cut-off is 0.90 − 1.645 × 0.0173 = 0.8715. Any sample proportion below 0.8715 leads to rejecting H₀, and the shaded 5% is the rejection region.

    cut-off = 0.90 − 1.645 × 0.0173 = 0.8715

    A common mix-up

    The condition np ≥ 10 uses the sample proportion.

    In fact: In a test we check the expected counts under H₀, which use p₀.

  3. Two-sided tests and the effect of sample size

    Run a two-sided test, find its p-value, and show how the same sample proportion changes meaning as n grows.

    2 × 0.0105 = 0.0209, still below 0.05, so we still reject H₀. We conclude that the on-time rate differs from 90%, and the sample suggests it is below.

    p = 0.0209

    A common mix-up

    A very small p-value means a large difference from the claim.

    In fact: It means the difference is unlikely to be chance, and a large sample can make a small difference very significant.

Try it

A supplier claims 5% of parts are defective, and 18 of 250 sampled are defective. Test Hₐ: p > 0.05 and find z.Answer

Sample proportion 0.072, SE = 0.01378, z = 1.60 (hint: z = (p̂ − p₀) / √(p₀(1 − p₀)/n))

A website claims 8% of visitors buy. In a sample of 150 visitors, do the conditions hold for a z test with p₀ = 0.08?Answer

Yes, 150 × 0.08 = 12 and 150 × 0.92 = 138 are both at least 10

Hint: Compute np₀ and n(1 − p₀) and compare each with 10

In the 900-order sample, test H₀: p = 0.90 two-sided with 0.86 and give the p-value in words.Answer

z = −4.00, p = 0.00006, extremely strong evidence the rate differs from 0.90

Hint: Double the one-sided tail

Is 0.0105 below α = 0.05, and what do we conclude about Larch's promise?Answer

Yes, so we reject H₀ and conclude the on-time rate is below 90%

Would a sample of 40 orders meet the conditions for p₀ = 0.90?Answer

No, 40 × 0.10 = 4 expected failures is under 10

The z test for a proportion

30 minutes every month. No card.