Solved Exercises on Confidence Interval for Population Proportion in Grade 12

Master confidence intervals for population proportion: sample proportions, margin of error, and statistical inference through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Proportion CI
Exercise 1
In a survey of 400 voters, 220 support a particular candidate. Construct a 95% confidence interval for the true proportion of voters who support this candidate.
Definition:

Confidence Interval for Proportion: An interval estimate for the population proportion p, calculated as: p̂ ± z*√[p̂(1-p̂)/n], where p̂ is the sample proportion.

Method:
  1. Calculate the sample proportion: p̂ = x/n
  2. Determine the confidence level and corresponding z-score
  3. Calculate the standard error: √[p̂(1-p̂)/n]
  4. Calculate the margin of error: z*√[p̂(1-p̂)/n]
  5. Construct the confidence interval: p̂ ± margin of error
Given
x=220, n=400
Sample Prop
p̂=0.55
Interval
[0.501, 0.599]
Step 1: Calculate the sample proportion

p̂ = x/n = 220/400 = 0.55

Step 2: Find the critical z-value for 95% confidence

For 95% confidence, z₀.₀₂₅ = 1.96

Step 3: Calculate the standard error

SE = √[p̂(1-p̂)/n] = √[0.55(1-0.55)/400] = √[0.55(0.45)/400] = √[0.2475/400] = √0.00061875 ≈ 0.0249

Step 4: Calculate the margin of error

ME = z × SE = 1.96 × 0.0249 ≈ 0.0488

Step 5: Construct the confidence interval

CI = p̂ ± ME = 0.55 ± 0.0488 = [0.5012, 0.5988]

CI = [0.501, 0.599]
Final answer:

We are 95% confident that the true proportion of voters who support the candidate is between 50.1% and 59.9%.

Applied rules:

• Proportion CI formula: p̂ ± z*√[p̂(1-p̂)/n]

• Standard error: SE = √[p̂(1-p̂)/n] for proportions

• Success-failure condition: np̂ ≥ 10 and n(1-p̂) ≥ 10 for normal approximation

Key notes:

• Check: np̂ = 400 × 0.55 = 220 ≥ 10 and n(1-p̂) = 400 × 0.45 = 180 ≥ 10 ✓

• The interval suggests the candidate likely has majority support (above 50%)

• This is the basis for interpreting election polls

2 Different Confidence Levels
Exercise 2
A quality control inspector finds that 45 out of 200 items are defective. Construct 90%, 95%, and 99% confidence intervals for the true proportion of defective items. How does the confidence level affect the interval width?
Definition:

Confidence level effect: Higher confidence levels result in wider intervals because they require larger critical values to capture more of the sampling distribution.

Given
x=45, n=200, p̂=0.225
90% CI
[0.177, 0.273]
95% CI
[0.169, 0.281]
99% CI
[0.154, 0.296]
Step 1: Calculate the sample proportion

p̂ = x/n = 45/200 = 0.225

Step 2: Calculate the standard error

SE = √[p̂(1-p̂)/n] = √[0.225(1-0.225)/200] = √[0.225(0.775)/200] = √[0.174375/200] = √0.000871875 ≈ 0.0295

Step 3: Find critical z-values and calculate margins of error

90% confidence: z₀.₀₅ = 1.645, ME = 1.645 × 0.0295 ≈ 0.0485

95% confidence: z₀.₀₂₅ = 1.96, ME = 1.96 × 0.0295 ≈ 0.0578

99% confidence: z₀.₀₀₅ = 2.576, ME = 2.576 × 0.0295 ≈ 0.0760

Step 4: Construct confidence intervals

90% CI: 0.225 ± 0.0485 = [0.1765, 0.2735]

95% CI: 0.225 ± 0.0578 = [0.1672, 0.2828]

99% CI: 0.225 ± 0.0760 = [0.1490, 0.3010]

90% CI: [0.177, 0.273], 95% CI: [0.169, 0.281], 99% CI: [0.154, 0.296]
Final answer:

