🧪 Contents · Interactive Lab · All study guides Final exam · Chapters 1 to 14
Statistics · Study Guide

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.

Lock these in
  • 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.
Mean versus median for nine commute timesA dot plot on a number line from 10 to 90 minutes shows nine commute times: 19, 21, 22, 23, 24, 25, 27, 31 and 88. Eight dots cluster between 19 and 31 minutes and one dot sits far to the right at 88. A solid line marks the median at 24 minutes, in the middle of the cluster. A dashed line marks the mean at 31.1 minutes, pulled to the right by the single 88. A note says that removing the 88 makes the mean 24.0, equal to the median.102030405060708090commute time (minutes)median = 24a typical daymean = 31.1pulled right by one dayoutlier: 88Drop the 88 and the mean becomes 24.0, the same as the median.
One extreme value moves the mean, not the median. Nine commutes have a median of 24 minutes, but the single 88 drags the mean up to 31.1.

Chapter 1 formulas and facts

QuantityFormulaWhen to use it
Meanx̄ = Σx ÷ n (sample); μ = Σx ÷ N (population)Center of quantitative data; totals and long-run averages
MedianMiddle sorted value; average of the two middle values if n is evenTypical value; skewed data or outliers
RangeLargest − smallestQuickest spread; fragile, set by two values
Population SDσ = √[Σ(x − μ)² ÷ N]You have every member of the population
Sample SDs = √[Σ(x − x̄)² ÷ (n − 1)]You have a sample and want to estimate σ
Relative risk reduction(rc − rt) ÷ rcHow large the change is relative to baseline
Absolute risk reductionrc − rtHow many fewer cases per person treated
Number needed to treatNNT = 1 ÷ ARRPeople treated for one to benefit
Celsius to Fahrenheit°F = (9 ÷ 5)°C + 32Testing whether a ratio survives a unit change
Celsius to kelvinK = °C + 273.15Kelvin 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.

Traps people fall into
  • 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

1. A poll of 1,200 adults finds 58% support a plan and reports "about 58% of all adults support it, give or take 3 points." This claim is:
  1. Inferential, because it reaches beyond the 1,200
  2. Descriptive, because it gives a single percent
  3. A census, because 1,200 is a large number
  4. A parameter, because it is about all adults
A. Inferential, because it reaches beyond the 1,200 Any claim about people who were not measured is inferential, and it comes with a statement of uncertainty, here 3 points.
2. Six values are 3, 5, 5, 8, 9 and 40. What is the median?
  1. 5
  2. 11.7
  3. 6.5
  4. 8
C. 6.5 With n = 6, average the 3rd and 4th sorted values: (5 + 8) ÷ 2 = 6.5. The mean, 70 ÷ 6 ≈ 11.7, is pulled up by the 40.
3. Which statement about sampling error is correct?
  1. It is caused by poor question wording
  2. It shrinks as the sample size grows
  3. It disappears with random selection
  4. It grows when the sample is larger
B. It shrinks as the sample size grows Sampling error is the natural difference between a statistic and the parameter. It cannot be removed, but larger samples make it smaller.
4. Jersey numbers on a soccer team are measured at which level?
  1. Ordinal
  2. Interval
  3. Ratio
  4. Nominal
D. Nominal The digits are names. Number 10 is not ranked above or "more than" number 4, so only counts and the mode make sense.
5. A drug lowers risk from 2 in 1,000 to 1 in 1,000. Which pair is correct?
  1. Relative reduction 0.1%, absolute 50 points
  2. Relative reduction 1%, absolute 0.5 points
  3. Relative reduction 50%, absolute 50 points
  4. Relative reduction 50%, absolute 0.1 points
D. Relative reduction 50%, absolute 0.1 points Relative: (0.002 − 0.001) ÷ 0.002 = 50%. Absolute: 0.002 − 0.001 = 0.001, or 0.1 percentage points, so NNT = 1,000.
6. A study reports p = 0.40. What may you conclude?
  1. Compatible with no effect, but an effect is not ruled out
  2. There is a 40% chance that the null hypothesis is true
  3. The study has proven that there is no effect at all
  4. There is a 60% chance that the effect is real
A. Compatible with no effect, but an effect is not ruled out A large p-value means the data do not give convincing evidence against the null. Absence of evidence is not evidence of absence, and a p-value is never the probability that a hypothesis is true.

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.

Lock these in
  • 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.
Standard error shrinks with the square root of nA graph of the standard error of the sample mean, sigma divided by the square root of n, for sigma equal to 12 minutes, with sample size n from 4 to 600 on the horizontal axis and standard error in minutes from 0 to 6 on the vertical axis. The curve falls steeply at first and then flattens. Marked points show n = 36 with SE 2.0, n = 144 with SE 1.0, and n = 576 with SE 0.5. Arrows note that each fourfold increase in n halves the standard error.01002003004005006000123456sample size nSE (minutes)n = 36, SE = 2.0n = 144, SE = 1.0n = 576, SE = 0.5σ = 12 minutesSE = σ ÷ √nFour times the sample buys twice the precision, not four times.
Quadruple n to halve the standard error. With σ = 12 minutes, the standard error falls from 2.0 at n = 36 to 1.0 at n = 144 and 0.5 at n = 576. Population size never appears in the formula.

Chapter 2 formulas and facts

QuantityFormulaWhen to use it
Standard error of x̄SE = σ ÷ √nTypical miss of a sample mean; random, independent sample
Halving the SEMultiply n by 4Planning a sample size
10% conditionn ≤ 0.10NChecking that draws are close to independent
Proportional allocationnh = n × (Nh ÷ N)Stratified sample sized to each stratum
Systematic stepk = N ÷ n; picks are start + k(j − 1)Every k-th unit from a list or stream
Sample proportionp̂ = successes ÷ nShare 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 treatmentslevels of factor 1 × levels of factor 2Counting 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.

Traps people fall into
  • 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

1. With σ = 20, what sample size gives a standard error of 2?
  1. 10
  2. 40
  3. 100
  4. 400
C. 100 SE = σ ÷ √n, so √n = 20 ÷ 2 = 10 and n = 100.
2. A list of 4,000 invoices is sampled with k = 25 after a random start. How large is the sample?
  1. 100
  2. 250
  3. 25
  4. 160
D. 160 k = N ÷ n, so n = N ÷ k = 4,000 ÷ 25 = 160.
3. Which design takes a random sample from inside every group?
  1. Cluster sampling
  2. Stratified sampling
  3. Systematic sampling
  4. Convenience sampling
B. Stratified sampling Stratified sampling samples within every stratum. Cluster sampling picks some whole groups and skips the rest.
4. People asked "Do you floss daily?" tend to say yes more often than they actually floss. Which error is this?
  1. Undercoverage
  2. Nonresponse bias
  3. Sampling error
  4. Response bias
