Exam 5 Study Guide
This guide covers chapters 9 and 10, the two core tools of inference. You will build confidence intervals for means and proportions, choose between z and t, plan a sample size and read an interval the right way. Then you will run the logic of a hypothesis test: state the hypotheses, compute a p-value, decide with α, weigh Type I and Type II errors and power, and separate statistical from practical significance. Work one chapter at a time, try each worked example with the steps covered, and finish with the ten self-test items. The cram sheet at the end holds every formula.
What this guide covers
- Chapter 9 · point estimates and the CI skeleton, z and t intervals for a mean, the interval for a proportion, the three dials of width, sample size planning and the correct interpretation of confidence.
- Chapter 10 · null and alternative hypotheses, one and two tails, the p-value and what it is not, α and the decision rule, Type I and Type II errors and power, and statistical versus practical significance.
Chapter 9Confidence Intervals
Read it in full: Chapter 9 in the textbook. Practice it in the lab: Confidence Interval for a Proportion and What 95 Percent Confidence Means.
What to know
A point estimate is a single number from a sample offered as a guess for a parameter, and because of sampling error it is almost certainly a little off. A confidence interval reports a range with a stated confidence level. Every interval at this level has the same skeleton: point estimate ± margin of error, and margin of error = critical value × standard error. The interval works because the sampling distribution of the estimate is centered on the truth; the interval is that distribution read backwards.
An interval has a center (the estimate), a half-width (the margin of error) and two endpoints, so its full width is twice the margin of error. It describes a parameter, never an individual: an interval for mean sleep says nothing about any one person's sleep.
When σ is truly known, the z interval is x̄ ± z*(σ ÷ √n), with z* = 1.96 at 95%. The book's bottling line with σ = 4 mL, n = 36 and x̄ = 502 gives 500.69 to 503.31 mL, so a true mean of 500 is not plausible at the 5% level.
When σ is unknown, which is almost always, use the t interval x̄ ± t*(s ÷ √n) with df = n − 1. The t distribution (Gosset, "Student," 1908) has heavier tails to pay for estimating σ, so t* is larger than z*; at 95% t* is 2.776 for df = 4, 2.064 for df = 24 and 1.984 for df = 99, approaching 1.96. The rule: if you had to compute s, use t. Conditions: a random sample of independent observations (n under 10% of the population), and a roughly normal population or a large enough n (30 or more as a rule of thumb, more for skew or outliers).
For a proportion, p̂ ± z*√[p̂(1 − p̂) ÷ n], using z, not t. Check random sampling, the 10% rule and the success-failure condition: np̂ ≥ 10 and n(1 − p̂) ≥ 10. The book's 148 of 400 gives 0.323 to 0.417. A margin of 4.7 percentage points is an additive move on the percent scale, not 4.7% of 37%. Polls quote the worst case p̂ = 0.5, which is why about 1,000 people gives ±3 points.
Three dials set the width. Higher confidence means a larger critical value and a wider interval (z* = 1.645, 1.96 and 2.576 for 90, 95 and 99%). Larger n shrinks the standard error, but only at the rate 1 ÷ √n: quadruple n to halve the margin. More variability means a wider interval.
To plan a study, solve for n and always round up. For a mean, n = (z*σ ÷ E)²; σ ≈ 12 and E = 2 at 95% give 138.3, so 139. For a proportion, n = z*² p(1 − p) ÷ E², using p = 0.5 when nothing is known; E = 0.03 at 95% gives 1,067.1, so 1,068.
The correct sentence: "We are 95% confident that the interval from a to b contains the true [parameter in context]." The 95% belongs to the procedure: about 95% of intervals built this way capture the parameter. Your one interval either contains μ or it does not. It is wrong to say there is a 95% probability μ is in it, that 95% of data values fall in it, or that 95% of future sample means will. A value inside the interval is plausible, not proven, and "fail to reject" never means "accept." If a 95% interval excludes a value, a two-sided test at α = 0.05 rejects it. The margin of error covers random sampling only, never bias.
- CI = estimate ± critical value × SE; width = 2 × margin of error.
- σ known: x̄ ± z*σ/√n. σ unknown: x̄ ± t*s/√n with df = n − 1.
- Proportion: p̂ ± z*√[p̂(1 − p̂)/n]; need np̂ ≥ 10 and n(1 − p̂) ≥ 10.
- z* = 1.645 (90%), 1.96 (95%), 2.576 (99%).
- Quadruple n to halve the margin. Higher confidence, wider interval.
- n = (z*σ/E)² for a mean; n = z*²p(1 − p)/E² for a proportion; round up.
- "95% confident" describes the method; this interval either contains μ or not.
- A CI excluding a value matches a two-sided test rejecting it at α = 1 − C.
Formulas and when to use them
| Interval or plan | Formula | When to use it |
|---|---|---|
| Skeleton | estimate ± (critical value)(SE) | Every interval |
| Mean, σ known | x̄ ± z*(σ ÷ √n) | σ given from outside the data |
| Mean, σ unknown | x̄ ± t*(s ÷ √n), df = n − 1 | You computed s from the sample |
| Proportion | p̂ ± z*√[p̂(1 − p̂) ÷ n] | np̂ ≥ 10 and n(1 − p̂) ≥ 10 |
| Margin from an interval | E = (upper − lower) ÷ 2 | Reading a reported CI |
| Estimate from an interval | center = (upper + lower) ÷ 2 | Reading a reported CI |
| n for a mean | n = (z*σ ÷ E)² | Planning; round up |
| n for a proportion | n = z*² p(1 − p) ÷ E² | Use p = 0.5 if unknown; round up |
Critical values
| Confidence | z* | t* (df = 24) |
|---|---|---|
| 90% | 1.645 | 1.711 |
| 95% | 1.960 | 2.064 |
| 99% | 2.576 | 2.797 |
| 95%, df = 4 | 1.960 | 2.776 |
| 95%, df = 9 | 1.960 | 2.262 |
| 95%, df = 99 | 1.960 | 1.984 |
Worked examples
Worked example 1 · a z interval with σ known
A scale's long-run σ is 5 g. A random sample of n = 49 packages has x̄ = 68.3 g. Build a 95% interval for μ.
Step 1 · SEσ ÷ √n = 5 ÷ 7 = 0.7143.
Step 2 · margin1.96 × 0.7143 = 1.40.
Step 3 · interval68.3 ± 1.40: 66.90 to 69.70 g.
Step 4 · say itWe are 95% confident that the interval from 66.90 to 69.70 g contains the true mean package weight.
Worked example 2 · a t interval with σ unknown
A random sample of n = 16 commuters has x̄ = 42.5 minutes and s = 6.4. Build a 95% interval and compare it with a careless z interval.
Step 1 · df and SEdf = 15; SE = 6.4 ÷ √16 = 6.4 ÷ 4 = 1.60.
Step 2 · critical valuet* (95%, df = 15) = 2.131.
Step 3 · margin and interval2.131 × 1.60 = 3.41, so 39.09 to 45.91 minutes.
Step 4 · the z mistake1.96 × 1.60 = 3.14 gives 39.36 to 45.64, too narrow and too confident.
Check the conditionsRandom sample, 16 out of a large population, and with n = 16 the commute times should look roughly normal with no strong outliers.
Worked example 3 · a proportion at two confidence levels
In a random sample of 500 adults, 215 say they read a book last month. Build 95% and 99% intervals for p.
Step 1 · estimate and checksp̂ = 215 ÷ 500 = 0.43. np̂ = 215 and n(1 − p̂) = 285, both at least 10.
Step 2 · SE√(0.43 × 0.57 ÷ 500) = √0.000490 ≈ 0.0221.
Step 3 · 95%1.96 × 0.0221 = 0.0434, so 0.387 to 0.473, a margin of 4.3 percentage points.
Step 4 · 99%2.576 × 0.0221 = 0.0570, so 0.373 to 0.487. More confidence, wider interval.
Read itBoth intervals sit below 0.50, so "half of adults" is not a plausible value at either level.
Worked example 4 · planning the sample size
A team wants a 95% interval for mean daily screen time within E = 2 minutes, with σ ≈ 15 from a pilot. A second team wants a proportion within 4 points. Find each n.
Step 1 · meann = (1.96 × 15 ÷ 2)² = (14.70)² = 216.09, so 217.
Step 2 · proportion, nothing knownn = 1.96² × 0.25 ÷ 0.04² = 0.9604 ÷ 0.0016 = 600.25, so 601.
Step 3 · proportion with a prior guess p ≈ 0.20n = 1.96² × 0.20 × 0.80 ÷ 0.0016 = 384.16, so 385.
Why round upRounding down leaves the margin slightly larger than promised. Plan a little extra for dropouts.
- Saying "95% chance μ is in this interval." μ is fixed. The 95% describes how often the method works.
- Reading the CI as the range of the data. An interval for a mean is far narrower than the spread of individuals.
- Using z after computing s. If s came from the sample, use t with df = n − 1.
- Using t for a proportion. The proportion interval uses z.
- Calling the width the margin of error. The width is twice the margin.
- Mixing percent and percentage points. A 4-point margin on 37% runs 33% to 41%.
- Rounding a planned n down. Always round up to keep the promised margin.
- Thinking a bigger n removes bias. The margin of error covers chance only.
Chapter 9 self-test · ten items
- 44.5% to 47.5%
- 43% to 49%
- 45.9% to 46.1%
- 40% to 52%
- 118.04 to 121.96
- 116.08 to 123.92
- 88.64 to 151.36
- 116.71 to 123.29
- z* = 1.96
- t* with df = 12, about 2.179
- t* with df = 11, about 2.201
- z* = 1.645
- 25.39 to 34.61
- 26.08 to 33.92
- 16.16 to 43.84
- 28.00 to 32.00
- 0.060
- 0.031
- 0.250
- 0.050
- Raising confidence from 95% to 99%
- Increasing the sample size
- A more spread-out population
- Switching from z* to t*
- Doubled
- Multiplied by √2
- Halved
- Multiplied by 4
- 384
- 400
- 385
- 196
- There is a 95% chance the true mean is in 12.1 to 15.7
- 95% of the data values lie between 12.1 and 15.7
- About 95% of intervals built this way contain the true mean
- 95% of future sample means will land in 12.1 to 15.7
- Fail to reject, since 55 is close to the interval
- Accept μ = 55 as the true population mean
- No conclusion is possible without the p-value
- Reject, since 55 lies outside the interval
Chapter 10The Logic of Hypothesis Testing
Read it in full: Chapter 10 in the textbook. Practice it in the lab: State the Hypotheses and Type I and Type II Errors.
What to know
A hypothesis test works like a criminal trial. The null hypothesis H0 is the dull, no-effect explanation, presumed true until the evidence is strong. The alternative Ha is the claim you care about, and it carries the burden of proof. Weak evidence does not show H0 is true; it means the case was not made.
Four rules for writing hypotheses. They are about parameters (μ, p, σ), never statistics such as x̄ or p̂. The equals sign lives in H0, because a specific value makes the probability model possible. H0 and Ha must not overlap. The direction is fixed before seeing the data: two-tailed (≠) unless a one-tailed direction (< or >) was chosen in advance for a real reason. When in doubt, go two-tailed.
The p-value is P(a test statistic at least this extreme | H0 true and the assumptions hold). Compute it in three moves: standard error, test statistic, tail area, doubling the tail for a two-sided Ha. In the book's commute study, H0: μ = 20, n = 36, x̄ = 22.4, s = 6.0: SE = 1.00, t = 2.40 with df = 35, and p ≈ 2 × 0.011 = 0.022. The one-sample t test assumes random sampling, independence and an approximately normal sampling distribution.
A p-value is not the probability the null is true, 1 − p is not the probability Ha is true, it does not measure how big the effect is, it is not a replication rate, and a large p does not prove no effect. A small p-value indicts the whole model, so check the sampling and assumptions first.
The significance level α is a false-alarm budget set in advance, usually 0.05. Decision rule: if p ≤ α, reject H0; if p > α, fail to reject H0, never "accept." The critical-value route always agrees: with df = 35 and two-tailed α = 0.05, t* = 2.030, and t = 2.40 lands in the rejection region. Had x̄ been 21.6, t = 1.60 and p ≈ 0.119, so fail to reject. And 0.049 and 0.051 are the same result in practice.
A Type I error rejects a true H0 (a false alarm), with probability α. A Type II error fails to reject a false H0 (a miss), with probability β. Power = 1 − β, the chance of detecting a specific effect size; 0.80 is the usual floor. With σ = 6, n = 36 and a true mean of 21.5, the commute test has power of only about 0.32; quadrupling n to 144 lifts it to about 0.85.
Power rises with larger n, a larger true effect, less variability and a larger α. Lowering α raises β, so you cannot shrink both errors by moving α; only a bigger or cleaner sample improves both. Which error is worse is a judgment about consequences: screening favors power, courts favor avoiding false convictions. A nonsignificant result from an underpowered study means very little.
Because SE = s ÷ √n, a big enough sample makes any nonzero difference statistically significant. That answers "not zero?" but never "big enough to matter?" The book's Study A (n = 40,000) found a 0.20 pound change with p < 0.0001, CI 0.10 to 0.30 and d = 0.02: significant and trivial. Study B (n = 25) found 4.0 pounds with p ≈ 0.057 and CI −0.13 to 8.13: too small to say. Report the estimate, the CI and an effect size such as Cohen's d = difference ÷ s, along with the exact p. Significance never shows causation; only the design can.
- H0 has the equals sign; hypotheses are about parameters.
- Choose one or two tails before seeing the data; default to two.
- p-value = P(result this extreme or more | H0 true).
- p ≤ α: reject H0. p > α: fail to reject. Never "accept."
- Type I = false alarm (α). Type II = miss (β). Power = 1 − β.
- Power rises with n, effect size and α, and falls with σ.
- Test statistic = (estimate − null value) ÷ SE.
- Statistical significance is not practical importance, and not causation.
Formulas and when to use them
| Quantity | Formula | When to use it |
|---|---|---|
| Test statistic (mean) | t = (x̄ − μ0) ÷ (s ÷ √n), df = n − 1 | σ unknown |
| Test statistic (σ known) | z = (x̄ − μ0) ÷ (σ ÷ √n) | σ given |
| Two-sided p-value | 2 × (tail area beyond |t|) | Ha: ≠ |
| One-sided p-value | One tail in the direction of Ha | Ha: < or >, chosen in advance |
| Decision | Reject H0 if p ≤ α | α fixed beforehand |
| Rejection cutoffs (power) | μ0 ± z*(σ ÷ √n) | Power calculations |
| Power | P(reject H0 | specific true μ) | Planning; aim for 0.80 or more |
| Cohen's d | d = (x̄ − μ0) ÷ s | Effect size beside the p-value |
The decision table
| Decision | H0 actually true | H0 actually false |
|---|---|---|
| Reject H0 | Type I error (probability α) | Correct (power = 1 − β) |
| Fail to reject H0 | Correct (1 − α) | Type II error (probability β) |
Worked examples
Worked example 1 · a one-sample t test from start to finish
A coffee chain says its drinks average 50 mg of caffeine per cup. A lab tests a random sample of n = 25 cups: x̄ = 53.1 mg, s = 7.5. Test at α = 0.05, two-tailed.
Step 1 · hypothesesH0: μ = 50; Ha: μ ≠ 50. Two-tailed, chosen before the data.
Step 2 · SEs ÷ √n = 7.5 ÷ 5 = 1.50.
Step 3 · test statistict = (53.1 − 50) ÷ 1.50 = 3.1 ÷ 1.50 = 2.067, df = 24.
Step 4 · p-valueOne tail beyond 2.07 is 0.0249; doubled, p ≈ 0.050.
Step 5 · decide0.050 is at or below 0.05, so reject H0. Critical-value route: t* = 2.064, and 2.067 is beyond it.
Step 6 · in contextIf the true mean really were 50 mg, a sample mean this far away would happen only about 5.0% of the time. The data suggest the mean differs from 50 mg.
Worked example 2 · the same data with a one-tailed alternative
Suppose, before collecting data, a regulator worried only that cups contain more than 50 mg. Redo the decision with Ha: μ > 50.
Step 1 · hypothesesH0: μ ≤ 50; Ha: μ > 50, set in advance for a stated reason.
Step 2 · p-valueSame t = 2.067, but only the upper tail counts: p ≈ 0.0249.
Step 3 · decide0.0249 ≤ 0.05: reject H0.
The warningChoosing one tail after seeing that x̄ came out high would quietly double the false-alarm rate. The direction has to come first.
Worked example 3 · power before and after quadrupling n
Test H0: μ = 100 against Ha: μ ≠ 100 at α = 0.05 with known σ = 10. If the true mean is 104, find the power for n = 25 and n = 100.
Step 1 · n = 25 cutoffsSE = 10 ÷ 5 = 2. Reject if x̄ > 100 + 1.96(2) = 103.92 or x̄ < 96.08.
Step 2 · in the true worldCentered at 104: z = (103.92 − 104) ÷ 2 = −0.04, so P(Z > −0.04) = 0.5160. Lower side: z = −3.96, area 0.0000.
Step 3 · power0.5160 + 0.0000 ≈ 0.52, so β ≈ 0.48. A coin flip.
Step 4 · n = 100SE = 1. Reject if x̄ > 101.96. z = (101.96 − 104) ÷ 1 = −2.04, P = 0.9793; power ≈ 0.98.
Read itFour times the sample halved the SE and lifted power from about half to nearly certain detection of a 4-point shift.
Worked example 4 · significant but trivial
An app study of n = 10,000 users finds mean daily use rose by 0.3 minutes, s = 12. Test H0: μ = 0 and judge the result.
Step 1 · SE12 ÷ √10,000 = 12 ÷ 100 = 0.12.
Step 2 · test statistict = 0.3 ÷ 0.12 = 2.50; two-sided p ≈ 0.0124. Significant at 0.05.
Step 3 · interval0.3 ± 1.96(0.12) = 0.3 ± 0.235: 0.065 to 0.535 minutes.
Step 4 · effect sized = 0.3 ÷ 12 = 0.025, negligible.
Step 5 · verdictReal, but at most about half a minute a day: statistically significant and practically trivial. Report "0.3 min, 95% CI 0.06 to 0.54, d = 0.025, p = 0.012."
- Writing hypotheses about x̄ or p̂. You can see the statistic. Hypotheses are about μ or p.
- Putting the inequality in H0. The equals sign belongs in the null.
- Choosing one tail after peeking. It doubles the false-alarm rate. Decide first.
- Reading p as P(H0 true). p is P(data | H0), not P(H0 | data).
- Saying "accept H0." Say "fail to reject." The test cannot confirm the null.
- Treating p = 0.051 as "no effect." It is weak evidence; look at the interval.
- Ignoring power. A null result from a low-power study tells you little.
- Equating significant with important or causal. Check the effect size, and remember cause comes from the design.
Chapter 10 self-test · ten items
- H0: x̄ = 12; Ha: x̄ ≠ 12
- H0: μ ≠ 12; Ha: μ = 12
- H0: μ = 12; Ha: μ ≠ 12
- H0: μ > 12; Ha: μ < 12
- 2.00
- 0.29
- 14.00
- 0.57
- Under H0, results this extreme occur about 3% of the time
- There is a 3% chance that H0 is true for this population
- There is a 97% chance that Ha is the correct hypothesis
- The effect must be large, because the p-value is small
- Reject H0 at 0.05
- Accept H0 as true
- Accept Ha as true
- Fail to reject H0
- Failing to reject H0 when it is false
- Rejecting H0 when H0 is true
- Choosing the wrong number of tails
- Using z when t is needed
- Rejecting H0 when H0 is actually true
- Failing to reject H0 when it is actually false
- Rejecting H0 when a specific alternative is true
- Getting a p-value under 0.05 purely by chance
- Raising α from 0.01 to 0.05
- Using a two-tailed test
- A noisier measurement tool
- A larger sample size
- There is definitely no effect at all
- Weak evidence; a real effect may still exist
- H0 is true with a probability of 0.30
- Ha is true with a probability of 0.70
- Reject H0, because |t| exceeds 2.086
- Fail to reject, because t is negative
- Reject only with a one-tailed test
- Fail to reject, because 2.30 < 2.086
- A large effect that is clearly important
- Proof that one factor causes the other
- A Type I error, since n is very large
- Probably real but possibly too small to matter
One pageCram sheet
Everything from chapters 9 and 10 in one place. Cover the right column and see if you can rebuild each row.
Formulas
| Name | Formula | Note |
|---|---|---|
| CI skeleton | estimate ± critical value × SE | Width = 2 × margin |
| Mean, σ known | x̄ ± z*σ/√n | z* 1.645, 1.96, 2.576 |
| Mean, σ unknown | x̄ ± t*s/√n | df = n − 1 |
| Proportion | p̂ ± z*√[p̂(1 − p̂)/n] | np̂, n(1 − p̂) ≥ 10 |
| Sample size | n = (z*σ/E)²; n = z*²p(1 − p)/E² | Round up; p = 0.5 if unknown |
| Test statistic | (estimate − null value) ÷ SE | t with df = n − 1 for means |
| Two-sided p | 2 × one tail | One-sided only if chosen first |
| Power | 1 − β | Aim for 0.80 or more |
| Cohen's d | difference ÷ s | Effect size |
Rules that are not formulas
| Topic | The rule |
|---|---|
| z or t | If you computed s, use t. Proportions use z. |
| Dials | More confidence widens; 4 × n halves the margin. |
| CI meaning | About C% of intervals from this method capture the parameter. |
| CI and tests | A value outside a 95% CI is rejected at α = 0.05, two-sided. |
| Hypotheses | About parameters; equals sign in H0; tails chosen first. |
| p-value | P(data this extreme | H0); not P(H0 true). |
| Decision | p ≤ α reject; p > α fail to reject; never accept. |
| Errors | Type I false alarm (α); Type II miss (β). |
| Significance | Not size, not importance, not cause. |