📖 Contents Chapter 9 · Confidence Intervals
Statistics · Chapter 9

Confidence Intervals

A sample can tell you what it saw, but it cannot tell you the truth about the whole population — not exactly. A confidence interval is the honest way to report that gap: instead of a single number that is almost certainly a little wrong, you report a range of plausible values, along with how confident the method is. The recipe is short enough to memorize in one line: take your best estimate and stretch it by a margin of error. This chapter builds that line from scratch, works the arithmetic for means and for proportions, shows exactly what makes an interval wide or narrow, and — the part most people get wrong — teaches you to say what “95% confident” actually means.

By the end of this chapter you can

  • Explain why a point estimate alone is insufficient, and describe a confidence interval as estimate ± margin of error.
  • Identify the three moving parts of every interval: the point estimate, the critical value, and the standard error.
  • Build a confidence interval for a population mean using z when σ is known and t when it is not.
  • State the degrees of freedom for a one-sample t interval and explain why the t distribution has heavier tails than z.
  • Build a confidence interval for a population proportion and check its conditions before you trust it.
  • Predict how the interval changes when the confidence level, the sample size, or the variability changes.
  • Solve for the sample size needed to hit a target margin of error.
  • Write a correct interpretation of a 95% confidence interval — and recognize the four classic wrong ones.

Section 1The idea of a confidence interval

A point estimate shown as a single dot compared with an interval estimate shown as a range around it
Reference. Point estimation versus interval estimation — a single best guess compared with a range of plausible values for the same parameter. Source and licence: see the figure credits

Why a single number is never enough

Suppose you want to know the average number of hours adults in a small city sleep each night. You cannot ask all 24,000 of them, so you take a random sample of 25 and compute a sample mean of 6.8 hours. That 6.8 is a point estimate: a single number, computed from a sample, offered as your best guess for the parameter — the true population mean μ, which you will never observe directly.

Here is the uncomfortable truth about point estimates: yours is almost certainly wrong. Not badly wrong, and not wrong on purpose — just wrong, because a different random sample of 25 adults would have given 7.1, and another would have given 6.5. The estimate moves around from sample to sample. That movement is called sampling error, and it is not a mistake you made; it is an unavoidable consequence of looking at a part instead of the whole.

So reporting “6.8 hours” with a straight face overstates what you know. Reporting “somewhere between 6.1 and 7.5 hours, and here is how sure I am of that method” is honest. That second statement is a confidence interval: an interval estimate for a parameter, paired with a stated confidence level.

The one-line recipe

Every confidence interval at this level — for a mean, for a proportion, for a difference between two groups — is built from the same skeleton:

point estimate ± margin of error

and the margin of error is itself always the same two things multiplied together:

margin of error = (critical value) × (standard error of the estimate)

The standard error measures how much your estimate bounces around from sample to sample — it is the standard deviation of the estimate's sampling distribution. The critical value (written z* or t*) is a multiplier chosen so that the interval is wide enough to succeed as often as your confidence level demands. Want more confidence? Use a bigger multiplier. That is the entire machine. Everything that follows in this chapter is filling in those two blanks for a specific situation.

Why does this work at all? Because of the Central Limit Theorem from the previous chapters: for a large enough sample, the sampling distribution of the sample mean is approximately normal, centered on the true parameter. If the estimate lands within about 1.96 standard errors of the truth roughly 95% of the time, then reaching out 1.96 standard errors from the estimate will capture the truth roughly 95% of the time. The interval is the sampling distribution read backwards.

Parameter (unknown)SymbolPoint estimateStandard error of the estimate
Population meanμx̄ (sample mean)σ/√n if σ known; s/√n if not
Population proportionpp̂ (sample proportion)√[p̂(1 − p̂)/n]
Population standard deviationσs (sample SD)— (not covered here)
Difference of two meansμ1 − μ2x̄1 − x̄2√[s12/n1 + s22/n2]

Reading an interval out loud