D. Response bias The answers themselves are inaccurate because of social desirability. That is response bias, a kind of nonsampling error.
5. A trial uses random assignment but volunteers from one city. What can it conclude?
  1. Cause, for the whole national population
  2. Association only, for the whole population
  3. Cause, but only for people like these volunteers
  4. Neither cause nor association
C. Cause, but only for people like these volunteers Random assignment supports cause. Without random sampling, the result generalizes only to subjects similar to those studied.
6. What does a placebo do in an experiment?
  1. Makes the belief of being treated equal in both groups
  2. Makes the treatment group larger than the control
  3. Removes the need to randomize the subjects
  4. Lets subjects pick the arm they prefer
A. Makes the belief of being treated equal in both groups The placebo effect is real. Giving the control group an inert look-alike means any difference reflects the treatment, not the belief.

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%.

Lock these in
  • 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.
Histogram of 25 resting pulse ratesA histogram of 25 resting pulse rates in beats per minute. Bars touch at the class boundaries 49.5, 59.5, 69.5, 79.5, 89.5 and 99.5. Frequencies are 1 for 50 to 59, 7 for 60 to 69, 10 for 70 to 79, 5 for 80 to 89 and 2 for 90 to 99. A solid line marks the median at 73 and a dashed line marks the mean at 74.2, slightly to its right. The right side stretches farther than the left, a mild right skew, and a label points to the tail on the right.49.559.569.579.589.599.5024681012pulse rate (beats per minute), drawn at class boundariesfrequency171052median 73mean 74.2longer tailon the rightBars touch because the axis is a continuous scale; bar charts of categories keep gaps.
A histogram of 25 pulse rates. Classes of width 10 give counts 1, 7, 10, 5 and 2. The tail stretches right, so the mean (74.2) sits a little above the median (73).

Chapter 3 formulas and facts

QuantityFormulaWhen to use it
Relative frequencyf ÷ nComparing groups of different sizes
Percent(f ÷ n) × 100%Reporting a share
Cumulative frequencyRunning total of f"How many at or below?"; ends at n
"More than" share1 − cumulative relative frequencyThe complement of "at most"
Class width(max − min) ÷ classes, rounded upGrouped table, 5 to 10 classes
Class midpoint(lower + upper) ÷ 2One value to stand for a class
Class boundaryHalfway between one upper limit and the next lower limitWhere histogram bars meet
Pie angle(f ÷ n) × 360°Exclusive, exhaustive categories only
Lie factorapparent effect ÷ actual effectJudging a graph; honest is about 1
Area inflationscale² for area; scale³ for apparent volumeResized 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%.

Traps people fall into
  • 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

1. A frequency table has 60 observations. What must the cumulative frequency column end at?
  1. 60
  2. 1
  3. 100
  4. 30
A. 60 The cumulative column is a running total of counts, so its last entry equals n = 60. The relative column ends at 1.
2. Which is the midpoint of the class 24 to 31?
  1. 27.5
  2. 27.0
  3. 28.0
  4. 7.0
A. 27.5 (24 + 31) ÷ 2 = 55 ÷ 2 = 27.5.
3. A Pareto chart is:
  1. A pie chart with the slices placed in order
  2. A histogram with equal class widths throughout
  3. A cumulative frequency line graph, an ogive
  4. A bar chart sorted from tallest to shortest
D. A bar chart sorted from tallest to shortest Sorting bars by height makes the biggest categories stand out.
4. Ten exam scores have a mean of 71 and a median of 80. The likely shape is:
  1. Skewed right
  2. Uniform
  3. Skewed left
  4. Symmetric
C. Skewed left Low scores in a left tail drag the mean below the median.
5. An icon is drawn 3 times as wide and 3 times as tall to show a tripling. By what factor does its area grow?
  1. 3
  2. 6
  3. 9
  4. 27
C. 9 Area grows by 3 × 3 = 9. If it looks three-dimensional, the implied volume grows by 27.
6. Which display keeps every original value while showing the shape?
  1. A histogram with narrow bins
  2. A stem-and-leaf plot
  3. A pie chart of the values
  4. A Pareto chart of the counts
B. A stem-and-leaf plot A stemplot shows the shape like a histogram but keeps each value as a leaf.

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².

Lock these in
  • 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.
Boxplot of twelve response times with fencesA boxplot of twelve response times in minutes on a scale from 0 to 60. The box runs from Q1 = 10 to Q3 = 24, so the IQR is 14, with a line at the median of 16. The left whisker reaches the minimum of 3. The right whisker stops at 31, the largest value inside the upper fence. The upper fence, Q3 plus 1.5 times the IQR, is drawn as a dashed line at 45. The value 58 lies beyond it and is plotted as a separate outlier point. Small dots below the box show all twelve values.0102030405060response time (minutes)upper fence 45outlier 58min 3Q1 = 10Q3 = 24whisker ends at 31median 16IQR = 24 − 10 = 14Fences: Q1 − 1.5 × IQR = −11 and Q3 + 1.5 × IQR = 45. Only 58 is outside.
The five-number summary drawn as a boxplot. The box spans the IQR from 10 to 24 with the median at 16. The whisker stops at 31, the last value inside the upper fence of 45, and 58 is flagged as an outlier.

Chapter 4 formulas and facts

QuantityFormulaWhen to use it
Meanx̄ = Σx ÷ nSymmetric quantitative data; later formulas
MedianMiddle value; (n + 1) ÷ 2 positionSkewed or ordinal data; "typical"
Rangemax − minQuick look; fragile
Sample variances² = Σ(x − x̄)² ÷ (n − 1)Spread of a sample
Population varianceσ² = Σ(x − μ)² ÷ NEvery member measured
Standard deviations = √s²; σ = √σ²Spread in original units
Coefficient of variationCV = (s ÷ x̄) × 100%Comparing spread across scales; ratio data
IQR and fencesQ3 − Q1; Q1 − 1.5 IQR, Q3 + 1.5 IQRResistant spread; outlier flags
z-scorez = (x − μ) ÷ σComparing positions across scales
Back from zx = μ + zσValue at a given number of SDs
Chebyshevat least 1 − 1 ÷ k², k > 1Any 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.

Traps people fall into
  • 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

1. With n = 8, the median is:
  1. The 4th value in sorted order
  2. The average of the 4th and 5th sorted values
  3. The 5th value in sorted order
  4. The mean of all eight of the values
B. The average of the 4th and 5th sorted values For even n there is no single middle value, so average the two middle ones.
2. The sum of squares for a sample of 6 is 90. What is s²?
  1. 15
  2. 9.5
  3. 3
  4. 18
D. 18 s² = SS ÷ (n − 1) = 90 ÷ 5 = 18.
3. Q1 = 14 and Q3 = 26. What is the upper fence?
  1. 38
  2. 32
  3. 44
  4. 40
