Solved Exercises on Margin of Error and Sample Size in Grade 12

Master margin of error and sample size: understanding relationships, planning surveys, and statistical inference through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Margin of Error Calculation
Exercise 1
A survey of 400 people finds that 60% support a new policy. Calculate the margin of error for a 95% confidence interval for the population proportion.
Definition:

Margin of Error: The maximum likely difference between the sample statistic and the population parameter. For proportions: ME = z*√[p̂(1-p̂)/n]

Method:
  1. Identify the sample proportion: p̂ = 0.60
  2. Determine the sample size: n = 400
  3. Find the critical z-value for 95% confidence: z = 1.96
  4. Calculate the standard error: √[p̂(1-p̂)/n]
  5. Calculate the margin of error: ME = z × SE
Given
p̂=0.60, n=400
SE
SE = 0.0245
ME
ME = 0.048
Step 1: Identify the given information

Sample proportion: p̂ = 0.60, Sample size: n = 400

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

For 95% confidence, α = 0.05, α/2 = 0.025, z₀.₀₂₅ = 1.96

Step 3: Calculate the standard error

SE = √[p̂(1-p̂)/n] = √[0.60(1-0.60)/400] = √[0.60(0.40)/400] = √[0.24/400] = √0.0006 ≈ 0.0245

Step 4: Calculate the margin of error

ME = z × SE = 1.96 × 0.0245 ≈ 0.048

ME = 0.048 or 4.8%
Final answer:

The margin of error for a 95% confidence interval is approximately 0.048 or 4.8%.

Applied rules:

• Margin of error formula: ME = z*√[p̂(1-p̂)/n] for proportions

• Standard error: SE = √[p̂(1-p̂)/n] measures sampling variability

• Critical value: z₀.₀₂₅ = 1.96 for 95% confidence

Key notes:

• The margin of error tells us the precision of our estimate

• A 4.8% margin of error means the true proportion is likely within 4.8% of our sample proportion

• This margin of error is typical for political polls with similar sample sizes

2 Sample Size Planning
Exercise 2
A researcher wants to estimate the proportion of adults who exercise regularly with a margin of error of at most 3%. If previous studies suggest that about 45% of adults exercise regularly, what sample size is needed for 90% confidence?
Definition:

Sample Size Planning: Determining the minimum sample size needed to achieve a desired margin of error at a specified confidence level. Formula: n = (z²p̂(1-p̂))/ME²

Given
ME≤0.03, p̂=0.45
z-value
z = 1.645
Sample Size
n ≥ 752
Step 1: Identify the requirements

Desired ME ≤ 0.03, Prior estimate p̂ = 0.45, Confidence level = 90%

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

For 90% confidence, α = 0.10, α/2 = 0.05, z₀.₀₅ = 1.645

Step 3: Apply the sample size formula

n = (z²p̂(1-p̂))/ME²

Step 4: Calculate the required sample size

n = (1.645² × 0.45(1-0.45))/(0.03)²

n = (2.706025 × 0.45(0.55))/0.0009

n = (2.706025 × 0.2475)/0.0009

n = 0.6697411875/0.0009 ≈ 744.16

Step 5: Round up to ensure requirements

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

n ≥ 745 to achieve ME ≤ 0.03
Final answer:

A sample size of at least 745 adults is needed to achieve a margin of error of at most 3% with 90% confidence.

Applied rules:

• Sample size formula: n = (z²p̂(1-p̂))/ME² for desired margin of error

• Conservative approach: 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 relationship between precision and sample size is quadratic

• Halving the margin of error requires quadrupling the sample size

• Researchers must balance precision needs with resource constraints

3 Margin of Error vs Sample Size
Exercise 3
Compare the margin of error for estimating a population proportion with 95% confidence when the sample size is n = 100, n = 400, and n = 1600. Assume p̂ = 0.5 in all cases.
Definition:

Relationship between ME and n: The margin of error is inversely proportional to the square root of the sample size: ME ∝ 1/√n