An interval has a center (your point estimate), a half-width (the margin of error), and two endpoints. If a poll reports “54% approve, margin of error 3 percentage points,” the interval is 51% to 57%, the center is 54%, and the half-width is 3. Notice that the width of the whole interval is twice the margin of error — a distinction that trips people up constantly. A margin of error of 3 points produces an interval 6 points wide.

One more habit worth building now: a confidence interval is a statement about a parameter, not about an individual. An interval of 6.1 to 7.5 hours is about the population's average sleep. It says nothing about whether any particular person sleeps in that range — most of them will not. The tool for individuals is a prediction interval, and it is much wider.

Every interval you will ever build is the same sentence. Estimate, plus or minus, critical value times standard error. When a new interval shows up later — two proportions, a regression slope, a paired difference — do not memorize a new formula. Ask three questions: what is my estimate, what is its standard error, and which table gives me the multiplier? The skeleton never changes.
Interactive Draw real samples and watch each confidence interval get built out of its own data as estimate ± z*·σ/√n — then stack hundreds of repeats to see that the confidence level describes the procedure, not any single interval, and that the margin covers sampling wobble and nothing else. Open full ↑
Key points
  • A point estimate is a single-number guess for a parameter; it varies from sample to sample because of sampling error.
  • A confidence interval is point estimate ± margin of error, reported with a stated confidence level.
  • Margin of error = critical value × standard error; the standard error measures sample-to-sample bounce.
  • The width of an interval is twice the margin of error, and the interval describes a parameter, never an individual.

Section 2A confidence interval for a mean

The standard normal curve overlaid with a Student t curve showing the t distribution's heavier tails
Reference. The standard normal distribution compared with Student's t distribution — same bell shape, but t is shorter in the middle and heavier in the tails. Source and licence: see the figure credits

When σ is known: the z interval

Start with the easier case, the one that almost never happens in real life but makes the logic visible. Suppose the population standard deviation σ is genuinely known — a filling machine whose long-run variability the manufacturer has measured over millions of bottles, say. Then the standard error of the sample mean is exactly σ/√n, and the interval is

x̄ ± z* · (σ/√n)

where z* is the value that cuts off the middle portion of the standard normal curve matching your confidence level. For 95%, that value is 1.96 — the number worth committing to memory.

Worked example. A bottling line fills 500 mL bottles. The machine's long-run standard deviation is known to be σ = 4 mL. A quality inspector pulls a random sample of n = 36 bottles and finds x̄ = 502 mL. Build a 95% confidence interval for the true mean fill volume μ.

The 95% confidence interval is 500.69 mL to 503.31 mL. Because 500 mL falls just outside this interval, a true mean of exactly 500 mL is not among the plausible values this sample supports — the data do give evidence, at the 5% level, that the machine is off target. Notice how narrowly it misses: had the sample mean been 501 mL, the interval would have run 499.69 to 502.31 and 500 would have been comfortably inside.

When σ is unknown: the t interval

In practice you almost never know σ. You estimate it with the sample standard deviation s, which introduces a second source of uncertainty: not only is x̄ a noisy estimate of μ, but s is a noisy estimate of σ. If you simply swapped s for σ and kept using 1.96, your intervals would be a little too narrow and would capture the truth less than 95% of the time.

William Gosset solved this in 1908, publishing under the pen name “Student.” His fix was a new family of curves — Student's t distribution — that look like the normal curve but with heavier tails, which produces slightly larger critical values and slightly wider intervals. Exactly how much heavier depends on the degrees of freedom, df = n − 1. Small samples give few degrees of freedom, fat tails, and big multipliers; large samples give many degrees of freedom, and t converges on z.

x̄ ± t*n−1 · (s/√n)

Worked example. A random sample of n = 25 adults completes a reaction-time task. The sample mean score is x̄ = 78.4 with sample standard deviation s = 9.0. Build a 95% confidence interval for the population mean μ.

