AP Statistics • Inference for Categorical Data: Proportions

Introducing Statistics: Why Be Normal?

How the normal distribution enables inference about population proportions from sample data.

A scatter plot with data columns and a percentage symbol.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The question at the heart of statistical inference is deceptively simple: how can we learn about an entire population by examining only a part of it? When we want to know the proportion of voters who favor a ballot measure, the fraction of manufactured components that are defective, or the percentage of patients who respond to a new drug, surveying every individual is rarely feasible. Instead, we draw a sample and use its characteristics to make claims about the population. The mathematical machinery that makes this leap possible rests on a remarkable property of random sampling: under the right conditions, the distribution of sample statistics is approximately normal.

1733 • De Moivre's Bell Curve

Abraham de Moivre derived the normal curve as an approximation to the binomial distribution, showing that the sum of many coin flips approaches a smooth, bell-shaped curve.

1809 • Gauss & the Method of Least Squares

Carl Friedrich Gauss published his theory of errors, using the normal distribution to model measurement variation in astronomy. The curve became known as the 'Gaussian distribution.'

1901 • Pearson's Goodness-of-Fit Test

Karl Pearson introduced the chi-square test to assess whether observed categorical frequencies matched expected proportions, laying the groundwork for inference about categorical data.

1933 • Neyman–Pearson Framework

Jerzy Neyman and Egon Pearson formalized hypothesis testing with null and alternative hypotheses, significance levels, and power—concepts central to modern proportion tests.

2000s • Modern Computational Methods

Simulation-based inference (randomization tests and bootstrapping) emerged as complements to the normal-based approach, reinforcing the theoretical results while offering distribution-free alternatives.

The thread connecting these developments is the realization that randomness, far from being chaotic, follows predictable patterns at scale. When we collect categorical data—yes/no, success/failure, defective/non-defective—and compute a sample proportion, that proportion varies from sample to sample. The central question this unit addresses is: what does the distribution of sample proportions look like, and how can we use it to make formal inferences about the true population proportion?

SECTION 2

Core Principles & Definitions

Before we can build confidence intervals or conduct hypothesis tests for proportions, we need a shared vocabulary and a set of foundational ideas. The following concepts form the conceptual skeleton of inference for categorical data.

1

Population Proportion (p)

The true fraction of individuals in the population who possess a characteristic of interest. This parameter is fixed but usually unknown, and our goal is to estimate or test claims about it.
2

Sample Proportion (p̂)

The fraction of sampled individuals who possess the characteristic, calculated as p̂ = X / n, where X is the count of successes and n is the sample size. This statistic varies from sample to sample.
3

Sampling Distribution

The theoretical distribution of p̂ across all possible random samples of size n from the population. Its shape, center, and spread govern how confident we can be in our inferences.
4

Normal Approximation

When the sample size is large enough that both np and n(1 − p) are at least 10, the sampling distribution of p̂ is approximately normal—a result flowing from the Central Limit Theorem.
5

Standard Error

The standard deviation of the sampling distribution of p̂, measuring how much p̂ typically varies from p. It equals √(p(1 − p) / n) and decreases as the sample size increases.
✦

KEY TAKEAWAY

Think of the normal distribution as a lens that lets us peer from a single sample into the population. Just as an optical lens has design requirements (curvature, focal length) to produce a clear image, the normal approximation has conditions (randomness, independence, and sufficient sample size) that must be met for the statistical 'image' of the population proportion to be trustworthy. Violate the conditions, and the picture blurs—our confidence intervals miss their target and our hypothesis tests lose their stated error rates.

SECTION 3

Visualizing the Sampling Distribution

The diagram below illustrates the key idea behind inference for proportions. Imagine a population in which the true proportion is p = 0.60. If we repeatedly draw random samples of size n = 100 and compute p̂ each time, the resulting histogram of sample proportions forms a bell-shaped curve centered at 0.60 with a standard deviation of √(0.60 × 0.40 / 100) = 0.049. The normal model captures this behavior precisely.

Sampling Distribution of p̂ (n = 100, p = 0.60)Sample Proportion (p̂)Frequency0.400.500.600.700.80p = 0.60−2 SE+2 SEKey Parametersμ(p̂) = p = 0.60σ(p̂) = 0.049Normal curve±2 SE bounds
The bell-shaped curve shows the theoretical sampling distribution of p̂ when p = 0.60 and n = 100. The dashed cyan line marks the center at p. The violet dashed lines mark ±2 standard errors from the mean, capturing approximately 95% of all sample proportions.