Higher confidence levels produce wider intervals. The 99% CI is widest, followed by 95%, then 90%. This reflects the trade-off between confidence and precision.

Applied rules:

• Confidence-precision tradeoff: Higher confidence requires wider intervals

• Critical values: z₀.₀₅ = 1.645, z₀.₀₂₅ = 1.96, z₀.₀₀₅ = 2.576

• Interval width: Proportional to the critical value

Key notes:

• Higher confidence levels increase certainty but decrease precision

• The interval width increases as the critical value increases

• Quality control often uses 95% confidence as a standard

3 Margin of Error Analysis
Exercise 3
A marketing team wants to estimate the proportion of customers who prefer their new product with a margin of error of at most 3%. The preliminary estimate suggests that about 40% of customers prefer the new product. What sample size is needed for 95% confidence?
Definition:

Margin of Error for Proportions: The maximum likely difference between the sample proportion and the population proportion. Formula: ME = z*√[p̂(1-p̂)/n]

Given
ME≤0.03, p̂=0.4, z=1.96
Formula
n ≥ 1025
Sample Size
n ≥ 1025
Step 1: Start with the margin of error formula

ME = z*√[p̂(1-p̂)/n]

Step 2: Solve for minimum sample size

We want ME ≤ 0.03, so z*√[p̂(1-p̂)/n] ≤ 0.03

Therefore: √[p̂(1-p̂)/n] ≤ 0.03/z

And: p̂(1-p̂)/n ≤ (0.03/z)²

Finally: n ≥ [z² × p̂(1-p̂)] / (ME)²

Step 3: Substitute known values

n ≥ [1.96² × 0.4(1-0.4)] / (0.03)²

n ≥ [3.8416 × 0.4(0.6)] / 0.0009

n ≥ [3.8416 × 0.24] / 0.0009

n ≥ 0.921984 / 0.0009 = 1024.43

Step 4: Round up to nearest integer

Since n must be an integer, we need n ≥ 1025

n ≥ 1025 to achieve ME ≤ 0.03
Final answer:

A sample size of at least 1025 customers is needed to achieve a margin of error of at most 3% with 95% confidence.

Applied rules:

• Sample size formula: n ≥ [z² × p̂(1-p̂)] / (ME)²

• Conservative estimate: When no prior estimate exists, use p̂ = 0.5 for maximum variability

• Rounding rule: Always round up to ensure requirements are met

Key notes:

• The sample size formula shows the quadratic relationship between precision and sample size

• More precise estimates require significantly larger samples

• When p̂ = 0.5, the variability p̂(1-p̂) is maximized at 0.25

Proportion Confidence Intervals Rules and Methods
\( CI = \hat{p} \pm z^* \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \)
Confidence Interval Formula for Proportion
\( SE = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \)
Standard Error for Proportion
\( n = \frac{z^2 \hat{p}(1-\hat{p})}{ME^2} \)
Sample Size Formula for Proportion
90% Confidence
z = 1.645
Critical Value
95% Confidence
z = 1.96
Critical Value
99% Confidence
z = 2.576
Critical Value
Key definitions:

Population Proportion (p): The true proportion of successes in the entire population

Sample Proportion (p̂): The proportion of successes in the sample, calculated as p̂ = x/n

Success-Failure Condition: Requirements for normal approximation: np̂ ≥ 10 and n(1-p̂) ≥ 10

Binomial Setting: Fixed number of trials, constant probability of success, independent trials

Complete methodology:
  1. Verify conditions: Check np̂ ≥ 10 and n(1-p̂) ≥ 10
  2. Calculate sample proportion: p̂ = x/n
  3. Find critical value: Look up z-score for desired confidence level
  4. Calculate standard error: SE = √[p̂(1-p̂)/n]
  5. Calculate margin of error: ME = z* × SE
  6. Construct interval: CI = p̂ ± ME
