AP Statistics / Unit 3: Inference for Categorical Data: Proportions / Topic 3.7
NUM8ERS study notes · Topic 3.7

Carrying Out a Test for a Population Proportion

Turn a sample result into a complete statistical argument. Calculate a one-proportion zz-test, compare its pp-value with a chosen significance level, and explain what the evidence says about the population.

2026–27 curriculum6 worked examples10 practice questions6 visual guides

By the end of this lesson, you should be able to:

  • Carry out a one-sample zz-test for a population proportion.
  • Use the null proportion to check conditions and calculate the test statistic.
  • Find the correct pp-value for a right-, left- or two-tailed alternative.
  • Compare a pp-value with a predetermined significance level, α\alpha.
  • Write a decision and a cautious conclusion in the context of the population.
  • Explain why failing to reject H0H_{0} does not prove that H0H_{0} is true.

Before you start: Topic 3.5 covers hypotheses and conditions. Topic 3.6 explains pp-values and tail areas. You should know p^=xn\hat{p} =\frac{x}{n} and be able to find normal probabilities with a table or technology.

First time learning this? Follow the school example through each step, then try Worked Example 2 before looking at its calculation.

Here to revise? Use the complete-test checklist, then attempt the practice with the solutions closed.

The concept in 60 seconds

A school wants to know whether more than 60%60\% of its students prefer an earlier lunch. It takes a simple random sample of 500500 students from its 10,00010{,}000 students, without replacement. Of those sampled, 320320 say yes, so p^=320500=0.64\hat{p} =\frac{320}{500}= 0.64.

The observed 64%64\% is above 60%60\%, but a sample can land above a population value just through random variation. We need to ask: is the result far enough above 60%60\% to provide convincing evidence for the school’s claim?

A hypothesis test compares the observed sample with a null model. A complete answer connects the setup, the conditions, the calculation and the conclusion.

For this example, the one-proportion zz-test gives z≈1.8257z \approx 1.8257 and a right-tailed p-value≈0.0339\text{p-value} \approx 0.0339. The school chose α=0.05\alpha = 0.05 before collecting the data. Since 0.0339<0.050.0339 < 0.05, we reject H0H_{0} and find convincing statistical evidence that more than 60%60\% of all students at this school prefer an earlier lunch.

That conclusion is evidence, not certainty. It does not say that every student prefers the change or that a policy decision has been settled.

All contexts on this page are fictional teaching examples. Reported pp-values use the approximate standard normal model for a one-proportion zz-test.

Quick check: is “64%64\% is bigger than 60%60\%” a complete reason to reject H0H_{0}?

No. We need to account for sampling variability, justify the model, find the correct pp-value, and compare it with the chosen significance level. A sample proportion can be above p0p_{0} without providing convincing evidence that the population proportion is above p0p_{0}.

The complete test workflow

The familiar State, Plan, Do, Conclude organization is useful because it makes your reasoning easy to follow. Each part answers a different question.

Visual guide 1: the complete test in three connected phases
State + PlanWhat are we testing?

Define pp, H0H_{0}, HaH_{a} and α\alpha. Identify the method and justify its conditions.

DoHow unusual is the sample?

Calculate p^\hat{p}, the null SD, zz and the correct tail probability.

ConcludeWhat does the evidence support?

Compare pp-value with α\alpha. Give the decision and a cautious population statement.

A calculator’s zz and pp-value supply only the calculation phase. A complete response includes all three phases.

  1. State the population parameter. Let pp be the proportion of all students at this school who prefer an earlier lunch.
  2. State the hypotheses and α\alpha. H0:p=0.60H_{0}: p = 0.60; Ha:p>0.60H_{a}: p > 0.60. The predetermined significance level is α=0.05\alpha = 0.05.
  3. Plan and justify the method. Use a one-sample zz-test for a population proportion, after checking random sampling, the 10%10\% condition when needed, and the expected counts under H0H_{0}.
  4. Do the calculation. Find p^\hat{p}, the null standard deviation, zz and the pp-value for the alternative’s tail.
  5. Make the formal decision. Explicitly compare the pp-value with α\alpha, then reject or fail to reject H0H_{0}.
  6. Conclude in context. Say whether the data provide convincing statistical evidence for HaH_{a}, naming the parameter and population.

Write the hypotheses about pp, the unknown population proportion. The observed p^\hat{p} is evidence used to test those hypotheses; it is not the parameter being tested.