n=100
ME = 0.098
n=400
ME = 0.049
n=1600
ME = 0.025
Step 1: Calculate ME for n = 100

SE₁₀₀ = √[0.5(1-0.5)/100] = √[0.25/100] = √0.0025 = 0.05

ME₁₀₀ = 1.96 × 0.05 = 0.098

Step 2: Calculate ME for n = 400

SE₄₀₀ = √[0.5(1-0.5)/400] = √[0.25/400] = √0.000625 = 0.025

ME₄₀₀ = 1.96 × 0.025 = 0.049

Step 3: Calculate ME for n = 1600

SE₁₆₀₀ = √[0.5(1-0.5)/1600] = √[0.25/1600] = √0.00015625 = 0.0125

ME₁₆₀₀ = 1.96 × 0.0125 = 0.0245

Step 4: Analyze the relationship

When n increases by factor of 4 (100→400), ME decreases by factor of 2 (0.098→0.049)

When n increases by factor of 4 (400→1600), ME decreases by factor of 2 (0.049→0.025)

n=100: ME=0.098, n=400: ME=0.049, n=1600: ME=0.025
Final answer:

The margin of error decreases as sample size increases: n=100→ME=0.098, n=400→ME=0.049, n=1600→ME=0.025. This confirms the relationship ME ∝ 1/√n.

Applied rules:

• Inverse square root relationship: ME ∝ 1/√n

• Quadratic relationship: To halve ME, quadruple n

• Diminishing returns: Larger samples yield progressively smaller improvements in precision

Key notes:

• The relationship is inverse square root: doubling n reduces ME by √2 ≈ 1.41

• There are diminishing returns: going from n=100 to n=400 has same impact as n=400 to n=1600

• This relationship is fundamental to survey planning and resource allocation

Margin of Error and Sample Size Rules and Methods
\( ME = z^* \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \)
Margin of Error for Proportions
\( ME = z^* \frac{\sigma}{\sqrt{n}} \)
Margin of Error for Means
\( n = \frac{z^2 \hat{p}(1-\hat{p})}{ME^2} \)
Sample Size Formula for Proportions
90% Confidence
z = 1.645
For Proportions
95% Confidence
z = 1.96
For Proportions
99% Confidence
z = 2.576
For Proportions
Key definitions:

Margin of Error (ME): The maximum likely difference between the sample statistic and the population parameter, representing the precision of the estimate

Sample Size (n): The number of observations in the sample, which affects the precision of statistical estimates

Standard Error (SE): The standard deviation of the sampling distribution of a statistic

Confidence Level: The probability that the confidence interval will contain the true population parameter

Complete methodology:
  1. For calculating ME: Identify parameters (p̂, n, confidence level), find z*, calculate SE, then ME
  2. For sample size planning: Identify desired ME, confidence level, estimate p̂, apply formula, round up
  3. For relationship analysis: Understand how changes in n affect ME
  4. For optimization: Balance precision needs with resource constraints
Tip 1: Margin of error only accounts for sampling variability, not other sources of bias.
Tip 2: The relationship between sample size and precision is quadratic, not linear.
Tip 3: When no prior estimate exists, use p̂ = 0.5 for maximum sample size requirement.
Tip 4: Always round up sample size calculations to ensure requirements are met.
Key insight: There's a quadratic relationship between precision and sample size.
Practical application: Essential for survey planning, quality control, and research design.
Key Properties:

• ME ∝ 1/√n: Inverse square root relationship

• To halve ME, quadruple the sample size

• Maximum variability occurs when p̂ = 0.5

• Higher confidence levels require larger sample sizes for same precision

Solution: Exercises 4 to 5
4 Conservative Sample Size Planning
Exercise 4
A researcher wants to estimate the proportion of students who are satisfied with online learning with a margin of error of at most 4%. No prior estimate is available. What sample size is needed for 95% confidence?
Definition:

Conservative Sample Size Planning: Using p̂ = 0.5 when no prior estimate is available, maximizing the required sample size to ensure the sample will be adequate regardless of the true proportion.