The 95% confidence interval is 74.68 to 82.12. Notice what the correction cost: had you carelessly used z* = 1.96, the margin would have been 3.53 and the interval 74.87 to 81.93 — noticeably too narrow, and too confident.

Conditions, and how t collapses into z

Any interval for a mean — the z version and the t version alike — rests on two assumptions, and you should state and check them before you trust the arithmetic in either worked example above. First, the data must come from a random sample (or a randomized experiment), and the observations must be independent — when sampling without replacement, a practical check is that the sample is less than 10% of the population. Second, the sampling distribution of x̄ must be roughly normal. That holds if the population itself is roughly normal, or, thanks to the Central Limit Theorem, if n is large enough (n ≥ 30 is the usual rule of thumb, and more is needed if the data are badly skewed or contain outliers).

The table below shows the 95% critical value shrinking toward 1.96 as the sample grows. This is why software uses t for everything: with n = 100 the difference between 1.984 and 1.960 is trivial, and with n = 10 it is not.

Sample size ndf = n − 1t* at 95%z* at 95%How much wider is t?
542.7761.960+42%
1092.2621.960+15%
25242.0641.960+5%
50492.0101.960+3%
100991.9841.960+1%
very large→ ∞→ 1.9601.9600%
If you had to compute s, you must use t. That is the whole decision rule, and it is easier than any flowchart. σ handed to you from outside the data → use z. Standard deviation calculated from the sample you are analyzing → use t with df = n − 1. Using z with a small sample is one of the most common errors on statistics exams, and it always errs in the same direction: too narrow, too confident.
Interactive Draw real samples and watch a confidence interval for a mean get built out of them — xÌ„ ± (multiplier × standard error) — switching between the z case where σ is known and the t case where σ must be estimated with s on n − 1 degrees of freedom, then run 2,000 simulated studies to see which multiplier actually keeps its promise. Open full ↑
Key points
  • σ known: x̄ ± z*(σ/√n). σ unknown: x̄ ± t*(s/√n) with df = n − 1.
  • The t distribution has heavier tails than z, which widens the interval to pay for estimating σ.
  • As n grows, t* converges to z*; at 95% the target value is 1.96.
  • Conditions: random and independent observations, plus a roughly normal population or a large enough n.

Section 3A confidence interval for a proportion

A binomial histogram with a smooth normal curve laid over it showing the normal approximation
Reference. The normal approximation to the binomial distribution — the basis for the success-failure condition behind a proportion interval. Source and licence: see the figure credits

Counting instead of measuring

Sometimes the variable is not a measurement but a yes/no answer: did the patient respond to treatment, did the voter approve, did the part pass inspection. Then the parameter of interest is a population proportion p, and the point estimate is the sample proportion p̂ = x/n, where x is the number of “successes.”

Counts follow a binomial distribution, which is lumpy and discrete. But when n is big enough, that binomial histogram is well approximated by a smooth normal curve — exactly what the figure above shows — and the normal-curve machinery from Section 2 applies again. The standard error of a sample proportion works out to √[p(1 − p)/n], and since p is the very thing we do not know, we substitute p̂:

p̂ ± z* · √[p̂(1 − p̂)/n]

Note that this one uses z, not t. There is no separate standard deviation to estimate here: for a yes/no variable, the proportion is the mean and it determines the variability all by itself, so there is no extra degrees-of-freedom correction to make.

The conditions — check them first

This formula is an approximation, and it is a bad one when the sample is small or the proportion is close to 0 or 1. Three conditions protect you.

ConditionHow to checkWhy it matters
Random sampleThe data came from random selection or random assignmentWithout it the estimate is biased, and no formula can repair bias
Independence (10% rule)n < 10% of the population when sampling without replacementKeeps the standard error formula valid
Success-failurenp̂ ≥ 10 and n(1 − p̂) ≥ 10At least ~10 of each outcome, or the binomial is too skewed for a normal curve

Worked example. In a random sample of n = 400 adults, x = 148 say they exercise regularly. Build a 95% confidence interval for the population proportion p.