Symbols in the school’s complete test.
SymbolRoleSchool example
ppUnknown population proportionProportion of all school students who prefer earlier lunch
p0p_{0}Null benchmark0.600.60
xx and nnObserved success count and sample size320320 yes responses out of 500500
p^\hat{p}Observed sample proportion0.640.64
SD⁡0\operatorname{SD}_0Standard deviation assumed under H0H_{0}Approximately 0.02190890.0219089
zzObserved standardized departureApproximately +1.8257+1.8257
pp-valueNull probability of the specified extreme regionApproximately 0.03390.0339
α\alphaPredetermined rejection threshold0.050.05

Choose before looking: the research question determines HaH_{a}, and the significance level is selected before the data are examined. Do not change either one to obtain a preferred decision.

Quick check: which hypothesis matches “Has the proportion changed from 60%60\%?”

Ha:p≠0.60H_{a}: p \ne 0.60, a two-sided alternative. “Changed” includes both an increase and a decrease. Use H0:p=0.60H_{0}: p = 0.60.

Check the conditions before calculating

For a categorical response with 22 outcomes, record a success count xx out of nn observations. “Success” is simply the outcome you are counting; a defective item can be a success for the calculation even though a defect is undesirable.

Visual guide 2: the school’s three condition checks
SamplingSRS of 500500 students

The stated simple random sample supports the random-sampling condition.

Approximate independence500≤1,000500 \le 1{,}000

The sample is no more than 10%10\% of the 10,00010{,}000-student population.

Normal null approximation300300 successes; 200200 failures

Under p0=0.60p_{0} = 0.60, both expected counts are at least 1010.

Check these before using the normal zz-test. The expected-count check uses the hypothesized p0p_{0}, not the observed p^\hat{p}.

1. Random sampling

The data should come from a random sample of the population being studied. In the school example, the stated SRS supplies this condition. A voluntary online poll is not an SRS, even if it has thousands of responses.

2. The 10%10\% condition, when sampling without replacement

Check n≤0.10Nn\le0.10N, where NN is the population size. This supports treating sampled outcomes as approximately independent when calculating the usual standard deviation.

School: 500≤0.10(10,000)=1,000500\le0.10(10{,}000)=1{,}000. The condition is met.

If NN is not supplied, give a reasonable contextual justification where appropriate. Do not silently invent a population size.

3. Large expected counts under the null

Check np0≥10np_{0} \ge 10 and n(1−p0)≥10n(1 – p_{0}) \ge 10. These expected counts justify the approximate normal null distribution used by the proportion zz-test.

School: 500(0.60)=300500(0.60)=300 expected successes and 500(0.40)=200500(0.40)=200 expected failures. Both are at least 1010.

The counts are based on p0p_{0}, because the test model assumes H0H_{0} is true. They need not equal the observed counts xx and n−xn – x. Conditions for a confidence interval use p^\hat{p} in the success–failure check; the hypothesis test uses p0p_{0}.

If a condition fails: do not present the normal zz-test as justified. State the problem. Depending on the situation, a different method, a larger planned sample or a better sampling design may be needed. A calculator output cannot repair the conditions.

Quick check: a sample has 99 successes, but np0=16np_{0} = 16. Does 99 automatically invalidate the zz-test?

No. The test’s expected-success condition uses np0=16np_{0} = 16, not the observed 99. Check the expected failures too, as well as the sampling conditions. The quality-control example later has 99 observed defects and satisfies both expected-count checks.

Calculate the zz-statistic

The test statistic tells us how far the sample proportion is from the null benchmark, measured in standard deviations under H0H_{0}.

p^=xn\hat p=\frac xn
SD⁡0=p0(1−p0)n\operatorname{SD}_0=\sqrt{\frac{p_0(1-p_0)}n}
z=p^−p0p0(1−p0)nz=\frac{\hat p-p_0}{\sqrt{\frac{p_0(1-p_0)}n}}
Visual guide 3: see what each part of zz contributes
Numerator0.64−0.60=0.040.64 – 0.60 = 0.04

The sample is 44 percentage points above the null benchmark.

DenominatorSD⁡0≈0.0219089\operatorname{SD}_0 \approx 0.0219089

Expected sample-to-sample variation under the 60%60\% null model.

Ratioz≈+1.8257z \approx +1.8257

The sample sits about 1.831.83 null standard deviations above the benchmark.

Use the unrounded denominator and zz for the tail probability. The statistic is unitless; it is not the pp-value.