C. 44 IQR = 12, 1.5 × 12 = 18, and 26 + 18 = 44.
4. A score of 88 comes from a test with μ = 80 and σ = 5. What is its z-score?
  1. 1.60
  2. 0.63
  3. 8.00
  4. 1.10
A. 1.60 z = (88 − 80) ÷ 5 = 8 ÷ 5 = 1.60.
5. Chebyshev guarantees what share within 4 SD of the mean?
  1. About 99.99%
  2. At least 93.75%
  3. At least 75%
  4. At least 88.9%
B. At least 93.75% 1 − 1 ÷ 4² = 1 − 1/16 = 0.9375.
6. For bell-shaped data with μ = 50 and σ = 4, about 95% lie between:
  1. 46 and 54
  2. 38 and 62
  3. 42 and 58
  4. 48 and 52
C. 42 and 58 Two SDs: 50 ± 8 gives 42 to 58.

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.

Lock these in
  • 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.
Probability tree for a screening testA probability tree. The first split is disease status: has the condition with probability 0.02, does not with probability 0.98. From "has it," a positive test with probability 0.90 and a negative with 0.10. From "does not," a positive test with probability 0.05 and a negative with 0.95. Path products at the right are 0.018, 0.002, 0.049 and 0.931, which sum to 1. The two positive paths add to 0.067. A box shows P(condition given positive) = 0.018 divided by 0.067, about 0.269.P(D) = 0.02P(no D) = 0.98conditionno condition0.90test += 0.0180.10test −= 0.0020.05test += 0.0490.95test −= 0.931path productsAdd the positive paths: P(+) = 0.018 + 0.049 = 0.067.P(D | +)= 0.018 ÷ 0.067≈ 0.269
Multiply along paths, add across paths. With 2% prevalence, a test that catches 90% of cases and gives 5% false positives yields P(+) = 0.067, and only about 27% of positives have the condition.

Chapter 5 formulas and facts

