Inference for Proportions

Inference for proportions uses sample data to draw conclusions about an unknown population proportion . Key result: the sampling distribution of is approximately Normal with mean and standard deviation , which lets us build confidence intervals and run hypothesis tests for one or two proportions. Applies to categorical (yes/no, success/failure) data — polls, medical trials, quality control. Developed through the work of Laplace, de Moivre, and the early 20th-century statisticians who formalized hypothesis testing.

Inference for proportions is the branch of statistical inference concerned with estimating, and testing claims about, the fraction of a population that has some characteristic (votes yes, recovers from a disease, passes inspection). Because we rarely census an entire population, we take a random sample, compute the sample proportion , and use the known behavior of across repeated samples — its sampling distribution — to quantify uncertainty. This matters because virtually every poll, clinical trial, and A/B test reduces to a question about one or two proportions. The surprising fact: even though any single sample's is "wrong," the pattern of errors across all possible samples is so predictable (an approximately Normal curve) that we can attach precise probabilities to our conclusions.

The Core Insight

A proportion is just a mean of zeros and ones. Label each "success" as 1 and each "failure" as 0; then is the average of these indicators. This means the Central Limit Theorem applies directly: for large enough , is approximately Normally distributed. Everything else — confidence intervals, -tests — flows from knowing the center () and spread () of that Normal curve.

Formal Statement

Population and Sample Proportion

The population proportion is the true fraction of all individuals in a population possessing a given attribute. The sample proportion is

1

where is the number of successes observed in a random sample of size , and .

⟳Count successes, divide by sample size; each trial is an independent Bernoulli() outcome.

Sampling Distribution of $\hat{p}$

If a Simple Random Sample of size is drawn from a population with proportion , then has

2
⟳ using .
3
⟳; take the square root.

Moreover, if and (the Large Counts Condition), the distribution of is approximately Normal:

4
⟳Apply the Central Limit Theorem to the mean of Bernoulli indicator variables.

Standard Error

Because is unknown in practice, we estimate the spread using the observed . The standard error of the sample proportion is

5
⟳Substitute the point estimate for in equation [3].

Confidence Interval for One Proportion

A level- confidence interval for is

6

where is the critical value capturing the central proportion of the standard Normal curve (e.g. for 95%).

⟳Invert the statement to bracket .

One-Sample $z$-Test for a Proportion

To test , compute the test statistic

7
⟳Standardize under ; crucially the SE uses the
null value , not .

then find the -value from the standard Normal distribution according to the alternative hypothesis.

Two-Sample $z$-Test and Interval

For comparing two independent proportions , the difference has standard error (for a confidence interval)

8
⟳Variances of independent quantities add; take the square root of the sum.

For a test of , use the pooled proportion in the standard error:

9
⟳Under both samples share a common , best estimated by combining all successes over all trials.

Why It Holds / Derivation

From Bernoulli Trials to the Normal Curve

Step 1. Define indicator variables if individual is a success, otherwise. Each is Bernoulli() with and . Step 2. The total successes , so . A proportion is literally a sample mean. Step 3. By linearity of expectation, . This gives equation [2]. Step 4. Because the trials are independent, variances add: . Then , giving equation [3]. Step 5. Since is a mean of i.i.d. variables, the Central Limit Theorem guarantees its distribution approaches Normal as grows. The Large Counts condition (, ) ensures is large enough relative to how skewed the underlying Bernoulli is. Step 6. Standardizing, is approximately standard Normal — the engine behind both the interval [6] and the test [7].

Pierre-Simon Laplace | 1749–1827

Laplace generalized de Moivre's Normal approximation to the binomial and applied it to real proportions — most famously estimating the proportion of male births in Paris and computing the probability that it truly exceeded the female rate. His Théorie analytique des probabilités (1812) effectively created the confidence-interval reasoning we now use for proportions, framing it as "inverse probability."

Building Intuition

Imagine a giant jar of red and white marbles where the true red fraction is . Each scoop of marbles gives a slightly different red fraction . If you imagine all possible scoops, their values pile up into a bell curve centered exactly at .

Three levers control the width of that bell:

  • Sample size : it sits under a square root, so to halve the margin of error you must quadruple . Diminishing returns are baked in.
  • The true proportion : the spread is largest at (maximum uncertainty) and shrinks toward the extremes. A near-unanimous population is easy to estimate; a 50/50 split is the hardest.
  • Confidence level: demanding 99% certainty instead of 95% widens the net (larger ), trading precision for security.

Sampling distribution of $\hat{p}$: centered at the true $p$, with the 95% confidence band shaded.

<svg viewBox="0 0 520 320" xmlns="http://www.w3.org/2000/svg">
<rect width="520" height="320" fill="#0a0e17"/>
<!-- axes -->
<line x1="40" y1="270" x2="490" y2="270" stroke="#94a3b8" stroke-width="1.5"/>
<line x1="40" y1="270" x2="40" y2="30" stroke="#94a3b8" stroke-width="1.5"/>
<!-- bell curve centered at x=265 -->
<path d="M 60 270 C 150 270, 195 60, 265 60 C 335 60, 380 270, 470 270"
      fill="none" stroke="#d4a853" stroke-width="2.5"/>
