The Simple AP® Statistics Unit 3 Cheat Sheet: Inference for Categorical Data: Proportions
www.albert.io
3.1–3.2 Estimators & Sampling Dist. of p̂
Point Estimates
Point estimator: a statistic used to estimate a parameter: p̂ estimates p, x̄ estimates μ.
Unbiased: the sampling distribution is centered right at the parameter (true of p̂ and x̄).
Bias vs. Variability
Low spreadHigh spread
UnbiasedBestOn target, scattered
BiasedTight, off targetWorst
Center, Spread, Shape
FeatureFormula / rule
Meanp
SD√(p(1 − p)/n)
ShapeNormal if np, n(1 − p) ≥ 10
Conditions
10% condition: the sample is ≤ 10% of the population → the SD formula works.
Large Counts: np ≥ 10 and n(1 − p) ≥ 10 → the shape of p̂'s distribution is approx. normal.
Worked Example
Setup: p = 0.60, n = 100. Mean = 0.60; SD = √(0.6 · 0.4/100) ≈ 0.049, about 5 points.
Check: 100(0.6) = 60 ≥ 10 and 100(0.4) = 40 ≥ 10, so the distribution is approx. normal.
Probability: P(p̂ < 0.55) ≈ 0.154. Not unusual.
3.3 Confidence Interval for p
The Idea
Confidence interval: a range of believable values for the true proportion p, from one sample.
Formula: p̂ ± z* × √(p̂(1 − p̂)/n), where p̂ is the sample proportion and n the sample size.
Confidencez*
90%1.645
95%1.960
99%2.576
Conditions
Random: the data come from a random sample or a randomized experiment, not volunteers.
10%: the sample is no more than 10% of the population (when sampling w/o replacement).
Large Counts: at least 10 successes and at least 10 failures in the sample (here 280, 220).
Worked Example
Setup: 280 of 500 randomly chosen students support a later start, so p̂ = 0.56.
Math: SE = √(0.56 × 0.44/500) ≈ 0.0222; 0.56 ± 1.96(0.0222) = (0.516, 0.604) in the end.
Conclude: we're 95% confident the interval from 0.516 to 0.604 captures the true proportion of all students who support a later start.
3.4 Interpreting & Using a CI
Interpret the Interval
Template: "We are __% confident that the interval from __ to __ captures the true proportion of ___."
95% confident: about 95% of intervals made this way from many samples would capture p.
Not: "a 95% chance p is in this interval." The true p is fixed; it's the interval that varies.
Margin of Error
Margin of error: half the interval's width; here 1.96 × 0.0222 ≈ 0.044 (about 4.4 points).
ChangeWidth
Higher confidenceWider
Bigger sampleNarrower
4× the sampleHalf as wide
Choosing a Sample Size
Formula: n ≥ (z*/ME)² × p*(1 − p*). With no earlier guess for p*, use 0.5 to be safe.
Example: 95% w/ ME ≤ 0.03 → n ≥ (1.96/0.03)²(0.25) ≈ 1,067.1 → round up to 1,068.
Better guess: if a pilot study suggests p* ≈ 0.2, use it; you'll need a smaller sample.
Justify a Claim
Inside the interval = plausible value. Outside = convincing evidence against it.
Confidence level: a value outside a 95% interval might be inside a 99% interval; say which.
Example: (0.516, 0.604) is all above 0.50 → evidence that a majority supports it.
3.5–3.7 Testing a Claim About p
Hypotheses
Null hypothesis H0: p = p0, the "no change" or "no effect" claim that we test against.
Alternative Ha: p > p0, p < p0 or p ≠ p0, based on the exact wording of the question.
Conditions
Large Counts: np0 ≥ 10 and n(1 − p0) ≥ 10, using the null value p0, not p̂. Here 250 and 250.
Test Statistic
z = (p̂ − p0) ÷ √(p0(1 − p0)/n): how many SEs the sample is from the null value p0.
Example: p0 = 0.50, p̂ = 0.56, n = 500 → SE ≈ 0.0224, so z ≈ 2.68 standard errors.
The p-Value
p-value: if H0 were true, the chance of getting a result at least as extreme as ours.
Decision
p-valueDecision
≤ α (e.g., 0.05)Reject H0
> αFail to reject H0
Reject: "We have convincing evidence that the true proportion is greater than 0.50."
Fail to reject: "We do NOT have convincing evidence that…" Never "accept H0."
3.8 Errors & Power
Type I & Type II
H0 trueH0 false
Reject H0Type I errorCorrect
Fail to rejectCorrectType II error
Type I: rejecting a TRUE null (a false alarm). Its probability is α, the significance level.
Type II: failing to reject a FALSE null, so you miss an effect that really does exist.
Memory aid: Type I = crying wolf when there's no wolf; Type II = missing a real wolf.
In Context
Example: testing whether a new drug works better. Type I: say it works when it doesn't.
Type II: miss a drug that really is better, so patients lose out on a better treatment option.
Power
Power: the chance a test correctly rejects a false null, i.e., detects a real effect when it's there.
Trade-off: making α smaller cuts Type I errors but raises the chance of a Type II error.
To raise powerTrade-off
Bigger sampleCosts more
Higher αMore Type I errors
3.9–3.11 CI for p1 − p2
Formula & Conditions
Interval: (p̂1 − p̂2) ± z* × SE, where each group keeps its own p̂ in the SE formula.
Random: 2 independent random samples, or 2 groups in a randomized experiment.
10%: each sample is no more than 10% of its population (skip this for an experiment).
Large Counts: at least 10 successes and 10 failures in EACH of the two groups.
Worked Example
Data: 124 of 200 seniors (0.62) vs. 125 of 250 juniors (0.50) support a new policy.
Math: difference = 0.62 − 0.50 = 0.12; SE ≈ 0.0467; 95% CI = (0.029, 0.211).
Why wider? Two samples each add their own variability, so the SE of a difference is bigger.
Interpret: we're 95% confident the true difference (seniors − juniors) is between 0.029 and 0.211.
Justify a Claim
IntervalMeans
All above 0Group 1 higher
All below 0Group 2 higher
Contains 0No clear difference
Here: the whole interval is above 0, so a higher proportion of seniors support it.
3.12–3.13 Test for p1 − p2
Setup
H0: p1 = p2. Ha: p1 > p2, p1 < p2 or p1 ≠ p2. Define both p's in context, w/ the order.
Pooled proportion: combine both groups, p̂c = (x1 + x2) ÷ (n1 + n2), since H0 says they're equal.
Conditions: random, 10% and Large Counts (use the pooled proportion for the counts).
Worked Example
Pooled: p̂c = 249/450 ≈ 0.553 overall.
Test statistic: pooled SE ≈ 0.0472, so z = 0.12/0.0472 ≈ 2.54 → two-sided p-value ≈ 0.011.
p-value meaning: if support were truly equal, a gap this big would happen about 1.1% of the time.
Conclude: 0.011 < 0.05, so reject H0: convincing evidence the proportions differ.
Samples vs. Experiments
Random assignment lets you claim cause and effect. Random sampling lets you generalize.
IntervalTest
Unpooled SEPooled SE
Uses p̂1, p̂2Uses p̂c
3.14–3.15 Chi-Square Tests
Which Test?
Homogeneity: 2+ samples or groups, 1 categorical var. Independence: 1 sample, 2 vars.
Expected Counts
Expected = (row total)(column total)/(table total) → what each cell would hold if H0 were exactly true (no link between the variables).
df = (rows − 1)(columns − 1); a 3 × 2 table → df = (2)(1) = 2. Never count the Total row or column.
χ² = Σ (O − E)²/E: big gaps between observed & expected → large χ² → small p-value.
Hypotheses (in words)
H0: no association between [var 1] and [var 2] for [population] (they're independent).
Ha: there is an association between [var 1] and [var 2] for [population] (they're not independent).
Conditions
Random: one random sample. 10%: n ≤ 10% of the population. Expected counts: all ≥ 5 here.
Worked Example
Ex: 1 random sample of 300 students, grade (3) × club (y/n): χ² ≈ 12.68, df = 2 → p-value ≈ 0.0018.
Conclude: 0.0018 < 0.05 → reject H0; convincing evidence grade & club participation are associated for all students at this high school.