The 95% confidence interval is 0.323 to 0.417, or roughly 32% to 42%. This is exactly the kind of interval a news outlet compresses into “37%, plus or minus about 5 points.”

Percentage points are not percent

When a result is itself a percentage, language gets slippery. A margin of error of 4.7 percentage points means the endpoints are 32.3% and 41.7%. It does not mean 4.7% of 37%, which would be a margin of only 1.7 points. Always say “percentage points” when you mean an additive move on a percentage scale — the distinction shows up in polling coverage, quality reporting, and clinical trial write-ups alike.

One more practical note. Political polls typically publish a single “margin of error” computed at the most conservative case, p̂ = 0.5, because that is where p̂(1 − p̂) is largest. That is why a poll of 1,000 people is nearly always described as ± 3 points regardless of what the actual percentages came out to.

The formula does not fix a bad sample. Every condition after “random sample” is a technicality; the first one is not. If your 400 respondents were volunteers who saw a link online, the arithmetic still runs, the interval still prints, and the answer is still meaningless — because the margin of error accounts only for random sampling variation, never for selection bias, non-response, or a badly worded question.
Interactive Draw real samples, build p-hat plus or minus z* times its standard error from the actual counts, and check the conditions — with an exact binomial coverage calculation that shows a "95%" interval capturing p only 87% of the time when successes are scarce. Open full ↑
Key points
  • For a proportion: p̂ ± z*√[p̂(1 − p̂)/n], using z rather than t.
  • Check random sampling, the 10% independence rule, and the success-failure condition (np̂ ≥ 10 and n(1 − p̂) ≥ 10).
  • Report the margin in percentage points, not as a percent of the estimate.
  • Variability is largest at p̂ = 0.5, which is why published poll margins assume that worst case.

Section 4Margin of error and sample size

Curves showing margin of error falling as sample size grows, drawn separately for several confidence levels
Reference. Margin of error plotted against sample size for several confidence levels — higher confidence lifts every curve, larger samples pull them all down. Source and licence: see the figure credits

The three dials

Because the margin of error is a critical value times a standard error, only three things can change an interval's width, and each behaves in a predictable way.

Confidence level. Raising confidence raises the critical value, so the interval gets wider. This is not a defect; it is the price of a stronger guarantee. If you want to be right almost every time, you must say something vaguer. At the extreme, a 100% confidence interval for average sleep would be “between 0 and 24 hours” — certainly correct and completely useless.

Sample size. Increasing n shrinks the standard error, so the interval gets narrower. But the √n in the denominator sets the exchange rate, and it is a harsh one: to halve the margin of error you must quadruple the sample size. Doubling n only buys you a factor of 1/√2 ≈ 0.71.

Variability. More spread in the population (a larger σ or s) means a larger standard error and a wider interval. You usually cannot change this one — it is a property of the world, not of your study — though careful measurement and homogeneous subgroups can reduce it.

ChangeCritical valueStandard errorMargin of errorInterval
Confidence 90% → 99%1.645 → 2.576 (up)unchangedupWider
Confidence 99% → 90%2.576 → 1.645 (down)unchangeddownNarrower
Sample size n × 4unchanged (roughly)÷ 2÷ 2Half as wide
Sample size n ÷ 4unchanged (roughly)× 2× 2Twice as wide
Population more spread outunchangedupupWider

Seeing the dials turn

Return to the reaction-time sample: x̄ = 78.4, s = 9.0, n = 25, df = 24, standard error 1.80. Hold the data fixed and turn only the confidence dial.

Confidencet* (df = 24)Margin of errorIntervalWidth
90%1.7111.711 × 1.80 = 3.0875.32 to 81.486.16
95%2.0642.064 × 1.80 = 3.7274.68 to 82.127.44
99%2.7972.797 × 1.80 = 5.0373.37 to 83.4310.06

Now hold confidence at 95% and turn only the sample-size dial, treating the standard deviation as a known σ = 9.0 so the multiplier stays fixed at 1.96:

