Current Topic: Slide Set 5 – Theory-Based Inference for a Population Proportion, p
Today’s coverage begins at slide 31
Next lecture: Slide Set 6 – Inference for One Mean
Deadlines
• HW 3 due Mon Jul 14 @ 11:59 PM
• HW 4 due Fri Jul 18 @ 11:59 PM
• Exam 1 during lecture on Wed Jul 16
– Covers Slide Sets 1–5 & HW 1–3
Exam 1 logistics
• Format: 15–18 MC + 2–4 free-response
• Bring: writing tool(s), calculator, photo ID
• Formula sheet supplied; you may write on the exam
• Tips: read carefully, include context/units, show work for FR, review answers
Office Hours
• Extra OH at noon, Mon (Zoom) this week
• Encouragement: “Visit us in office hours!”
Transition – From Hypothesis Testing to Estimation
Hypothesis testing ⇢ evaluates evidence about population parameters (e.g., H<em>0:p=p</em>0)
Estimation ⇢ uses sample statistics to approximate unknown parameters
Point estimate = single best guess for a parameter
• One-proportion case: p^ estimates p
Natural sampling variability ⇒ p^ rarely equals p exactly
• We therefore add a “wiggle room” around the point estimate
• This wiggle room = Margin of Error (MOE)
Confidence Intervals – Conceptual Framework
A Confidence Interval (CI) gives a range of plausible values for the parameter
• Generic structure: point estimate±margin of error
Margin of Error formula
• MOE=multiplier×standard error
• Multiplier = critical value from a probability distribution (typically z for large-sample proportion CI)
• Standard Error (SE) estimates the SD of sampling distribution
Standard Error vs Margin of Error
Standard Error
• Meaning: typical variability of p^ from sample to sample
• Formula (unknown p): SE=np(1−p)
• Formula (practical—substitute p^): SE=np^(1−p^)
Margin of Error
• Adjusts SE by desired confidence level
• MOE=z∗×SE
One-Proportion Confidence Interval – Working Formula
Because p is unknown, replace it with p^ in the SE
Final form (large-sample, theory-based CI): p^±z∗np^(1−p^)
Confidence level refers to the long-run success rate of the method—not probability that a specific interval contains p
• e.g., 95 % CI: If we repeated the study many times, ≈95 % of resulting intervals would include the true p
A single computed CI either does (100 % fact) or does not (0 %) contain p—we just don’t know which
Conditions for Valid One-Proportion CI (Theory-Based)
Independence (or random sampling / random assignment)
• Practically: simple random sample, or population ≥10× sample size for sampling w/o replacement
Success–Failure condition
• At least 10 successes & 10 failures in the sample
• Check using np^≥10 and n(1−p^)≥10
Three-Step CI Procedure
Check conditions (Independence & Success–Failure)
Calculate CI using p^±z∗SE
Interpret in context (include parameter in words, level of confidence, and numeric bounds)
Visual Insights (Slides 36–37)
Simulated plot: many sample proportions (black dots) with their individual CIs (blue lines); true p is a red line
• Some intervals miss the true line; most capture it according to confidence level
Comparison of widths
• 90 % CI ⇒ narrowest
• 95 % CI ⇒ moderate
• 99 % CI ⇒ widest
• Graphs demonstrate trade-off between precision & confidence
Worked Example 1 – Gallup Poll on Positive Math Feelings
Population: U.S. adults
Sample: n=5136; p^=0.47 reported “only positive feelings” about math
Software confirmation (R, stats250sbi::proptest) matches 98 % CI output
• p-value component shown because function defaults to H</em>0:p=0.5, but main take-away is CI
Interpretation Questions (slide 47)
• True statements:
– (b) Range of plausible p values
– (c) 95 % of similarly constructed intervals capture p
– (e) Standard wording of 95 % confidence
• False/misleading:
– (a) Interval does NOT give exact value
– (d) Probability statement about a specific interval is incorrect
Additional prompts
• 95 % CI using same data would be narrower than 98 % CI (slide 48)
• Interval does not guarantee that >75 % of Gen Zers hold the view; need to inspect if entire CI >0.75 (slide 49)
Computational Tooling (R)
Function: prop_test(x, n, conf.level) in package stats250sbi
• Inputs: successes (x), sample size (n), desired confidence level
• Outputs: test statistic, p-value, point estimate, and CI
Key Takeaways & Looking Ahead
Theory-based CI for a single proportion relies on conditions ensuring approx. normality of p^
Critical value ties statistical certainty to interval width; trade-off between precision and confidence
Always articulate CI in context and avoid probability fallacy for fixed intervals
Next unit: extend inference methods from proportions to population means (t-based techniques)