Notice how the curve is symmetric around the true proportion p = 0.60 and tapers off in both directions. Roughly 95% of all sample proportions fall within two standard errors of the center—between about 0.50 and 0.70. This regularity is precisely what allows us to construct confidence intervals and perform significance tests: if we observe a p̂ that falls far into the tails, we have evidence that the assumed value of p may be wrong. The normal shape is not magic; it is a direct consequence of the Central Limit Theorem applied to the binomial setting.

SECTION 4

Mathematical Framework

The theoretical foundation for inference about proportions rests on three connected results: the exact binomial model for the count of successes, the derived mean and standard deviation of the sample proportion, and the normal approximation that converts these into a tractable z-score framework.

SAMPLE PROPORTION

p^=X/np̂ = X / n

where X is the number of successes in the sample and n is the sample size. Because X ~ Binomial(n, p), p̂ inherits its distributional properties from the binomial.

MEAN OF THE SAMPLING DISTRIBUTION

μp^=pμ_p̂ = p

The expected value of the sample proportion equals the population proportion. This makes p̂ an unbiased estimator of p—on average, sample proportions cluster around the truth.

STANDARD DEVIATION OF THE SAMPLING DISTRIBUTION

σp^=√(p(1−p)/n)σ_p̂ = √( p(1 − p) / n )

This expression quantifies the variability of p̂. It decreases as n increases (larger samples yield more precise estimates) and is maximized when p = 0.5 (the greatest uncertainty about a binary outcome).

NORMAL APPROXIMATION (CLT)

z=(p^−p)/√(p(1−p)/n)z = (p̂ − p) / √( p(1 − p) / n )

When np ≥ 10 and n(1 − p) ≥ 10, the standardized value z follows approximately the standard normal N(0, 1) distribution. This z-score tells us how many standard errors the observed p̂ lies from the hypothesized p.

⚠

Conditions for Inference

Random: The data come from a random sample or randomized experiment. Independent (10% condition): When sampling without replacement, the sample size n must be no more than 10% of the population size N, so that individual observations are approximately independent. Normal (Large Counts): Both np and n(1 − p) are at least 10 (for hypothesis tests, use the null value p₀; for confidence intervals, use p̂). Meeting all three conditions justifies using the z-based procedures.

SECTION 5

Checking Conditions: A Decision Flowchart

On the AP Statistics exam, checking conditions is not optional—it is a required component of every inference problem and is explicitly scored in free-response rubrics. The flowchart below provides a systematic way to verify that normal-based inference for a single proportion is appropriate. Each branch represents one of the three conditions, and failing any one means the z-procedure may not be valid.

Conditions Checklist for One-Proportion z-ProceduresSTART: Have data1. RANDOMRandom sample or experiment?No → STOPYes ↓2. INDEPENDENT (10% Condition)Sampling without replacement?Check: n ≤ 0.10 × NNo → STOPYes ↓3. NORMAL (Large Counts)For H-test: np₀ ≥ 10 and n(1−p₀) ≥ 10For CI: np̂ ≥ 10 and n(1−p̂) ≥ 10No → STOPYes ↓✓ Proceed with z-procedure
This decision flowchart walks through the three conditions required for normal-based inference about a proportion: Random (blue), Independent (violet), and Normal (pink). If any condition fails, the z-procedure should not be used without modification.

A common exam pitfall is to check conditions perfunctorily. On free-response questions, you must state each condition by name, show the relevant computation (e.g., np₀ = 200 × 0.35 = 70 ≥ 10), and clearly conclude whether it is satisfied. Merely listing the conditions without verifying them with the given numbers will not earn full credit.

SECTION 6

Worked Example: Verifying Normality and Computing a z-Score

A consumer advocacy group claims that at least 40% of online shoppers have experienced a fraudulent charge on their credit card. A random sample of 250 online shoppers is surveyed, and 85 report having experienced a fraudulent charge. We want to determine whether the sample data are consistent with the claim at the α = 0.05 significance level.