Tip 1: Always check the success-failure condition before using normal approximation.
Tip 2: When planning sample size and no prior estimate exists, use p̂ = 0.5 for conservative estimate.
Tip 3: The maximum value of p(1-p) occurs at p = 0.5, equal to 0.25.
Tip 4: Larger samples produce narrower confidence intervals for proportions.
Key insight: Proportion confidence intervals are fundamental in polling, quality control, and market research.
Practical application: Used in political polling, medical studies, and product testing.
Key Properties:

• Interval width: 2 × ME = 2 × z*√[p̂(1-p̂)/n]

• Standard error: Maximum when p̂ = 0.5

• Success-failure condition: np̂ ≥ 10 and n(1-p̂) ≥ 10

• Confidence-precision tradeoff: Higher confidence → Wider interval

Solution: Exercises 4 to 5
4 Sample Size Planning
Exercise 4
A researcher wants to estimate the proportion of teenagers who own smartphones with a margin of error of at most 4%. If no prior estimate is available, what sample size is needed for 90% confidence?
Definition:

Conservative sample size planning: When no prior estimate is available, use p̂ = 0.5 to maximize the required sample size, ensuring the sample will be sufficient regardless of the true proportion.

Given
ME≤0.04, p̂=0.5, z=1.645
Formula
n ≥ 423
Sample Size
n ≥ 423
Step 1: Use conservative estimate for maximum variability

When no prior estimate is available, use p̂ = 0.5, which maximizes p̂(1-p̂) = 0.5(0.5) = 0.25

Step 2: Apply the sample size formula

n ≥ [z² × p̂(1-p̂)] / (ME)²

Step 3: Calculate the required sample size

n ≥ [1.645² × 0.5(1-0.5)] / (0.04)²

n ≥ [2.706025 × 0.25] / 0.0016

n ≥ 0.67650625 / 0.0016 = 422.82

Step 4: Round up to ensure requirements are met

Since n must be an integer, we need n ≥ 423

n ≥ 423 to achieve ME ≤ 0.04
Final answer:

A sample size of at least 423 teenagers is needed to achieve a margin of error of at most 4% with 90% confidence.

Applied rules:

• Conservative approach: Use p̂ = 0.5 when no prior estimate exists

• Maximum variability: p̂(1-p̂) is maximized at p̂ = 0.5

• Sample size planning: n ≥ [z² × p̂(1-p̂)] / (ME)²

Key notes:

• Using p̂ = 0.5 provides the largest possible sample size requirement

• This guarantees the sample will be adequate regardless of the true proportion

• Conservative planning is especially important when resources are limited

5 Real-world Application
Exercise 5
A university wants to estimate the proportion of students who are satisfied with online learning. In a pilot study of 150 students, 90 reported being satisfied. How many students should be surveyed to achieve a margin of error of 2.5% with 95% confidence?
Definition:

Real-world application: Using pilot study results to plan for a full-scale survey, balancing precision requirements with resource constraints

Pilot Results
p̂ = 0.6
Requirements
ME=0.025, z=1.96
Sample Size
n ≥ 1476
Step 1: Calculate the sample proportion from pilot study

p̂ = 90/150 = 0.6

Step 2: Apply the sample size formula

n ≥ [z² × p̂(1-p̂)] / (ME)²

Step 3: Calculate the required sample size

n ≥ [1.96² × 0.6(1-0.6)] / (0.025)²

n ≥ [3.8416 × 0.6(0.4)] / 0.000625

n ≥ [3.8416 × 0.24] / 0.000625

n ≥ 0.921984 / 0.000625 = 1475.17

Step 4: Round up to ensure requirements are met

Since n must be an integer, we need n ≥ 1476

n ≥ 1476 to achieve ME ≤ 0.025
Final answer:

The university should survey at least 1476 students to achieve a margin of error of 2.5% with 95% confidence.

Applied rules:

• Using pilot data: Use sample proportion from pilot study as estimate

• Sample size planning: Plan carefully to balance precision and resources