RuleFormulaWhen to use it
Classical probabilityP(A) = n(A) ÷ n(S)Equally likely outcomes
ComplementP(Ac) = 1 − P(A)"Not" and "at least one" questions
General additionP(A or B) = P(A) + P(B) − P(A and B)Any "or" question
Disjoint additionP(A or B) = P(A) + P(B)Events that cannot co-occur
General multiplicationP(A and B) = P(A) × P(B | A)Any "and" question, including without replacement
Independent multiplicationP(A and B) = P(A) × P(B)Independent events; also the test for independence
ConditionalP(A | B) = P(A and B) ÷ P(B)"Given" questions
At least one in n independent tries1 − (1 − p)nRepeated trials
Total probabilityP(B) = P(A)P(B | A) + P(Ac)P(B | Ac)Adding tree paths
Reverse a conditionP(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.

Traps people fall into
  • 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

1. P(rain) = 0.35. What is P(no rain)?
  1. 0.35
  2. 1.35
  3. 0.50
  4. 0.65
D. 0.65 Complement rule: 1 − 0.35 = 0.65.
2. One card is drawn. What is P(heart or face card)?
  1. 25/52
  2. 22/52
  3. 3/52
  4. 13/52
B. 22/52 13/52 + 12/52 − 3/52 = 22/52; the three face hearts are counted only once.
3. P(A) = 0.6 and P(B | A) = 0.5. What is P(A and B)?
  1. 0.30
  2. 1.10
  3. 0.83
  4. 0.10
A. 0.30 General multiplication rule: 0.6 × 0.5 = 0.30.
4. P(A and B) = 0.12 and P(B) = 0.40. What is P(A | B)?
  1. 0.048
  2. 0.52
  3. 0.30
  4. 0.28
C. 0.30 0.12 ÷ 0.40 = 0.30.
5. Which statement shows the confusion of the inverse?
  1. Using 1 − P(none) for an "at least one" question
  2. Treating P(positive | disease) as P(disease | positive)
  3. Subtracting the overlap in an "or" question
  4. Multiplying the probabilities along a tree path
B. Treating P(positive | disease) as P(disease | positive) P(A | B) and P(B | A) usually differ, sometimes by a lot. Screening results are the classic case.
6. A coin has landed heads 6 times in a row. What is P(heads) on the next fair flip?
  1. Less than 0.5
  2. More than 0.5
  3. 1/64
  4. 0.5
D. 0.5 Flips are independent. The coin has no memory, so the probability stays 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.

Lock these in
  • 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σ.
Binomial distribution with n = 10 and p = 0.3A probability histogram of a binomial distribution with n = 10 trials and success probability p = 0.3. Bar heights are P(0) = 0.028, P(1) = 0.121, P(2) = 0.233, P(3) = 0.267, P(4) = 0.200, P(5) = 0.103, P(6) = 0.037, and P(7) through P(10) under 0.01. The tallest bar is at 3. A vertical line marks the mean, np = 3. A bracket shows the range rule interval, mean plus or minus two standard deviations, from 0.10 to 5.90. Values of 6 or more are shaded as unusual.0123456789100.000.050.100.150.200.250.30x = number of successes in 10 trialsP(x)0.0280.1210.2330.2670.2000.1030.037μ = np = 3μ ± 2σ: 0.10 to 5.90unusual:6 or moreσ = √(npq) = 1.45
A binomial distribution drawn to scale. With n = 10 and p = 0.3 the bars peak at 3, the mean np. The standard deviation is √(10 × 0.3 × 0.7) ≈ 1.45, so counts of 6 or more fall outside μ ± 2σ.

Chapter 6 formulas and facts

QuantityFormulaWhen to use it
ValidityΣP(x) = 1; 0 ≤ P(x) ≤ 1Checking any discrete table
Meanμ = Σ[x · P(x)]Long-run average of a random variable
Varianceσ² = Σ[x² · P(x)] − μ²Spread; take √ for σ
Unusual valuesOutside μ ± 2σRange rule of thumb
Binomial probabilitynCx px qn−xFixed n, two outcomes, independent, constant p
CombinationsnCx = 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 probabilityqx−1 pTrial of the first success
Geometric mean and SDμ = 1/p; σ = √q ÷ pAverage 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.

Traps people fall into
  • 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

1. P(0) = 0.3, P(1) = 0.3, P(2) = k. What is k?
  1. 0.6
  2. 0.4
  3. 0.3
  4. 1.0
B. 0.4 The probabilities must sum to 1: 1 − 0.6 = 0.4.
2. E(X) for a raffle ticket is −$1.00. What does that mean?
  1. Every buyer loses exactly $1 on each ticket
  2. The prize is worth $1 less than the ticket price
  3. On average, buyers lose about $1 per ticket
  4. One ticket in every 100 wins a prize
C. On average, buyers lose about $1 per ticket Expected value is the long-run average result, not what happens on any single ticket.
3. n = 4, p = 0.5. What is P(X = 4)?
  1. 0.5000
  2. 0.2500
  3. 0.0625
  4. 0.1250
C. 0.0625 4C4 = 1 and 0.5⁴ = 0.0625.
4. A binomial has n = 100 and p = 0.1. What is σ?
  1. 9
  2. 10
  3. 0.3
  4. 3
D. 3 σ = √(100 × 0.1 × 0.9) = √9 = 3.
5. For a Poisson count with λ = 9, what is σ?
  1. 9
  2. 81
  3. 4.5
  4. 3
D. 3 Poisson variance equals λ, so σ = √9 = 3.
6. With p = 0.3, what is P(the first success comes on trial 2)?
  1. 0.21
  2. 0.09
  3. 0.30
  4. 0.49
A. 0.21 One failure then a success: 0.7 × 0.3 = 0.21.

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.

Lock these in
  • 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.
Area under a normal curve between 64 and 86A normal curve for exam scores with mean 72 and standard deviation 8, drawn over scores from 44 to 100. The region from 64 to 86 is shaded. A second axis under the scores shows z values from minus 3 to plus 3, with 64 at z = minus 1.00 and 86 at z = 1.75. Labels give the table areas: the area left of 86 is 0.9599, the area left of 64 is 0.1587, and the shaded area is their difference, 0.8012.48−356−264−172080+188+296+3zscore x64 (z = −1.00)86 (z = 1.75)area = 0.8012Φ(1.75) = 0.9599Φ(−1.00) = 0.1587difference = 0.8012
Area is probability. For scores with μ = 72 and σ = 8, the share between 64 and 86 is Φ(1.75) − Φ(−1.00) = 0.9599 − 0.1587 = 0.8012.

Chapter 7 formulas and facts

QuantityFormulaWhen to use it
z-scorez = (x − μ) ÷ σConvert a value to standard units
Back to xx = μ + zσPercentiles and cutoffs
Left tailP(X < a) = Φ(za)"Below," "less than," "at most"
Right tailP(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 tailSymmetric intervals
Chebyshevat 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.

Traps people fall into
  • 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

1. About what percent of a normal distribution lies above μ + 1σ?
  1. 34%
  2. 32%
  3. 84%
  4. 16%
D. 16% 68% lies within ±1σ, leaving 32% split evenly: 16% above.
2. A value has x = 85 with μ = 70 and σ = 6. What is z?
  1. 2.50
  2. 1.50
  3. 15.00
  4. 0.40
A. 2.50 (85 − 70) ÷ 6 = 15 ÷ 6 = 2.50.
3. Φ(0.85) = 0.8023. What share lies above z = 0.85?
  1. 0.8023
  2. 0.3023
  3. 0.6046
  4. 0.1977
D. 0.1977 Right tail = 1 − 0.8023 = 0.1977.
4. The 75th percentile of N(60, 10) is about:
  1. 53.3
  2. 66.7
  3. 67.5
  4. 70.0
B. 66.7 z ≈ 0.674, so x = 60 + 0.674(10) ≈ 66.7.
5. Which z values bound the middle 99%?
  1. ±1.96
  2. ±3.00
  3. ±2.576
  4. ±2.326
C. ±2.576 0.5% in each tail gives Φ(2.576) = 0.9950.
6. Which statement about the normal model is correct?
  1. It fits any data with a mean
  2. Its median is above its mean
  3. It is fixed entirely by μ and σ
  4. Its total area depends on σ
C. It is fixed entirely by μ and σ Two parameters pin down the whole curve; the total area is always 1 and the mean equals the median.

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.

Lock these in
  • 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.
Individuals versus sample meansThree normal curves drawn to the same scale for resting heart rate with mean 74 beats per minute. The widest, lowest curve is the population of individuals with standard deviation 12. A taller curve is the sampling distribution of the mean for n = 4, with standard error 6. The tallest, narrowest curve is for n = 36, with standard error 2. All three are centered at 74. A dashed line at 77 shows that about 40 percent of individuals exceed 77 but only about 6.7 percent of means of 36 do.405060708090100110resting heart rate (beats per minute)77n = 36, SE = 2n = 4, SE = 6individuals, σ = 12all centered at μ = 74Above 77: about 40% of individuals, but only 6.7% of means of 36.
Averages vary less than individuals. The sampling distribution of x̄ keeps the center μ = 74 but narrows to σ ÷ √n: 6 for n = 4 and 2 for n = 36. A threshold that 40% of people pass is cleared by only 6.7% of sample means.

Chapter 8 formulas and facts

QuantityFormulaWhen to use it
Center of x̄μx̄ = μAlways; x̄ is unbiased
Spread of x̄σx̄ = σ ÷ √nIndependent draws
z for a meanz = (x̄ − μ) ÷ (σ ÷ √n)Questions about a sample mean
z for one valuez = (x − μ) ÷ σQuestions about one individual
Sum of n drawsNormal(nμ, σ√n)Totals, by the CLT
Estimated SEs ÷ √nσ unknown
n for a target SEn = (s ÷ SE)², round upPlanning 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-failurenp ≥ 10 and n(1 − p) ≥ 10Before using a normal model for p̂
Margin of error (rough)≈ 2 × SERandom 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.

Traps people fall into
  • 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

1. Which is true of x̄ as an estimator of μ?
  1. It always equals μ exactly for n ≥ 30
  2. Its sampling distribution centers on μ
  3. It is biased low for skewed populations
  4. It is centered at μ only if n is large
B. Its sampling distribution centers on μ μx̄ = μ for every n and every population shape.
2. σ = 30 and n = 9. What is σx̄?
  1. 3.33
  2. 30
  3. 90
  4. 10
D. 10 30 ÷ √9 = 30 ÷ 3 = 10.
3. When does x̄ have an exactly normal distribution for any n?
  1. When n is at least 30
  2. When the population is normal
  3. When σ is known
  4. When the sample is random
B. When the population is normal A normal population gives a normal x̄ at every sample size.
4. p = 0.2 and n = 400. What is SE(p̂)?
  1. 0.04
  2. 0.0004
  3. 0.02
  4. 0.16
C. 0.02 √(0.2 × 0.8 ÷ 400) = √0.0004 = 0.02.
5. Which value of p gives the largest SE(p̂) for a fixed n?
  1. 0.5
  2. 0.1
  3. 0.9
  4. 0.99
A. 0.5 p(1 − p) peaks at p = 0.5.
6. A margin of error of ±3 points means:
  1. The estimate is certainly within 3 points of the truth
  2. Bias in the survey is under 3 points
  3. There is a 3% chance the poll is wrong
  4. Random sampling error is about ±3 points if the method is clean
D. Random sampling error is about ±3 points if the method is clean A margin of error budgets chance only and assumes no bias.

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.

Lock these in
  • 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.
Twenty 95 percent confidence intervals from repeated samplesTwenty horizontal 95 percent t intervals, each built from a separate random sample of 25 values from a population with true mean 50 and standard deviation 10. A vertical dashed line marks the true mean 50. 18 of the 20 intervals cross the line and 2 miss it; the misses are drawn in rust. Each interval has a dot at its sample mean, and the intervals differ in both center and width.4045505560value of the estimate (true μ = 50)true μ = 5018 of 20capture μ2 of 20miss itThe 95% belongs to the method: in the long run about 95% of intervals capture μ.
Confidence is about the procedure. Twenty samples of n = 25 from a population with μ = 50 give twenty different 95% intervals. 18 capture μ and 2 miss; you never know which kind yours is.

Chapter 9 formulas and facts

Interval or planFormulaWhen to use it
Skeletonestimate ± (critical value)(SE)Every interval
Mean, σ knownx̄ ± z*(σ ÷ √n)σ given from outside the data
Mean, σ unknownx̄ ± t*(s ÷ √n), df = n − 1You computed s from the sample
Proportionp̂ ± z*√[p̂(1 − p̂) ÷ n]np̂ ≥ 10 and n(1 − p̂) ≥ 10
Margin from an intervalE = (upper − lower) ÷ 2Reading a reported CI
Estimate from an intervalcenter = (upper + lower) ÷ 2Reading a reported CI
n for a meann = (z*σ ÷ E)²Planning; round up
n for a proportionn = 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.

Traps people fall into
  • 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

1. A 95% interval runs from 20.4 to 26.0. What are the estimate and margin?
  1. 23.2 and 5.6
  2. 20.4 and 5.6
  3. 26.0 and 2.8
  4. 23.2 and 2.8
D. 23.2 and 2.8 Center = (20.4 + 26.0) ÷ 2 = 23.2; margin = (26.0 − 20.4) ÷ 2 = 2.8.
2. Which critical value goes with a 99% z interval?
  1. 1.96
  2. 2.576
  3. 1.645
  4. 3.00
B. 2.576 0.5% in each tail gives z* = 2.576.
3. Why is t* larger than z* for small samples?
  1. Small samples are always biased
  2. Estimating σ with s adds uncertainty
  3. The t curve has a higher peak
  4. The SE is smaller for small n
B. Estimating σ with s adds uncertainty Heavier t tails widen the interval to pay for estimating σ.
4. σ ≈ 20, E = 4, 95% confidence. What n is needed?
  1. 96
  2. 10
  3. 97
  4. 49
C. 97 (1.96 × 20 ÷ 4)² = 9.8² = 96.04, rounded up to 97.
5. p̂ = 0.08 with n = 100. Which condition fails?
  1. np̂ ≥ 10
  2. n(1 − p̂) ≥ 10
  3. The 10% rule
  4. None of them
A. np̂ ≥ 10 np̂ = 8, under 10, so the normal-based interval is not trustworthy.
6. A survey used volunteers who clicked a link. What does its margin of error cover?
  1. Nothing useful, as the sample is not random
  2. Both chance error and the selection bias
  3. Only the selection bias in who responded
  4. The full error of the estimate, bias included
A. Nothing useful, as the sample is not random The formula assumes random sampling. Self-selected samples make the margin meaningless.

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.

Lock these in
  • 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.
Rejection regions and p-value for a two-tailed t testA t distribution with 35 degrees of freedom centered at 0 under the null hypothesis. Both tails beyond plus and minus 2.030 are the rejection region for alpha = 0.05, shaded light rust, 0.025 in each. The observed statistic t = 2.40 is marked; the areas beyond plus and minus 2.40, about 0.011 each, are shaded darker and together form the two-sided p-value of about 0.022. Since t falls in the rejection region, the null hypothesis is rejected.−3−2−10123t under H0 (df = 35)t* = 2.030−2.030observed t = 2.40reject H0reject H0fail to rejecteach dark tail ≈ 0.011p-value = 2 × 0.0109 ≈ 0.022 ≤ α = 0.05, so reject H0.
Two routes to one verdict. For the commute test, t = 2.40 lies beyond the critical value 2.030, and the two dark tails add to p ≈ 0.022, below α = 0.05.

Chapter 10 formulas and facts

QuantityFormulaWhen 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-value2 × (tail area beyond |t|)Ha: ≠
One-sided p-valueOne tail in the direction of HaHa: < or >, chosen in advance
DecisionReject H0 if p ≤ αα fixed beforehand
Rejection cutoffs (power)μ0 ± z*(σ ÷ √n)Power calculations
PowerP(reject H0 | specific true μ)Planning; aim for 0.80 or more
Cohen's dd = (x̄ − μ0) ÷ sEffect 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.

Traps people fall into
  • 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

1. Where does the equals sign go?
  1. In the alternative hypothesis
  2. In both hypotheses
  3. In the null hypothesis
  4. In neither hypothesis
C. In the null hypothesis H0 pins the parameter to one value so the probability model can be built.
2. t = 1.50 with a two-sided Ha. One tail beyond 1.50 has area 0.07. What is p?
  1. 0.07
  2. 0.93
  3. 0.14
  4. 0.035
C. 0.14 Two-sided p doubles the tail: 2 × 0.07 = 0.14.
3. α is best described as:
  1. The Type I error rate, set in advance
  2. The probability that H0 is true
  3. The power of the test being run
  4. The p-value of your one sample
A. The Type I error rate, set in advance α is the false-alarm budget, fixed before the data.
4. Lowering α from 0.05 to 0.01 with n fixed does what to β?
  1. Raises it
  2. Lowers it
  3. Leaves it unchanged
  4. Sets it to 0.01
A. Raises it A smaller rejection region makes misses more likely.
5. A mean difference of 3 with s = 12 gives Cohen's d of:
  1. 4.00
  2. 0.25
  3. 0.36
  4. 36.0
B. 0.25 d = 3 ÷ 12 = 0.25.
6. Which statement about significance is correct?
  1. A small p-value proves a causal effect
  2. Significant results will always replicate
  3. Large effects are always statistically significant
  4. Significance alone never establishes causation
D. Significance alone never establishes causation Causal claims come from randomized, controlled designs, not from the size of a test statistic.

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.

Lock these in
  • 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.
t distributions compared with the standard normalThree bell-shaped curves centered at 0 drawn to scale: the standard normal, a t distribution with 10 degrees of freedom, and a t distribution with 3 degrees of freedom. The t curves are lower in the middle and heavier in the tails, most of all for 3 degrees of freedom. Two-tailed 95 percent critical values are marked on the right: 1.960 for the normal, 2.228 for df = 10 and 3.182 for df = 3.−4−3−2−101234test statisticstandard normal: z* = 1.960t, df = 10: t* = 2.228t, df = 3: t* = 3.18295% two-tailed cutoffsheavier tails:more evidence neededAs df grows, t* shrinks toward 1.96 and the t curve becomes the normal curve.
Estimating σ costs heavier tails. With df = 3 a t statistic must pass 3.182 to reject at α = 0.05, two-tailed; with df = 10 it must pass 2.228; with σ known the cutoff is 1.96.

Chapter 11 formulas and facts

TestStatisticWhen 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-testz = (p̂ − p0) ÷ √[p0(1 − p0) ÷ n]Yes/no outcome; np0, n(1 − p0) ≥ 10
Proportion CIp̂ ± z*√[p̂(1 − p̂) ÷ n]Estimating p after the test
p-value, two-sided2 × P(beyond |statistic|)Ha: ≠
p-value, one-sidedOne tail toward HaDirection set in advance
Chance of a false positive in k tests1 − (1 − α)kMultiple 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.

Traps people fall into
  • 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

1. When is the z-test for a mean appropriate?
  1. Whenever n is at least 30
  2. When σ is truly known from long history
  3. Whenever the data are skewed
  4. When s is computed from the sample
B. When σ is truly known from long history With σ estimated, the honest choice is t.
2. Two-tailed t* at α = 0.05 for df = 15 is 2.131. t = 2.125. Decision?
  1. Reject, since 2.125 is close
  2. Accept H0
  3. Fail to reject, just barely
  4. Reject, since t is positive
C. Fail to reject, just barely 2.125 does not reach 2.131, so p is just above 0.05.
3. Which SE belongs in a one-proportion test?
  1. √[p̂(1 − p̂)/n]
  2. s/√n
  3. σ/n
  4. √[p0(1 − p0)/n]
D. √[p0(1 − p0)/n] The test is computed assuming H0, so it uses p0.
4. Same x̄ and s, but n grows from 16 to 64. What happens to t?
  1. It doubles
  2. It halves
  3. It stays the same
  4. It quadruples
A. It doubles SE = s/√n halves when n quadruples, so t doubles.
5. The t-test is least robust to:
  1. Mild skew with n = 50
  2. A large sample size of 200
  3. Outliers in small samples
  4. Using a two-sided alternative
C. Outliers in small samples One wild value can move both x̄ and s in a small sample.
6. Twenty independent tests at α = 0.05 with no real effects give about how many false positives?
  1. 1
  2. 0
  3. 5
  4. 20
A. 1 20 × 0.05 = 1 expected by chance alone.

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.

Lock these in
  • 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.
Paired before and after reaction times and their differencesLeft panel: eight participants' reaction times before and after training, plotted on a scale from 380 to 450 milliseconds, with a line joining each person's two values. The lines mostly slope down by a small amount, while the people differ from each other by up to 60 milliseconds. Right panel: the eight differences, before minus after, plotted on a scale from minus 5 to 15: 12, 5, minus 3, 9, 14, 2, 7 and 10. Their mean is 7.0 with a 95 percent interval from 2.35 to 11.65 that sits entirely above zero.380390400410420430440450reaction time (ms)beforeafterbig spread between people−5051015difference d = before − after (ms)d̄ = 7.095% CI 2.4 to 11.6small spread within people
Pairing removes the person-to-person noise. The raw times differ by up to 60 ms between people, but each person's change is small and consistent. The differences have mean 7.0 ms and SE 1.964, so the 95% interval sits above zero.

Chapter 12 formulas and facts

ComparisonStatisticInterval
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²/nRound down by hand
Paired meanst = d̄ ÷ (sd/√n), df = n − 1d̄ ± t* sd/√n
Pooled proportionp̂pool = (x1 + x2)/(n1 + n2)Test only
Two proportionsz = (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̂2Not 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.

Traps people fall into
  • 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

1. What does H0: μ1 − μ2 = 0 claim?
  1. The two sample means are equal
  2. The two samples are paired
  3. The variances are equal
  4. The two population means are equal
D. The two population means are equal Hypotheses concern the populations; the samples nearly always differ.
2. Why use Welch's test by default?
  1. It always gives a smaller p-value
  2. It does not assume equal variances
  3. It needs no conditions at all
  4. It works only for paired data
B. It does not assume equal variances Welch protects you when variances differ and costs little when they do not.
3. Differences 3, 5, 4 from three pairs. What is d̄?
  1. 12
  2. 3
  3. 5
  4. 4
D. 4 (3 + 5 + 4) ÷ 3 = 4.
4. In the two-proportion test, the pooled proportion is used because:
  1. H0 says the two proportions are equal
  2. It always gives a larger z value
  3. The two samples are paired
  4. The interval requires a pooled SE
A. H0 says the two proportions are equal Under H0 there is one common proportion, best estimated from all the data.
5. Numeric outcome, two independent groups of 6, data badly skewed. Which test fits?
  1. Wilcoxon rank-sum
  2. Paired t
  3. McNemar's test
  4. Two-proportion z
A. Wilcoxon rank-sum Tiny, skewed, independent samples call for a rank-based test.
6. A 95% CI for p1 − p2 is 0.02 to 0.15. What does it say?
  1. The two rates are shown to be equal
  2. Group 2's rate is plausibly the higher one
  3. Group 1's rate is plausibly 2 to 15 points higher
  4. The difference is 15 points exactly
C. Group 1's rate is plausibly 2 to 15 points higher The whole interval is above zero, so group 1 is higher by somewhere between 2 and 15 points.

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.

Lock these in
  • χ² = Σ(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.
Between-group and within-group variation in a one-way ANOVADot plots of test scores for three training methods with five scores each on a vertical scale from 65 to 90: method A 68, 71, 72, 73, 76 with mean 72; method B 72, 75, 77, 79, 82 with mean 77; method C 78, 80, 82, 83, 87 with mean 82. A short bar marks each group mean and a dashed line marks the grand mean of 77. Arrows from the grand mean to group means A and C show between-group variation; brackets around group B's dots show within-group scatter. A panel gives SS between 250 on 2 df, SS within 138 on 12 df, mean squares 125.00 and 11.50, and F = 10.87.657075808590test scoregrand mean 77method A72method B77method C82between (signal)SS = 250, df = 2MSB = 125.00within (noise)SS = 138, df = 12MSW = 11.50F = 125.00 ÷ 11.50 = 10.87Arrows: group means sit farfrom 77 compared with thescatter inside each group.
F compares signal with noise. The three method means (72, 77, 82) spread far from the grand mean compared with the scatter inside each group, so F = 10.87 on (2, 12) df.

Chapter 13 formulas and facts

QuantityFormulaWhen to use it
Chi-square statisticχ² = Σ(O − E)² ÷ EBoth chi-square tests
Expected, goodness of fitE = n × piOne variable versus a claim
Expected, independenceE = (row total × column total) ÷ grand totalTwo-way table
dfk − 1; (r − 1)(c − 1)GOF; independence
Standardized residual(O − E) ÷ √EWhich 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 − 1ANOVA signal
Within SSΣΣ(x − x̄j)², df = N − kANOVA noise
FMSB ÷ MSW, MS = SS ÷ dfEqual means?
Eta squaredη² = SSbetween ÷ SStotalShare of variation explained
Tukey HSDqα, k, N−k × √(MSW ÷ n)All pairs, equal n
BonferroniEach test at α ÷ mA 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.

Traps people fall into
  • 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

1. Why is a chi-square test always right-tailed?
  1. χ² values are often negative numbers
  2. Only large χ² values show a mismatch with H0
  3. The χ² curve is symmetric about 0
  4. Small χ² values are what reject H0
B. Only large χ² values show a mismatch with H0 Each term is a square over a positive number, so bigger means worse fit.
2. Expected counts must be at least 5 for:
  1. Every cell, using the observed counts
  2. Only the largest cell in the table
  3. The row and column totals only
  4. Every cell, using expected not observed counts
D. Every cell, using expected not observed counts The approximation depends on expected counts.
3. The same people are asked a yes or no question twice. Which test fits?
  1. McNemar's test
  2. Chi-square test of independence
  3. One-way ANOVA
  4. Goodness of fit
A. McNemar's test Paired categorical data break the independence chi-square needs.
4. SSbetween = 60 and SStotal = 200. What is η²?
  1. 0.43
  2. 3.33
  3. 0.60
  4. 0.30
D. 0.30 60 ÷ 200 = 0.30: 30% of the variation is explained by group.
5. Five groups compared with Bonferroni across all 10 pairs at α = 0.05 test each pair at:
  1. 0.05
  2. 0.01
  3. 0.005
  4. 0.025
C. 0.005 0.05 ÷ 10 = 0.005.
6. With exactly two groups, how do ANOVA and the pooled t-test relate?
  1. F = t², with the same p-value
  2. F = 2t
  3. They give opposite decisions
  4. ANOVA needs paired data
A. F = t², with the same p-value ANOVA generalizes the pooled two-sample t-test.

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.

Lock these in
  • 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.
Least-squares line with residuals for six studentsA scatterplot of exam score against hours studied for six students: (2, 72), (4, 69), (5, 70), (7, 80), (8, 83) and (10, 94). The least-squares line y-hat = 60 + 3x runs through the cloud and through the point of averages (6, 78), marked with a gold diamond. Vertical segments from each point to the line show the residuals: +6, minus 3, minus 5, minus 1, minus 1 and +4. A panel notes r = 0.90, r squared = 0.81, SSE = 88 and se = 4.69.02468101260708090100hours studied (x)exam score (y)+6−3−5−1−1+4(x̄, ȳ) = (6, 78)ŷ = 60 + 3xr = 0.90r² = 0.81SSE = 88SST = 466se = √(88 ÷ 4) = 4.69residuals sum to 0dashed: residualy − ŷ
Least squares minimizes the squared vertical misses. The line ŷ = 60 + 3x passes through (6, 78). Its residuals +6, −3, −5, −1, −1 and +4 square and sum to SSE = 88, the smallest possible, giving r² = 0.81.

Chapter 14 formulas and facts

QuantityFormulaWhen to use it
Correlationr = Sxy ÷ √(Sxx × Syy)Strength and direction of a linear pattern
Correlation (z form)r = Σzxzy ÷ (n − 1)Why r has no units
Slopeb = Sxy ÷ Sxx = r(sy ÷ sx)Predicted change in y per unit x
Intercepta = ȳ − bx̄Anchors the line
Predictionŷ = a + bxAverage y at x, inside the data range
Residuale = y − ŷWhat the line missed
Sums of squaresSST = Σ(y − ȳ)²; SSE = Σ(y − ŷ)²Variation before and after the line
r²1 − SSE ÷ SST = r²Share of variation explained
Std. error of estimatese = √[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.

Traps people fall into
  • 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

1. r = 0.05 for two variables. What can you conclude?
  1. The variables are unrelated in every way
  2. The slope of the line is large
  3. Little linear pattern, though a curve is possible
  4. x causes y, but only weakly
C. Little linear pattern, though a curve is possible r measures linear association only.
2. Converting x from inches to centimeters changes r how?
  1. It multiplies r by 2.54
  2. It divides r by 2.54
  3. It changes its sign
  4. Not at all
D. Not at all r is unit-free because it is built from z-scores.
3. The least-squares line always passes through:
  1. (0, 0)
  2. The first data point
  3. The largest residual
  4. (x̄, ȳ)
D. (x̄, ȳ) a = ȳ − bx̄ rearranges to ȳ = a + bx̄.
4. SSE = 50 with n = 12. What is se?
  1. 2.13
  2. 5.00
  3. 2.24
  4. 4.17
C. 2.24 √(50 ÷ 10) = √5 ≈ 2.24.
5. Least-squares residuals always sum to:
  1. 1
  2. 0
  3. SSE
  4. r²
B. 0 That is a guaranteed property and a free arithmetic check.
6. A strong positive r between ice cream sales and drownings means:
  1. Eating ice cream causes people to drown
  2. They move together, likely via a lurking variable
  3. Drownings raise sales of ice cream
  4. The data must contain an error
B. They move together, likely via a lurking variable Hot weather drives both. Correlation is not causation.

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)

NameFormulaNote
Meanx̄ = Σx ÷ n; μ = Σx ÷ NPulled by outliers
MedianMiddle sorted valueAverage the two middle values when n is even
RangeMax − minSet by the two extremes
Varianceσ² = Σ(x − μ)² ÷ N; s² = Σ(x − x̄)² ÷ (n − 1)SD is the square root
RiskRRR = (rc − rt) ÷ rc; ARR = rc − rtNNT = 1 ÷ ARR
Standard errorSE(x̄) = σ ÷ √n4 × n halves it
Allocationnh = n × Nh ÷ NProportional stratified sample
Systematick = N ÷ nRandom start from 1 to k
Margin of error1.96 × √[p̂(1 − p̂) ÷ n]Chance error only

Displaying and summarizing data (chapters 3 and 4)

NameFormulaNote
Relative frequencyf ÷ nColumn sums to 1
Class width(max − min) ÷ classes, round up5 to 10 classes
Pie angle(f ÷ n) × 360°1% = 3.6°
Lie factorapparent ÷ actual effectHonest is about 1
Mean and medianΣx ÷ n; middle sorted valueMean not resistant
Variances² = SS ÷ (n − 1); σ² = SS ÷ NSS = Σ(x − x̄)²
CV(s ÷ x̄) × 100%Ratio data only
IQR and fencesQ3 − Q1; Q1 − 1.5 IQR; Q3 + 1.5 IQRBeyond a fence = flag
z-scorez = (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)

NameFormulaNote
ClassicalP(A) = n(A) ÷ n(S)Equally likely outcomes
ComplementP(Ac) = 1 − P(A)At least one = 1 − P(none)
AdditionP(A) + P(B) − P(A and B)Drop the last term if disjoint
MultiplicationP(A) × P(B | A)P(A)P(B) if independent
ConditionalP(A and B) ÷ P(B)New denominator
Expected valueΣx·P(x)Long-run average
VarianceΣx²P(x) − μ²σ = √σ²
BinomialnCxpxqn−x; μ = np; σ = √(npq)Four conditions
Poissonλxe−λ ÷ x!; μ = σ² = λFixed interval
Geometricqx−1p; μ = 1/pFirst success

Normal model and sampling distributions (chapters 7 and 8)

NameFormulaNote
z-scorez = (x − μ) ÷ σx = μ + zσ
AreasLeft Φ(z); right 1 − Φ(z); between Φ(zb) − Φ(za)Φ(−z) = 1 − Φ(z)
Key z1.28, 1.645, 1.96, 2.326, 2.57690th, 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
SumNormal(nμ, σ√n)CLT for totals
Proportionμp̂ = p; SE = √[p(1 − p) ÷ n]np ≥ 10, n(1 − p) ≥ 10
Planning nn = (s ÷ SE)²Round up

Confidence intervals and testing logic (chapters 9 and 10)

NameFormulaNote
CI skeletonestimate ± critical value × SEWidth = 2 × margin
Mean, σ knownx̄ ± z*σ/√nz* 1.645, 1.96, 2.576
Mean, σ unknownx̄ ± t*s/√ndf = n − 1
Proportionp̂ ± z*√[p̂(1 − p̂)/n]np̂, n(1 − p̂) ≥ 10
Sample sizen = (z*σ/E)²; n = z*²p(1 − p)/E²Round up; p = 0.5 if unknown
Test statistic(estimate − null value) ÷ SEt with df = n − 1 for means
Two-sided p2 × one tailOne-sided only if chosen first
Power1 − βAim for 0.80 or more
Cohen's ddifference ÷ sEffect size

One- and two-sample tests (chapters 11 and 12)

NameFormulaNote
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 td̄ ÷ (sd/√n)df = pairs − 1
Pooled p̂(x1 + x2)/(n1 + n2)Test only
Two proportions(p̂1 − p̂2) ÷ SEpoolCI uses unpooled SE
False positives1 − (1 − α)kk tests

Chi-square, ANOVA and regression (chapters 13 and 14)

NameFormulaNote
Chi-squareΣ(O − E)²/ERight-tailed
Expected countsnp; row × column ÷ totalAll ≥ 5; never round
dfk − 1; (r − 1)(c − 1)GOF; independence
Cramér's V√[χ²/(n × min(r − 1, c − 1))]Size of association
ANOVAF = MSB/MSW; df k − 1, N − kSST = SSB + SSW
Effect sizeη² = SSB/SSTShare explained
TukeyHSD = q√(MSW/n)Bonferroni: α/m
Correlationr = Sxy/√(Sxx Syy)[−1, 1], unit-free
Lineb = Sxy/Sxx = r sy/sx; a = ȳ − bx̄Through (x̄, ȳ)
Fitr² = 1 − SSE/SST; se = √[SSE/(n − 2)]Residuals sum to 0

Rules that are not formulas, all chapters

TopicThe rule
SymbolsGreek for populations (μ, σ, p, N); Roman for samples (x̄, s, p̂, n).
Error versus biasSampling error shrinks with n; bias needs better design.
Data typesQualitative or quantitative; quantitative is discrete (counted) or continuous (measured).
LevelsNominal (mode), ordinal (median), interval (mean, no ratios), ratio (all, ratios valid).
CorrelationFour explanations: cause, reverse cause, confounder, coincidence.
Sampling methodsStratified: some from every group. Cluster: all from some groups.
No inferenceConvenience and voluntary response samples.
Two randomizationsRandom sampling generalizes; random assignment shows cause.
ExperimentControl, randomization, replication, blocking, placebo, double blinding.
P-value and CINeither is the probability that a hypothesis or parameter value is true.
ChecksFrequencies sum to n; relative to 1; cumulative ends at n.
ClassesNo overlaps, no gaps; round the width up.
BarsBar chart gaps for categories; histogram bars touch; both start at zero.
PieOnly for exclusive, exhaustive categories.
SkewNamed for the tail; right skew pulls the mean above the median.
BimodalTwo groups mixed; split before summarizing.
Choosing centerMean for symmetric; median for skewed or ordinal; mode for categories.
QuartilesMedian of each half; leave the median out when n is odd.
Empirical rule68, 95, 99.7 within 1, 2, 3 SD, bell shapes only.
Sample spaceList ordered outcomes; HT and TH differ.
Long runProportions settle toward P; nothing is due.
Disjoint vs independentDisjoint events with nonzero P are dependent.
Two-way tableJoint over total; marginal over total; conditional over its row or column.
TreesMultiply along, add across; ends sum to 1.
InverseP(A | B) is not P(B | A).
Valid tableSum to 1 and every entry in [0, 1].
UnusualOutside μ ± 2σ.
Model choiceFixed trials: binomial. Fixed interval: Poisson. One success: geometric.
Empirical rule68, 95, 99.7; blocks 34, 13.5, 2.35, 0.15.
AreaArea is probability; a single point has probability 0.
BackwardArea → z → x; "top 10%" is a left area of 0.90.
ShapeStandardizing never fixes skew.
Three distributionsPopulation, sample data, sampling distribution.
Noun checkOne person: σ. Sample mean: σ ÷ √n.
CLTAny shape with finite σ; n ≥ 30 is a rule of thumb.
SD vs SESD for people; SE for estimates.
z or tIf you computed s, use t. Proportions use z.
DialsMore confidence widens; 4 × n halves the margin.
CI meaningAbout C% of intervals from this method capture the parameter.
CI and testsA value outside a 95% CI is rejected at α = 0.05, two-sided.
HypothesesAbout parameters; equals sign in H0; tails chosen first.
p-valueP(data this extreme | H0); not P(H0 true).
Decisionp ≤ α reject; p > α fail to reject; never accept.
ErrorsType I false alarm (α); Type II miss (β).
SignificanceNot size, not importance, not cause.
Five stepsHypotheses, α and conditions, statistic, p-value, conclusion in context.
DirectionChosen from the question before the data.
z or tEstimated σ means t; proportions use z.
DualityTwo-sided test at α rejects exactly when the 100(1 − α)% CI excludes the claim.
ConditionsRandom (unfixable), independent (10%), normal enough (by n).
PairingDecided by design; n counts pairs.
Test choiceNumeric or yes/no × independent or paired.
Zero in the CIFail to reject; width tells how much you learned.
Chi-square dataCounts only; paired yes/no uses McNemar.
Small countsCombine categories or use Fisher's exact test.
ANOVA HaAt least one mean differs.
ANOVA conditionsIndependence, rough normality, largest s < 2 × smallest.
After FPost-hoc only after a significant F (or planned contrasts).
ScatterplotForm, direction, strength, outliers.
r limitsLinear only, not resistant, shrinks with restricted range, not causal.
Residual plotWant no pattern; U = curve; fan = changing spread.
PredictionInterpolate only; refit to predict x from y.