Skip to content Confidence Intervals for Proportions - Interactive Lesson | Study MondoConfidence Intervals for Proportions - Complete Interactive Lesson
Part 1: Inference for Proportions Basics
๐ Inference for Proportions
Part 1 of 7 โ Inference for Proportions Basics
The Setting
We have a sample proportion hatp and want to make inferences about the population proportion p.
Conditions for Inference
- Random: Data from a random sample or experiment
- Normal: npgeq10 and n(1โp)geq10 (use for CIs)
Standard Error
SE(hatp)=sqrtfrachatp(1โha
Key Distinction
| Purpose | Formula for SD |
|---|
| Confidence interval | SE=sqrthatp(1โhatp)/n |
| Hypothesis test | (use value) |
Conditions Check ๐งฎ
In a random sample of 200 voters, 120 support a candidate. hatp=0.60.
1) nhatp=?
2)
Part 2: Confidence Intervals for Proportions
๐ Confidence Intervals for Proportions
Part 2 of 7 โ One-Sample Z Interval
Formula
hatppmzโsqrt
Part 3: Hypothesis Tests for Proportions
โ๏ธ Hypothesis Tests for Proportions
Part 3 of 7 โ One-Sample Z Test
Steps
- State hypotheses: H0โ:p=p0โ vs. (or or )
Part 4: Two-Proportion Inference
๐ Two-Proportion Inference
Part 4 of 7 โ Comparing Two Proportions
Confidence Interval for p1โโp2โ
Part 5: Sample Size Determination
๐ Sample Size Determination
Part 5 of 7 โ Planning a Study
Finding the Required Sample Size
For a desired margin of error ME at confidence level zโ:
Part 6: Problem-Solving Workshop
๐ Problem-Solving Workshop
Part 6 of 7 โ AP-Style Practice
AP FRQ Template for Inference
- State: Name the procedure and define parameters
- Plan: Check conditions (Random, Normal, Independent)
- Do: Show calculations
- Conclude: Interpret in context
Common Mistakes to Avoid
- Using hatp in the test statistic SE (should use p0โ)
- Using in the CI SE (should use )
Part 7: Mixed Review
๐ Mixed Review
Part 7 of 7 โ Comprehensive Review
Quick Reference
| Procedure | SE Formula | When to Use |
|---|
| 1-prop CI | sqrthatp(1โhatp)/n | Estimating |
hatp
Independent: Sample <10 of population (10% condition) t
p
)
n
SE=sqrtp0โ(1โp0โ)/n
n(1โhatp)=?
3) Is the Normal condition met? (yes/no)
frachatp(1โhatp)n
Common Critical Values
| Confidence Level | zโ |
|---|
| 90% | 1.645 |
| 95% | 1.960 |
| 99% | 2.576 |
Interpretation
โWe are [C]% confident that the true proportion of [context] is between [lower] and [upper].โ
Example
n=400, hatp=0.35, 95% CI:
0.35pm1.96sqrtfrac0.35times0.65400=0.35pm0.0467
CI: (0.303,0.397)
Confidence Interval ๐งฎ
n=500, hatp=0.40, 95% CI.
1) SE=sqrt0.40times0.60/500 = ? (round to 4 decimal places)
2) Margin of error = 1.96timesSE = ? (round to 4 places)
3) Lower bound of CI? (round to 3 places)
Haโ:pneqp0โ
Check conditions (Random, Normal, Independent)Calculate the test statistic:z=frachatpโp0โsqrtp0โ(1โp0โ)/n
- Find the p-value
- Conclude in context
P-Value Decision Rules
| If p-value | Decision |
|---|
| leqalpha | Reject H0โ |
| >alpha | Fail to reject H0โ |
Example
Claim: p=0.5. Sample: hatp=0.56, n=200.
z=frac0.56โ0.50sqrt0.50times0.50/200=frac0.060.0354=1.70
Hypothesis Test ๐งฎ
H0โ:p=0.30, Haโ:p>0.30. n=150, hatp=0.36.
1) SE=sqrt0.30times0.70/150 = ? (round to 4 places)
2) z=(0.36โ0.30)/SE = ? (round to 2 places)
3) Is this a one-tailed or two-tailed test?
(hatp1โโhatp2โ)pmzโsqrtfrachatp1โ(1โhatp1โ)n1โ+fra
Hypothesis Test for p1โโp2โ
H0โ:p1โ=p2โ (or p1โโp2โ=0)
Use the pooled proportion:
hatpcโ=fracx1โ+x2โn1โ+n2โ
z=frac(hatp1โโhatp2โ)โ0sqrthatpcโ(1โhatpcโ)left(frac1n
Key Difference
- CI: Use individual hatp1โ and hatp2โ in the SE
- Test: Use the pooled hatpcโ (assuming H0โ:p1โ=p2โ is true)
Two-Proportion Test ๐งฎ
Group 1: x1โ=45, n1โ=100. Group 2: x2โ=30, n2โ=100.
1) hatp1โ=?
2) Pooled hatpcโ=(45+30)/(100+100)=?
3) hatp1โโhatp2โ=?
n=left(fraczโMEright)2hatp(1โhatp)
If no prior estimate of p exists, use hatp=0.5 (maximizes n, conservative).
n=left(fraczโMEright)2(0.25)
Example
Want a 95% CI with margin of error leq0.03:
n=left(frac1.960.03right)2(0.25)=(65.33)2(0.25)=4268.4(0.25)=1067.1
Round up: n=1068
๐ Always round UP to the next whole number when computing sample size.
Sample Size Calculation ๐งฎ
Desired: 95% CI, margin of error leq0.04, no prior estimate of p.
1) What value of hatp should you use?
2) n=(1.96/0.04)2times0.25=? (round to nearest integer)
3) What n do you report? (remember rounding rule)
p0โ
Saying โaccept H0โโ instead of โfail to reject H0โโ Forgetting to check conditionsNot interpreting in contextAP Practice ๐งฎ
A poll finds 52% of 1000 voters favor a candidate. Test H0โ:p=0.50 vs. Haโ:p>0.50 at alpha=0.05.
1) z=(0.52โ0.50)/sqrt0.25/1000 = ? (round to 2 places)
2) p-value approxP(Z>z)approx? (round to 3 places)
3) Decision at alpha=0.05? (reject/fail to reject)
p
| 1-prop test | sqrtp0โ(1โp0โ)/n | Testing H0โ:p=p0โ |
| 2-prop CI | sqrtfrachatp1โ(1โhatp1โ)n1โ+frachatp2โ(1โhatp2โ)n2โ | Estimating p1โโp2โ |
| 2-prop test | sqrthatpcโ(1โhatpcโ)(1/n1โ+1/n2โ) | Testing H0โ:p1โ=p2โ |
AP Exam Tips
- Always state your hypotheses using the parameter p, not hatp
- Check all three conditions: Random, Normal, Independent
- Give a conclusion IN CONTEXT
Final Challenge ๐งฎ
n=800, hatp=0.65, 95% CI.
1) Margin of error =1.96timessqrt0.65times0.35/800approx? (round to 3 places)
2) Lower bound of CI?
3) Upper bound of CI?
c
hatp2โ(1โhatp2โ)
n2โ
1
โ
+
f
r
a
c
1
n2โ
r
i
g
h
t
)