01 / 21

Margin of Error
& Sample Size

Learn how to quantify uncertainty in survey results and plan the right sample size for reliable business decisions.

Business Statistics

What Is Margin of Error?

The margin of error (MOE) tells you how far your sample statistic might be from the true population parameter. It creates a range: your estimate \(\pm\) a buffer zone.

In business, this is how we communicate precision: every survey, quality check, and market study depends on understanding this range.

Visualizing the Confidence Interval

\(\hat{p}\)
\(\hat{p} - E\)
\(\hat{p} + E\)
MOE MOE Confidence Interval

Why Does MOE Matter in Business?

Market Research
Determines if a product preference of 55% is statistically meaningful or just noise.
Quality Control
Sets how many items to inspect so a 2% defect rate claim is trustworthy.
Budget Planning
Larger samples cost more: MOE helps find the sweet spot between precision and cost.

The MOE Formula for Proportions

\( E \)
Margin of error: the half-width of the confidence interval
\( z^* \)
Critical value from the standard normal distribution (e.g., 1.96 for 95%)
\( \hat{p} \)
Sample proportion: the fraction of successes observed
\( n \)
Sample size: the number of observations collected

MOE for Means

When estimating a population mean (e.g., average customer spending), we use the population standard deviation \(\sigma\) instead of the proportion formula.

MOE vs Standard Error

Margin of Error Standard Error
Formula (proportion) \( z^* \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \) \( \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \)
Includes confidence? Yes: multiplied by \(z^*\) No: pure variability measure
Interpretation Half-width of confidence interval Typical distance of \(\hat{p}\) from \(p\)
Relationship \( E = z^* \times \text{SE} \)

How Sample Size Affects MOE

Sample Size \(n\)
MOE Larger n Diminishing returns 15% 10% 5% 0%

Planning Sample Size

To achieve a desired margin of error \(E\) for a proportion, solve the MOE formula for \(n\):

For estimating a mean, the formula is:

How to Apply in Practice

1
Choose your confidence level. Common choices: 90% (\(z^*=1.645\)), 95% (\(z^*=1.96\)), 99% (\(z^*=2.576\)).
2
Set the desired margin of error \(E\). Tighter precision (e.g., \(\pm 2\%\)) needs more data than looser (e.g., \(\pm 5\%\)).
3
Estimate \(\hat{p}\) or \(\sigma\). Use a pilot study, past data, or \(\hat{p}=0.5\) as the safe default.
4
Plug into the formula and round up. Always round \(n\) up to the next whole number.
5
Adjust for budget and feasibility. If \(n\) is too costly, relax either the confidence level or the desired MOE.

Example 1: Computing MOE

A company surveys 400 customers and finds 60% prefer Brand A. Find the 95% margin of error.

1
Identify values: \(\hat{p} = 0.60\), \(n = 400\), \(z^* = 1.96\)
2
Compute the standard error: \(\text{SE} = \sqrt{\frac{0.60 \times 0.40}{400}} = \sqrt{\frac{0.24}{400}} = \sqrt{0.0006} = 0.0245\)
3
Multiply by \(z^*\): \(E = 1.96 \times 0.0245 = 0.048\)

Example 2: Finding Sample Size

A marketing team wants a \(\pm 3\%\) margin of error at 95% confidence for a customer satisfaction survey. No prior data is available. How many people should they survey?

1
Set parameters: \(E = 0.03\), \(z^* = 1.96\), \(\hat{p} = 0.5\) (conservative)
2
Apply formula: \(n = \left(\frac{1.96}{0.03}\right)^2 \times 0.5 \times 0.5\)
3
Calculate: \(n = (65.33)^2 \times 0.25 = 4268.4 \times 0.25 = 1067.1\)

Example 3: Sample Size for a Mean

A retailer wants to estimate average order value within \(\pm\$5\) at 95% confidence. Historical data shows \(\sigma = \$40\).

1
Parameters: \(E = 5\), \(z^* = 1.96\), \(\sigma = 40\)
2
Formula: \(n = \left(\frac{1.96 \times 40}{5}\right)^2 = \left(\frac{78.4}{5}\right)^2 = (15.68)^2\)
3
Result: \(n = 245.86 \rightarrow\) round up to 246

Common \(z^*\) Values

Confidence Level \(z^*\) Value Typical Use
90% 1.645 Quick pilot studies
95% 1.960 Industry standard
99% 2.576 High-stakes decisions

Common Mistakes to Avoid

✕ Rounding Down
Always round \(n\) up. Rounding down gives a sample that is too small for the desired precision.
✕ Forgetting the Square Root
Doubling \(n\) does not halve MOE. You must quadruple \(n\) to halve the margin of error.
✕ Using \(\hat{p} = 0\) or \(1\)
These make MOE zero, which is meaningless. Use \(\hat{p} = 0.5\) when you have no prior estimate.

Summary: Proportions vs Means

Proportion \(\hat{p}\) Mean \(\bar{x}\)
MOE Formula \(z^*\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}\) \(z^*\frac{\sigma}{\sqrt{n}}\)
Sample Size \(\left(\frac{z^*}{E}\right)^2\hat{p}(1-\hat{p})\) \(\left(\frac{z^*\sigma}{E}\right)^2\)
Variability source \(\hat{p}(1-\hat{p})\): max at 0.5 \(\sigma\): from population
Conservative default \(\hat{p} = 0.5\) Use largest reasonable \(\sigma\)
Small sample? Use exact binomial methods Use \(t^*\) with \(s\)

Question 1 of 5

A 95% confidence interval has a margin of error of \(\pm 4\%\). If you want to cut the MOE to \(\pm 2\%\) at the same confidence level, how must you change the sample size?

Question 2 of 5

When no prior estimate of \(\hat{p}\) exists, which value should you use for the most conservative sample size calculation?

Question 3 of 5

A poll of \(n = 900\) respondents finds \(\hat{p} = 0.45\). What is the 95% margin of error?

Question 4 of 5

A company wants to estimate average customer spending within \(\pm\$10\) at 99% confidence. Historical \(\sigma = \$50\). How many customers should they sample?

Question 5 of 5

Which of the following will decrease the margin of error, holding all else constant?