Sample size nStandard error 9/√nMargin of error (1.96 × SE)Interval about x̄ = 78.4
259/5 = 1.803.5374.87 to 81.93
1009/10 = 0.901.7676.64 to 80.16
4009/20 = 0.450.8877.52 to 79.28

Each fourfold jump in n cuts the margin exactly in half. Going from 25 to 400 participants — sixteen times the data collection — buys a margin one quarter as large.

Planning a study: solving for n

Turn the formula around and you get a planning tool. Decide the margin of error E you can live with, pick your confidence level, and solve.

For a mean. From E = z*σ/√n, solving gives n = (z*σ/E)2. Suppose a pilot study suggests σ ≈ 12 and you want a 95% interval with margin no larger than 2 points.

For a proportion. From E = z*√[p(1−p)/n], solving gives n = z*2p(1−p)/E2. If you have no prior estimate of p, use p = 0.5, which maximizes p(1−p) at 0.25 and therefore gives the safest (largest) answer. For a 95% interval with a margin of 3 percentage points:

That number should look familiar. It is why national polls so consistently sample around a thousand respondents: roughly a thousand people buys a 3-point margin, and pushing to 1 point would require about 9,600.

Round up, never down, and never round the sample size to a “nicer” number. 138.3 participants is not achievable, and 138 would leave the margin slightly larger than the one you promised. Rounding up is the only direction that keeps the guarantee. The same logic explains why researchers over-recruit: you plan for 139 and enroll 150, because some participants will drop out and take your margin of error with them.
Interactive Drag the sample size and the confidence level and watch a real interval widen and narrow against a fixed axis — the square-root law that makes precision expensive, and how to solve for n before collecting a single observation. Open full ↑
Key points
  • Higher confidence → larger critical value → wider interval; there is no free lunch.
  • Larger n → smaller standard error → narrower interval, but only at rate 1/√n: quadruple n to halve the margin.
  • For a mean, n = (z*σ/E)2; for a proportion, n = z*2p(1−p)/E2, using p = 0.5 when nothing is known.
  • Always round the required sample size up to the next whole person.

Section 5Interpreting a confidence interval correctly

A set of 95 percent confidence intervals drawn as error bars around several estimates
Reference. A display of 95% confidence intervals — each bar is one interval produced by one sample, and the confidence level describes the procedure that made them. Source and licence: see the figure credits

The sentence that is right

Here is a template you can use every time, and it is worth writing down word for word:

“We are 95% confident that the interval from 74.68 to 82.12 contains the true mean reaction-time score for the population.”

Three ingredients make it correct: the confidence level, the interval, and a clear statement of the parameter in context — whose mean, of what, measured how. Drop any one of them and the sentence loses its meaning.

And what does the 95% attach to? Not to this interval. It attaches to the procedure. Imagine repeating the whole study — draw a fresh random sample, compute x̄ and s, build the interval — over and over, thousands of times. Each repetition gives a different interval, centered somewhere slightly different, with a slightly different width. In the long run, about 95% of those intervals will contain the true μ, and about 5% will miss it entirely. That long-run success rate is the coverage probability, and it is the only thing 95% ever meant.

The catch is that you built exactly one interval, and you cannot tell whether yours is one of the 95% or one of the 5%. Your interval either contains μ or it does not. There is no partial credit and no randomness left to describe: μ is a fixed number, and your endpoints are now fixed numbers too.

The four sentences that are wrong

Each of the following is a real thing students, journalists, and occasionally published researchers write. Each is wrong, and it is worth knowing precisely why.