Given
ME≤0.04, p̂=0.5
z-value
z = 1.96
Sample Size
n ≥ 601
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.96² × 0.5(1-0.5))/(0.04)²

n = (3.8416 × 0.5(0.5))/0.0016

n = (3.8416 × 0.25)/0.0016

n = 0.9604/0.0016 = 600.25

Step 4: Round up to ensure requirements

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

n ≥ 601 to achieve ME ≤ 0.04
Final answer:

A sample size of at least 601 students is needed to achieve a margin of error of at most 4% with 95% 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 political polling organization wants to conduct a survey with a margin of error of at most 2.5% for 95% confidence. If they have a budget that allows for interviewing up to 2000 people, can they achieve their desired precision? If not, what margin of error can they achieve with their maximum sample size?
Definition:

Resource-Constrained Planning: Balancing statistical requirements with practical constraints such as budget, time, and available resources.

Required
ME ≤ 2.5%
Budget
n ≤ 2000
Achievable ME
ME = 2.19%
Step 1: Calculate required sample size for ME = 2.5%

Using conservative estimate p̂ = 0.5: n = (1.96² × 0.5(0.5))/(0.025)²

n = (3.8416 × 0.25)/0.000625 = 0.9604/0.000625 = 1536.64

Round up: n ≥ 1537

Step 2: Compare with budget constraint

Required: n ≥ 1537, Available: n ≤ 2000

Since 1537 ≤ 2000, YES, they can achieve the desired precision

Step 3: Calculate achievable ME with n = 2000

ME = 1.96 × √[0.5(1-0.5)/2000] = 1.96 × √[0.25/2000] = 1.96 × √0.000125 = 1.96 × 0.01118 ≈ 0.0219 or 2.19%

Step 4: Analyze the result

With n = 2000, they can achieve ME = 2.19%, which is better than their requirement of 2.5%

Yes, can achieve desired precision; ME = 2.19% with n = 2000
Final answer:

Yes, with a budget for up to 2000 people, the polling organization can achieve their desired margin of error of 2.5%. In fact, with n = 2000, they can achieve a margin of error of approximately 2.19%, which is better than required.

Applied rules:

• Constraint checking: Compare required resources with available resources

• Flexibility analysis: Calculate achievable precision with available resources

• Optimization: Maximize precision within resource constraints

Key notes:

• Having excess capacity allows for even better precision than required

• Resource constraints often require trade-offs in statistical planning

• This type of analysis is essential for practical survey design

Margin of Error and Sample Size Summary

Comprehensive Summary: Margin of Error and Sample Size

Key Definitions:

Margin of Error (ME): The maximum likely difference between the sample statistic and the population parameter, representing the precision of the estimate. It is the "radius" of the confidence interval.

Sample Size (n): The number of observations in the sample, which directly affects the precision of statistical estimates and the width of confidence intervals.

Standard Error (SE): The standard deviation of the sampling distribution of a statistic, measuring the variability of the sample statistic across different samples.

Conservative Sample Size Planning: Using p̂ = 0.5 when no prior estimate is available, which maximizes the required sample size to ensure adequacy regardless of the true proportion.

Core Principles and Rules:
  1. Basic Formula: ME = z* × SE, where SE is the standard error
  2. For Proportions: ME = z*√[p̂(1-p̂)/n]
  3. For Means: ME = z*(σ/√n) when σ is known, or t*(s/√n) when σ is unknown
  4. Sample Size Formula: n = (z²p̂(1-p̂))/ME² for proportions
  5. Quadratic Relationship: To halve the margin of error, quadruple the sample size
Simple Example: Basic ME Calculation

Sample: n = 100, p̂ = 0.6, 95% confidence

SE = √[0.6(0.4)/100] = √[0.24/100] = √0.0024 = 0.049

ME = 1.96 × 0.049 = 0.096 or 9.6%

Advanced Example: Sample Size Planning

Desired ME ≤ 0.03, p̂ = 0.4, 95% confidence (z = 1.96)

