Exam 6 Study Guide
This guide covers chapters 11 and 12, where the logic of testing becomes working tools. You will run the five-step test for a mean with z or t and for a proportion, check the conditions, and match each test to its confidence interval. Then you will compare two groups: independent means with Welch's t, paired data through their differences, and two proportions with a pooled z, and you will learn to pick the right test from the design. 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 11 · the five steps of a test, p-values and errors, the z-test and t-test for a mean, degrees of freedom, the one-proportion z-test, test versus interval standard errors, and the assumptions in order of importance.
- Chapter 12 · two independent means with Welch's t, paired samples and differences, two proportions with the pooled test and unpooled interval, choosing the right test, and two-sample confidence intervals.
Chapter 11One-Sample Tests
Read it in full: Chapter 11 in the textbook. Practice it in the lab: The Five Steps and Z Test for a Proportion.
What to know
Every test follows the same five steps, and only the formula in step 3 changes. (1) State H0 and Ha about the parameter before seeing the data; H0 holds the equality and Ha comes from the research question. (2) Choose α and check the conditions. (3) Compute the test statistic: (estimate − claim) ÷ SE, the distance from the claim in standard errors. (4) Find the p-value or compare with a critical value. (5) Decide and interpret in context, about the original claim.
With z = 2.50 two-tailed, p = 2 × 0.0062 = 0.0124: reject at α = 0.05 but not at α = 0.01. Same evidence, different threshold, which shows α is a convention. We fail to reject; we never accept. A Type I error (rate α) rejects a true null; a Type II error (rate β) misses a false one; power = 1 − β rises with n, effect size, smaller variability and larger α.
The z-test for a mean uses z = (x̄ − μ0) ÷ (σ ÷ √n) and is for the rare case when σ is truly known, such as a long-studied machine. The book's bottling line (σ = 4.0, n = 25, x̄ = 498.2) gives SE = 0.80, z = −2.25 and p = 2 × 0.0122 = 0.0244, so reject. One-sided (chosen in advance) would give 0.0122. Cutoffs at α = 0.05: ±1.96 two-tailed, 1.645 one-tailed.
A two-sided test at level α rejects H0: μ = μ0 exactly when the 100(1 − α)% confidence interval excludes μ0. The bottling interval 496.63 to 499.77 excludes 500. The interval also shows the plausible size of the discrepancy, which the p-value never does.
The t-test for a mean uses t = (x̄ − μ0) ÷ (s ÷ √n) with df = n − 1, whenever σ is estimated, which is nearly always. Replacing σ with s adds a second source of noise, so the t curve has heavier tails and larger critical values: 2.571 for df = 5, 2.131 for df = 15, 2.042 for df = 30, approaching 1.960. One degree of freedom is spent computing x̄.
In the book's commute test (μ0 = 30, n = 16, x̄ = 33.4, s = 6.4), SE = 1.60, t = 2.125 with df = 15, just short of 2.131, so p ≈ 0.051 and we fail to reject. With the same numbers from n = 25, t = 2.656 and p ≈ 0.014. The estimated effect was the same 3.4 minutes; only the precision changed, so "not significant" never means "no difference."
The one-proportion z-test uses z = (p̂ − p0) ÷ √[p0(1 − p0) ÷ n]. There is no t-test for a proportion, because p0 already fixes the variability. Check np0 ≥ 10 and n(1 − p0) ≥ 10, or use the exact binomial test. The test uses p0 in its SE; the interval uses p̂. The book's 216 of 400 against p0 = 0.60 gives z = −2.45 and p = 0.0143. Always work in decimals, not percents.
Three conditions, in order of importance. Random sampling cannot be rescued by any n. Independence holds with random sampling and n under 10% of the population; clustered data break it and make p-values too impressive. Approximate normality applies to the sampling distribution of x̄, not the raw data: under 15, the data should be close to symmetric with no outliers; 15 to 40 allows mild skew; 40 or more usually handles skew. The t-test is robust to mild non-normality but not to outliers in small samples. And the hypotheses must be fixed before the data: twenty tests at α = 0.05 give about one false positive by chance.
- Five steps: hypotheses, α and conditions, statistic, p-value, conclusion in context.
- Test statistic = (estimate − claim) ÷ SE.
- z-test only when σ is truly known; otherwise t with df = n − 1.
- t has heavier tails than z; t* shrinks toward 1.96 as df grows.
- Proportion test SE uses p0; the CI uses p̂.
- Check np0 ≥ 10 and n(1 − p0) ≥ 10.
- Two-sided test rejects at α exactly when the 100(1 − α)% CI excludes the claim.
- Random sampling, independence, normal enough: randomness cannot be repaired.
Formulas and when to use them
| Test | Statistic | When to use it |
|---|---|---|
| z-test for μ | z = (x̄ − μ0) ÷ (σ ÷ √n) | σ known from long history |
| t-test for μ | t = (x̄ − μ0) ÷ (s ÷ √n), df = n − 1 | σ estimated by s |
| One-proportion z-test | z = (p̂ − p0) ÷ √[p0(1 − p0) ÷ n] | Yes/no outcome; np0, n(1 − p0) ≥ 10 |
| Proportion CI | p̂ ± z*√[p̂(1 − p̂) ÷ n] | Estimating p after the test |
| p-value, two-sided | 2 × P(beyond |statistic|) | Ha: ≠ |
| p-value, one-sided | One tail toward Ha | Direction set in advance |
| Chance of a false positive in k tests | 1 − (1 − α)k | Multiple testing |
Critical values at α = 0.05
| Reference curve | Two-tailed | One-tailed |
|---|---|---|
| Standard normal | ±1.960 | 1.645 |
| t, df = 5 | ±2.571 | 2.015 |
| t, df = 10 | ±2.228 | 1.812 |
| t, df = 15 | ±2.131 | 1.753 |
| t, df = 20 | ±2.086 | 1.725 |
| t, df = 30 | ±2.042 | 1.697 |
| t, df = 60 | ±2.000 | 1.671 |
Worked examples
Worked example 1 · a z-test with σ known
A standardized test has σ = 15 and a published mean of 100. A random sample of 36 students at one district averages 104.5. Test H0: μ = 100 against Ha: μ ≠ 100 at α = 0.05.
Step 1 · hypothesesH0: μ = 100; Ha: μ ≠ 100.
Step 2 · conditionsRandom sample, independent students, σ known, and n = 36 is large enough for the CLT.
Step 3 · statisticSE = 15 ÷ 6 = 2.50; z = (104.5 − 100) ÷ 2.50 = 1.80.
Step 4 · p-valueUpper tail beyond 1.80 = 1 − 0.9641 = 0.0359; doubled, p = 0.0718.
Step 5 · conclude0.0718 > 0.05, so fail to reject H0. The 95% interval 104.5 ± 1.96(2.50) = 99.60 to 109.40 contains 100, as it must. The district may differ, but this sample cannot show it.
Worked example 2 · a one-sided t-test set in advance
A wellness program's goal is that participants average 8 hours of sleep. Before collecting data, the team decided to test whether participants fall short. A random sample of 20 gives x̄ = 7.4, s = 1.2.
Step 1 · hypothesesH0: μ = 8; Ha: μ < 8, chosen before the data.
Step 2 · conditionsRandom sample; n = 20 sits in the 15 to 40 range, so mild skew is fine but outliers should be checked with a plot.
Step 3 · statisticSE = 1.2 ÷ √20 = 0.2683; t = (7.4 − 8) ÷ 0.2683 = −2.236, df = 19.
Step 4 · p-valueLower tail only: p ≈ 0.0188. The one-tailed cutoff at df = 19 is −1.729.
Step 5 · conclude0.0188 ≤ 0.05, so reject H0: there is evidence participants average less than 8 hours. The estimated shortfall is 0.6 hours.
Worked example 3 · a one-proportion z-test and its interval
A clinic says 25% of its patients are overdue for a screening. An audit of a random 500 records finds 148 overdue. Test at α = 0.05, two-sided.
Step 1 · hypothesesH0: p = 0.25; Ha: p ≠ 0.25.
Step 2 · conditions with p0np0 = 125 and n(1 − p0) = 375, both at least 10.
Step 3 · statisticp̂ = 148 ÷ 500 = 0.296. SE0 = √(0.25 × 0.75 ÷ 500) = 0.01936. z = (0.296 − 0.25) ÷ 0.01936 = 2.38.
Step 4 · p-valueUpper tail beyond 2.38 = 0.0087; doubled, p = 0.0174. Reject H0.
Step 5 · the interval uses p̂SE = √(0.296 × 0.704 ÷ 500) = 0.02041; 0.296 ± 1.96(0.02041) = 0.256 to 0.336, which excludes 0.25.
Worked example 4 · why the hypotheses must come first
A researcher runs 20 independent tests at α = 0.05 on data where nothing real is going on. How many "significant" results should she expect, and what is the chance of at least one?
Step 1 · expected false alarms20 × 0.05 = 1 significant result by chance alone.
Step 2 · none at allEach test stays quiet with probability 0.95, so all 20 do with 0.9520 = 0.3585.
Step 3 · at least one1 − 0.3585 = 0.6415, about 64%.
Step 4 · the lessonReporting only the one test that "worked" hides a real error rate near 64%, not 5%. Fix the hypotheses, the direction and the number of tests before looking.
- Picking the direction from the data. A one-sided Ha chosen after seeing the sample doubles the real error rate.
- Using z when s came from the data. Estimated σ means t with df = n − 1.
- Using a t-test for a proportion. Proportions use z; p0 fixes the variability.
- Using p̂ in the test's SE. The test lives in the null world: use p0. The interval uses p̂.
- Entering percents. Use 0.54, not 54.
- Reading p = 0.051 as "no effect." It is almost the same evidence as 0.049. Give the interval and n.
- Checking normality on the wrong thing. It is the sampling distribution of x̄ that must be normal; the CLT helps as n grows.
- Expecting large n to fix a bad sample. The CLT fixes shape, never bias.
Chapter 11 self-test · ten items
- Compute the test statistic, (estimate − claim) ÷ SE
- State the hypotheses about the population parameter
- Choose α and check the conditions for the test
- Interpret the decision in the context of the claim
- 0.50
- 8.00
- 2.00
- 1.50
- 0.0359
- 0.9641
- 0.0720
- 0.0718
- Standard normal
- t with df = 9
- t with df = 10
- t with df = 11
- −2.00
- −0.40
- −4.00
- −10.00
- s varies from sample to sample, adding noise
- Small samples are always skewed to the right
- The t test ignores the sample mean
- df is larger than n for small samples
- 1.96
- 0.08
- 2.00
- 1.20
- Yes, n is above 30
- No, np0 = 6 is below 10
- Yes, n(1 − p0) is 194
- No, n must be at least 1,000
- Reject, since 14 is not the center of the interval
- Accept μ = 14 as the true population mean
- Fail to reject, since 14 is inside the interval
- Reject, since the interval is fairly narrow
- A skewed population
- A non-random sample
- A t curve with heavy tails
- An unknown σ
Chapter 12Two-Sample Tests
Read it in full: Chapter 12 in the textbook. Practice it in the lab: Paired or Independent and Comparing Two Proportions.
What to know
Two samples from the same population always differ by chance. A two-sample test asks whether the observed gap is bigger than chance would comfortably produce. Samples are independent when no subject is in both groups and nothing links a value in one group to a value in the other. H0: μ1 − μ2 = 0 says the populations have equal means, not the samples.
For independent means, variances add (standard deviations never do): SE = √(s1²/n1 + s2²/n2) and t = (x̄1 − x̄2) ÷ SE. Use Welch's degrees of freedom by default: df = (a1 + a2)² ÷ [a1²/(n1 − 1) + a2²/(n2 − 1)], where a = s²/n. It is rarely whole; by hand, rounding down is conservative. The pooled t-test assumes equal variances, which is rarely knowable. The book's coaching example gives t = 1.896, df ≈ 24.9, p ≈ 0.07: fail to reject.
Conditions for Welch: independence within groups (random sample or assignment, under 10% of the population), independence between groups (a design fact), each population roughly normal or each sample large (30 or more per group makes mild skew harmless), and no single outlier driving the difference.
Paired data have a natural partner for each value: the same subject twice, two conditions on one subject, matched subjects or two raters scoring one item. Compute each difference d, then run a one-sample t-test on the differences: t = d̄ ÷ (sd ÷ √n), df = n − 1, where n counts pairs. Conditions apply to the difference column. The book's eight reaction-time pairs give d̄ = 7.00, sd = 5.555, SE = 1.964, t = 3.564 with df = 7 and p ≈ 0.009. With no control group, practice effects remain a rival explanation.
Pairing removes person-to-person variation, so it is far more powerful. Analyzing the same eight pairs as independent gives SE = 9.602, t = 0.73 and p ≈ 0.48. Pairing is decided by the design, never by how the numbers line up; forcing a pairing on independent data produces a meaningless p-value.
For two proportions, use z. The test pools, because H0 says the proportions are equal: p̂pool = (x1 + x2) ÷ (n1 + n2) and SEpool = √[p̂pool(1 − p̂pool)(1/n1 + 1/n2)]. Check that all four expected counts are at least 10. The confidence interval uses the unpooled SE, √[p̂1(1 − p̂1)/n1 + p̂2(1 − p̂2)/n2]. The book's emails, 45 of 150 versus 30 of 160, give z = 2.31 and p = 0.021. An 11.3 percentage point gap is also a 60% relative increase; say which you mean.
Two questions choose the test: is the outcome numeric or yes/no, and are the groups independent or paired? Numeric and independent: Welch t. Numeric and paired: paired t. Yes/no and independent: two-proportion z. Yes/no and paired: McNemar's test. Badly skewed or tiny samples: Wilcoxon rank-sum (independent) or signed-rank (paired); small counts: Fisher's exact test. Fix the direction, α and number of comparisons in advance.
Every two-sample interval is estimate ± critical value × SE: Welch t* for independent means, t* with df = n − 1 for pairs and z* with the unpooled SE for proportions. The coaching interval is −0.56 to 13.56, which contains 0 and is too wide to be useful; the paired interval is about 2.4 to 11.6 ms; the email interval is 0.017 to 0.208. Intervals and tests agree exactly for the t procedures and only approximately for proportions. "Zero is in the interval" does not mean "the groups are the same": the width tells you how much you learned.
- Independent: SE = √(s1²/n1 + s2²/n2); variances add.
- Use Welch df by default; rounding df down by hand is conservative.
- Paired: differences first, then a one-sample t with df = number of pairs − 1.
- Pairing is a design fact, not something you read off the numbers.
- Two proportions: z, pooled p̂ in the test, unpooled SE in the CI.
- Pooled p̂ = (x1 + x2)/(n1 + n2); check four expected counts ≥ 10.
- Numeric or yes/no × independent or paired picks the test.
- Percentage points are not percent change.
Formulas and when to use them
| Comparison | Statistic | Interval |
|---|---|---|
| Two independent means (Welch) | t = (x̄1 − x̄2) ÷ √(s1²/n1 + s2²/n2) | (x̄1 − x̄2) ± t* SE, Welch df |
| Welch df | (a1 + a2)² ÷ [a1²/(n1 − 1) + a2²/(n2 − 1)], a = s²/n | Round down by hand |
| Paired means | t = d̄ ÷ (sd/√n), df = n − 1 | d̄ ± t* sd/√n |
| Pooled proportion | p̂pool = (x1 + x2)/(n1 + n2) | Test only |
| Two proportions | z = (p̂1 − p̂2) ÷ √[p̂pool(1 − p̂pool)(1/n1 + 1/n2)] | (p̂1 − p̂2) ± z*√[p̂1q̂1/n1 + p̂2q̂2/n2] |
| Relative change | (p̂1 − p̂2) ÷ p̂2 | Not the same as percentage points |
Which test?
| Outcome and design | Test | Reference curve |
|---|---|---|
| Numeric, independent | Two-sample (Welch) t | t, Welch df |
| Numeric, paired | Paired t | t, df = pairs − 1 |
| Yes/no, independent | Two-proportion z | Standard normal |
| Yes/no, paired | McNemar's test | Chi-square, df = 1 |
| Numeric, skewed or tiny, independent | Wilcoxon rank-sum (Mann-Whitney) | Its own |
| Numeric, skewed or tiny, paired | Wilcoxon signed-rank | Its own |
| Yes/no, small counts, independent | Fisher's exact test | Exact |
Worked examples
Worked example 1 · a Welch two-sample t-test with its interval
Students randomly assigned to a flipped class (n = 20, x̄ = 24.6, s = 5.1) or a lecture class (n = 18, x̄ = 21.2, s = 6.3) take the same quiz. Test for a difference at α = 0.05 and build a 95% interval.
Step 1 · difference24.6 − 21.2 = 3.4 points.
Step 2 · SE5.1²/20 = 1.3005; 6.3²/18 = 2.2050; SE = √3.5055 = 1.8723.
Step 3 · tt = 3.4 ÷ 1.8723 = 1.816.
Step 4 · Welch df(3.5055)² ÷ [1.3005²/19 + 2.2050²/17] = 12.2885 ÷ 0.3750 = 32.8.
Step 5 · p and decisionTwo-sided p ≈ 0.079. Fail to reject H0 at α = 0.05.
Step 6 · intervalWith df rounded down to 32, t* = 2.037: 3.4 ± 2.037(1.8723) = 3.4 ± 3.81, so −0.41 to 7.21. It contains 0 and is wide: the study is too small to say much.
Worked example 2 · a paired t-test
Six patients' systolic pressure before and after a program: before 148, 152, 139, 160, 145, 155; after 140, 147, 138, 151, 142, 146. Test at α = 0.05, two-sided, with d = before − after.
Step 1 · differencesd = 8, 5, 1, 9, 3, 9; d̄ = 35 ÷ 6 = 5.83.
Step 2 · sdSquared deviations sum to 56.83; sd² = that ÷ 5 = 11.367; sd = 3.371.
Step 3 · SE and tSE = 3.371 ÷ √6 = 1.376; t = 5.83 ÷ 1.376 = 4.238, df = 5.
Step 4 · decideTwo-sided p ≈ 0.0082; cutoff t* = 2.571. Reject H0.
Step 5 · interval and caution5.83 ± 2.571(1.376) = 2.29 to 9.37 mmHg. With no control group, the drop cannot be credited to the program alone.
Worked example 3 · two proportions: pooled test, unpooled interval
A randomized trial of reminder texts: 64 of 200 texted patients kept their appointment early versus 42 of 200 controls. Test at α = 0.05 and give a 95% interval.
Step 1 · proportionsp̂1 = 0.32, p̂2 = 0.21; difference 0.11.
Step 2 · pooledp̂pool = 106 ÷ 400 = 0.265. Expected counts: 53 and 147 per group, all at least 10.
Step 3 · SEpool and z√[0.265 × 0.735 × (1/200 + 1/200)] = 0.04413; z = 0.11 ÷ 0.04413 = 2.49.
Step 4 · p-value2 × (1 − 0.9936) = 0.0128. Reject H0.
Step 5 · unpooled intervalSE = √(0.32 × 0.68/200 + 0.21 × 0.79/200) = 0.04379; 0.11 ± 1.96(0.04379) = 0.024 to 0.196.
Read itAn 11 percentage point gain, a 52% relative increase. Random assignment supports a causal reading.
Worked example 4 · choosing the test from the design
Name the test for each study: (a) 30 tires, one new and one old tread on each car, measuring wear; (b) a random 120 nurses and 140 doctors asked yes or no about a policy; (c) 40 patients randomly split, recovery time in days; (d) 50 people asked the same yes or no question before and after a video.
Step 1 · (a)Numeric outcome, each car gives a natural pair: paired t with df = 29.
Step 2 · (b)Yes/no outcome, two separate groups: two-proportion z.
Step 3 · (c)Numeric outcome, independent arms: Welch t; if the times are badly skewed with this few patients, Wilcoxon rank-sum.
Step 4 · (d)Yes/no outcome, same people twice: McNemar's test.
- Adding standard deviations. Variances add: √(s1²/n1 + s2²/n2).
- Analyzing paired data as independent. Person-to-person noise swamps the effect; p went from 0.009 to 0.48.
- Counting measurements instead of pairs. Eight people measured twice give n = 8 and df = 7.
- Forcing a pairing on independent groups. Lining up rows by order invents a relationship.
- Using the pooled SE in the interval. Pool only for the test, where H0 says the proportions are equal.
- Saying the means are equal after failing to reject. A wide interval that includes 0 means the study was too small.
- Mixing percentage points and percent. A rise from 18.8% to 30.0% is 11.3 points and 60%.
- Switching tests after seeing p. The design picks the test before any computing.
Chapter 12 self-test · ten items
- 2.828
- 4.000
- 8.000
- 1.414
- 25 men and 30 women surveyed at random in one city
- Two randomly assigned treatment arms of 40 patients
- Two cities sampled at random for household income
- The same 25 drivers tested with and without a phone
- 0.80
- 3.58
- 2.00
- 2.53
- 23
- 11
- 22
- 12
- 0.25
- 0.50
- 0.10
- 0.30
- The pooled SE using the combined p̂pool
- The larger of the two separate group SEs
- The unpooled SE using each group's p̂
- The SE of the differences, sd ÷ √n
- It doubles the number of independent subjects
- It removes person-to-person variation from the SE
- It uses z instead of t
- It makes the population normal
- A 5% relative rise and a 25 point absolute rise
- A 25 percentage point rise and a 5% relative rise
- A 5 percentage point rise and a 25% relative rise
- A 5 point rise and a 5% relative rise
- Two-proportion z-test
- Paired t-test
- McNemar's test
- Welch t-test
- The two means are shown to be exactly equal
- Not significant, but a large difference is not ruled out
- Group 1 is shown to be larger than group 2 here
- There is a 95% chance the difference is near 6
One pageCram sheet
Everything from chapters 11 and 12 in one place. Cover the right column and see if you can rebuild each row.
Formulas
| Name | Formula | Note |
|---|---|---|
| z for μ | (x̄ − μ0) ÷ (σ/√n) | σ known only |
| t for μ | (x̄ − μ0) ÷ (s/√n), df = n − 1 | σ estimated |
| One proportion | (p̂ − p0) ÷ √[p0(1 − p0)/n] | CI uses p̂ |
| Welch t | (x̄1 − x̄2) ÷ √(s1²/n1 + s2²/n2) | Welch df |
| Paired t | d̄ ÷ (sd/√n) | df = pairs − 1 |
| Pooled p̂ | (x1 + x2)/(n1 + n2) | Test only |
| Two proportions | (p̂1 − p̂2) ÷ SEpool | CI uses unpooled SE |
| False positives | 1 − (1 − α)k | k tests |
Rules that are not formulas
| Topic | The rule |
|---|---|
| Five steps | Hypotheses, α and conditions, statistic, p-value, conclusion in context. |
| Direction | Chosen from the question before the data. |
| z or t | Estimated σ means t; proportions use z. |
| Duality | Two-sided test at α rejects exactly when the 100(1 − α)% CI excludes the claim. |
| Conditions | Random (unfixable), independent (10%), normal enough (by n). |
| Pairing | Decided by design; n counts pairs. |
| Test choice | Numeric or yes/no × independent or paired. |
| Zero in the CI | Fail to reject; width tells how much you learned. |