Wrong statementWhy it failsWhat it should say
“There is a 95% probability that μ lies in this interval.”μ is a fixed constant and the endpoints are now fixed numbers; the probability is 0 or 1, we just do not know which. The 95% describes the long-run procedure.“95% of intervals built this way capture μ.”
“95% of the data values fall between 74.68 and 82.12.”Confuses the spread of individuals with the precision of an estimate. An interval for a mean is usually far narrower than the data.“This interval estimates the mean, not the range of scores.”
“95% of future sample means will fall in this interval.”Future sample means vary around μ, not around your particular x̄; the actual capture rate for that claim is well under 95%.“The interval estimates μ, not the location of future samples.”
“The interval contains 80, so we have proved μ = 80.”An interval lists plausible values, all of them at once. 74.7 is just as much ‘in’ the interval as 80 is.“80 is a plausible value for μ; so is every other number in the interval.”

A fifth error deserves its own mention because it travels with confidence intervals so often. A p-value is not the probability that the null hypothesis is true — it is the probability of observing data at least as extreme as yours assuming the null hypothesis is true. Confidence intervals and p-values are two views of the same calculation, and they inherit the same discipline: both are statements about how data behave under a hypothesis, never statements about how likely a hypothesis is.

The same discipline governs the language of decisions. When an interval contains a claimed value — equivalently, when the corresponding test does not reach significance — the correct phrase is fail to reject, never accept. Failing to reject means only that the data were consistent with that value, not that the value is true: the interval 74.68 to 82.12 is exactly as consistent with 80 as it is with 74.7 or 82.1, and it cannot single one of them out. Absence of evidence against a value is not evidence for it, and a wide interval usually means you had too little data to distinguish anything at all.

What an interval is genuinely good for

Used correctly, a confidence interval does three jobs a single p-value cannot. It shows the size of the effect, not just whether one exists. It shows the precision of your estimate through its width — a narrow interval around a small effect and a huge interval around a large one tell very different stories. And it supports a quick significance check: if a 95% interval for a difference does not contain 0, the corresponding two-sided test rejects at α = 0.05; if a 95% interval for a mean does not contain 80, a two-sided test of μ = 80 rejects at α = 0.05.

Finally, keep the interval's scope honest. A margin of error quantifies random sampling variation only. It does not cover a biased sampling frame, people who refused to answer, a leading question, a miscalibrated instrument, or data entered wrong. Those errors can dwarf the margin of error, and no amount of extra sample size will shrink them — more data collected badly just gives you a tighter interval around the wrong number.

Say “confident,” not “probability.” The word “confident” exists in statistics precisely because “probability” would be wrong here. It is a deliberate signal that you are describing the reliability of a method across many hypothetical samples, not the chance that one fixed number sits between two other fixed numbers. When you catch yourself writing “there is a 95% chance that μ...,” stop and rewrite.
Interactive Draw 100 samples, build 100 confidence intervals, and count how many capture the true mean — then test seven interpretations of the number against the picture. Open full ↑
Key points
  • Correct form: “We are C% confident that the interval (a, b) contains the true parameter in context.”
  • The confidence level describes the long-run procedure — about 95% of intervals built this way capture the parameter.
  • A CI is not about data values, not about future sample means, and does not assign probability to a fixed μ.
  • A value inside the interval is plausible, not proven; “fail to reject” never means “accept.”
  • Margin of error covers random sampling variation only — never bias, non-response, or measurement error.

The chapter in one breath

  • A point estimate is a single best guess; because of sampling error it is almost certainly a little wrong, so we report a range instead.
  • Every confidence interval is point estimate ± (critical value × standard error), and the width of the interval is twice the margin of error.
  • For a mean with σ known, use x̄ ± z*(σ/√n); with σ unknown use x̄ ± t*(s/√n) with df = n − 1.
  • The t distribution has heavier tails to pay for estimating σ, and converges to z as n grows; at 95%, z* = 1.96.
  • For a proportion, use p̂ ± z*√[p̂(1−p̂)/n] after checking random sampling, the 10% rule, and success-failure (at least 10 of each outcome).
  • Higher confidence widens the interval; larger n narrows it only at rate 1/√n, so quadrupling n halves the margin.
  • To plan a study, solve n = (z*σ/E)2 for a mean or n = z*2p(1−p)/E2 for a proportion, use p = 0.5 when in doubt, and always round up.
  • “95% confident” describes the long-run procedure, not a probability for this one interval — and the margin of error covers random variation only, never bias.