n = (1.96² × 0.4(0.6))/(0.03)² = (3.8416 × 0.24)/0.0009 = 0.922/0.0009 = 1024.4

Round up: n ≥ 1025

Tip 1: The margin of error only accounts for sampling variability, not other sources of error like bias or non-response.
Tip 2: The relationship between sample size and precision is quadratic: to halve ME, quadruple n.
Tip 3: When no prior estimate exists, use p̂ = 0.5 for maximum sample size requirement.
Tip 4: Always round up sample size calculations to ensure requirements are met.
Common Pitfall: Forgetting that the relationship between sample size and precision is quadratic, not linear.
Common Mistake: Not using p̂ = 0.5 when no prior estimate is available for conservative planning.
Key Takeaway: Understanding the ME-n relationship is fundamental to effective survey and research design.
Essential Formulas:

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

• Margin of Error for Means: ME = z*(σ/√n)

• Sample Size for Proportions: n = (z²p̂(1-p̂))/ME²

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

Memory Techniques:

  • ME Structure: Critical Value × Standard Error
  • Quadratic Rule: Halve ME → Quadruple n
  • Conservative Estimate: p̂ = 0.5 for maximum variability
  • Round Up: Always round sample size calculations up

Questions & Answers

Question: Why do we use p̂ = 0.5 for conservative sample size planning? What makes this the "worst case" scenario?

Answer: We use p̂ = 0.5 because it maximizes the product p̂(1-p̂), which appears in both 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: Why is the relationship between sample size and margin of error quadratic? Why not linear?

Answer: The relationship is quadratic because the standard error contains √n in the denominator:

For proportions: SE = √[p̂(1-p̂)/n] = √[p̂(1-p̂)]/√n

For means: SE = σ/√n

Since ME = z* × SE, the relationship is ME ∝ 1/√n.

This means if we want to reduce ME by a factor of k, we need to increase n by a factor of k².

For example, to halve the margin of error (k = 2), we need to quadruple the sample size (k² = 4). This is why increasing sample size has diminishing returns in terms of precision improvements.

This quadratic relationship is fundamental to statistical sampling theory.

Question: Does the margin of error account for all types of errors in a survey?

Answer: No, the margin of error only accounts for sampling error (variability due to random sampling). It does not account for other types of errors:

Non-sampling errors:

  • Sampling bias: When the sample doesn't represent the population
  • Non-response bias: When certain groups are less likely to respond
  • Measurement error: When questions are misunderstood or responses are inaccurate
  • Coverage error: When some segments of the population are excluded from the sampling frame

The margin of error assumes a perfectly conducted random sample. In practice, total survey error includes both sampling error (captured by ME) and all non-sampling errors.

This is why a small margin of error doesn't guarantee an accurate result if there are significant biases in the survey methodology.

Question: How does changing the confidence level affect the required sample size for a fixed margin of error?

Answer: Higher confidence levels require larger sample sizes to maintain the same margin of error. Looking at the sample size formula:

n = (z²p̂(1-p̂))/ME²

Since n is proportional to z², increasing the confidence level increases z, which requires a larger n to keep ME constant.

For example:

  • 90% confidence: z = 1.645, z² = 2.71
  • 95% confidence: z = 1.96, z² = 3.84
  • 99% confidence: z = 2.576, z² = 6.64

To maintain the same ME, going from 90% to 95% confidence requires about 42% more sample size (3.84/2.71), and going from 90% to 99% requires about 144% more sample size (6.64/2.71).

This is the price we pay for increased confidence.

Question: What happens to the margin of error when the sample proportion is very close to 0 or 1?

Answer: When the sample proportion p̂ is very close to 0 or 1, the margin of error becomes smaller because 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 margin of error ME = z* × SE becomes smaller when p̂ is near 0 or 1 compared to when p̂ is near 0.5.

However, when p̂ is extremely close to 0 or 1, the normal approximation may not be appropriate, and exact methods should be used. This is why rare events require special statistical techniques for accurate estimation.

The smallest possible margin of error occurs when p̂ = 0 or p̂ = 1, but these are theoretical extremes.