Final Exam Study Guide
The final covers all fourteen chapters. Each chapter here is shorter than in the exam guides: three paragraphs of what to know, the points to lock in, its diagram, one formula table, one worked example, the traps and six new self-test items. If a chapter feels shaky, go back to its exam guide for the full treatment. The long cram sheet at the end pulls every formula and rule into one place. Work two chapters a day and the whole course fits into a week.
What this guide covers
- Describing data: chapters 1 to 4 (what statistics is, sampling and design, graphs, center and spread).
- Probability: chapters 5 and 6 (rules of probability, discrete random variables).
- The bridge to inference: chapters 7 and 8 (the normal model, sampling distributions and the CLT).
- Inference: chapters 9 to 12 (confidence intervals, testing logic, one-sample and two-sample tests).
- More than two groups and two variables: chapters 13 and 14 (chi-square, ANOVA, correlation and regression).
- Every chapter carries what to know, a diagram, a table, a worked example, the traps and a six-item self-test, and the cram sheet holds every formula.
Chapter 1What Statistics Is
Read it in full: Chapter 1 in the textbook. Practice it in the lab: Describe or Infer and Spot the Misleading Claim.
What to know
Descriptive statistics summarizes the data in hand; inferential statistics generalizes from a sample to a population and must report its uncertainty. The mean (Σx ÷ n) is pulled by extreme values and the median is not, so in the book's commutes the mean is 31.1 and the median 24.
Parameters (μ, σ, p, N) describe populations and are fixed but unknown; statistics (x̄, s, p̂, n) describe samples and vary. Sampling error shrinks with n; sampling bias does not. Sample variance divides by n − 1, population variance by N.
Data are qualitative or quantitative, and quantitative data are discrete or continuous. The four levels are nominal, ordinal, interval and ratio; only ratio supports "twice as much." Correlation is not causation, and a relative risk without its baseline can make a tiny effect sound large.
- Descriptive describes the data in hand; inferential generalizes and must report uncertainty.
- Parameter goes with population and Greek letters (μ, σ, p, N); statistic goes with sample and Roman letters (x̄, s, p̂, n).
- The mean is pulled by outliers; the median is not. Report both when they disagree.
- Sampling error shrinks with bigger n. Sampling bias needs better design, not more data.
- Sample variance divides by n − 1; population variance divides by N.
- Counted is discrete, measured is continuous; digits used as names are qualitative.
- Nominal, ordinal, interval, ratio: each level adds order, then equal gaps, then a true zero.
- Relative risk reduction = (rc − rt) ÷ rc; absolute = rc − rt; NNT = 1 ÷ absolute reduction.
Chapter 1 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Mean | x̄ = Σx ÷ n (sample); μ = Σx ÷ N (population) | Center of quantitative data; totals and long-run averages |
| Median | Middle sorted value; average of the two middle values if n is even | Typical value; skewed data or outliers |
| Range | Largest − smallest | Quickest spread; fragile, set by two values |
| Population SD | σ = √[Σ(x − μ)² ÷ N] | You have every member of the population |
| Sample SD | s = √[Σ(x − x̄)² ÷ (n − 1)] | You have a sample and want to estimate σ |
| Relative risk reduction | (rc − rt) ÷ rc | How large the change is relative to baseline |
| Absolute risk reduction | rc − rt | How many fewer cases per person treated |
| Number needed to treat | NNT = 1 ÷ ARR | People treated for one to benefit |
| Celsius to Fahrenheit | °F = (9 ÷ 5)°C + 32 | Testing whether a ratio survives a unit change |
| Celsius to kelvin | K = °C + 273.15 | Kelvin has a true zero, so its ratios are real |
Worked examples
Example 1.1 · mean, median and range with an outlier
A clinic records patient wait times in minutes: 12, 15, 9, 14, 11, 13, 58, 10. Find the mean, median and range, and say which better describes a typical wait.
Step 1 · add and divideSum = 142 and n = 8, so x̄ = 142 ÷ 8 = 17.75 minutes.
Step 2 · sortSorted: 9, 10, 11, 12, 13, 14, 15, 58.
Step 3 · find the middleWith n = 8 the median is the average of the 4th and 5th values: (12 + 13) ÷ 2 = 12.5 minutes.
Step 4 · range58 − 9 = 49 minutes.
Step 5 · interpretSeven of the eight waits are 15 minutes or less, yet the mean is 17.75 because of the single 58. The median of 12.5 describes a typical wait. Without the 58 the mean is 12.00, close to the median.
- Calling a sample summary inferential. "These 40 patients averaged 128" is descriptive. It turns inferential only when it claims something about patients not measured.
- Mixing up the symbols. μ and σ are population parameters; x̄ and s are sample statistics. A question that gives x̄ is giving you a statistic.
- Thinking a huge sample cures bias. Size shrinks sampling error only. A self-selected sample of 500,000 still estimates the wrong group.
- Averaging labels. A spreadsheet will average ZIP codes or 1 = single, 2 = married. The result means nothing.
- Taking ratios on an interval scale. 20°C is not twice 10°C, and the year 2000 is not twice the year 1000.
- Reporting only the mean for skewed data. One extreme value can move the mean far from a typical case. Give the median too.
- Reading relative risk alone. "Halves your risk" may mean 2 in 1,000 down to 1 in 1,000. Ask for the baseline and the NNT.
- Misreading the p-value. p = 0.03 is not a 3% chance there is no effect, and p = 0.40 does not prove there is no effect.
Chapter 1 self-test · six items
- Inferential, because it reaches beyond the 1,200
- Descriptive, because it gives a single percent
- A census, because 1,200 is a large number
- A parameter, because it is about all adults
- 5
- 11.7
- 6.5
- 8
- It is caused by poor question wording
- It shrinks as the sample size grows
- It disappears with random selection
- It grows when the sample is larger
- Ordinal
- Interval
- Ratio
- Nominal
- Relative reduction 0.1%, absolute 50 points
- Relative reduction 1%, absolute 0.5 points
- Relative reduction 50%, absolute 50 points
- Relative reduction 50%, absolute 0.1 points
- Compatible with no effect, but an effect is not ruled out
- There is a 40% chance that the null hypothesis is true
- The study has proven that there is no effect at all
- There is a 60% chance that the effect is real
Chapter 2Sampling and Data Collection
Read it in full: Chapter 2 in the textbook. Practice it in the lab: Why Sampling Works and Design an Experiment.
What to know
A random sample represents the population on every variable at once, and its wobble is measurable: SE(x̄) = σ ÷ √n. Quadruple n to halve the SE; population size barely matters if the sample is a small share of it.
Probability methods: simple random, stratified (some from every group, nh = n × Nh ÷ N), cluster (everyone from some groups) and systematic (every k-th, k = N ÷ n). Convenience and voluntary response samples support no inference. Bias, unlike sampling error, never shrinks with n, and a margin of error ignores it.
Observational studies show association and are open to confounding; experiments assign treatments and can show cause. Random sampling gives generalization; random assignment gives cause. Good experiments use control, randomization, replication, blocking, a placebo and double blinding.
- SE(x̄) = σ ÷ √n. Four times the sample gives half the standard error.
- Population size does not appear in the SE formula, as long as the sample is under about 10% of it.
- SRS: every group of size n equally likely. Systematic: every k-th after a random start, k = N ÷ n.
- Stratified takes some from every group; cluster takes everyone from some groups.
- Proportional allocation: nh = n × Nh ÷ N.
- Bias is systematic and never shrinks with n. A margin of error covers chance only.
- Random sampling licenses generalization; random assignment licenses cause.
- Experiment pillars: control, randomization, replication, blocking; add a placebo and double blinding.
Chapter 2 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Standard error of x̄ | SE = σ ÷ √n | Typical miss of a sample mean; random, independent sample |
| Halving the SE | Multiply n by 4 | Planning a sample size |
| 10% condition | n ≤ 0.10N | Checking that draws are close to independent |
| Proportional allocation | nh = n × (Nh ÷ N) | Stratified sample sized to each stratum |
| Systematic step | k = N ÷ n; picks are start + k(j − 1) | Every k-th unit from a list or stream |
| Sample proportion | p̂ = successes ÷ n | Share of a sample with a trait |
| Margin of error (proportion) | 1.96 × √[p̂(1 − p̂) ÷ n] | 95% chance error only; needs 10 successes and 10 failures |
| Number of treatments | levels of factor 1 × levels of factor 2 | Counting arms in a factorial experiment |
Worked examples
Example 2.1 · standard error at three sample sizes
Systolic blood pressure in a large adult population has σ = 15 mmHg. Find the standard error of x̄ for n = 25, 100 and 400.
Step 1 · n = 25SE = 15 ÷ √25 = 15 ÷ 5 = 3.0 mmHg.
Step 2 · n = 100SE = 15 ÷ √100 = 15 ÷ 10 = 1.5 mmHg.
Step 3 · n = 400SE = 15 ÷ √400 = 15 ÷ 20 = 0.75 mmHg.
Step 4 · read the patternEach step multiplies n by 4 and halves the SE. Sixteen times the data (25 to 400) buys four times the precision.
Check the conditionThe population is large, so 400 is far less than 10% of it, and the draws can be treated as independent.
- Thinking precision grows with n. It grows with √n. Doubling n cuts the SE by only about 29%; you need four times the n to halve it.
- Sizing a sample as a share of the population. N is not in σ ÷ √n. A random 1,000 works for a country as well as a town.
- Calling systematic sampling an SRS. Everyone has an equal chance, but most groups of size n can never be chosen, so it is not an SRS.
- Swapping stratified and cluster. Stratified: some from every group. Cluster: all from some groups.
- Trusting the margin of error to cover bias. It counts chance only. Nonresponse and undercoverage can be many times larger.
- Using causal verbs for observational findings. Rewrite "cuts" or "boosts" as "is associated with" unless the treatment was randomly assigned.
- Mixing up the two randomizations. Random sampling gives generalization. Random assignment gives cause.
- Thinking randomization is about fairness. Its job is to balance every variable, including ones nobody measured.
Chapter 2 self-test · six items
- 10
- 40
- 100
- 400
- 100
- 250
- 25
- 160
- Cluster sampling
- Stratified sampling
- Systematic sampling
- Convenience sampling
- Undercoverage
- Nonresponse bias
- Sampling error
- Response bias
- Cause, for the whole national population
- Association only, for the whole population
- Cause, but only for people like these volunteers
- Neither cause nor association
- Makes the belief of being treated equal in both groups
- Makes the treatment group larger than the control
- Removes the need to randomize the subjects
- Lets subjects pick the arm they prefer
Chapter 3Displaying Data
Read it in full: Chapter 3 in the textbook. Practice it in the lab: Choosing the Bin Width and Truncated Axis.
What to know
Frequency counts sum to n, relative frequencies (f ÷ n) to 1, and the cumulative column ends at n. Grouped tables use 5 to 10 classes with width = range ÷ classes, rounded up, and no overlaps or gaps.
Bar charts (gaps) and pies (angle = f ÷ n × 360°) are for categories; histograms (touching bars), stemplots (with a key) and dot plots are for measurements. Skew is named for the tail; right skew usually puts the mean above the median.
Bar charts and histograms must start at zero. Lie factor = apparent effect ÷ actual effect, and a truncated axis can turn a 6.1% rise into an apparent 600%.
- Frequencies sum to n; relative frequencies (f ÷ n) sum to 1; cumulative frequency ends at n.
- Class width = (max − min) ÷ number of classes, rounded up. No overlaps, no gaps.
- Midpoint = (lower limit + upper limit) ÷ 2.
- Pie slice angle = (f ÷ n) × 360°; 1% of a pie is 3.6°.
- Bar chart bars have gaps (categories); histogram bars touch (continuous scale).
- Skew is named for the tail. Right skew: mean usually above median.
- Bimodal usually means two groups mixed together; split them.
- Lie factor = apparent effect ÷ actual effect. Bars must start at zero.
Chapter 3 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Relative frequency | f ÷ n | Comparing groups of different sizes |
| Percent | (f ÷ n) × 100% | Reporting a share |
| Cumulative frequency | Running total of f | "How many at or below?"; ends at n |
| "More than" share | 1 − cumulative relative frequency | The complement of "at most" |
| Class width | (max − min) ÷ classes, rounded up | Grouped table, 5 to 10 classes |
| Class midpoint | (lower + upper) ÷ 2 | One value to stand for a class |
| Class boundary | Halfway between one upper limit and the next lower limit | Where histogram bars meet |
| Pie angle | (f ÷ n) × 360° | Exclusive, exhaustive categories only |
| Lie factor | apparent effect ÷ actual effect | Judging a graph; honest is about 1 |
| Area inflation | scale² for area; scale³ for apparent volume | Resized icons |
Worked examples
Example 3.1 · a grouped frequency table
Twenty-two clinic waits in minutes, sorted: 4, 6, 9, 11, 12, 14, 15, 15, 17, 18, 19, 21, 22, 24, 25, 27, 29, 31, 34, 38, 41, 46. Build a grouped table with 5 classes and find the share who waited 30 minutes or less.
Step 1 · range and widthRange = 46 − 4 = 42. 42 ÷ 5 = 8.4, rounded up to a width of 9.
Step 2 · classesStarting at the minimum: 4 to 12, 13 to 21, 22 to 30, 31 to 39, 40 to 48. The last class reaches 48, past the maximum of 46.
Step 3 · count4 to 12: 5; 13 to 21: 7; 22 to 30: 5; 31 to 39: 3; 40 to 48: 2. Total 22 = n.
Step 4 · midpoints8, 17, 26, 35, 44.
Step 5 · cumulativeRunning totals: 5, 12, 17, 20, 22. At or below 30 minutes: 17 of 22 = 0.773, about 77%.
- Rounding the class width down. Then the classes stop short of the maximum. Always round up.
- Overlapping classes such as 10 to 20, 20 to 30. A value of 20 lands in two classes and the counts no longer sum to n.
- Naming skew by the pile. Most data sit on the left in a right-skewed distribution. Follow the tail.
- Putting multiple-response data in a pie. If people could pick more than one, the shares pass 100%. Use bars.
- Gaps in a histogram or touching bars in a bar chart. The gaps say "categories"; touching bars say "continuous scale." Swap them and the picture lies.
- Trusting a bar chart that starts above zero. Length means something only from zero. Read the axis first.
- Resizing an icon to show a doubling. Doubling width and height makes 4 times the area. Repeat icons instead.
- Summarizing bimodal data with one mean. The mean may fall in the valley where almost nobody is. Split the groups.
Chapter 3 self-test · six items
- 60
- 1
- 100
- 30
- 27.5
- 27.0
- 28.0
- 7.0
- A pie chart with the slices placed in order
- A histogram with equal class widths throughout
- A cumulative frequency line graph, an ogive
- A bar chart sorted from tallest to shortest
- Skewed right
- Uniform
- Skewed left
- Symmetric
- 3
- 6
- 9
- 27
- A histogram with narrow bins
- A stem-and-leaf plot
- A pie chart of the values
- A Pareto chart of the counts
Chapter 4Center and Spread
Read it in full: Chapter 4 in the textbook. Practice it in the lab: Z Scores and Empirical Rule.
What to know
Mean (balance point, not resistant), median (middle, resistant) and mode (most common, the only center for categories). Mean above median suggests right skew.
Sample variance s² = Σ(x − x̄)² ÷ (n − 1); the SD is its square root in the original units. IQR = Q3 − Q1, and the fences Q1 − 1.5 × IQR and Q3 + 1.5 × IQR flag outliers on a boxplot.
z = (x − μ) ÷ σ measures distance in SDs, and x = μ + zσ reverses it. For bell-shaped data 68, 95 and 99.7% lie within 1, 2 and 3 SD; for any shape Chebyshev guarantees at least 1 − 1 ÷ k².
- x̄ = Σx ÷ n. Median: position (n + 1) ÷ 2, or the average of the two middle values.
- The median and IQR resist outliers; the mean, range and SD do not.
- s² = Σ(x − x̄)² ÷ (n − 1); σ² = Σ(x − μ)² ÷ N; SD = √variance.
- Deviations from the mean always sum to zero.
- IQR = Q3 − Q1. Fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR.
- z = (x − μ) ÷ σ, and x = μ + zσ.
- Empirical rule (bell shapes only): 68%, 95%, 99.7% within 1, 2, 3 SD.
- Chebyshev (any shape): at least 1 − 1 ÷ k²; 75% at k = 2, 88.9% at k = 3.
Chapter 4 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Mean | x̄ = Σx ÷ n | Symmetric quantitative data; later formulas |
| Median | Middle value; (n + 1) ÷ 2 position | Skewed or ordinal data; "typical" |
| Range | max − min | Quick look; fragile |
| Sample variance | s² = Σ(x − x̄)² ÷ (n − 1) | Spread of a sample |
| Population variance | σ² = Σ(x − μ)² ÷ N | Every member measured |
| Standard deviation | s = √s²; σ = √σ² | Spread in original units |
| Coefficient of variation | CV = (s ÷ x̄) × 100% | Comparing spread across scales; ratio data |
| IQR and fences | Q3 − Q1; Q1 − 1.5 IQR, Q3 + 1.5 IQR | Resistant spread; outlier flags |
| z-score | z = (x − μ) ÷ σ | Comparing positions across scales |
| Back from z | x = μ + zσ | Value at a given number of SDs |
| Chebyshev | at least 1 − 1 ÷ k², k > 1 | Any shape, unknown shape |
Worked examples
Example 4.1 · sample variance and standard deviation by hand
Five patients wait 6, 9, 11, 14, 20 minutes. Find s² and s.
Step 1 · meanΣx = 60, so x̄ = 60 ÷ 5 = 12.
Step 2 · deviations−6, −3, −1, 2, 8. Check: they sum to 0.
Step 3 · square and add36 + 9 + 1 + 4 + 64 = SS = 114.
Step 4 · divide by n − 1s² = 114 ÷ 4 = 28.5 square minutes.
Step 5 · square roots = √28.5 ≈ 5.34 minutes. As a population the variance would be 114 ÷ 5 = 22.8 and σ ≈ 4.77, a little smaller.
- Calling the mean "typical" for skewed data. Income, prices and wait times are skewed. The median is the typical value.
- Dividing by n for a sample. Sample variance divides by n − 1. Dividing by n underestimates σ².
- Reading the variance as a distance. It is in squared units. Take the square root to get the SD.
- Including the median in both halves when n is odd. The common textbook method leaves it out of both halves for Q1 and Q3.
- Deleting a point because it is outside a fence. The 1.5 × IQR rule flags values to investigate, not to throw away.
- Treating z as a probability. z is a location in SDs. A percentile needs a known shape.
- Using 68, 95, 99.7 on skewed data. If μ − 2σ is negative for a quantity that cannot be negative, the rule does not fit.
- Applying Chebyshev with k = 1. It gives 0%, which is true but useless. The theorem needs k > 1.
Chapter 4 self-test · six items
- The 4th value in sorted order
- The average of the 4th and 5th sorted values
- The 5th value in sorted order
- The mean of all eight of the values
- 15
- 9.5
- 3
- 18
- 38
- 32
- 44
- 40
- 1.60
- 0.63
- 8.00
- 1.10
- About 99.99%
- At least 93.75%
- At least 75%
- At least 88.9%
- 46 and 54
- 38 and 62
- 42 and 58
- 48 and 52
Chapter 5Probability Basics
Read it in full: Chapter 5 in the textbook. Practice it in the lab: Addition Rule and Conditional Probability.
What to know
For equally likely outcomes, P(A) = outcomes in A ÷ outcomes in S. Probabilities lie in [0, 1], sum to 1 over S, and P(Ac) = 1 − P(A). Nothing is ever "due."
Addition: P(A or B) = P(A) + P(B) − P(A and B). Multiplication: P(A and B) = P(A)P(B | A), which becomes P(A)P(B) only for independent events. Mutually exclusive events with nonzero probability are dependent. "At least one" = 1 − P(none).
P(A | B) = P(A and B) ÷ P(B), and P(A | B) is not P(B | A). In a two-way table joint, marginal and conditional probabilities differ only in the denominator; in a tree, multiply along paths and add across them.
- P(A) = outcomes in A ÷ outcomes in S, for equally likely outcomes only.
- Complement: P(Ac) = 1 − P(A). "At least one" = 1 − P(none).
- Addition: P(A or B) = P(A) + P(B) − P(A and B).
- Multiplication: P(A and B) = P(A) × P(B | A); independent means P(B | A) = P(B).
- Mutually exclusive means P(A and B) = 0, and that makes the events dependent.
- Conditional: P(A | B) = P(A and B) ÷ P(B). Reversing the bar changes the answer.
- Joint ÷ grand total; marginal = margin ÷ grand total; conditional = cell ÷ its row or column.
- Trees: multiply along, add across, and the ends sum to 1.
Chapter 5 formulas and facts
| Rule | Formula | When to use it |
|---|---|---|
| Classical probability | P(A) = n(A) ÷ n(S) | Equally likely outcomes |
| Complement | P(Ac) = 1 − P(A) | "Not" and "at least one" questions |
| General addition | P(A or B) = P(A) + P(B) − P(A and B) | Any "or" question |
| Disjoint addition | P(A or B) = P(A) + P(B) | Events that cannot co-occur |
| General multiplication | P(A and B) = P(A) × P(B | A) | Any "and" question, including without replacement |
| Independent multiplication | P(A and B) = P(A) × P(B) | Independent events; also the test for independence |
| Conditional | P(A | B) = P(A and B) ÷ P(B) | "Given" questions |
| At least one in n independent tries | 1 − (1 − p)n | Repeated trials |
| Total probability | P(B) = P(A)P(B | A) + P(Ac)P(B | Ac) | Adding tree paths |
| Reverse a condition | P(A | B) = path(A then B) ÷ P(B) | Screening, Bayes style questions |
Worked examples
Example 5.1 · counting with two dice
Roll two fair dice. Find P(sum = 8), P(sum ≤ 4) and P(sum is not 8).
Step 1 · the sample spaceKeep the dice distinct: 6 × 6 = 36 equally likely ordered pairs.
Step 2 · sum of 8(2,6), (3,5), (4,4), (5,3), (6,2): 5 pairs, so P = 5/36 ≈ 0.139.
Step 3 · sum at most 4Sum 2: 1 pair; sum 3: 2 pairs; sum 4: 3 pairs; total 6. P = 6/36 = 1/6 ≈ 0.167.
Step 4 · complementP(not 8) = 1 − 5/36 = 31/36 ≈ 0.861.
- Listing three outcomes for two coins. HT and TH are different outcomes. S has four.
- Thinking an outcome is "due." Independent trials have no memory. The law of large numbers works by dilution, not correction.
- Forgetting to subtract the overlap. P(A or B) needs − P(A and B) unless the events are disjoint.
- Calling disjoint events independent. Disjoint events with nonzero probability are dependent.
- Multiplying when events are dependent. Use P(B | A), especially when sampling without replacement.
- Adding probabilities across repeated tries. Use 1 − P(none) for "at least one."
- Swapping P(A | B) and P(B | A). Ask "what is my denominator now?" before you divide.
- Reading cause from a two-way table. A table shows association. Cause needs random assignment.
Chapter 5 self-test · six items
- 0.35
- 1.35
- 0.50
- 0.65
- 25/52
- 22/52
- 3/52
- 13/52
- 0.30
- 1.10
- 0.83
- 0.10
- 0.048
- 0.52
- 0.30
- 0.28
- Using 1 − P(none) for an "at least one" question
- Treating P(positive | disease) as P(disease | positive)
- Subtracting the overlap in an "or" question
- Multiplying the probabilities along a tree path
- Less than 0.5
- More than 0.5
- 1/64
- 0.5
Chapter 6Discrete Random Variables
Read it in full: Chapter 6 in the textbook. Practice it in the lab: Valid Probability Distribution and Poisson and Geometric.
What to know
A random variable is discrete (counts, even an endless list) or continuous (measurements, intervals only). A distribution is valid when ΣP(x) = 1 and every P(x) is between 0 and 1.
μ = Σx·P(x) is the long-run average; σ² = Σx²P(x) − μ². Values outside μ ± 2σ are unusual. Expected value prices a bet: a $3 raffle ticket with one $1,000 prize in 500 is worth −$1 on average.
Binomial (fixed n, two outcomes, independent, constant p): P(x) = nCxpxqn−x, μ = np, σ = √(npq). Poisson: λxe−λ/x!, mean = variance = λ. Geometric: qx−1p, μ = 1/p.
- Valid distribution: ΣP(x) = 1 and 0 ≤ P(x) ≤ 1 for every x.
- μ = E(X) = Σx·P(x); σ² = Σx²·P(x) − μ²; σ = √σ².
- Expected value is the long-run average, not the next result.
- Binomial needs fixed n, two outcomes, independence and constant p.
- P(X = x) = nCx px qn−x; μ = np; σ = √(npq).
- Poisson: P(x) = λxe−λ ÷ x!; mean = variance = λ.
- Geometric: P(x) = qx−1p; μ = 1/p; P(X > k) = qk.
- Unusual: outside μ ± 2σ.
Chapter 6 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Validity | ΣP(x) = 1; 0 ≤ P(x) ≤ 1 | Checking any discrete table |
| Mean | μ = Σ[x · P(x)] | Long-run average of a random variable |
| Variance | σ² = Σ[x² · P(x)] − μ² | Spread; take √ for σ |
| Unusual values | Outside μ ± 2σ | Range rule of thumb |
| Binomial probability | nCx px qn−x | Fixed n, two outcomes, independent, constant p |
| Combinations | nCx = n! ÷ [x!(n − x)!] | Counting arrangements |
| Binomial mean and SD | μ = np; σ = √(npq) | Exact shortcuts |
| Poisson probability | λxe−λ ÷ x! | Events in a fixed interval at rate λ |
| Poisson mean and SD | μ = σ² = λ; σ = √λ | Variance far above the mean means Poisson fits poorly |
| Geometric probability | qx−1 p | Trial of the first success |
| Geometric mean and SD | μ = 1/p; σ = √q ÷ p | Average wait for the first success |
Worked examples
Example 6.1 · a missing probability, the mean and the SD
X is the number of streaming services a household pays for, with P(0) = 0.10, P(1) = 0.25, P(2) = k, P(3) = 0.20, P(4) = 0.10. Find k, μ and σ.
Step 1 · find k0.10 + 0.25 + k + 0.20 + 0.10 = 1, so 0.65 + k = 1 and k = 0.35, a legal probability.
Step 2 · mean(0)(0.10) + (1)(0.25) + (2)(0.35) + (3)(0.20) + (4)(0.10) = μ = 1.95.
Step 3 · Σx²P(x)(0)(0.10) + (1)(0.25) + (4)(0.35) + (9)(0.20) + (16)(0.10) = 5.05.
Step 4 · variance and SDσ² = 5.05 − 1.95² = 5.05 − 3.8025 = 1.2475, so σ ≈ 1.12.
Step 5 · unusual?μ ± 2σ = −0.28 to 4.18. Every possible value lies inside, so none is unusual.
- Thinking discrete means "few values." An endless list 0, 1, 2, ... is still discrete.
- Checking only the sum. A table that sums to 1 with a negative entry is invalid. Check both rules.
- Dividing by n after Σx·P(x). The weights already sum to 1. No final division.
- Reading E(X) as the next result. It is the long-run average and may be impossible on one trial.
- Using the binomial without fixed n. "Until the first success" is geometric, and "per hour" with no cap is Poisson.
- Forgetting the coefficient. pxqn−x is one arrangement. Multiply by nCx.
- Mismatching p and "success." If you count defects, p is the chance of a defect.
- Believing a success is overdue. The geometric is memoryless; past failures change nothing.
Chapter 6 self-test · six items
- 0.6
- 0.4
- 0.3
- 1.0
- Every buyer loses exactly $1 on each ticket
- The prize is worth $1 less than the ticket price
- On average, buyers lose about $1 per ticket
- One ticket in every 100 wins a prize
- 0.5000
- 0.2500
- 0.0625
- 0.1250
- 9
- 10
- 0.3
- 3
- 9
- 81
- 4.5
- 3
- 0.21
- 0.09
- 0.30
- 0.49
Chapter 7The Normal Distribution
Read it in full: Chapter 7 in the textbook. Practice it in the lab: Normal Curve and Standardizing.
What to know
A normal curve is symmetric and fixed by μ and σ. Area is probability, the total is 1, and a single exact value has probability 0. The empirical rule gives 68, 95, 99.7% within 1, 2, 3 SD, with blocks of 34, 13.5, 2.35 and 0.15% on each side.
Standardize with z = (x − μ) ÷ σ. The table gives left areas Φ(z): right tail = 1 − Φ(z); between = Φ(zb) − Φ(za); Φ(−z) = 1 − Φ(z).
Backward: area → z → x = μ + zσ. "Top 10%" is a left area of 0.90, and percentiles below 50 need a negative z. The middle 95% uses ±1.96.
- Normal is fixed by μ and σ; area under the curve is probability.
- 68, 95, 99.7 within 1, 2, 3 SD; blocks 34, 13.5, 2.35, 0.15 each side.
- z = (x − μ) ÷ σ; x = μ + zσ.
- Left: Φ(z). Right: 1 − Φ(z). Between: Φ(zb) − Φ(za).
- Φ(−z) = 1 − Φ(z), and P(X < a) = P(X ≤ a) for a continuous variable.
- Key z values: 1.645 (top 5%), 1.96 (middle 95%), 2.576 (middle 99%), 1.28 (90th percentile).
- Top k% means a left-tail area of 1 − k/100.
- Standardizing never makes skewed data normal.
Chapter 7 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| z-score | z = (x − μ) ÷ σ | Convert a value to standard units |
| Back to x | x = μ + zσ | Percentiles and cutoffs |
| Left tail | P(X < a) = Φ(za) | "Below," "less than," "at most" |
| Right tail | P(X > a) = 1 − Φ(za) | "Above," "more than," "at least" |
| Between | Φ(zb) − Φ(za) | "Between a and b" |
| Symmetry | Φ(−z) = 1 − Φ(z) | Tables with only positive z |
| Middle C% | z = ±z* with (1 − C)/2 in each tail | Symmetric intervals |
| Chebyshev | at least 1 − 1 ÷ k² | Shape unknown or not normal |
Worked examples
Example 7.1 · the empirical rule with no table
Newborn weights are about normal with μ = 3,400 g and σ = 500 g. What percent weigh more than 4,400 g, and what percent weigh between 2,900 and 4,400 g?
Step 1 · build the rulerμ ± 1σ: 2,900 to 3,900. μ ± 2σ: 2,400 to 4,400. μ ± 3σ: 1,900 to 4,900.
Step 2 · above 4,4004,400 is μ + 2σ. Outside ±2σ lies 5%, half on each side: 2.5%.
Step 3 · split at the meanFrom 2,900 (μ − 1σ) to 3,400 is 34%. From 3,400 to 4,400 (μ + 2σ) is 47.5%.
Step 4 · add34% + 47.5% = 81.5%.
CheckThe answer is above the 68% inside ±1σ and below the 95% inside ±2σ, as it should be.
- Treating curve height as probability. Only area is probability. A single exact value has probability 0.
- Using the empirical rule on skewed data. It holds for approximately normal data only.
- Reading a right tail straight from the table. The table gives left areas. Subtract from 1.
- Turning "top 10%" into an area of 0.10. The cutoff has 90% below it. Look up 0.90.
- Dropping the minus sign. A percentile below 50 has a negative z and lands below the mean.
- Using 2 for the exact 95% middle. The exact value is 1.96. 2 gives 95.45%.
- Believing standardizing fixes shape. z-scores of skewed data are still skewed.
- Mixing "middle 95%" with "95% confidence." One describes individuals with known μ and σ; the other is about estimating an unknown parameter.
Chapter 7 self-test · six items
- 34%
- 32%
- 84%
- 16%
- 2.50
- 1.50
- 15.00
- 0.40
- 0.8023
- 0.3023
- 0.6046
- 0.1977
- 53.3
- 66.7
- 67.5
- 70.0
- ±1.96
- ±3.00
- ±2.576
- ±2.326
- It fits any data with a mean
- Its median is above its mean
- It is fixed entirely by μ and σ
- Its total area depends on σ
Chapter 8Sampling Distributions and the Central Limit Theorem
Read it in full: Chapter 8 in the textbook. Practice it in the lab: Distribution of the Sample Mean and Sampling Distribution of a Proportion.
What to know
Population, sample data and sampling distribution are different: one dot in a sampling distribution is a whole sample. μx̄ = μ (unbiased) and σx̄ = σ ÷ √n with independence.
The CLT: x̄ is approximately Normal(μ, σ ÷ √n) for large n from any population with finite σ. It changes only the shape of the sampling distribution, never the population or your data. n ≥ 30 is a rule of thumb; more skew needs more n.
SE describes an estimate and shrinks as 1 ÷ √n; SD describes individuals. For proportions, SE = √[p(1 − p) ÷ n], normal when np ≥ 10 and n(1 − p) ≥ 10.
- One dot in a sampling distribution is one whole sample.
- μx̄ = μ and σx̄ = σ ÷ √n (independence: n under 10% of N).
- One person: divide by σ. A sample mean: divide by σ ÷ √n.
- CLT: x̄ ≈ Normal(μ, σ ÷ √n) for large n, any shape with finite σ.
- The CLT never makes the population or the data normal.
- SE shrinks as 1 ÷ √n; SD does not shrink with n.
- Proportions: μp̂ = p; SE = √[p(1 − p) ÷ n]; need np ≥ 10 and n(1 − p) ≥ 10.
- Margin of error ≈ 2 × SE and ignores bias.
Chapter 8 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Center of x̄ | μx̄ = μ | Always; x̄ is unbiased |
| Spread of x̄ | σx̄ = σ ÷ √n | Independent draws |
| z for a mean | z = (x̄ − μ) ÷ (σ ÷ √n) | Questions about a sample mean |
| z for one value | z = (x − μ) ÷ σ | Questions about one individual |
| Sum of n draws | Normal(nμ, σ√n) | Totals, by the CLT |
| Estimated SE | s ÷ √n | σ unknown |
| n for a target SE | n = (s ÷ SE)², round up | Planning precision |
| Finite population correction | × √[(N − n) ÷ (N − 1)] | Sample over 10% of N |
| Proportion center and SE | μp̂ = p; √[p(1 − p) ÷ n] | Categorical data |
| Success-failure | np ≥ 10 and n(1 − p) ≥ 10 | Before using a normal model for p̂ |
| Margin of error (rough) | ≈ 2 × SE | Random error only |
Worked examples
Example 8.1 · a sampling distribution built by hand
A population holds the values 1, 3, 5. List every sample of size 2 drawn with replacement, and find the mean and variance of x̄.
Step 1 · parametersμ = 9 ÷ 3 = 3. Squared deviations 4, 0, 4 sum to 8, so σ² = 8 ÷ 3 ≈ 2.667.
Step 2 · the 9 samples(1,1), (1,3), (1,5), (3,1), (3,3), (3,5), (5,1), (5,3), (5,5), each with probability 1/9.
Step 3 · their meansx̄ values: 1 (1 way), 2 (2 ways), 3 (3 ways), 4 (2 ways), 5 (1 way).
Step 4 · mean of x̄Σx̄ ÷ 9 = 27 ÷ 9 = 3, exactly μ.
Step 5 · variance of x̄Σ(x̄ − 3)² ÷ 9 = 12 ÷ 9 ≈ 1.333, which is σ² ÷ 2 = 2.667 ÷ 2. The square-root law falls out of counting.
- Calling the sample histogram the sampling distribution. Your data show individuals. The sampling distribution shows statistics from many samples.
- Dividing by √n for one individual. One person uses σ. Only a sample mean uses σ ÷ √n.
- Saying the CLT makes the data normal. Your 5,000 incomes stay skewed. Only the distribution of x̄ goes normal.
- Treating n ≥ 30 as a law. Heavier skew needs more; normal populations need none.
- Mixing up SD and SE. Reporting mean ± SE to describe people makes the data look far tidier than they are.
- Thinking SE depends on population size. With a small sampling fraction, N drops out.
- Skipping the success-failure check. With p near 0 or 1 and small n, the normal model for p̂ fails.
- Trusting the margin of error to cover bias. It counts random sampling error only.
Chapter 8 self-test · six items
- It always equals μ exactly for n ≥ 30
- Its sampling distribution centers on μ
- It is biased low for skewed populations
- It is centered at μ only if n is large
- 3.33
- 30
- 90
- 10
- When n is at least 30
- When the population is normal
- When σ is known
- When the sample is random
- 0.04
- 0.0004
- 0.02
- 0.16
- 0.5
- 0.1
- 0.9
- 0.99
- The estimate is certainly within 3 points of the truth
- Bias in the survey is under 3 points
- There is a 3% chance the poll is wrong
- Random sampling error is about ±3 points if the method is clean
Chapter 9Confidence Intervals
Read it in full: Chapter 9 in the textbook. Practice it in the lab: Z Interval or T Interval and Margin of Error, n and Confidence.
What to know
Every interval is estimate ± critical value × SE, and its width is twice the margin of error. It estimates a parameter, not individuals.
Means: x̄ ± z*(σ ÷ √n) if σ is known; x̄ ± t*(s ÷ √n), df = n − 1, if you computed s. Proportions: p̂ ± z*√[p̂(1 − p̂) ÷ n] with np̂ ≥ 10 and n(1 − p̂) ≥ 10. Higher confidence widens the interval; quadrupling n halves it.
Plan with n = (z*σ ÷ E)² or n = z*²p(1 − p) ÷ E² (p = 0.5 if unknown), rounding up. "95% confident" describes the long-run procedure, not a probability for this interval, and the margin covers chance only.
- 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.
Chapter 9 formulas and facts
| 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 |
Worked examples
Example 9.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.
- 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 · six items
- 23.2 and 5.6
- 20.4 and 5.6
- 26.0 and 2.8
- 23.2 and 2.8
- 1.96
- 2.576
- 1.645
- 3.00
- Small samples are always biased
- Estimating σ with s adds uncertainty
- The t curve has a higher peak
- The SE is smaller for small n
- 96
- 10
- 97
- 49
- np̂ ≥ 10
- n(1 − p̂) ≥ 10
- The 10% rule
- None of them
- Nothing useful, as the sample is not random
- Both chance error and the selection bias
- Only the selection bias in who responded
- The full error of the estimate, bias included
Chapter 10The Logic of Hypothesis Testing
Read it in full: Chapter 10 in the textbook. Practice it in the lab: What a P-Value Is and Statistical vs Practical Significance.
What to know
H0 is the no-effect claim with the equals sign; Ha carries the burden. Both are about parameters, and the tails are chosen before looking. The p-value is P(data this extreme or more | H0 and assumptions), found from SE, test statistic and tail area.
Set α first. p ≤ α: reject H0; p > α: fail to reject, never accept. Type I error (false alarm) has probability α; Type II (miss) has probability β; power = 1 − β against a stated effect size.
Large n makes trivial differences significant, and small n can miss big ones. Report the estimate, the CI and an effect size such as d = difference ÷ s, and remember significance never establishes cause.
- 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.
Chapter 10 formulas and facts
| 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 |
Worked examples
Example 10.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.
- 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 · six items
- In the alternative hypothesis
- In both hypotheses
- In the null hypothesis
- In neither hypothesis
- 0.07
- 0.93
- 0.14
- 0.035
- The Type I error rate, set in advance
- The probability that H0 is true
- The power of the test being run
- The p-value of your one sample
- Raises it
- Lowers it
- Leaves it unchanged
- Sets it to 0.01
- 4.00
- 0.25
- 0.36
- 36.0
- A small p-value proves a causal effect
- Significant results will always replicate
- Large effects are always statistically significant
- Significance alone never establishes causation
Chapter 11One-Sample Tests
Read it in full: Chapter 11 in the textbook. Practice it in the lab: The T Distribution and Check the Assumptions.
What to know
Five steps: hypotheses, α and conditions, test statistic (estimate − claim) ÷ SE, p-value, conclusion in context. Fail to reject, never accept.
Means: z = (x̄ − μ0) ÷ (σ/√n) only with σ known; otherwise t = (x̄ − μ0) ÷ (s/√n), df = n − 1, with heavier tails. A two-sided test at α matches the 100(1 − α)% CI.
Proportions: z = (p̂ − p0) ÷ √[p0(1 − p0)/n], with np0 and n(1 − p0) at least 10; the interval uses p̂ instead. Randomness is the condition nothing can repair.
- 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.
Chapter 11 formulas and facts
| 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 |
Worked examples
Example 11.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.
- 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 · six items
- Whenever n is at least 30
- When σ is truly known from long history
- Whenever the data are skewed
- When s is computed from the sample
- Reject, since 2.125 is close
- Accept H0
- Fail to reject, just barely
- Reject, since t is positive
- √[p̂(1 − p̂)/n]
- s/√n
- σ/n
- √[p0(1 − p0)/n]
- It doubles
- It halves
- It stays the same
- It quadruples
- Mild skew with n = 50
- A large sample size of 200
- Outliers in small samples
- Using a two-sided alternative
- 1
- 0
- 5
- 20
Chapter 12Two-Sample Tests
Read it in full: Chapter 12 in the textbook. Practice it in the lab: Comparing Two Means and Which Test.
What to know
Independent means: SE = √(s1²/n1 + s2²/n2), t = (x̄1 − x̄2)/SE with Welch df. Variances add; SDs never do.
Paired: take differences, then t = d̄/(sd/√n) with df = pairs − 1. Pairing removes person-to-person noise; the book's 7 ms effect gave p ≈ 0.009 paired and 0.48 when wrongly treated as independent.
Two proportions: z with the pooled proportion in the test and the unpooled SE in the interval. The design picks the test: numeric or yes/no, independent or paired.
- 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.
Chapter 12 formulas and facts
| 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 |
Worked examples
Example 12.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.
- 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 · six items
- The two sample means are equal
- The two samples are paired
- The variances are equal
- The two population means are equal
- It always gives a smaller p-value
- It does not assume equal variances
- It needs no conditions at all
- It works only for paired data
- 12
- 3
- 5
- 4
- H0 says the two proportions are equal
- It always gives a larger z value
- The two samples are paired
- The interval requires a pooled SE
- Wilcoxon rank-sum
- Paired t
- McNemar's test
- Two-proportion z
- The two rates are shown to be equal
- Group 2's rate is plausibly the higher one
- Group 1's rate is plausibly 2 to 15 points higher
- The difference is 15 points exactly
Chapter 13Chi-Square and ANOVA
Read it in full: Chapter 13 in the textbook. Practice it in the lab: Goodness of Fit and Which Groups Differ.
What to know
χ² = Σ(O − E)²/E, never negative and always right-tailed. Goodness of fit: E = np, df = k − 1. Independence: E = row × column ÷ total, df = (r − 1)(c − 1), with Cramér's V for size. Needs counts and all expected counts at least 5.
ANOVA avoids the inflated error of many t-tests: F = MSB/MSW with (k − 1, N − k) df, SStotal = SSbetween + SSwithin, η² = SSbetween/SStotal. It assumes independence, rough normality and equal variances (largest s under twice the smallest).
A significant F means at least one mean differs. Tukey's HSD = q√(MSW/n) or Bonferroni (α/m) find which pairs; in the book only A versus C separated.
- χ² = Σ(O − E)²/E; right-tailed; never negative.
- Goodness of fit: E = np, df = k − 1. Never round E.
- Independence: E = (row × column)/total, df = (r − 1)(c − 1).
- Chi-square needs counts and every expected count ≥ 5.
- F = MSB/MSW; df = k − 1 and N − k; SST = SSB + SSW.
- Ha for ANOVA: at least one mean differs, not all.
- Equal variances: largest s < 2 × smallest.
- Post-hoc: Tukey HSD = q√(MSW/n); Bonferroni tests at α/m.
Chapter 13 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Chi-square statistic | χ² = Σ(O − E)² ÷ E | Both chi-square tests |
| Expected, goodness of fit | E = n × pi | One variable versus a claim |
| Expected, independence | E = (row total × column total) ÷ grand total | Two-way table |
| df | k − 1; (r − 1)(c − 1) | GOF; independence |
| Standardized residual | (O − E) ÷ √E | Which cells drive the result |
| Cramér's V | √[χ² ÷ (n × min(r − 1, c − 1))] | Size of an association, 0 to 1 |
| Between SS | Σ nj(x̄j − x̄)², df = k − 1 | ANOVA signal |
| Within SS | ΣΣ(x − x̄j)², df = N − k | ANOVA noise |
| F | MSB ÷ MSW, MS = SS ÷ df | Equal means? |
| Eta squared | η² = SSbetween ÷ SStotal | Share of variation explained |
| Tukey HSD | qα, k, N−k × √(MSW ÷ n) | All pairs, equal n |
| Bonferroni | Each test at α ÷ m | A few planned comparisons |
Worked examples
Example 13.1 · goodness of fit for a die
A die is rolled 120 times: faces 1 to 6 come up 15, 22, 18, 26, 17, 22 times. Is it fair? Use α = 0.05.
Step 1 · hypotheses and EH0: each face has probability 1/6. E = 120 × 1/6 = 20 for every face, summing to 120. All E ≥ 5.
Step 2 · terms(15 − 20)²/20 = 1.25; (22 − 20)²/20 = 0.20; (18 − 20)²/20 = 0.20; (26 − 20)²/20 = 1.80; (17 − 20)²/20 = 0.45; (22 − 20)²/20 = 0.20.
Step 3 · χ²Sum = 4.10, df = 6 − 1 = 5.
Step 4 · decideCritical value 11.070; p ≈ 0.535. 4.10 < 11.070, so fail to reject.
Step 5 · say itThese rolls give no convincing evidence that the die is unfair. That is not proof of fairness; 120 rolls cannot detect a small bias. Face 4, with the largest term, is the one to watch.
- Feeding percentages into χ². Chi-square needs raw counts.
- Rounding expected counts. Keep E = 47.95 as 47.95.
- Checking observed counts for the 5 rule. The rule is about expected counts; an observed 0 is fine.
- Reading a significant χ² as cause. Survey tables show association only.
- Running pairwise t-tests instead of ANOVA. Each extra test adds false-alarm risk.
- Writing Ha as "all means differ." It is "at least one differs."
- Pooling very unequal variances. If the largest s is over twice the smallest, use Welch's ANOVA.
- Fishing after a non-significant F. Post-hoc tests follow a significant F, or planned contrasts set in advance.
Chapter 13 self-test · six items
- χ² values are often negative numbers
- Only large χ² values show a mismatch with H0
- The χ² curve is symmetric about 0
- Small χ² values are what reject H0
- Every cell, using the observed counts
- Only the largest cell in the table
- The row and column totals only
- Every cell, using expected not observed counts
- McNemar's test
- Chi-square test of independence
- One-way ANOVA
- Goodness of fit
- 0.43
- 3.33
- 0.60
- 0.30
- 0.05
- 0.01
- 0.005
- 0.025
- F = t², with the same p-value
- F = 2t
- They give opposite decisions
- ANOVA needs paired data
Chapter 14Correlation and Regression
Read it in full: Chapter 14 in the textbook. Practice it in the lab: R-Squared and Residual Plots and The Danger of Extrapolation.
What to know
Describe a scatterplot by form, direction, strength and outliers, with x explanatory. r = Σ(x − x̄)(y − ȳ)/√[Σ(x − x̄)²Σ(y − ȳ)²] lies in [−1, 1], is unit-free and symmetric, measures only linear association, is not resistant and never shows cause.
Least squares: b = Sxy/Sxx = r sy/sx, a = ȳ − bx̄, through (x̄, ȳ). The book's students give ŷ = 60 + 3x; the slope is a predicted average rate, not a causal effect.
Residuals y − ŷ sum to 0; r² = 1 − SSE/SST is the share of variation explained (0.81 here); se = √[SSE/(n − 2)] is the typical miss. Check the residual plot, interpolate only, and never extrapolate.
- Form, direction, strength, outliers; x is explanatory.
- r lies in [−1, 1], has no units and measures linear association only.
- b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)² = r sy/sx; a = ȳ − bx̄.
- The line passes through (x̄, ȳ); residuals sum to 0.
- r² = 1 − SSE/SST = share of variation in y explained by the line.
- se = √[SSE ÷ (n − 2)].
- Interpolate, do not extrapolate. Refit to predict x from y.
- Correlation is not causation; strength is not steepness.
Chapter 14 formulas and facts
| Quantity | Formula | When to use it |
|---|---|---|
| Correlation | r = Sxy ÷ √(Sxx × Syy) | Strength and direction of a linear pattern |
| Correlation (z form) | r = Σzxzy ÷ (n − 1) | Why r has no units |
| Slope | b = Sxy ÷ Sxx = r(sy ÷ sx) | Predicted change in y per unit x |
| Intercept | a = ȳ − bx̄ | Anchors the line |
| Prediction | ŷ = a + bx | Average y at x, inside the data range |
| Residual | e = y − ŷ | What the line missed |
| Sums of squares | SST = Σ(y − ȳ)²; SSE = Σ(y − ŷ)² | Variation before and after the line |
| r² | 1 − SSE ÷ SST = r² | Share of variation explained |
| Std. error of estimate | se = √[SSE ÷ (n − 2)] | Typical miss |
Worked examples
Example 14.1 · computing r from a deviation table
Six weeks of ad spend x (hundreds of dollars) and sales y (thousands): x = 3, 5, 6, 8, 9, 11; y = 20, 25, 24, 31, 33, 37. Find r.
Step 1 · meansx̄ = 42 ÷ 6 = 7.00; ȳ = 170 ÷ 6 = 28.33.
Step 2 · deviationsx − x̄: −4.00, −2.00, −1.00, 1.00, 2.00, 4.00. y − ȳ: −8.33, −3.33, −4.33, 2.67, 4.67, 8.67. Both sum to 0.
Step 3 · sumsSxy = Σ(x − x̄)(y − ȳ) = 91.00; Sxx = 42.00; Syy = 203.33.
Step 4 · rr = 91.00 ÷ √(42.00 × 203.33) = 91.00 ÷ 92.41 = 0.985.
Step 5 · read itStrong and positive, and only after the scatterplot shows a straight band. These are observational weeks, so r says nothing about whether ads caused the sales.
- Computing r before looking. r is blind to curves, clusters and single influential points.
- Treating strength as steepness. A shallow tight band is strong; a steep fuzzy one is weak.
- Calling −0.87 weaker than +0.60. Strength is distance from zero.
- Reading the slope as cause. Say "predicted, on average" for observational data.
- Interpreting an intercept outside the data. If x = 0 was never observed, the intercept only anchors the line.
- Saying r² is the share of points on the line. It is the share of variation in y explained.
- Extrapolating. The line predicted an impossible 105 at 15 hours.
- Inverting the line to predict x. Refit with the roles reversed.
Chapter 14 self-test · six items
- The variables are unrelated in every way
- The slope of the line is large
- Little linear pattern, though a curve is possible
- x causes y, but only weakly
- It multiplies r by 2.54
- It divides r by 2.54
- It changes its sign
- Not at all
- (0, 0)
- The first data point
- The largest residual
- (x̄, ȳ)
- 2.13
- 5.00
- 2.24
- 4.17
- 1
- 0
- SSE
- r²
- Eating ice cream causes people to drown
- They move together, likely via a lurking variable
- Drownings raise sales of ice cream
- The data must contain an error
One pageCram sheet
Every formula and rule in the course, sorted by topic. Cover the right column and rebuild each row. If a row will not come back, go to that chapter's exam guide.
Data, sampling and design (chapters 1 and 2)
| Name | Formula | Note |
|---|---|---|
| Mean | x̄ = Σx ÷ n; μ = Σx ÷ N | Pulled by outliers |
| Median | Middle sorted value | Average the two middle values when n is even |
| Range | Max − min | Set by the two extremes |
| Variance | σ² = Σ(x − μ)² ÷ N; s² = Σ(x − x̄)² ÷ (n − 1) | SD is the square root |
| Risk | RRR = (rc − rt) ÷ rc; ARR = rc − rt | NNT = 1 ÷ ARR |
| Standard error | SE(x̄) = σ ÷ √n | 4 × n halves it |
| Allocation | nh = n × Nh ÷ N | Proportional stratified sample |
| Systematic | k = N ÷ n | Random start from 1 to k |
| Margin of error | 1.96 × √[p̂(1 − p̂) ÷ n] | Chance error only |
Displaying and summarizing data (chapters 3 and 4)
| Name | Formula | Note |
|---|---|---|
| Relative frequency | f ÷ n | Column sums to 1 |
| Class width | (max − min) ÷ classes, round up | 5 to 10 classes |
| Pie angle | (f ÷ n) × 360° | 1% = 3.6° |
| Lie factor | apparent ÷ actual effect | Honest is about 1 |
| Mean and median | Σx ÷ n; middle sorted value | Mean not resistant |
| Variance | s² = SS ÷ (n − 1); σ² = SS ÷ N | SS = Σ(x − x̄)² |
| CV | (s ÷ x̄) × 100% | Ratio data only |
| IQR and fences | Q3 − Q1; Q1 − 1.5 IQR; Q3 + 1.5 IQR | Beyond a fence = flag |
| z-score | z = (x − μ) ÷ σ; x = μ + zσ | Unitless |
| Chebyshev | ≥ 1 − 1 ÷ k² | 75% at k = 2; 88.9% at k = 3 |
Probability and random variables (chapters 5 and 6)
| Name | Formula | Note |
|---|---|---|
| Classical | P(A) = n(A) ÷ n(S) | Equally likely outcomes |
| Complement | P(Ac) = 1 − P(A) | At least one = 1 − P(none) |
| Addition | P(A) + P(B) − P(A and B) | Drop the last term if disjoint |
| Multiplication | P(A) × P(B | A) | P(A)P(B) if independent |
| Conditional | P(A and B) ÷ P(B) | New denominator |
| Expected value | Σx·P(x) | Long-run average |
| Variance | Σx²P(x) − μ² | σ = √σ² |
| Binomial | nCxpxqn−x; μ = np; σ = √(npq) | Four conditions |
| Poisson | λxe−λ ÷ x!; μ = σ² = λ | Fixed interval |
| Geometric | qx−1p; μ = 1/p | First success |
Normal model and sampling distributions (chapters 7 and 8)
| Name | Formula | Note |
|---|---|---|
| z-score | z = (x − μ) ÷ σ | x = μ + zσ |
| Areas | Left Φ(z); right 1 − Φ(z); between Φ(zb) − Φ(za) | Φ(−z) = 1 − Φ(z) |
| Key z | 1.28, 1.645, 1.96, 2.326, 2.576 | 90th, 95th, 97.5th, 99th, 99.5th percentiles |
| Mean of x̄ | μx̄ = μ | Unbiased |
| SE of x̄ | σ ÷ √n (or s ÷ √n) | 4 × n halves it |
| z for x̄ | (x̄ − μ) ÷ (σ ÷ √n) | Sample mean questions |
| Sum | Normal(nμ, σ√n) | CLT for totals |
| Proportion | μp̂ = p; SE = √[p(1 − p) ÷ n] | np ≥ 10, n(1 − p) ≥ 10 |
| Planning n | n = (s ÷ SE)² | Round up |
Confidence intervals and testing logic (chapters 9 and 10)
| 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 |
One- and two-sample tests (chapters 11 and 12)
| 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 |
Chi-square, ANOVA and regression (chapters 13 and 14)
| Name | Formula | Note |
|---|---|---|
| Chi-square | Σ(O − E)²/E | Right-tailed |
| Expected counts | np; row × column ÷ total | All ≥ 5; never round |
| df | k − 1; (r − 1)(c − 1) | GOF; independence |
| Cramér's V | √[χ²/(n × min(r − 1, c − 1))] | Size of association |
| ANOVA | F = MSB/MSW; df k − 1, N − k | SST = SSB + SSW |
| Effect size | η² = SSB/SST | Share explained |
| Tukey | HSD = q√(MSW/n) | Bonferroni: α/m |
| Correlation | r = Sxy/√(Sxx Syy) | [−1, 1], unit-free |
| Line | b = Sxy/Sxx = r sy/sx; a = ȳ − bx̄ | Through (x̄, ȳ) |
| Fit | r² = 1 − SSE/SST; se = √[SSE/(n − 2)] | Residuals sum to 0 |
Rules that are not formulas, all chapters
| Topic | The rule |
|---|---|
| Symbols | Greek for populations (μ, σ, p, N); Roman for samples (x̄, s, p̂, n). |
| Error versus bias | Sampling error shrinks with n; bias needs better design. |
| Data types | Qualitative or quantitative; quantitative is discrete (counted) or continuous (measured). |
| Levels | Nominal (mode), ordinal (median), interval (mean, no ratios), ratio (all, ratios valid). |
| Correlation | Four explanations: cause, reverse cause, confounder, coincidence. |
| Sampling methods | Stratified: some from every group. Cluster: all from some groups. |
| No inference | Convenience and voluntary response samples. |
| Two randomizations | Random sampling generalizes; random assignment shows cause. |
| Experiment | Control, randomization, replication, blocking, placebo, double blinding. |
| P-value and CI | Neither is the probability that a hypothesis or parameter value is true. |
| Checks | Frequencies sum to n; relative to 1; cumulative ends at n. |
| Classes | No overlaps, no gaps; round the width up. |
| Bars | Bar chart gaps for categories; histogram bars touch; both start at zero. |
| Pie | Only for exclusive, exhaustive categories. |
| Skew | Named for the tail; right skew pulls the mean above the median. |
| Bimodal | Two groups mixed; split before summarizing. |
| Choosing center | Mean for symmetric; median for skewed or ordinal; mode for categories. |
| Quartiles | Median of each half; leave the median out when n is odd. |
| Empirical rule | 68, 95, 99.7 within 1, 2, 3 SD, bell shapes only. |
| Sample space | List ordered outcomes; HT and TH differ. |
| Long run | Proportions settle toward P; nothing is due. |
| Disjoint vs independent | Disjoint events with nonzero P are dependent. |
| Two-way table | Joint over total; marginal over total; conditional over its row or column. |
| Trees | Multiply along, add across; ends sum to 1. |
| Inverse | P(A | B) is not P(B | A). |
| Valid table | Sum to 1 and every entry in [0, 1]. |
| Unusual | Outside μ ± 2σ. |
| Model choice | Fixed trials: binomial. Fixed interval: Poisson. One success: geometric. |
| Empirical rule | 68, 95, 99.7; blocks 34, 13.5, 2.35, 0.15. |
| Area | Area is probability; a single point has probability 0. |
| Backward | Area → z → x; "top 10%" is a left area of 0.90. |
| Shape | Standardizing never fixes skew. |
| Three distributions | Population, sample data, sampling distribution. |
| Noun check | One person: σ. Sample mean: σ ÷ √n. |
| CLT | Any shape with finite σ; n ≥ 30 is a rule of thumb. |
| SD vs SE | SD for people; SE for estimates. |
| 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. |
| 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. |
| Chi-square data | Counts only; paired yes/no uses McNemar. |
| Small counts | Combine categories or use Fisher's exact test. |
| ANOVA Ha | At least one mean differs. |
| ANOVA conditions | Independence, rough normality, largest s < 2 × smallest. |
| After F | Post-hoc only after a significant F (or planned contrasts). |
| Scatterplot | Form, direction, strength, outliers. |
| r limits | Linear only, not resistant, shrinks with restricted range, not causal. |
| Residual plot | Want no pattern; U = curve; fan = changing spread. |
| Prediction | Interpolate only; refit to predict x from y. |