ReferenceWords worth knowing

A quick reference for the vocabulary in this chapter — skim it now, then circle back whenever a term in a formula or an interpretation stops making sense.

Central Limit Theorem
The result that, for a large enough sample, the sampling distribution of x̄ is approximately normal regardless of the population's shape. It is what licenses the normal-curve critical values used in these intervals.
Confidence interval
An interval estimate for a population parameter, computed as point estimate ± margin of error and reported with a confidence level.
Confidence level
The long-run percentage of intervals built by a given procedure that would capture the true parameter; common choices are 90%, 95%, and 99%.
Coverage probability
The actual long-run proportion of intervals from a procedure that contain the parameter. A good procedure has coverage close to its stated confidence level.
Critical value
The multiplier (z* or t*) applied to the standard error, chosen from a distribution table to match the desired confidence level.
Degrees of freedom (df)
The parameter that selects which t curve to use; for a one-sample interval for a mean, df = n − 1.
Interval estimate
A range of plausible values for a parameter, as opposed to a single number.
Margin of error
The half-width of a confidence interval: critical value × standard error. It quantifies random sampling variation only.
Parameter
A fixed numerical fact about a whole population, such as μ or p. It is unknown and does not vary from sample to sample.
Point estimate
A single-number estimate of a parameter computed from sample data, such as x̄ for μ or p̂ for p.
Population proportion (p)
The true fraction of the population with a given characteristic — the parameter estimated by p̂.
Prediction interval
An interval intended to contain a future individual observation rather than a parameter; it is always wider than a confidence interval for the mean.
Sample proportion (p̂)
The fraction of successes in the sample, x/n; the point estimate for p.
Sampling distribution
The distribution of a statistic's values across all possible samples of a given size. Its standard deviation is the standard error.
Sampling error
The natural sample-to-sample variation of an estimate. It is not a mistake, and it is the only thing a margin of error accounts for.
Standard error
The standard deviation of a statistic's sampling distribution — σ/√n or s/√n for a mean, √[p̂(1−p̂)/n] for a proportion.
Statistic
A number computed from sample data, such as x̄, s, or p̂. Unlike a parameter, it varies from sample to sample.
Student's t distribution
A family of symmetric, bell-shaped curves with heavier tails than the normal, indexed by degrees of freedom; used when σ must be estimated by s.
Success-failure condition
The requirement np̂ ≥ 10 and n(1 − p̂) ≥ 10 that makes the normal approximation to the binomial adequate for a proportion interval.
t critical value (t*)
The multiplier taken from the t distribution with n − 1 degrees of freedom; at 95% it is 2.064 for df = 24 and shrinks toward 1.96 as df grows.
Width
The full length of a confidence interval, upper endpoint minus lower endpoint — exactly twice the margin of error.
z critical value (z*)
The multiplier taken from the standard normal curve: 1.645 for 90%, 1.960 for 95%, and 2.576 for 99% confidence.

Check yourself