<!-- center line -->
<line x1="265" y1="270" x2="265" y2="60" stroke="#94a3b8" stroke-width="1" stroke-dasharray="4 3"/>
<!-- 95% band markers -->
<line x1="180" y1="270" x2="180" y2="150" stroke="#94a3b8" stroke-width="1" stroke-dasharray="3 3"/>
<line x1="350" y1="270" x2="350" y2="150" stroke="#94a3b8" stroke-width="1" stroke-dasharray="3 3"/>
<!-- labels -->
<text x="258" y="288" fill="#e2e8f0" font-size="13" font-family="serif">p</text>
<text x="150" y="288" fill="#e2e8f0" font-size="12" font-family="serif">p − 1.96·SE</text>
<text x="320" y="288" fill="#e2e8f0" font-size="12" font-family="serif">p + 1.96·SE</text>
<text x="200" y="170" fill="#e2e8f0" font-size="12" font-family="serif">95% of all p&#770;</text>
<text x="220" y="45" fill="#d4a853" font-size="13" font-family="serif">distribution of p&#770;</text>
<text x="495" y="285" fill="#94a3b8" font-size="12" font-family="serif">p&#770;</text>
</svg>

Worked Examples

Confidence Interval — Election Poll

Given: A random sample of likely voters; support candidate A. Build a 95% confidence interval for the true support . Step 1 — Check conditions. Random sample ✓. Large counts: and ✓. (10% condition: population of voters ≫ 10,000 ✓.) Step 2 — Standard error (eq. [5]):
Step 3 — Margin of error, :
Step 4 — Interval (eq. [6]):
Answer:
Because the interval includes 0.50, we cannot conclude candidate A has majority support.

Hypothesis Test — Defective Rate

Given: A factory claims its defect rate is . An inspector finds defects in items. Test, at , whether the true rate exceeds 5%. Step 1 — Hypotheses. vs. . Sample proportion . Step 2 — Conditions. , ✓. Step 3 — Test statistic (eq. [7], uses ):
Step 4 — -value (right tail): . Step 5 — Decision. , so reject . Answer:
There is strong evidence the true defect rate exceeds 5%.

Common Misconceptions

The SE Switch: $p_0$ vs. $\hat{p}$

A frequent error is using the same standard error formula for both intervals and tests. They differ on purpose:

  • Confidence intervals use (eq. [5]) — we have no hypothesized value, so we estimate spread from the data.
  • Hypothesis tests use (eq. [7]) — we assume is true, so the spread is computed under .

Mixing these gives a wrong test statistic. Likewise, two-sample tests pool (eq. [9]) but two-sample intervals do not (eq. [8]).

What "95% Confident" Does NOT Mean

A 95% confidence interval does not mean "there is a 95% probability that lies in this interval." Once computed, the interval either contains the fixed (but unknown) or it does not. The 95% refers to the long-run capture rate of the procedure: if we repeated the sampling endlessly, about 95% of the resulting intervals would trap the true .

When the Normal Approximation Fails

Suppose a rare disease has true prevalence and you sample people. Then — the Large Counts condition fails. The sampling distribution of is strongly right-skewed (you'll often see 0, 1, or 2 cases, never negative ones), so a Normal-based interval like can dip below 0 — nonsense for a proportion. Here one must use the exact Binomial or a corrected method (e.g. the Wilson or Agresti–Coull interval).

Connections

Inference for proportions is one face of a unified framework:

Real-World Applications

  1. Political polling — Gallup, Pew, and election forecasters report candidate support as with a "margin of error" that is the term of equation [6].
  2. Clinical trials — comparing recovery proportions between a drug group and placebo group is a textbook two-proportion test (eq. [9]); regulators like the FDA require such evidence.
  3. A/B testing in tech — companies (Amazon, Netflix, Google) test whether a new web layout raises click-through proportion versus the old one.
  4. Quality control — manufacturers monitor the proportion of defective units against a target (Example 2 above).
  5. Epidemiology — estimating disease prevalence or vaccine efficacy (a difference of infection proportions) from survey or trial data.
  6. Market research — gauging the fraction of consumers who prefer a product or recognize a brand.
  7. Public-opinion and census auditing — checking whether the proportion answering "yes" to a referendum question differs from 50%.

Historical Development

  • 1713 — Jacob Bernoulli's Ars Conjectandi states the Law of Large Numbers, proving converges to — the philosophical foundation of using samples to estimate proportions.
  • 1733 — Abraham de Moivre derives the Normal approximation to the binomial, the first version of equation [4].
  • 1812 — Pierre-Simon Laplace generalizes de Moivre's result and applies "inverse probability" to real proportions (e.g. sex ratios at birth).
  • 1908 — William Sealy Gosset ("Student") publishes the -distribution; though aimed at means, it sharpens thinking about small-sample inference relevant to proportions.
  • 1920s — Ronald Fisher formalizes significance testing and the -value, giving the one-sample proportion test its modern form.
  • 1927 — Edwin B. Wilson proposes the Wilson score interval, a more accurate alternative to the simple interval, especially for small or extreme .
  • 1933 — Jerzy Neyman and Egon Pearson introduce the confidence interval concept and the hypothesis-testing decision framework (Type I / II errors).
  • 1934 — Clopper and Pearson publish the exact binomial interval, the gold-standard guaranteed-coverage method.
  • 1998 — Agresti and Coull popularize the "add-2-successes-and-2-failures" adjustment, dramatically improving the textbook interval's accuracy.

Subtleties & Limits

The "obvious" Wald interval has a notoriously erratic actual coverage: for a nominal 95% interval, real coverage can dip well below 90% even for moderately large , oscillating chaotically with — a phenomenon documented by Brown, Cai, and DasGupta (2001). There is no single universally "best" interval: the exact Clopper–Pearson is conservative (over-covers), Wald is unreliable, and Wilson/Agresti–Coull are good compromises. Choosing the right method for small samples, extreme proportions, or clustered/non-independent data (where the variance formula [3] breaks down) remains an active practical concern, motivating bootstrap and Bayesian credible intervals as alternatives.

See Also

Binomial Distribution · Central Limit Theorem · Confidence Intervals · Hypothesis Testing · Inference for Means · Chi-Square Test · Sampling Distributions · Normal Distribution

Before this

Where this leads