The school calculation, one line at a time

  1. Observed proportion: p^=320500=0.64\hat{p} =\frac{320}{500}= 0.64.
  2. Departure from the benchmark: p^−p0=0.64−0.60=0.04\hat{p} – p_{0} = 0.64 – 0.60 = 0.04. This is a difference of 44 percentage points.
  3. Null standard deviation: SD⁡0=0.60(0.40)500≈0.0219089\operatorname{SD}_0 = \sqrt{\frac{0.60(0.40)}{500}} \approx 0.0219089.
  4. Standardize: z=0.64−0.600.60(0.40)500≈1.8257z=\frac{0.64-0.60}{\sqrt{\frac{0.60(0.40)}{500}}}\approx1.8257.

The sample proportion is approximately 1.831.83 null standard deviations above 0.600.60. A negative zz would place it below the null benchmark. The zz-statistic is unitless; it is not a percentage or a probability.

Why use p0p_{0} in the denominator?

A test asks how unusual the data would be if the null population proportion were p0p_{0}. That is why both factors in the standard deviation use p0p_{0}.

For a confidence interval, the estimated standard error is p^(1−p^)n\sqrt{\frac{\hat p(1 – \hat p)}{n}}. That expression estimates variability from the sample. It serves a different purpose. Do not copy the interval formula into the hypothesis test.

Keep precision: use unrounded p^\hat{p}, the unrounded denominator and the unrounded zz for the tail calculation. Round the values you report at the end. Early rounding matters most when the pp-value is close to α\alpha.

Quick check: if p^<p0\hat{p} < p_{0}, what sign should zz have?

Negative. The numerator is negative and the square-root denominator is positive. The pp-value still lies between 00 and 11; its tail is determined by HaH_{a}.

Find the pp-value from the standard normal model

When the conditions are justified, use Z∼approx.N(0,1)Z\mathrel{\overset{\text{approx.}}{\sim}}\mathcal{N}(0,1) as the null reference for the standardized statistic. The pp-value measures results at least as extreme as the observed zz, in the direction specified by HaH_{a}.

Choose a normal tail from the alternative.
Alternativepp-value regionUsing left-area function Φ\Phi
Ha:p>p0H_{a}: p > p_{0}P(Z≥zobs)P(Z \ge z_{\mathrm{obs}})1−Φ(zobs)1 – \Phi (z_{\mathrm{obs}})
Ha:p<p0H_{a}: p < p_{0}P(Z≤zobs)P(Z \le z_{\mathrm{obs}})Φ(zobs)\Phi (z_{\mathrm{obs}})
Ha:p≠p0H_{a}: p \ne p_{0}P(Z≤−∣zobs∣)+P(Z≥∣zobs∣)P(Z \le -\lvert z_{\mathrm{obs}}\rvert ) + P(Z \ge \lvert z_{\mathrm{obs}}\rvert )2[1−Φ(∣zobs∣)]2[1 – \Phi (\lvert z_{\mathrm{obs}}\rvert )]

Here zobsz_{\mathrm{obs}} denotes the unrounded observed test statistic. The function Φ(z)\Phi (z) means the standard normal area to the left of zz. For the school’s Ha:p>0.60H_{a}: p > 0.60, use the right area:

p-value=P(Z≥1.825741…)≈0.0339446≈0.0339\text{p-value}=P(Z\ge1.825741\ldots)\approx0.0339446\approx0.0339

Interpret it conditionally: if the school’s true preference proportion is 0.600.60, the approximate probability of a random sample of 500500 producing a proportion of 0.640.64 or higher is 0.03390.0339.

Using a standard normal table

A common zz-table reports left-tail areas. If you round the school statistic to z=1.83z = 1.83, that table gives an area near 0.96640.9664. Subtract from 11 to get a right-tail estimate near 0.03360.0336. The small difference from 0.03390.0339 is due to rounding zz for the table. For this example, both lead to the same decision at α=0.05\alpha = 0.05.

For a two-sided normal zz-test, add both equally distant outer tails. A convenient equivalent is 2[1−Φ(∣z∣)]2[1 – \Phi (\lvert z\rvert )]. Do not multiply a large left-tail area by 22. The rule here applies to this symmetric normal test.

Using technology

A built-in one-proportion zz-test typically needs 44 entries: p0p_{0}, the success count xx, the sample size nn, and the alternative >>, << or ≠\ne. For the school, enter 0.60,320,5000.60, 320, 500, >>. The test output should show z≈1.8257z \approx 1.8257 and p-value≈0.0339\text{p-value} \approx 0.0339.