One-Proportion z-Test Setup

  1. 1

    Step 1 — State Hypotheses

    We test H₀: p = 0.40 versus Hₐ: p < 0.40, where p is the true proportion of all online shoppers who have experienced a fraudulent charge. The alternative is one-sided (less than) because we suspect the actual proportion may be below the claimed 40%.
  2. 2

    Step 2 — Check Conditions

    Random: The problem states the sample is a random sample. ✓ Independent: 250 is almost certainly less than 10% of all online shoppers (a population numbering in the hundreds of millions). ✓ Normal: np₀ = 250 × 0.40 = 100 ≥ 10 and n(1 − p₀) = 250 × 0.60 = 150 ≥ 10. ✓ All conditions met.
  3. 3

    Step 3 — Compute the Sample Proportion

    p̂ = 85 / 250 = 0.34.
    p̂ = 0.34
  4. 4

    Step 4 — Compute the Standard Error Under H₀

    Under H₀, p = 0.40, so σ_p̂ = √(0.40 × 0.60 / 250) = √(0.24 / 250) = √(0.00096) ≈ 0.03098.
    SE = 0.0310
  5. 5

    Step 5 — Compute the z-Statistic

    z = (p̂ − p₀) / SE = (0.34 − 0.40) / 0.0310 = −0.06 / 0.0310 ≈ −1.94.
    z ≈ −1.94
  6. 6

    Step 6 — Find the p-value and Conclude

    Using the standard normal table or a calculator, P(Z < −1.94) ≈ 0.0262. Since the p-value (0.0262) is less than α = 0.05, we reject H₀. There is statistically significant evidence at the 5% level that the true proportion of online shoppers who have experienced a fraudulent charge is less than 0.40.
    p-value ≈ 0.026 → Reject H₀

SECTION 7

Strengths and Limitations of Normal-Based Proportion Inference

Like any statistical method, the one-proportion z-procedure has contexts in which it performs well and contexts in which it may be misleading. Understanding these trade-offs is essential for making sound analytical decisions and for answering exam questions that probe your understanding of when a method is (or is not) appropriate.

AspectStrengthLimitation
Computational EaseOnly requires p̂, n, and a z-table or calculator—fast to compute by hand.The underlying binomial is discrete; the normal approximation smooths over this, which can reduce accuracy for small n.
Theoretical FoundationGrounded in the Central Limit Theorem—one of the strongest results in probability theory.Requires conditions to hold; if np or n(1 − p) < 10, the approximation degrades and the actual Type I error rate may differ from α.
Sample Size SensitivityLarger samples yield narrower confidence intervals and more powerful tests.Very large samples can produce statistically significant results for trivially small differences from p₀, leading to practical irrelevance.
Extreme ProportionsWorks well when p is near 0.5, where the binomial is most symmetric.For p near 0 or 1, the distribution of p̂ is skewed and the normal approximation is poor even with moderate n.

Strengths and limitations of the one-proportion z-procedure

✦

KEY TAKEAWAY

Statistical significance is not synonymous with practical importance. A pharmaceutical study with n = 50,000 might detect that a side effect occurs in 5.1% of patients rather than the claimed 5.0%, yielding a tiny p-value. Always pair your z-test conclusion with a consideration of the effect size and the real-world context.

SECTION 8

Connection to Advanced Inference

The one-proportion z-test is your first formal encounter with inference for categorical data, but it is far from the last. The same logic—compute a test statistic, compare it to a reference distribution, and assess how surprising the observed data are—extends naturally to more complex settings. The table below situates this lesson's content within the broader arc of the AP Statistics curriculum.

FeatureOne-Proportion z (This Lesson)Two-Proportion zChi-Square Test
ParametersSingle population proportion pDifference p₁ − p₂ between two populationsDistribution of counts across multiple categories
Test Statisticz = (p̂ − p₀) / √(p₀(1−p₀)/n)z = (p̂₁ − p̂₂) / SE_pooledχ² = Σ (O − E)² / E
Reference DistributionStandard Normal N(0,1)Standard Normal N(0,1)Chi-square with appropriate df
Large Counts Conditionnp₀ ≥ 10, n(1−p₀) ≥ 10n₁p̂_c ≥ 10, n₁(1−p̂_c) ≥ 10 (and similarly for group 2)All expected counts ≥ 5

Comparison of inference methods for categorical data on the AP Statistics exam

