Why Check Both Expected Counts?
A one-proportion test often uses a normal approximation to describe how far a sample result is from the proportion stated by the null hypothesis. Before using that approximation, check whether the null model expects enough successes and enough failures. A sample could have many observations overall but still have very few expected outcomes in one category when the null proportion is close to zero or one.
This check concerns the distribution of results that would occur if the null hypothesis were true. It is not a check of whether the observed data happen to contain enough successes and failures. Keeping those two ideas separate is essential: the expected counts come from the null proportion and the sample size, while the observed counts come from the data.
The Null Model Behind the Check
Suppose each individual or trial has a binary outcome, classified as either a success or a failure. Under the null hypothesis, the model assumes that each outcome has the same success probability \(p_0\), and that outcomes are independent. If \(X\) is the total number of successes in the sample, then under this model:
Here, “success” is simply the label for the outcome being counted; it does not have to mean a desirable result. The number of failures is \(n-X\). Under the null model, the expected number of successes is \(np_0\), and the expected number of failures is \(n(1-p_0)\). These are averages across repeated samples imagined under the null, not predictions that a particular sample must match exactly.
The independence and common-probability assumptions give a clear model for the count. In a random sample drawn without replacement from a finite population, observations are not literally independent; a common practical check is that the sample is no more than 10% of that population. The expected-count check does not replace these design and model considerations. Nor does it determine whether the sample represents the population of interest.
A Short Justification for the Expected Counts
The formulas follow from adding the indicators for the individual outcomes. Let \(I_i=1\) if observation \(i\) is a success and \(I_i=0\) otherwise. Under the null, \(P(I_i=1)=p_0\), so \(E(I_i)=p_0\). The total number of successes is \(X=I_1+\cdots+I_n\). By linearity of expectation:
For failures, define \(J_i=1-I_i\). Then \(E(J_i)=1-p_0\), and the total number of failures is \(n-X=J_1+\cdots+J_n\). Therefore:
The normal approximation is most useful when the binomial distribution is not too lopsided. If the null probability is small, successes are relatively rare; if it is large, failures are relatively rare. Requiring enough expected outcomes in both categories helps guard against approximating a strongly skewed count distribution with a symmetric curve. The guideline is a diagnostic, not a proof that the binomial distribution is exactly normal.
How to Apply the Check
Use the null value \(p_0\), not the observed sample proportion \(\hat{p}\). First calculate \(np_0\), then calculate \(n(1-p_0)\). Compare each result with the stated guideline. If either count is below the cutoff, do not declare the check passed just because the other count is large. The direction of the alternative hypothesis does not change these expected counts.
Identify \(n\) and the null proportion \(p_0\). Under the null, model the success count as binomial, provided the binary-outcome and sampling assumptions are reasonable.
Find \(np_0\) for successes and \(n(1-p_0)\) for failures.
For the common cutoff of 10, the check passes only if both values are at least 10. State clearly if either one is too small.
If both counts meet the guideline, the count condition supports using a normal approximation. It does not by itself verify every assumption or prove the approximation exact.
Worked Checks
Worked Example: Both Expected Counts Meet the Guideline
A hypothetical packaging company tests whether its long-run proportion of underfilled containers differs from \(p_0=0.20\). A random sample of \(n=120\) containers is selected from a very large production stream. Check the expected-count condition using the common cutoff of 10.
Under the null model, each selected container has a binary outcome—underfilled or not underfilled—with the same probability \(p_0=0.20\). The large production stream and random selection make independence a reasonable approximation for this example. The expected number underfilled is:
The null proportion of containers that are not underfilled is \(1-0.20=0.80\). The expected number of failures for the defined outcome “underfilled” is therefore:
Both expected counts, 24 and 96, are at least 10. Thus the expected-count condition for a normal approximation passes. This conclusion concerns the null model; it does not say that the sample actually contains 24 underfilled containers or 96 other containers.
Worked Example: A Large Sample Can Still Fail the Check
A hypothetical online service claims that 8% of submitted forms contain a particular error. A random sample of \(n=80\) forms is checked. Consider a one-proportion test of the claim, with \(p_0=0.08\). Assume the sampled forms can reasonably be treated as independent and each form is classified consistently as having or not having the error.
The null expected number of forms with the error is:
The null expected number without the error is:
The expected failures exceed 10, but the expected successes, 6.4, do not. So the check fails under the common cutoff of 10. The total sample size of 80 does not override this result: the null model still expects relatively few forms with the error. A normal approximation is not supported by this guideline. This conclusion does not mean that the null claim is false; it means this particular approximation condition is not met.
Worked Example: A Null Proportion Near One
In a hypothetical quality-control check, a manufacturer claims that 97% of its components pass inspection. A random sample of \(n=100\) components is assessed. For this example, assume the sample is drawn from a sufficiently large output stream and the pass/fail classification is applied consistently. Check the condition under \(p_0=0.97\).
The expected number that pass is:
The expected number that fail is:
Although the expected number of passes is large, the expected number of failures is only 3. The normal-approximation check therefore fails using the cutoff of 10. The key issue is that the null distribution is concentrated near its upper boundary, where a symmetric normal curve may not represent the possible counts well.
Why the Null Counts Matter
The test asks how unusual the observed result would be under the null hypothesis. Therefore, the relevant distribution is the one generated by assuming the null proportion is true. The observed proportion \(\hat{p}\) can be very different from \(p_0\); substituting \(\hat{p}\) into the expected-count check would assess a different model from the null model used by the test.
For example, a sample might contain many observed successes even though the null model expects few. That discrepancy could be evidence against the null, but it does not make the null expected-count calculation change. The check is performed using \(p_0\) precisely because it assesses whether the reference distribution under \(H_0\) is suitable for a normal approximation.
Likewise, the alternative hypothesis might state that the proportion is greater than, less than, or different from \(p_0\). The expected counts remain \(np_0\) and \(n(1-p_0)\) in all three cases. The alternative determines which departures are relevant to the test, but it does not alter the null model used for this condition.
Common Mistakes
- Checking only one category. Seeing that \(np_0\) is large is not enough. Check \(n(1-p_0)\) as well; if either count is below the chosen guideline, the condition has not passed.
- Using the observed proportion. Calculating \(n\hat{p}\) and \(n(1-\hat{p})\) checks observed counts, not expected counts under the null. Use \(p_0\) for this test condition.
- Treating the cutoff as an exact law. The “at least 10” guideline is a practical rule. Passing it supports a normal approximation but does not guarantee exact accuracy; failing it signals caution rather than proving that every normal approximation would be unusable.
- Confusing expected with actual counts. An expected count of 6.4 is an average under repeated samples, not a claim that a particular sample must contain a fractional number of successes.
- Assuming this is the only assumption. Adequate expected counts do not establish that outcomes are independent, that the probability is constant, or that the data were sampled appropriately.
Check Your Understanding
For each question, use the common guideline that both null expected counts should be at least 10 unless stated otherwise.
- A test has \(n=150\) and \(p_0=0.12\). Calculate both null expected counts and decide whether the count condition passes.
- For \(n=60\) and \(p_0=0.50\), calculate the expected successes and failures. Explain why both are checked.
- A student uses \(n\hat{p}\) instead of \(np_0\) when checking a one-proportion test. What is wrong with this choice?
- For \(n=200\) and \(p_0=0.96\), calculate both expected counts. Which count controls the decision under the guideline?
- If both expected counts exceed 10, what has been established, and what has not been established about the test’s assumptions?