Alternatively, calculate zz first and use a standard normal cumulative-probability tool with mean 00 and standard deviation 11. Specify the required left tail, right tail or both tails. Menu names differ across calculators, so check what area your tool returns.

Technology reports the calculation; you supply the reasoning. Write the hypotheses, justify the conditions, compare with α\alpha and conclude in context. Do not enter p^\hat{p} in the p0p_{0} field or enter the number of failures as xx unless failures are your defined success outcome.

Quick check: z=−1.8z = -1.8, but Ha:p>p0H_{a}: p > p_{0}. Which area is the pp-value?

The right area, P(Z≥−1.8)≈0.9641P(Z \ge -1.8) \approx 0.9641. The result points opposite to the greater-than claim. The negative sign does not change the alternative to a left-tailed test.

Use α\alpha to make the formal decision

The significance level, written α\alpha and read “alpha,” sets the rejection threshold before the data are examined. Common choices include 0.01,0.05, and 0.100.01, 0.05,\text{ and }0.10. Use the value specified for the study or question; 0.050.05 is not an automatic choice for every test.

Under the null model, α\alpha is the predetermined probability of rejecting H0H_{0} when H0H_{0} is true. For a proportion zz-test this calibration uses an approximate continuous normal model, so the actual probability for discrete sample counts need not equal α\alpha exactly. We examine the consequences of test errors in Topic 3.8.

If p-value≤α\text{p-value}\le\alpha: reject H0H_0. The result is statistically significant at that level.

If p-value>α\text{p-value}>\alpha: fail to reject H0H_0. The result is not statistically significant at that level.

α\alpha and the pp-value have different jobs

α\alpha is selected in advance. It states the decision rule. The pp-value is calculated from the observed data using the specified null model and alternative.

Visual guide 4: observed pp-value versus predetermined α\alpha
Observed p-value tail and prespecified rejection regionTwo standard normal density curves for the school’s right-tailed test. The top panel shades the tail beyond observed z about 1.8257, whose probability is about 0.0339. The bottom panel shades the rejection region beyond critical z about 1.6449, with area alpha 0.05. A dotted line shows the observed statistic beyond the critical cutoff, so reject H0. 0.0 0.2 0.4 p-value ≈ 0.0339 Observedz ≈ 1.83 Observed result’s tail −3 −2 0 2 3 Null test statistic Z 0.0 0.2 0.4
Posted on Google Google
0000003998 : Abdad Alam Shamim Alam profile picture
0000003998 : Abdad Alam Shamim Alam
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
This is the bestest institution I have ever come to and I love it very much.
Posted on Google Google
Aliki S profile picture
Aliki S
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Ali profile picture
Ali
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Sly is him
Posted on Google Google
Jitendra Kumar Kumawat profile picture
Jitendra Kumar Kumawat
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Raahil Hasan profile picture
Raahil Hasan
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Tina Mudarres profile picture
Tina Mudarres
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
The classes are amazing and my child learnt so much
Posted on Google Google
alisha gadoya profile picture
alisha gadoya
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I have experienced a lot of good things, it has taught me so many things and from B/Cs I have gone to an A! This is wonderful and Mavish’s class is awesome.
Posted on Google Google
smasher 123 profile picture
smasher 123
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
It’s sensational my kid went. First he only would get C now it’s all A’s really good and recommend
Posted on Google Google
Mosa Al- Samaraie profile picture
Mosa Al- Samaraie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
AMAZING PRICES GREAT TEACHERS STRAIGHT FORWARD LEARNING STEADY PACE IN TUTORING
Posted on Google Google
Cael Dagnelie profile picture
Cael Dagnelie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I had a great experience learning math with Ms. Mavish. She explains complex topics in a very clear and simple way, which made it easier for me to understand and enjoy the subject. Her patience and dedication really stood out, and she always made sure that everyone in the class was keeping up. I especially appreciated how approachable she was — I never felt afraid to ask questions, and she was always willing to help. Thanks to her teaching, my confidence in math has grown a lot. I’m really thankful for the effort she puts into every lesson!

NUM8ERS is one of finest tutoring institutes in UAE, Located in Al Barsha 1, Dubai. Close to DUBAI AMERICAN ACADEMY (DAA) & AMERICAN SCHOOL OF DUBAI (ASD).