As you progress through the course, you will see that the normal distribution serves as the common thread connecting proportion inference, mean inference (via the t-distribution, which approaches normality as degrees of freedom grow), and even regression inference. Mastering the reasoning in this lesson—stating hypotheses, checking conditions, computing a standardized test statistic, and drawing a conclusion in context—prepares you for every subsequent inference topic on the exam.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Which of the following best explains why the normal distribution can be used to model the sampling distribution of a sample proportion p̂?
  • A. The population from which the sample is drawn must itself be normally distributed.
  • B. The Central Limit Theorem guarantees that the distribution of p̂ is exactly normal for any sample size.
  • C. When the sample size is large enough that both np and n(1 − p) are at least 10, the Central Limit Theorem implies that the distribution of p̂ is approximately normal.
  • D. The normal distribution applies because p̂ is a continuous random variable defined on the interval [0, 1].
  • E. The normal approximation is valid whenever the sample is random, regardless of sample size.
Show answer (C)
C is correct. The Central Limit Theorem (CLT) provides an approximate normal model, not an exact one, and it requires a sufficiently large sample size—specifically, both np ≥ 10 and n(1 − p) ≥ 10. A is wrong because the underlying population is binary (success/failure), not normal; the normal shape emerges from aggregation, not from the population's shape. B is wrong because the CLT provides an approximation that improves with n—it is not exact for any finite sample. D is wrong because p̂ = X/n is technically discrete (taking finitely many values); the normal model is a continuous approximation to this discrete distribution. E is wrong because randomness alone is insufficient; the Large Counts condition must also be satisfied.

Question 2: BASIC CALCULATION

A random sample of 400 registered voters reveals that 172 support a ballot initiative. Under H₀: p = 0.40, what is the value of the z-test statistic?
  • A. z = −1.22
  • B. z = 1.22
  • C. z = 1.15
  • D. z = 1.30
  • E. z = 0.94
Show answer (B)
Compute the sample proportion: p̂ = 172/400 = 0.43. Under H₀, p₀ = 0.40, so the standard error is SE = √(p₀(1 − p₀)/n) = √(0.40 × 0.60 / 400) = √(0.24 / 400) = √0.0006 ≈ 0.02449. The z-test statistic is z = (p̂ − p₀) / SE = (0.43 − 0.40) / 0.02449 = 0.03 / 0.02449 ≈ 1.22.The correct answer is B: z = 1.22. Since p̂ = 0.43 is greater than p₀ = 0.40, the z-statistic is positive. Choice A (z = −1.22) incorrectly assigns a negative sign, which would only apply if p̂ were less than p₀. Choice C (z = 1.15) results from an arithmetic error in computing the standard error. Choice D (z = 1.30) overstates the test statistic. Choice E (z = 0.94) would result from incorrectly using p̂(1 − p̂) instead of p₀(1 − p₀) in the standard error and rounding improperly.

Question 3: INTERMEDIATE

A researcher tests H₀: p = 0.50 versus Hₐ: p ≠ 0.50 using a random sample of n = 200 adults and obtains p̂ = 0.57. The resulting p-value is approximately 0.0474. At the α = 0.05 significance level, which of the following is the most complete and correct conclusion?
  • A. We reject H₀. There is convincing evidence that the true proportion is 0.57.
  • B. We reject H₀. There is convincing evidence that the true proportion of adults differs from 0.50.
  • C. We fail to reject H₀. The p-value is too close to 0.05 to draw a meaningful conclusion.
  • D. We accept H₀. The evidence shows that the true proportion is 0.50.
  • E. We reject H₀. There is proof that the true proportion is not 0.50.
Show answer (B)
B is correct. Since the p-value (0.0474) is less than α = 0.05, we reject H₀. The conclusion must be stated in context (about the proportion of adults) and must reference the alternative hypothesis (differs from 0.50), not claim the parameter equals the sample statistic. A is wrong because rejecting H₀ does not mean p equals p̂; the sample proportion is an estimate, not the parameter. C is wrong because p-value < α leads to rejection; the closeness is irrelevant to the decision rule. D is wrong because we never 'accept' H₀ in frequentist inference, and the evidence does not support H₀ here anyway. E is wrong because statistical tests provide evidence, not proof; we can never be 100% certain from sample data.

Question 4: APPLIED