• Conservative approach: Consider using p̂ = 0.5 if pilot results are uncertain

Key notes:

• Pilot studies provide valuable information for planning full surveys

• The sample size of 1476 ensures the desired precision will be achieved

• Universities often use such surveys to improve educational programs

Confidence Interval for Population Proportion Summary

Comprehensive Summary: Confidence Interval for Population Proportion

Key Definitions:

Population Proportion (p): The true proportion of successes in the entire population, which we want to estimate.

Sample Proportion (p̂): The proportion of successes in the sample, calculated as p̂ = x/n, where x is the number of successes and n is the sample size.

Confidence Interval for Proportion: An interval estimate that specifies a range of values within which the population proportion is likely to fall, with a specified level of confidence.

Success-Failure Condition: Requirements for normal approximation: np̂ ≥ 10 and n(1-p̂) ≥ 10, ensuring the sampling distribution of p̂ is approximately normal.

Core Principles and Rules:
  1. Basic Formula: CI = p̂ ± z*√[p̂(1-p̂)/n]
  2. Standard Error: SE = √[p̂(1-p̂)/n] measures the variability of the sample proportion
  3. Success-Failure Condition: np̂ ≥ 10 and n(1-p̂) ≥ 10 for normal approximation validity
  4. Conservative Estimate: When no prior estimate exists, use p̂ = 0.5 for maximum sample size requirement
  5. Sample Size Effect: Larger samples produce narrower confidence intervals
Simple Example: Basic Proportion CI

Sample: n = 100, x = 30 successes

p̂ = 30/100 = 0.3

SE = √[0.3(0.7)/100] = √[0.21/100] = √0.0021 = 0.0458

95% CI: 0.3 ± 1.96 × 0.0458 = 0.3 ± 0.0898 = [0.210, 0.390]

Advanced Example: Sample Size Planning

Want ME ≤ 0.05, p̂ = 0.4, 95% confidence (z = 1.96)

n ≥ [1.96² × 0.4(0.6)] / (0.05)² = [3.8416 × 0.24] / 0.0025 = 0.922 / 0.0025 = 368.8

Round up: n ≥ 369

Tip 1: Always verify the success-failure condition (np̂ ≥ 10 and n(1-p̂) ≥ 10) before constructing confidence intervals.
Tip 2: The standard error is largest when p̂ = 0.5, since p̂(1-p̂) reaches its maximum at 0.25.
Tip 3: The relationship between precision and sample size is quadratic: to halve the margin of error, you need to quadruple the sample size.
Tip 4: When no prior estimate is available, use p̂ = 0.5 for the most conservative sample size estimate.
Common Pitfall: Forgetting to check the success-failure condition before using normal approximation for proportions.
Common Mistake: Using the wrong formula for standard error (using σ/√n instead of √[p̂(1-p̂)/n]).
Key Takeaway: Proportion confidence intervals are fundamental to polling, quality control, and market research.
Essential Formulas:

• Confidence Interval: CI = p̂ ± z*√[p̂(1-p̂)/n]

• Standard Error: SE = √[p̂(1-p̂)/n]

• Margin of Error: ME = z*√[p̂(1-p̂)/n]

• Sample Size: n = [z² × p̂(1-p̂)] / (ME)²

Memory Techniques:

  • CI Structure: Center ± Spread → p̂ ± z*√[p̂(1-p̂)/n]
  • Success-Failure Check: np̂ ≥ 10 AND n(1-p̂) ≥ 10
  • Max Variability: Occurs when p̂ = 0.5, giving p̂(1-p̂) = 0.25
  • Sample Size Effect: Quadrupling n halves the Margin of Error

Questions & Answers

Question: Why do we need the success-failure condition (np̂ ≥ 10 and n(1-p̂) ≥ 10) for confidence intervals for proportions?

Answer: The success-failure condition ensures that the sampling distribution of the sample proportion p̂ is approximately normal. Here's why:

