3.1–3.2 Estimators & Sampling Dist. of p̂
Point Estimates
Point estimator: a statistic used to estimate a parameter: p̂ for p, x̄ for μ, s for σ (s is slightly biased).
Unbiased estimator: mean of its sampling distribution = the parameter it estimates. p̂ and x̄ are unbiased.
Bias vs. Variability
| Low variability | High variability | |
|---|---|---|
| Unbiased | Best: tight on target | On target, spread out |
| Biased | Tight, off target | Off target, spread |
Fix variability: increase n. Fix bias: better sampling design (random selection, no undercoverage).
Bigger n does NOT reduce bias: a huge voluntary-response sample is still biased, just precisely wrong.
Center, Spread, Shape
| Feature | Formula / rule |
|---|---|
| Mean | μp̂ = p |
| SD | σp̂ = √(p(1 − p)/n) |
| Shape | Normal if np, n(1 − p) ≥ 10 |
Conditions
10% condition: n ≤ 10% of the population when sampling w/o replacement → the SD formula is valid (independence).
Large Counts: np ≥ 10 and n(1 − p) ≥ 10 → sampling distribution of p̂ is approximately normal.
Worked Example
Setup: p = 0.60, n = 100. Mean = 0.60; SD = √(0.6 · 0.4/100) ≈ 0.049. Counts: 60 and 40 ≥ 10 → normal.
Probability: P(p̂ < 0.55) = normalcdf(−1E99, 0.55, 0.60, 0.049) ≈ 0.154 (z ≈ −1.02) → not unusual.
n effect: n = 400 → SD = √(0.24/400) ≈ 0.024, half the SD at n = 100 (4× n → ½ SD). Same mean, 0.60.
3.3 Confidence Interval for p
The Idea
Confidence interval: a range of plausible values for the parameter p, built from one sample statistic p̂.
Form: statistic ± (critical value)(standard error) = p̂ ± z*√(p̂(1 − p̂)/n). Use p̂ in the SE, not p (p is unknown).
Point estimate: p̂ = x/n is the best single guess for p; the interval adds a margin to show its uncertainty.
| Confidence level | z* |
|---|---|
| 90% | 1.645 |
| 95% | 1.960 |
| 99% | 2.576 |
Conditions (check all 3)
Random: data come from a random sample or a randomized experiment; otherwise no inference is valid.
10%: n ≤ 10% of the population when sampling w/o replacement (so trials are ≈ independent).
Why normal?: Large Counts lets us use z* from the normal model for p̂'s sampling distribution, so the CI works.
Large Counts: np̂ ≥ 10 and n(1 − p̂) ≥ 10 → sampling distribution of p̂ approx. normal. Use successes & failures.
Worked Example (4 steps)
State: 95% CI for p = true proportion of all students at the school who support a later start time.
Plan: one-sample z interval for p. Random sample ✓; 500 < 10% of students ✓; 280 and 220 ≥ 10 ✓.
Do: p̂ = 280/500 = 0.56; SE = √(0.56 · 0.44/500) ≈ 0.0222; 0.56 ± 1.96(0.0222) = (0.516, 0.604) exactly.
Conclude: "We are 95% confident that the interval from 0.516 to 0.604 captures the true proportion of all students at this school 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 [all ___ who ___]."
Confidence level: if we took many random samples and built a CI from each, about 95% of them would capture p.
Not: "95% chance p is in this interval"; not "95% of students support." p is fixed; the interval is what varies.
Margin of Error
ME = z*√(p̂(1 − p̂)/n) = half the width. Here 1.96(0.0222) ≈ 0.044 → estimate ± 4.4 percentage points.
| Change | Effect on ME / width |
|---|---|
| ↑ confidence level | ↑ wider (bigger z*) |
| ↑ sample size n | ↓ narrower (÷√n) |
| 4× n | Half the ME |
| p̂ closer to 0.5 | Slightly wider |
ME covers only sampling variability, not bias from undercoverage, nonresponse or bad question wording.
Choosing n
Sample size: n ≥ (z*/ME)² p*(1 − p*). No prior guess → use p* = 0.5 (gives the largest, safest n of all).
Example: 95%, ME ≤ 0.03 → n ≥ (1.96/0.03)²(0.25) ≈ 1,067.1 → round UP to n = 1,068 people in the sample.
Prior estimate: if a pilot study gives p* ≈ 0.2, use it: n ≥ (1.96/0.03)²(0.2)(0.8) ≈ 683 → smaller n needed.
Justify a Claim
Claim check: a value inside the CI is plausible; outside → convincing evidence against it (at that level).
Level matters: a 95% CI that excludes 0.50 might include it at 99%; state the confidence level with every claim.
Example: (0.516, 0.604) is entirely above 0.50 → convincing evidence that a majority supports a later start.
3.5–3.7 Testing a Claim About p
Hypotheses
Null H0: p = p0, the claim of no change / no effect. Alternative Ha: p > p0, p < p0 or p ≠ p0.
Conditions (use p0!)
Large Counts: np0 ≥ 10 and n(1 − p0) ≥ 10. Use the NULL value p0, not p̂, b/c we assume H0 is true.
Test Statistic
z = (p̂ − p0)/√(p0(1 − p0)/n): how many SEs the sample result lies from the null value p0, if H0 is true.
Example: H0: p = 0.50, p̂ = 0.56, n = 500 → SE = √(0.25/500) ≈ 0.0224; z = 0.06/0.0224 ≈ 2.68 SEs above.
The p-Value
p-value: probability, assuming H0 is true, of a statistic as extreme as or more extreme than observed.
Example: z = 2.68 → one-sided p-value ≈ 0.0036; two-sided (p ≠ 0.5) ≈ 0.0073 (double the one tail).
Decision & Conclusion
| p-value vs. α | Decision | Say |
|---|---|---|
| p ≤ α | Reject H0 | Convincing evidence for Ha |
| p > α | Fail to reject H0 | NOT convincing evidence for Ha |
Conclusion template: "Because p-value 0.0036 < α = 0.05, we reject H0. We have convincing evidence that the true proportion of all ___ is greater than 0.50."
p-value is NOT the probability H0 is true, or the probability the result is due to chance alone (common MC trap).
3.8 Errors & Power
Type I & Type II
| H0 true | H0 false | |
|---|---|---|
| Reject H0 | Type I error (α) | Correct (power) |
| Fail to reject | Correct | Type II error (β) |
Type I: reject a TRUE H0 (a false alarm). P(Type I) = α, the significance level you chose before collecting data.
Type II: fail to reject a FALSE H0 (a missed effect).
Memory aid: Type I = "crying wolf" (alarm w/ no wolf); Type II = "missing the wolf" (no alarm when there is one).
Which could happen? Rejected H0 → only a Type I is possible. Failed to reject → only a Type II.
In Context
Example (Ha: new drug cures more): Type I = conclude it works better when it doesn't → patients switch for nothing.
Type II = miss a drug that really is better → patients lose a better treatment. Give the consequence.
Power
Power = 1 − β = P(reject H0 | H0 is false) = the chance of detecting a real effect when it truly exists.
| To ↑ power | Trade-off |
|---|---|
| ↑ sample size n | Costs more |
| ↑ α (e.g., 0.10) | More Type I errors |
| Bigger true effect | Not under our control |
α vs. β: lowering α (fewer Type I) raises β (more Type II) for a fixed n; only a bigger n lowers both at once.
3.9–3.11 CI for p1 − p2
Formula & Conditions
Interval: (p̂1 − p̂2) ± z* · SE, using an UNPOOLED standard error (each group keeps its own sample p̂).
Unpooled SE = √(p̂1q̂1/n1 + p̂2q̂2/n2), q̂ = 1 − p̂.
Random: 2 independent random samples, OR 2 groups from a randomized experiment (state which).
10% for each sample (not needed for an experiment). Large Counts: all 4 counts (successes, failures) ≥ 10.
Counts here: 124, 76, 125, 125 all ≥ 10 ✓; 200 < 10% of seniors and 250 < 10% of juniors ✓ (random samples).
Worked Example
Data: 124 of 200 seniors (p̂1 = 0.62) vs. 125 of 250 juniors (p̂2 = 0.50) support the new start-time policy.
SE = √(0.62 · 0.38/200 + 0.5 · 0.5/250) ≈ 0.0467; 95% CI: 0.12 ± 1.96(0.0467) = (0.029, 0.211), ME ≈ 0.091.
Interpret: "We are 95% confident the interval 0.029 to 0.211 captures the true difference (seniors − juniors)."
Why variances add: each sample adds its own sampling variability to the difference, so its SE is bigger.
Justify a Claim
| Interval | Means |
|---|---|
| All > 0 | Evidence p1 > p2 |
| All < 0 | Evidence p1 < p2 |
| Contains 0 | No convincing difference |
Here: (0.029, 0.211) is entirely above 0 → convincing evidence a higher proportion of seniors support it.
3.12–3.13 Test for p1 − p2
Setup
H0: p1 − p2 = 0 (p1 = p2). Ha: p1 − p2 > 0, < 0 or ≠ 0. Define both p's in context, w/ the subtraction order.
Pooled proportion: p̂c = (x1 + x2)/(n1 + n2) b/c H0 says both groups share one common proportion.
Large Counts (pooled): n1p̂c, n1(1 − p̂c), n2p̂c, n2(1 − p̂c) ≥ 10.
Test Statistic
z = (p̂1 − p̂2 − 0)/√(p̂c(1 − p̂c)(1/n1 + 1/n2)).
Worked Example
Same data: p̂c = 249/450 ≈ 0.553; SE = √(0.553 · 0.447 · (1/200 + 1/250)) ≈ 0.0472 (pooled SE).
z = 0.12/0.0472 ≈ 2.54; Ha: p1 ≠ p2 → p-value ≈ 0.011.
Conclude: 0.011 < 0.05 → reject H0; convincing evidence the proportions differ for seniors vs. juniors.
p-value meaning: if support were truly equal, a difference of 0.12 or more (either way) would occur ≈ 1.1% of the time.
Conditions check: 200(0.553) ≈ 111, 200(0.447) ≈ 89, 250(0.553) ≈ 138, 250(0.447) ≈ 112, all ≥ 10 ✓.
Experiments vs. Samples
Random assignment → cause-and-effect conclusion. Random sampling → generalize to the populations.
| CI | Test |
|---|---|
| Unpooled SE | Pooled SE |
| Uses p̂1, p̂2 | Uses p̂c |
3.14–3.15 Chi-Square Tests
Choose by the Design
| Homogeneity | Independence | |
|---|---|---|
| Samples | 2+ (or groups) | 1 |
| Variables | 1 categorical | 2 categorical |
| Question | same distrib.? | associated? |
| H0 says | no difference | no association |
Key question: how were the data collected? Separate samples per group → homogeneity. One sample, then classify each subject → independence.
Expected Counts
Expected = (row total)(column total)/(table total) → what each cell would hold if H0 were exactly true.
Expected counts need not be whole numbers; keep decimals (51.67), never round them to integers.
df = (rows − 1)(columns − 1); a 3 × 2 table → df = (2)(1) = 2. Never count the Total row or column in r or c.
Hypotheses (in words)
H0: there is no association between [var 1] and [var 2] for [population] (they're independent there).
Ha: there is an association between [var 1] and [var 2] for [population] (they're not independent).
Conditions
Conditions: random sample(s) or random assignment; 10%; all EXPECTED counts ≥ 5 (list the smallest).
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 of an association between grade level & club participation for all students at this local high school ✓.