1. Write the general skeleton of any confidence interval, and name the two pieces that multiply together to form the margin of error.
Point estimate ± margin of error, where margin of error = critical value × standard error. The critical value (z* or t*) comes from the confidence level; the standard error measures how much the estimate varies from sample to sample.
2. A survey reports 46% support with a margin of error of 4 percentage points. State the interval and its width.
The interval is 42% to 50%, and its width is 8 percentage points. The margin of error is the half-width, so the full interval spans twice the margin.
3. A known-variability process has σ = 6. A random sample of n = 64 gives x̄ = 120. Build a 95% confidence interval for μ, showing your arithmetic.
118.53 to 121.47. Standard error = 6/√64 = 6/8 = 0.75. Margin of error = 1.96 × 0.75 = 1.47. Then 120 − 1.47 = 118.53 and 120 + 1.47 = 121.47. Because σ is known, z* = 1.96 is correct here.
4. Why do we use t instead of z when σ is unknown, and what are the degrees of freedom for a one-sample interval?
Because estimating σ with s adds extra uncertainty, the t distribution's heavier tails give a larger multiplier and a correspondingly wider interval; df = n − 1. Using z with a small sample makes the interval too narrow and its true coverage lower than advertised.
5. A sample of n = 16 parts has x̄ = 40.0 mm and s = 2.0 mm. With t* = 2.131 at 95% for df = 15, compute the interval.
38.93 mm to 41.07 mm. Standard error = 2.0/√16 = 2.0/4 = 0.50. Margin of error = 2.131 × 0.50 = 1.0655, about 1.07. Then 40.0 − 1.07 = 38.93 and 40.0 + 1.07 = 41.07.
6. In a random sample of 500 shoppers, 200 used a loyalty card. Check the conditions and build a 95% interval for p.
Conditions pass, and the interval is 0.357 to 0.443 (about 36% to 44%). p̂ = 200/500 = 0.40; np̂ = 200 ≥ 10 and n(1−p̂) = 300 ≥ 10. Standard error = √[(0.40)(0.60)/500] = √0.00048 = 0.02191. Margin of error = 1.96 × 0.02191 = 0.0429. Then 0.40 ± 0.043.
7. A researcher has n = 30 and p̂ = 0.05. Should she use the standard proportion interval? Explain.
No — the success-failure condition fails. np̂ = 30(0.05) = 1.5, which is far below 10. With so few successes the binomial distribution is too skewed for a normal approximation, and the interval would be unreliable (it can even extend below 0). She needs a much larger sample or an alternative method.
8. Everything else fixed, what happens to an interval when you move from 95% to 99% confidence, and what is the trade-off?
The critical value rises from 1.96 to 2.576, so the margin of error and the interval both get wider. The trade-off is precision for reliability: you are right more often in the long run, but your statement is vaguer. A 100% interval would be certainly correct and completely uninformative.
9. You currently have a margin of error of 4.0 with n = 100. What sample size would give a margin of 2.0, and why is it not 200?
You need n = 400, because the standard error shrinks as 1/√n, not as 1/n. Halving the margin requires quadrupling the sample. Doubling to 200 would only reduce the margin by a factor of 1/√2 ≈ 0.71, to about 2.83.
10. Plan a poll: you want a 95% interval with a margin of error of 2 percentage points and have no prior estimate of p. How many people must you survey?
2,401 people. Use the conservative p = 0.5, so p(1−p) = 0.25. Then n = (1.96)2(0.25)/(0.02)2 = 3.8416 × 0.25 / 0.0004 = 0.9604/0.0004 = 2401. Since it comes out exactly, no rounding is needed — but any fractional result must always be rounded up.
11. A 95% confidence interval for a population mean is 12.4 to 15.6. Write a correct interpretation, then explain why “there is a 95% probability that μ is between 12.4 and 15.6” is wrong.
Correct: “We are 95% confident that the interval from 12.4 to 15.6 contains the true population mean.” The probability version is wrong because μ is a fixed constant and 12.4 and 15.6 are now fixed numbers — the interval either contains μ or it does not, so the probability is 0 or 1. The 95% describes the long-run procedure: about 95% of intervals built this way from repeated random samples would capture μ.
12. A poll of 1,200 online volunteers reports 62% agreement, ± 2.7 points. Two problems: what does the margin of error fail to cover, and what would you conclude about a claimed true value of 50%?
The margin of error covers random sampling variation only — it says nothing about the selection bias of a self-selected volunteer sample, non-response, or a leading question, and those errors are likely far larger here. Arithmetically the interval is 59.3% to 64.7%, which excludes 50%, so a two-sided test of p = 0.5 would reject at α = 0.05 — but since the sample is not random, that conclusion is not trustworthy. Collecting more data badly would only give a tighter interval around the wrong number.