The sample proportion p̂ follows a binomial distribution, which can be approximated by a normal distribution only when the sample size is large enough. The conditions np̂ ≥ 10 and n(1-p̂) ≥ 10 ensure that:

  • There are enough "successes" (at least 10) in the sample
  • There are enough "failures" (at least 10) in the sample
  • The binomial distribution is not too skewed

If these conditions aren't met, the normal approximation may not be accurate, and the confidence interval may not have the stated confidence level. In such cases, exact methods like the binomial test should be used.

The number 10 is somewhat arbitrary but provides a good balance between accuracy and practicality.

Question: Why do we use p̂ = 0.5 as a conservative estimate when no prior estimate is available for sample size planning?

Answer: We use p̂ = 0.5 because it maximizes the product p̂(1-p̂), which appears in the standard error and sample size formulas.

Consider the function f(p) = p(1-p) = p - p². Taking the derivative: f'(p) = 1 - 2p

Setting f'(p) = 0: 1 - 2p = 0, so p = 0.5

This means p(1-p) reaches its maximum when p = 0.5, and the maximum value is 0.5(1-0.5) = 0.5(0.5) = 0.25.

By using p̂ = 0.5 in our sample size calculation, we ensure that our sample will be large enough regardless of the true population proportion. If we later find that the true proportion is different from 0.5, our sample size will still be sufficient, just potentially larger than necessary.

This conservative approach guarantees that we'll achieve the desired margin of error.

Question: How is the standard error for proportions different from the standard error for means?

Answer: The standard errors have different formulas reflecting the different nature of what's being estimated:

Standard Error for Means: SE = σ/√n (or s/√n when σ is unknown)

Standard Error for Proportions: SE = √[p̂(1-p̂)/n]

Key differences:

  • For means, the population standard deviation σ appears directly in the formula
  • For proportions, we estimate the standard deviation using p̂(1-p̂), which depends on the sample proportion itself
  • The proportion SE formula includes the factor p̂(1-p̂), which represents the inherent variability in binary outcomes
  • For proportions, the maximum variability occurs when p̂ = 0.5

Both formulas show that standard error decreases as sample size increases, but the underlying mechanisms are different.

Question: What happens to the confidence interval if the sample proportion is very close to 0 or 1?

Answer: When the sample proportion p̂ is very close to 0 or 1, the confidence interval behaves differently:

When p̂ is close to 0 or 1, the product p̂(1-p̂) becomes very small. For example:

  • If p̂ = 0.05, then p̂(1-p̂) = 0.05(0.95) = 0.0475
  • If p̂ = 0.95, then p̂(1-p̂) = 0.95(0.05) = 0.0475
  • If p̂ = 0.5, then p̂(1-p̂) = 0.5(0.5) = 0.25

Since the standard error is SE = √[p̂(1-p̂)/n], the confidence interval becomes narrower when p̂ is near 0 or 1 compared to when p̂ is near 0.5.

However, if p̂ is extremely close to 0 or 1, the success-failure condition (np̂ ≥ 10 and n(1-p̂) ≥ 10) may be violated, and the normal approximation may not be appropriate. In such cases, exact methods should be used.

This is why rare events require very large samples for precise estimation.

Question: How do I interpret a confidence interval for a proportion in practical terms?

Answer: Here's how to interpret a proportion confidence interval practically:

If you have a 95% confidence interval for voter support of [0.52, 0.58], you can say:

"We are 95% confident that the true proportion of voters who support the candidate is between 52% and 58%."

Practical interpretations might include:

  • Whether the interval includes meaningful benchmarks (e.g., 50% for majority)
  • How wide the interval is (narrow = precise estimate)
  • Whether the entire interval is above or below important thresholds

For example, if a customer satisfaction poll shows 65% ± 4% satisfaction, you'd say the true satisfaction rate is likely between 61% and 69%, which suggests generally high satisfaction.

The interval gives you both the best estimate and the uncertainty around that estimate.