4 pts
A quality control engineer at a semiconductor plant monitors the defect rate for a production line. Historically, 8% of chips are defective (p = 0.08). The engineer selects a simple random sample of 500 chips from a day's output of 12,000 chips and finds that 55 are defective. (a) State the appropriate null and alternative hypotheses. (b) Verify that the conditions for a one-proportion z-test are met. (c) Calculate the test statistic and the p-value. (d) Using α = 0.05, state your conclusion in the context of the problem.
Show answer
Rubric (4 points): Point 1 — Hypotheses (1 pt): H₀: p = 0.08 (the defect rate equals the historical rate); Hₐ: p > 0.08 (the defect rate has increased). The alternative is one-sided because the engineer is concerned about an increase in defects. Full credit requires defining p in context. Point 2 — Conditions (1 pt): Random: stated as a simple random sample ✓. Independent: n = 500 ≤ 10% of 12,000 = 1,200 ✓ (sampling without replacement from a finite production run). Normal (Large Counts): np₀ = 500 × 0.08 = 40 ≥ 10, n(1 − p₀) = 500 × 0.92 = 460 ≥ 10 ✓. All conditions satisfied. Point 3 — Test statistic and p-value (1 pt): p̂ = 55/500 = 0.11. SE = √(0.08 × 0.92 / 500) = √(0.0736 / 500) = √(0.0001472) ≈ 0.01213. z = (0.11 − 0.08) / 0.01213 = 0.03 / 0.01213 ≈ 2.47. p-value = P(Z > 2.47) ≈ 0.0068. Point 4 — Conclusion in context (1 pt): Since the p-value (0.0068) is less than α = 0.05, we reject H₀. There is convincing statistical evidence that the defect rate for today's production exceeds the historical rate of 8%. The engineer should investigate the production line for potential issues.

Question 5: CRITICAL THINKING

4 pts
A polling organization reports a 95% confidence interval for the proportion of adults who support a policy as (0.52, 0.60). A rival polling organization uses a different random sample of the same size from the same population and obtains p̂ = 0.54. (a) Explain what '95% confidence' means in the context of repeated sampling. (b) Is it guaranteed that 0.54 falls within the first organization's interval? Explain. (c) A senator claims that a majority of adults support the policy. Using only the first organization's interval, evaluate this claim. Justify your reasoning. (d) The rival organization wants to reduce the margin of error to at most 0.02. Using p̂ = 0.54 as a planning value, determine the minimum sample size required for a 95% confidence interval.
Show answer
Rubric (4 points): Point 1 — Interpreting confidence level (1 pt): '95% confidence' means that if we were to repeat the sampling and interval construction procedure many times, approximately 95% of the resulting intervals would contain the true population proportion p. It does NOT mean there is a 95% probability that p falls in this specific interval. Full credit requires referencing the process (repeated sampling) rather than assigning probability to a fixed interval. Point 2 — Rival sample proportion (1 pt): No, it is not guaranteed that the rival's p̂ = 0.54 falls within (0.52, 0.60). The confidence interval estimates the population parameter p, not future sample statistics. While 0.54 does happen to fall within this interval, another sample could yield a p̂ outside it. Confidence intervals capture the parameter, not other sample statistics. Point 3 — Evaluating the majority claim (1 pt): Because the entire 95% confidence interval (0.52, 0.60) lies above 0.50, we have convincing evidence that the true proportion exceeds 0.50. Therefore, the senator's claim that a majority supports the policy is supported by the data. If the interval had contained 0.50, we would not have sufficient evidence. Point 4 — Sample size calculation (1 pt): The margin of error formula is ME = z* × √(p̂(1 − p̂) / n). Setting ME = 0.02 and z* = 1.96 for 95% confidence: 0.02 = 1.96 × √(0.54 × 0.46 / n). Solving: √(0.2484/n) = 0.02/1.96 = 0.010204. So 0.2484/n = (0.010204)² = 0.00010412. n = 0.2484/0.00010412 ≈ 2385.7. Rounding up, the minimum sample size is n = 2386.

SUMMARY

Lesson Summary

Summary

This lesson introduced the foundational ideas behind inference for categorical data by exploring how the normal distribution serves as the bridge between a single sample proportion (p̂) and the unknown population proportion (p). The Central Limit Theorem guarantees that, under the right conditions, the sampling distribution of p̂ is approximately normal with mean p and standard deviation √(p(1 − p) / n). This approximation enables us to construct confidence intervals and perform hypothesis tests using the z-statistic.

Three conditions must be verified before applying normal-based procedures: the data must come from a random sample, the observations must be approximately independent (checked via the 10% condition), and the sample size must satisfy the Large Counts condition (np ≥ 10 and n(1 − p) ≥ 10). The standard error measures the typical deviation of p̂ from p and shrinks with larger samples, giving more precise estimates. Finally, remember that statistical significance does not equate to practical importance—always interpret results in context.

Varsity Tutors • AP Statistics • Introducing Statistics: Why Be Normal?