MeanMedianModeVarianceSamplingCLTHypothesisRegressionANOVA MeanMedianModeVarianceSamplingCLTHypothesisRegressionANOVA

Applied Statistics · From Data to ANOVA

The whole subject,
in one sitting.

Nine units, stripped to what matters. Every idea gets a plain definition, the formula, a memory hook, and an example simple enough for a beginner. The aim is understanding, not memorising. The subject builds toward hypothesis testing (the engine) and ANOVA (the final boss) — so it's worth pacing yourself there.

Units
Nine
Contact hours
54
Major exams
3
Reference
Walpole
Formula 🧠 Mnemonic Picture-this example Color-coded units

01 / Foundations

I

Introduction to Statistics

Statistics is the science of collecting, organizing, analyzing, and interpreting data to make decisions under uncertainty. Two halves: descriptive (summarize what you have) and inferential (use a sample to make claims about a population).

The four words you must never mix up

  • Population — the entire group you care about. Sample — the slice you actually measure.
  • Parameter — a number describing the population (the truth, usually unknown). Statistic — a number from your sample (your estimate).

How to tell them apart in a word problem — ask two questions in order:

  1. Who does the question ultimately want to know about? → that's the population.
  2. Who did the researcher actually measure? → that's the sample (often smaller than the population).
  3. A number describing the population's truth (uses N, μ, σ) → parameter. It's usually unknown — that's the whole reason to sample.
  4. A number computed from the sample (uses n, , s) → statistic. This is your estimate of the parameter.
🧠
Mnemonic

Population = the whole Pizza 🍕; Sample = one Slice. Parameter ↔ Population, Statistic ↔ Sample. Greek letters (μ, σ) = the truth; Roman letters (, s) = your guess.

Types of variables

  • Qualitative (categorical): names/labels, no math on them (favorite color). Quantitative (numeric): amounts you can actually calculate with (height).
  • Discrete: countable jumps, whole numbers only — you can't have 2.5 kids in a class. Continuous: any value on a scale, decimals allowed — weight, time, height.

Levels of measurement — four tiers of "how much information does this number actually carry?" Each level keeps everything the one before it could do, and adds one new power:

LevelWhat it can doExample
Nominallabel / name only — no ordereye color: brown, blue, green
Ordinal+ can rank, but gaps aren't equalrace results: 1st, 2nd, 3rd
Interval+ equal gaps, but no true zerotemperature: 0°C isn't "no temperature"
Ratio+ a true zero — ratios make senseweight: 0 kg really is nothing; 20 kg is twice 10 kg
🧠
Mnemonic

Levels = NOIR (Nominal, Ordinal, Interval, Ratio) — each letter adds one new power. Discrete = Dots you count; Continuous = a Curve you measure.

Summation notation

Sigma just means "add them all up"
Σx = x₁ + x₂ + x₃ + … + xₙ
Σx² means square first, then add — it is not the same as (Σx)², which means add first, then square. Mixing these two up is the single most common Unit I error.
📐 Worked example — Σx vs. Σx²

Data: x = {2, 4, 6}

= each value multiplied by itself
x
24
416
636
Σ = 12Σ = 56

Σx = 12 (add the raw values). Σx² = 56 (square each one first, then add). Notice (Σx)² = 12² = 144 — nowhere close to 56. Two different numbers, two different meanings.

02 / Handling Data

II

Collection & Presentation of Data

Garbage in, garbage out — how you collect data decides whether any of the later math means anything.

Ways to collect

  • Direct (interview), Indirect (questionnaire), Registration (records), Observation, Experiment.

Ways to present

  • Textual = words in a paragraph. Tabular = rows & columns. Graphical = charts (bar, pie, histogram).

Frequency Distribution Table (FDT)

Raw scores are noise — 20, 30, 50 numbers with no visible pattern. An FDT groups them into classes so a shape appears: where values cluster, where they thin out.

Class width
Width = RangeNumber of classes  ,  Range = Highest − Lowest
Always round the width up, never to nearest and never down — round down and your last class won't hold the highest value. Rule of thumb: 5–15 classes.

The process — six steps, in order:

  1. Find the Range = Highest value − Lowest value.
  2. Decide the number of classes, k (given in the problem, or your own reasonable choice, 5–15).
  3. Compute the width = Range ÷ k, then round up to a whole number.
  4. Build the class limits: start at the lowest value; each next class starts width-many numbers later.
  5. Add class boundaries: subtract 0.5 from every lower limit, add 0.5 to every upper limit — this closes the gaps between classes.
  6. Tally each raw value into its class, then count the tally marks for the frequency (f).
🧠
Mnemonic

Build an FDT in order: R-C-W-T — find the Range, decide Classes, get the Width, then Tally.

📐 Worked example — raw data to a complete FDT

Raw scores of 20 students: 12, 22, 27, 30, 33, 36, 39, 42, 45, 47, 48, 50, 52, 55, 58, 60, 66, 70, 74, 87

Steps 1–3: Range = 87 − 12 = 75. Choose k = 6 classes. Width = 75/6 = 12.5 → round up to 13.

Steps 4–6: starting at 12, step forward by 13 each time, apply the ±0.5 boundary rule, then tally:

Boundaries = lower limit − 0.5, upper limit + 0.5  ·  Midpoint = (lower limit + upper limit) ÷ 2
Class limitsClass boundariesMidpointTallyf
12–2411.5–24.518II2
25–3724.5–37.531IIII4
38–5037.5–50.544IIII I6
51–6350.5–63.557IIII4
64–7663.5–76.570III3
77–8976.5–89.583I1
Total20

That's a finished FDT — 20 messy raw scores now visibly cluster in the 38–50 class. Hold onto this exact table: Unit III reuses it to compute the grouped mean, median, and mode.

03 / The Center

III

Central Tendency & Location

One number to represent the "center." Three flavors — they agree when data is symmetric, and disagree when it's skewed (the interesting case).

The big three
Mean: = Σxn
Median: the middle value once data is sorted
Mode: the value that appears most often
Median position = (n + 1) ÷ 2 → the seat number, not the score sitting in it.
🧠
Mnemonic

All start with M: Mean = add & divide · Median = the Middle (sort first!) · Mode = the Most. And: the Mean is a people-pleaser — one billionaire drags it up. The Median doesn't care.

Weighted mean — when not every value counts equally

The regular mean silently assumes every value matters the same amount. Sometimes that's wrong — a final exam should count more than one quiz. The weighted mean lets you say, explicitly, how much each value counts.

Weighted mean
w = Σ(w·x)Σw
In plain words: multiply each value x by its own weight w, add those up, then divide by the total of the weights — not by how many values there are. If every weight is equal, this collapses right back into the plain mean.
📐 Worked example — weighted mean

A student's grades and each subject's unit-load (the weight):

w·x = weight × grade
SubjectGrade (x)Units (w)w·x
Math903270
English852170
PE95195
TotalΣw = 6Σ(w·x) = 535

w = 535 / 6 ≈ 89.17 — notice this is not the same as the plain mean of 90, 85, 95 (which is 90). Math pulled the weighted average down toward it less than PE pulled it up, because Math and PE don't carry equal weight.

Measures of location ("non-central")

The median cuts sorted data exactly in half. Quartiles, deciles, and percentiles are the same idea, just cutting into more pieces — useful when you want to know someone's standing, not just the group's center.

  • Quartiles (Q1, Q2, Q3) cut sorted data into 4 equal parts — Q2 is the median.
  • Deciles = 10 parts, Percentiles = 100 parts. Same idea, finer cuts.
📐 Worked example — quartiles

Sorted scores of 8 students: 4, 8, 10, 12, 15, 18, 20, 24

Q2 (the median) sits between the 4th and 5th values: (12+15)/2 = 13.5.
Q1 is the median of the lower half (4, 8, 10, 12): (8+10)/2 = 9.
Q3 is the median of the upper half (15, 18, 20, 24): (18+20)/2 = 19.

A student scoring 19 sits at Q3 — better than roughly 75% of the class. That single number tells you standing, which the mean alone never can.

📐 Picture this

Five kids' scores: 3, 5, 5, 7, 10.

Mean = (3+5+5+7+10) ÷ 5 = 30 ÷ 5 = 6 Median = middle of sorted list = 5 Mode = appears most often = 5

The "average" student is ~5–6. If a sixth kid scored 100, the mean jumps to ~21 (misleading!) but the median barely moves to 6. That's when you report the median.

Mean, median & mode from grouped data (an FDT)

Once data is organized into classes, you can no longer add up individual raw values — they're hidden inside the classes. All three measures adapt the same way: treat every class as if all its values sit exactly at the midpoint, weighted by how many values (f) actually landed there.

Grouped mean
= Σfx / n
Identical to the ungrouped mean formula — x is just now the class midpoint instead of a raw value.
Grouped median
Median = L + (n/2) − CFf × width
L = lower boundary of the median class (the first class whose cumulative frequency reaches n/2). CF = cumulative frequency before that class. f = frequency of that class.

In plain words — why this formula works: you already know the median class (say the 15 kids before it, plus n/2 more, lands somewhere inside it), but not the exact spot inside that class. So you walk into the class proportionally: (n/2 − CF) tells you how many more values you still need past the class's start, and dividing by f (how many values total live in that class) turns that into a fraction of the way through. Multiply by the class's width and add it to L, the class's starting edge — that's your best estimate of exactly where inside the class the median falls. This technique is called interpolation: estimating a point between known values.

Grouped mode
Mode = L + d₁d₁ + d₂ × width
L = lower boundary of the modal class (highest frequency). d₁ = modal f − f of the class before it. d₂ = modal f − f of the class after it.

In plain words: the mode should lean toward whichever neighboring class is more "crowded." If the class before the modal class is nearly as full (small d₁), the mode sits close to L. If the class after is nearly as full instead (small d₂), the mode sits closer to the far edge. d₁/(d₁+d₂) is just that lean, expressed as a fraction of the class width.

The process — five steps:

  1. From your FDT, list f (each class's frequency), the class midpoint (x), and build a running cumulative frequency (CF) column — CF is just each row's f added to the running total of every f before it.
  2. Mean: multiply f × x for every class → sum → divide by n (the total number of values, i.e. Σf).
  3. Median: find n/2, locate the first class where CF reaches it — that's your median class. Plug in L (that class's lower boundary), CF (the cumulative frequency of the class before it), f (that class's own frequency), and the class width.
  4. Mode: find the class with the highest f — that's your modal class. Plug in L (its lower boundary), d₁ (modal f minus the frequency of the class before it), d₂ (modal f minus the frequency of the class after it), and width.
  5. Sanity check: mode ≤ median ≤ mean (or reversed) should roughly match the skew direction you'd expect from the frequency shape.
📐 Worked example — same FDT as Unit II, now solved
CF = running total of f, top to bottom
Class boundariesx (midpoint)ffxCF
11.5–24.5182362
24.5–37.53141246
37.5–50.544626412
50.5–63.557422816
63.5–76.570321019
76.5–89.58318320
Total20945

Mean: = 945 / 20 = 47.25

Median: n/2 = 10. Scanning CF (2, 6, 12, …), the first class reaching 10 is 37.5–50.5 (CF = 12) — that's the median class, with CF-before = 6 and f = 6.
Median = 37.5 + [(10 − 6)/6] × 13 = 37.5 + 8.67 = 46.17

Mode: highest f is 6, in the same class 37.5–50.5 — the modal class. d₁ = 6 − 4 = 2 (vs. class before), d₂ = 6 − 4 = 2 (vs. class after).
Mode = 37.5 + [2/(2+2)] × 13 = 37.5 + 6.5 = 44.0

Mode (44.0) < Median (46.17) < Mean (47.25) — a mild right-skew, exactly what you'd expect: the classes trail off more slowly on the high side (4, 3, 1) than they build up on the low side (2, 4).

04 / The Spread

IV

Dispersion & Skewness

The center tells you where; dispersion tells you how spread out. Two datasets can share a mean and tell completely different stories.

Spread, from lazy to powerful
Range = Highest − Lowest
Sample variance: s² = Σx² − (Σx)² / nn − 1
Standard deviation: s = √s²
Coefficient of variation: CV = ( s ÷ ) × 100%
This is called the computational form — a shortcut. It gives the exact same answer as squaring every (x − ) one by one, but you only need two sums, Σx² and Σx, instead of first finding and then re-visiting every value to subtract it. Same result, far fewer keystrokes. Carry decimals; round only at the end.
🧠
Mnemonic

Variance Vexes (weird squared units), SD Saves it (square-root → real units). Divide by n−1 because Samples are Shy by one. CV lets you Compare Variability across different things (₱ vs kg).

Mean Absolute Deviation — the honest average distance

Before variance, ask the simpler question underneath it: on average, how far does each value sit from the mean? That's the whole idea. Variance gets there by squaring; MAD gets there by just averaging the distances, honestly, with no exaggeration.

Mean Absolute Deviation
MAD = Σ|x − | / n
The bars | | mean "absolute value" — strip the negative sign, keep only the size of the distance. A value 3 below the mean and a value 3 above it are both simply "3 away."

The process — four steps, every time:

  1. Find the mean, .
  2. Subtract the mean from every value: x − . Some will be negative — that's expected, for now.
  3. Drop the sign: take the absolute value, |x − |.
  4. Average those distances: add them all up, divide by n (the number of values).
📐 Worked example — MAD

Data: 4, 6, 8, 10, 12  →  = 40/5 = 8

x − = value minus the mean  ·  |x − | = that distance, sign removed
xx − |x − |
4−44
6−22
800
1022
1244
Σ12

MAD = 12 / 5 = 2.4 — on average, a value in this dataset sits 2.4 units from the mean. Plain, honest, in the data's original units.

Why variance squares it instead — and why sample divides by n − 1

MAD is honest, but mathematically clumsy — absolute value has a sharp corner at zero, which makes it hard to build more advanced theory on top of. Variance solves the same "negatives cancel out" problem a different way: instead of stripping the sign, it squares every deviation. Squaring also erases the negative — and it behaves far better mathematically, which is why nearly every method later in this course (regression, ANOVA, confidence intervals) is quietly built on squared deviations. The cost: squared units mean nothing on their own (₱² isn't a real thing), so at the end you take a square root — the standard deviation — to land back in real, interpretable units.

Population vs. sample — same idea, two situations
Population variance: σ² = Σ(x − μ)² / N  ·  σ = √σ²
Sample variance: s² = Σ(x − )² / (n − 1)  ·  s = √s²
Data on everyone → population → Greek letters (σ, μ, N) → divide by the full N.
Data on a subset → sample → plain letters (s, , n) → divide by n − 1.

Why n − 1, really — not just a rule to memorize: your sample mean isn't the true population mean μ; it's an estimate, computed from the very data you're measuring. Because is built to sit as close as mathematically possible to your own sample, that sample's deviations are, on average, a touch smaller than they'd be from the real μ. Dividing by the slightly smaller n − 1 nudges the result back up to correct for that built-in optimism. This has a name — Bessel's correction — it's a genuine bias fix, not an arbitrary quirk.

The simplest version of that idea: imagine grading your own test using an answer key you wrote after seeing your own answers — you'd naturally score a little better than if a stranger's fixed key were used. Using (built from your own sample) as the "target" for variance has the same effect: it flatters your own data slightly. Dividing by n − 1 instead of n is how statisticians dock a small penalty to correct for grading your own paper.

🧠
Mnemonic

Population = Greek, whole group, ÷N. Sample = plain letters, subset, ÷(n−1). Can't measure everyone? You're estimating — and an estimate costs you one degree of freedom.

📐 Worked example — sample variance & standard deviation

Sample data: 7, 9, 10, 12  →  = 38/4 = 9.5

x − = value minus the mean  ·  (x − = that distance, squared
xx − (x −
7−2.56.25
9−0.50.25
100.50.25
122.56.25
Σ13

s² = 13 / (4 − 1) = 13/3 ≈ 4.33  →  s = √4.33 ≈ 2.08

📐 Worked example — one table, MAD → variance → SD together

Six exam scores: 8, 12, 15, 15, 18, 22  →  = 90/6 = 15

x − = value minus the mean  ·  |x − | = that distance, sign removed (feeds MAD)  ·  (x − = that distance, squared (feeds variance)
xx − |x − |(x −
8−7749
12−339
15000
15000
18339
227749
Σ20116

MAD = 20 / 6 ≈ 3.33 (n on the bottom — MAD always divides by the full count).
Variance: s² = 116 / (6 − 1) = 116/5 = 23.2 (n − 1 on the bottom — Bessel's correction, since this is sample data).
SD: s = √23.2 ≈ 4.82

One dataset, one table, every spread measure — and notice SD (4.82) > MAD (3.33) here, which is typical: squaring gives extra weight to the two values furthest from the mean (8 and 22), so SD usually comes out a bit larger than MAD on the same data.

Grouped data — the same formulas, weighted by frequency

Once raw data is organized into an FDT, you no longer have individual values in hand — you have classes, each hiding several values you can't see one by one. The fix: treat every value inside a class as if it sat exactly at that class's midpoint (x), and weight everything by how many values are actually in there (f).

Grouped-data formulas
Grouped mean: = Σfx / n
Grouped MAD: MAD = Σf|x − | / n
Grouped variance: s² = Σf(x − )² / (n − 1)  ·  s = √s²

The process — build the table left to right; each column feeds the next:

  1. f — the frequency of each class, straight from your FDT.
  2. x — the class mark (midpoint) of each class.
  3. fx — multiply f × x, then sum the whole column → gives Σfx.
  4. Compute the grouped mean: = Σfx / n.
  5. x − — each class mark's distance from that mean.
  6. |x − | for MAD, or (x − for variance.
  7. Multiply that column by f again, sum it, then divide by n (MAD) or n − 1 (variance).
📐 Worked example — one table, mean → MAD → variance → SD
x = class midpoint  ·  fx = f × x  ·  x− = midpoint minus grouped mean  ·  f|x−| = f × |x−|  ·  f(x− = f × (x−
Classfxfxx−|x−|f|x−|(x−f(x−
30–3433296−6.796.7920.3746.10138.30
35–39537185−1.791.798.953.2016.02
40–444421683.213.2112.8410.3041.22
45–49247948.218.2116.4267.40134.81
Total1454358.58330.35

Mean: = 543 / 14 = 38.79
MAD: 58.58 / 14 = 4.18
Variance: s² = 330.35 / (14 − 1) = 330.35/13 = 25.41
SD: s = √25.41 ≈ 5.04

One table, every spread measure you need — because MAD, variance, and SD are all just different lenses on the same question: how far, on average, from the center?

📐 Worked example — finishing the story from Units II & III

Remember the 20 students' raw scores you organized into an FDT back in Unit II, then found the mean (47.25), median (46.17), and mode (44.0) for in Unit III? Same table — let's find its spread too.

x = class midpoint  ·  fx = f × x  ·  x− = midpoint minus 47.25  ·  f|x−| = f × |x−|  ·  f(x− = f × (x−
Class boundariesfxfxx−|x−|f|x−|(x−f(x−
11.5–24.521836−29.2529.2558.50855.561711.13
24.5–37.5431124−16.2516.2565.00264.061056.25
37.5–50.5644264−3.253.2519.5010.5663.38
50.5–63.54572289.759.7539.0095.06380.25
63.5–76.537021022.7522.7568.25517.561552.69
76.5–89.51838335.7535.7535.751278.061278.06
Total20945286.006041.75

MAD = 286.00 / 20 = 14.3 — on average, a student's score sits 14.3 points from the mean of 47.25.
Variance: s² = 6041.75 / (20 − 1) = 6041.75/19 ≈ 318.0
SD: s = √318.0 ≈ 17.83

Compare the two worked examples side by side: the 30–49 class-interval data (tightly packed, SD ≈ 5.04) versus these 20 students (spread across almost the whole 12–89 range, SD ≈ 17.83). Same formulas, wildly different spread — which is exactly what SD is supposed to tell you at a glance.

Skewness — the lopsidedness

  • Long tail on the rightpositive / right-skew (few high outliers).
  • Long tail on the leftnegative / left-skew (few low outliers).
  • Symmetric → skew ≈ 0; mean ≈ median.
Diagram — the three shapes, side by side

Left-skew
mean < median < mode

Symmetric
mean = median = mode

Right-skew
mode < median < mean

The dashed lines mark where mode, median, and mean fall — watch how the mean always gets pulled furthest toward the long tail.

🧠
Mnemonic

The tail tells the tale. Skew is named after the long tail's direction — and the mean chases the tail (pulled toward the outliers).

📐 Picture this

Two classes both average 80. Class A: everyone 78–82 (tight, tiny SD — average is trustworthy). Class B: 50 to 100 (huge SD — half lost, half bored). Same mean, opposite reality. That's why SD is never optional.

05 / The Keystone

V

Sampling Distribution & CLT

The keystone unit. Understand why sample averages behave predictably and every test in Units VI–IX stops being magic.

Why & how we sample

  • Why: cheaper, faster, and sometimes the test destroys the item (you can't crash-test every car).
  • Random (pure lottery), Systematic (every kth one), Stratified (split into layers, sample each), Cluster (grab whole groups).
🧠
Mnemonic

Really Smart Stats ClusterRandom, Systematic, Stratified, Cluster. Stratified = slice into LAYERS then sample each. Cluster = pick whole GROUPS (entire classrooms).

How big a sample? — Slovin's Formula

A staple of research methods for deciding how many people to survey. When the population size N is known but little is known about its behaviour, Slovin's formula gives the minimum sample size for a chosen margin of error.

Slovin's sample-size formula
n = N1 + N·e²
n = sample size · N = population size · e = margin of error as a decimal (5% → 0.05). Always round the result up — round down and you'd fall short of the margin of error you asked for.
🧠
Mnemonic

Slovin's Sizes the Sample: N on top, (1 + N·e²) on the bottom. Smaller error (e↓) → bigger sample (n↑). It's a quick heuristic — it ignores how spread-out the population is, so it's for fast estimates, not high-stakes precision.

The process — three steps:

  1. Identify N (the whole population) and e (your acceptable margin of error, as a decimal).
  2. Plug into n = N / (1 + N·e²) and compute.
  3. Round up to the next whole number — always up, regardless of the decimal.
📐 Worked example

A study covers all 5,000 students in a college, and you'll accept a 5% margin of error.

N = 5000 , e = 0.05 n = 5000 / (1 + 5000 × 0.05²) = 5000 / (1 + 5000 × 0.0025) = 5000 / (1 + 12.5) = 5000 / 13.5 = 370.4 → round UP → 371 students

You don't need all 5,000 — 371 well-chosen students represent them within 5%. (370.4 rounds up to 371, never down to 370 — the sample-size rounding rule always rounds up.)

Standard error & the Central Limit Theorem

The two ideas that run everything
Standard error: SE = σ ÷ √n
CLT: for n ≥ 30, the distribution of is ≈ Normal — whatever shape the population has
A normal distribution is the symmetric, bell-shaped curve where most values sit near the mean and extremes are rare. SE is the SD of the sample mean — bigger n → smaller SE → a steadier, more reliable average.
🧠
Mnemonic

The average of averages goes bell-shaped. n ≥ 30 is the magic number. SE shrinks as n grows — but only as the square root of n, never in direct proportion.

📐 Worked example — SE shrinks with the square root of n
SE = σ ÷ √n
σn√nSE = σ/√n
201645.0
206482.5

Quadrupling n (16 → 64) only halved SE (5.0 → 2.5), not quartered it — because SE depends on √n, not n itself. To cut your error in half, you need four times the data.

📐 Picture this — why the CLT works

Roll one die: any number 1–6, totally flat, no bell. Now roll five dice and write the average, hundreds of times. Those averages pile up around 3.5 in a bell shape — all-1s or all-6s are rare. The original was flat, yet the averages went bell-curve. That's the CLT, and it's why a sample mean is trustworthy.

Diagram — the CLT in action

Population
could be any shape

n ≥ 30

Sampling distribution of
always bell-shaped

The population on the left can be lopsided, flat, anything. Once n reaches 30, the distribution of sample means drawn from it looks like the bell curve on the right — every time.

06 / The Engine

VI

Test of Hypothesis

A courtroom for data. Assume "nothing's going on," then check whether the evidence is strong enough to overturn that assumption.

The two hypotheses

  • H₀ (null) — the boring status quo: "no difference / no effect." Always wears the = sign.
  • H₁ (alternative) — the new claim you're trying to prove: "there IS a difference."

The 5 steps (every test, same dance)

The process — memorize this order, apply it to literally every test in this unit:

  1. State H₀ (the null — "no difference," always with =) and H₁ (the alternative — the claim you're testing for).
  2. Pick α (the significance level — your accepted false-alarm risk, usually 0.05).
  3. Compute the test statisticz if σ is known, t if you only have the sample SD s instead.
  4. Find the critical value from the table, using α (and df = n − 1, for t only).
  5. Decide: compare statistic to critical value, then conclude in plain words.
The two workhorse statistics
z (σ known / large n): z = − μσ / √n
t (σ unknown / small n): t = − μs / √n , df = n − 1
Quick terms — α (significance level): the false-alarm risk you accept up front, usually 0.05. df (degrees of freedom): the number of values free to vary, here n−1. Critical value: the cut-off from the table. p-value: the chance of data this extreme if H₀ were true (small p = evidence against H₀). By hand you compare your statistic to the critical value — reject H₀ when |statistic| > critical (it landed in the tail).
🧠
Mnemonic

Steps = H-A-T-C-D (Hypotheses, Alpha, Test-stat, Compare, Decide). p Low → null must Go; p High → null gets by. Tails: → two-tailed, < or > → one-tailed.

📐 Worked example — the 5 steps, fully applied

A machine is supposed to fill bottles with 100 mL on average. Population SD is known: σ = 7 mL. A sample of n = 49 bottles averages = 101 mL. Test at α = 0.05 (two-tailed) whether the machine is off-target.

  1. H₀: μ = 100 (on target) · H₁: μ ≠ 100 (off-target — two-tailed, since "off" could mean too high or too low).
  2. α = 0.05, two-tailed → split between both tails, 0.025 each.
  3. Test statistic: z = (101 − 100) / (7/√49) = 1 / (7/7) = 1 / 1 = 1.0
  4. Critical value for α = 0.05 two-tailed: z = ±1.96.
  5. Decide: |1.0| is not beyond 1.96 — it doesn't reach the tail. Fail to reject H₀. There isn't enough evidence the machine is off-target; a 1 mL difference is within normal sampling wobble.

Notice this example fails to reject — not every test ends in rejection. A statistic has to genuinely land in the tail, not just differ slightly from H₀.

Two ways to be wrong

  • Type I (α): reject a true H₀ — a false alarm.
  • Type II (β): fail to reject a false H₀ — you missed a real effect.
🧠
Mnemonic

Type I = cry wolf when there's none (false alarm). Type II = miss the wolf that's really there. And: statistically significant ≠ important — a tiny effect looks "significant" if n is huge.

📐 Picture this

A candy company swears each bag holds 50 piecesH₀: μ = 50. You suspect shorting → H₁: μ < 50. You count 30 bags; average is 47. The question: is 47 "far enough" below 50 to prove cheating, or just random bag luck? Deep in the tail → reject H₀ → guilty. Type I = accuse an honest company. Type II = let real cheaters walk.

07 / The Line

VII

Correlation & Regression

Correlation measures how tightly two things move together. Regression draws the best straight line so you can predict.

Correlation coefficient r (lives between −1 and +1)
r = nΣxy − ΣxΣy√[ nΣx² − (Σx)² ] [ nΣy² − (Σy)² ]
+1 = perfect upward line · 0 = random cloud · −1 = perfect downward line.
Regression line ŷ = a + bx
slope: b = nΣxy − ΣxΣynΣx² − (Σx)²
intercept: a = ȳ − b·
coefficient of determination: r² = (r)²
A scientific calculator's regression mode returns a, b and r directly — use the formulas as a sanity check.
🧠
Mnemonic

ŷ = a + bx is just y = mx + b in a lab coat. b is the boost — how much y jumps per +1 of x. Square r to get the share of variation explained (r = 0.9 → r² = 0.81 → 81%).

🧠
Mnemonic — the trap

Correlation ≠ causation. Ice-cream sales and drownings rise together — but the SUN causes both, not each other. Always hunt for the hidden third factor.

The process — build one table, read four numbers off it:

  1. List each pair (x, y), then add columns for xy, , and .
  2. Sum every column: Σx, Σy, Σxy, Σx², Σy².
  3. Plug the five sums into r (the correlation coefficient) to measure the relationship's strength, from −1 to +1.
  4. Plug the same sums into b (the slope — how much y changes per +1 of x) and a (the intercept — predicted y when x = 0) to get the regression line.
  5. Square r to get — the share of y's variation that x explains.
📐 Worked example — one table, full regression

Hours studied (x) vs. exam score (y), five students:

xy = x × y  ·  = x × x  ·  = y × y
xyxy
1525212,704
25811643,364
36519594,225
470280164,900
580400256,400
Σ = 15Σ = 325Σ = 1,043Σ = 55Σ = 21,593

r = [5(1043) − (15)(325)] / √{[5(55) − 15²][5(21593) − 325²]} = 340 / √(50 × 2340) = 340/342.05 ≈ 0.99 — an extremely strong positive relationship.

b = 340/50 = 6.8  ·  a = (325/5) − 6.8(15/5) = 65 − 20.4 = 44.6  →  ŷ = 44.6 + 6.8x

= 0.99² ≈ 0.988 → about 99% of the variation in exam scores is explained by hours studied. Prediction check: at x = 3, ŷ = 44.6 + 6.8(3) = 65.0 — matching the actual data point almost exactly, which is what a high r promises.

Diagram — the same data from the worked example
45 55 65 75 85 1 2 3 4 5 hours studied (x) exam score (y) ŷ = 44.6 + 6.8x

Five dots (the raw data), one line (the regression fit) — r ≈ 0.99 means the line barely misses any of them.

📐 Picture this — the causation trap

Kids with bigger feet tend to read better. Do big feet cause good reading? No — age is the hidden variable: older kids have both bigger feet and better reading, unrelated to each other directly. Whenever a correlation surprises you, ask what third factor might be driving both sides at once.

08 / The Setup

VIII

Elements of Experimentation

Before you can analyze an experiment (Unit IX), you have to design it so the results actually mean something.

The vocabulary

Four terms, and every experiment you'll ever design maps onto them:

TermPlain meaningIn the fertilizer study below
Treatmentthe thing you're testing — the "what-if"fertilizers A, B, C
Experimental unitwhat receives the treatment — the "who-gets-it"each pot
Response variablewhat you measure afterward — the "what-happens"plant height
Factora variable you deliberately change; its settings are levelsfertilizer type (3 levels)

Fisher's three principles (the heart of design)

The process — apply all three before you collect a single data point:

  1. Randomization — assign treatments by chance, so no group gets an unfair edge.
  2. Replication — repeat each treatment many times, so one fluke can't fool you.
  3. Local control / Blocking — group similar units together before comparing, to cancel out nuisance differences.
🧠
Mnemonic

Randomize to be fair, Replicate to be sure, Block to be smart. Roles: Treatment = the WHAT-IF · Unit = WHO-GETS-IT · Response = WHAT-HAPPENS.

📐 Picture this

Which fertilizer grows the tallest plants? Treatments = fertilizers A, B, C. Units = the pots. Response = height. Replication: many pots per fertilizer (one could be lucky). Randomization: don't put all of A on the sunny sill — assign spots by chance. Blocking: group pots by sunlight first, then compare fertilizers within each sun-group. Now it's fair.

09 / The Final Boss

IX

Analysis of Variance (ANOVA)

The largest topic in most applied-statistics courses, and a frequent centrepiece of final exams. The good news: every design (one-way, two-way, RCBD, factorial, split-plot) is the same template with the Sum of Squares sliced differently.

What ANOVA does

Comparing 3+ group means with many t-tests is messy and error-prone. ANOVA compares them all at once by asking: is the difference BETWEEN the groups bigger than the random wobble WITHIN each group?

The ANOVA pipeline — memorize this skeleton, not five procedures
SS_total = SS_between (treatment) + SS_within (error)
MS = SS ÷ df
F = MS_between ÷ MS_within
df: treatment = k − 1 · error = N − k · total = N − 1 (k = #groups, N = total obs). The F-table needs two df — numerator AND denominator — plus α.
🧠
Mnemonic

The pipeline is SS → df → MS → F. Logic: Between bigger than Within → big F → groups really differ (reject H₀). One factor = one-way; two factors (and do they team up?) = two-way.

The process — six steps to a finished ANOVA table:

  1. Find each group's mean, and the grand mean (mean of every value, ignoring groups).
  2. SS_between: for each group, (group mean − grand mean)², times that group's size — sum across groups.
  3. SS_within: for each value, (value − its own group's mean)² — sum every one of these, across all groups.
  4. df: between = k − 1, within = N − k, total = N − 1 (k = number of groups, N = total observations).
  5. MS = SS ÷ its own df, for both rows.
  6. F = MS_between ÷ MS_within. Compare to the critical F; larger F favors rejecting H₀.
📐 Worked example — full one-way ANOVA

Three fertilizers, four plants each — plant heights in cm:

A: 5, 7, 6, 8 (mean = 6.5) B: 9, 10, 8, 9 (mean = 9.0) C: 4, 5, 3, 4 (mean = 4.0) Grand mean = (26 + 36 + 16) / 12 = 78/12 = 6.5
SS = sum of squares  ·  MS = SS ÷ df  ·  F = MS_between ÷ MS_within
SourceSSdfMSF
Between (treatment)5022525
Within (error)991
Total5911

SS_between = 4(6.5−6.5)² + 4(9.0−6.5)² + 4(4.0−6.5)² = 0 + 25 + 25 = 50, on df = 3−1 = 2 → MS = 50/2 = 25.
SS_within = sum of every (value − its group mean)² inside A, B, and C = 5 + 2 + 2 = 9, on df = 12−3 = 9 → MS = 9/9 = 1.
F = 25/1 = 25 — with critical F around 4.26 (df 2, 9 at α = 0.05), 25 is far beyond it. Reject H₀: the fertilizers genuinely produce different average heights; this isn't just plant-to-plant noise.

F-tables have two degrees of freedom (numerator = df_between across the top, denominator = df_within down the side), so a full table needs one grid per α level — too large to reproduce here. Your exam will supply the F-table; just make sure you're reading numerator df along the correct axis, matched against denominator df.

Interaction (the two-way twist)

🧠
Mnemonic

Interaction = "it depends." Coffee helps you focus — but coffee + no sleep = jitters. The combo matters, not just each factor alone.

📐 Picture this

Three brands of plant food, several pots each. A averages 30 cm, B 32, C 31. Are they really different, or normal plant-to-plant variation? ANOVA stacks the between-brand gap against the within-brand wobble:

Brands differ a lot, plants inside each barely vary → between ≫ within → BIG F → brands genuinely differ ✓ Brands differ a little, plants inside each vary wildly → between ≈ within → small F → it's just noise ✗

One F-value, one verdict, no messy pile of t-tests.

10 / Look It Up

Z

Z-Table — Area Under the Curve

This table answers one question, over and over: "what fraction of a normal distribution lies below this z-score?" Every value inside it is a cumulative area — P(Z < z) — the proportion of the curve to the left of z. It's the reference table behind every critical value and every probability you've computed by hand in Units V and VI.

How to read it
Split your z-score into two parts. The first decimal (e.g. the 1.9 in 1.96) picks the row. The second decimal (the .06 in 1.96) picks the column. Where they meet is P(Z < z). Example: z = 1.96 → row 1.9, column .060.9750.

The four question types — and how to get each area from the table

The table only ever gives you area to the left. Every other kind of area is a short conversion away:

① Left of z
P(Z < z) = table value

Read it straight off the table — no conversion needed.

② Right of z
P(Z > z) = 1 − table value

The whole curve is area 1, so "everything else" is 1 minus what's to the left.

③ Between two z's
P(z₁ < Z < z₂) = larger − smaller

Look up both, subtract. This is the classic "confidence interval" computation.

④ Two tails (outside ±z)
2 × [1 − table value for +z]

Find the single right-tail area, then double it — both tails are identical by symmetry.

📐 Worked example — the critical values you already use

Every critical value in Unit VI comes straight out of this table, read backwards (area known, z unknown):

You wantLook for areaClosest table valuez ≈
95% one-tailed (α = 0.05)0.95000.9495 / 0.95051.645
95% two-tailed (α = 0.05, one side)0.97500.97501.96
99% one-tailed (α = 0.01)0.99000.99012.33
99% two-tailed (α = 0.01, one side)0.99500.99512.58

This is exactly where 1.96, 1.645, 2.33, and 2.58 — the critical values from Unit VI — actually come from. They aren't arbitrary; they're just the z-scores whose cumulative area matches your confidence level.

📐 Worked example — applying all four recipes to z = 1.50
Table lookup: z = 1.50 → row 1.5, column .00 → 0.9332 ① Left of 1.50: P(Z < 1.50) = 0.9332 ② Right of 1.50: P(Z > 1.50) = 1 − 0.9332 = 0.0668 ③ Between 0 and 1.50: P(0 < Z < 1.50) = 0.9332 − 0.5000 = 0.4332 ④ Outside ±1.50: 2 × 0.0668 = 0.1336

One lookup, four different answers — the table never changes, only what you do with the number after you find it.

📐 Quick drill — right of z = 1.32

Row 1.3, column .02 → table gives 0.9066 (that's ① left). The question wants ②, the right tail: 1 − 0.9066 = 0.0934. About 9.3% of the curve lies beyond z = 1.32.

Diagram — area to the left of z = 1.32
z = 1.32 0.9066 (shaded — area to the left) 0.0934 unshaded (the right tail) μ = 0

The shaded region is everything the table gives you directly (0.9066). The right tail is whatever's left over (1 − 0.9066 = 0.0934) — same picture as the worked example above.

Negative z? This table only lists z ≥ 0 — that's standard, and it's enough. The normal curve is perfectly symmetric, so: P(Z < −z) = 1 − P(Z < z). Look up the positive version, then subtract from 1.

z.00.01.02.03.04.05.06.07.08.09
0.00.50000.50400.50800.51200.51600.51990.52390.52790.53190.5359
0.10.53980.54380.54780.55170.55570.55960.56360.56750.57140.5753
0.20.57930.58320.58710.59100.59480.59870.60260.60640.61030.6141
0.30.61790.62170.62550.62930.63310.63680.64060.64430.64800.6517
0.40.65540.65910.66280.66640.67000.67360.67720.68080.68440.6879
0.50.69150.69500.69850.70190.70540.70880.71230.71570.71900.7224
0.60.72570.72910.73240.73570.73890.74220.74540.74860.75170.7549
0.70.75800.76110.76420.76730.77040.77340.77640.77940.78230.7852
0.80.78810.79100.79390.79670.79950.80230.80510.80780.81060.8133
0.90.81590.81860.82120.82380.82640.82890.83150.83400.83650.8389
1.00.84130.84380.84610.84850.85080.85310.85540.85770.85990.8621
1.10.86430.86650.86860.87080.87290.87490.87700.87900.88100.8830
1.20.88490.88690.88880.89070.89250.89440.89620.89800.89970.9015
1.30.90320.90490.90660.90820.90990.91150.91310.91470.91620.9177
1.40.91920.92070.92220.92360.92510.92650.92790.92920.93060.9319
1.50.93320.93450.93570.93700.93820.93940.94060.94180.94290.9441
1.60.94520.94630.94740.94840.94950.95050.95150.95250.95350.9545
1.70.95540.95640.95730.95820.95910.95990.96080.96160.96250.9633
1.80.96410.96490.96560.96640.96710.96780.96860.96930.96990.9706
1.90.97130.97190.97260.97320.97380.97440.97500.97560.97610.9767
2.00.97720.97780.97830.97880.97930.97980.98030.98080.98120.9817
2.10.98210.98260.98300.98340.98380.98420.98460.98500.98540.9857
2.20.98610.98640.98680.98710.98750.98780.98810.98840.98870.9890
2.30.98930.98960.98980.99010.99040.99060.99090.99110.99130.9916
2.40.99180.99200.99220.99250.99270.99290.99310.99320.99340.9936
2.50.99380.99400.99410.99430.99450.99460.99480.99490.99510.9952
2.60.99530.99550.99560.99570.99590.99600.99610.99620.99630.9964
2.70.99650.99660.99670.99680.99690.99700.99710.99720.99730.9974
2.80.99740.99750.99760.99770.99770.99780.99790.99790.99800.9981
2.90.99810.99820.99820.99830.99840.99840.99850.99850.99860.9986
3.00.99870.99870.99870.99880.99880.99890.99890.99890.99900.9990
3.10.99900.99910.99910.99910.99920.99920.99920.99920.99930.9993
3.20.99930.99930.99940.99940.99940.99940.99940.99950.99950.9995
3.30.99950.99950.99950.99960.99960.99960.99960.99960.99960.9997
3.40.99970.99970.99970.99970.99970.99970.99970.99970.99970.9998

Table gives P(Z < z), area to the left of z, for the standard normal distribution (μ = 0, σ = 1). Values computed to 4 decimal places, the standard textbook precision.

10 / Train

P

Practice Problems

Three problems per unit, built to climb: ① Warm-up for fluency, ② Exam-level for the full procedure, ③ Challenge for whether you truly get it. Solutions are hidden on purpose — attempt each one cold, then click to reveal.

How to use this — the method that works for math
  • Try before you peek. Attempting and struggling first (then checking) builds memory far better than re-reading a solution. Reveal the answer only after a real attempt.
  • Estimate first. Before computing, predict the ballpark or the direction. Catching "that can't be right" is half the skill.
  • The three levels are a ladder. ① locks the mechanics, ② is what an exam asks, ③ removes the scaffolding and tests understanding — most ③s target the exact mistake students make.
  • Read the solution even when you're right. Check your reasoning, not just the final number.
  • Re-do a missed problem a day later. Spacing it out is what makes it stick.
Unit I — Introduction
① Warm-up
For the data x = {4, 7, 7, 10, 12}, compute Σx and Σx².
Show solution
Σx = 4 + 7 + 7 + 10 + 12 = 40 Σx² = 16 + 49 + 49 + 100 + 144 = 358
Remember: square first, then add. Σx² ≠ (Σx)².
② Exam-level
A researcher records the blood type of 500 students to estimate the proportion of type O in the whole city. Identify the (a) population, (b) sample, (c) variable and its type, (d) whether "proportion of type O in the city" is a parameter or a statistic.
Show solution
(a) Population = all people in the city. (b) Sample = the 500 students. (c) Variable = blood type — qualitative, nominal. (d) The city proportion is a parameter (unknown truth); the proportion from the 500 would be the statistic estimating it.
③ Challenge
A set of 10 values has Σx = 50. You add a new value of 17. Find the new mean. Then judge a classmate's claim: "adding a value always raises the mean."
Predict first: will the mean go up or down — and what does that depend on?
Show solution
Old mean = 50/10 = 5. New: Σx = 67, n = 11, mean = 67/11 ≈ 6.09 — it rose, because the new value (17) is above the old mean. The claim is false: adding a value below the current mean lowers it. The mean always shifts toward the value you add, relative to where it already sits.
Unit II — Collection & Presentation
① Warm-up
Data ranges from a low of 12 to a high of 87. Using 6 classes, find the class width.
Show solution
Range = 87 − 12 = 75 Width = 75 / 6 = 12.5 → round UP to 13
Always round the width up, or the top values won't fit in any class.
② Exam-level
Using width 13 and starting at the lowest value 12, write the class limits, class boundaries, and midpoint of the first two classes.
Show solution
Class 1: limits 12–24 boundaries 11.5–24.5 midpoint 18 Class 2: limits 25–37 boundaries 24.5–37.5 midpoint 31
Lower limits step by the width (12 → 25). Boundaries = limits ± 0.5 (they close the gaps). Midpoint = (lower + upper limit)/2.
③ Challenge
A dataset of 50 values (range 200) could be grouped into 4 classes (width 50) or 20 classes (width 10). Give one drawback of each, and state the trade-off in choosing the number of classes.
Show solution
4 classes → too coarse: it over-smooths and hides the real shape of the data. 20 classes → too fine: many near-empty classes, a jagged, noisy picture with no clear pattern. The trade-off is detail vs. clarity — roughly 5–15 classes usually balances them.
Unit III — Central Tendency
① Warm-up
Find the mean, median, and mode of {3, 8, 8, 9, 12}.
Show solution
Mean = (3+8+8+9+12)/5 = 40/5 = 8 Median = middle of sorted list = 8 Mode = most frequent value = 8
Here all three agree — a sign the data is fairly symmetric.
② Exam-level
Monthly incomes (₱ thousands): 18, 20, 22, 25, 200. Compute the mean and median. Which better represents a "typical" income here, and why?
Estimate first: which will be larger, the mean or the median?
Show solution
Mean = 285 / 5 = 57 Median = 22 (the middle value)
The median (22) is the better summary. The single value 200 is an outlier that drags the mean up to 57 — far above what four of the five people actually earn.
③ Challenge
Seven numbers have a median of 10. You append the value 50. Explain why the median barely moves, even though 50 is large — and contrast this with what 50 would do to the mean.
Show solution
The median is position-based: appending one value makes n = 8, so the median becomes the average of the 4th and 5th sorted values — both still near 10. A single large number only nudges the middle. The mean, by contrast, sums every value, so 50 pulls it up substantially. This is exactly why the median is called resistant to outliers and the mean is not.
Unit IV — Dispersion & Skewness
① Warm-up
For the sample {2, 4, 6}, compute the sample variance and standard deviation s (use the computational form).
Show solution
Σx = 12 , Σx² = 4+16+36 = 56 , n = 3 s² = [Σx² − (Σx)²/n] / (n−1) = [56 − 144/3] / 2 = [56 − 48] / 2 = 8/2 = 4 s = √4 = 2
Divide by n−1 (not n) — it's a sample.
② Exam-level
Two machines fill bottles. Machine A: mean 500 mL, SD 2 mL. Machine B: mean 500 mL, SD 8 mL. Which is more consistent? Compute each coefficient of variation and interpret.
Show solution
CV_A = (2/500)×100% = 0.4% CV_B = (8/500)×100% = 1.6%
Machine A is more consistent — its spread relative to the mean is four times smaller. Same mean, but A's values cluster far tighter around 500 mL.
③ Challenge
A dataset is right-skewed. Without any calculation, order the mean, median, and mode from smallest to largest, and justify it with the "tail" idea.
Show solution
mode < median < mean. The long tail points right, and the mean is dragged toward the tail (the few large values pull it up). The mode sits at the tall peak on the left; the median lands between the two. (Left-skew is the mirror image: mean < median < mode.)
Unit V — Sampling & CLT
① Warm-up
A population has N = 2,400. Using Slovin's formula with a 5% margin of error, find the required sample size.
Show solution
n = N / (1 + N·e²) = 2400 / (1 + 2400 × 0.05²) = 2400 / (1 + 2400 × 0.0025) = 2400 / (1 + 6) = 2400 / 7 ≈ 342.86 → 343
② Exam-level
A population has σ = 15. (a) Find the standard error for n = 25. (b) For n = 100. (c) By what factor did SE shrink, and why didn't it shrink to a quarter when n grew four-fold?
Show solution
(a) SE = 15/√25 = 15/5 = 3 (b) SE = 15/√100 = 15/10 = 1.5
(c) SE halved (3 → 1.5). Because SE = σ/√n depends on √n, quadrupling n divides SE by √4 = 2, not by 4. The "square-root law": to halve your error you need four times the data.
③ Challenge
A population is heavily skewed. A student insists: "the sample mean can't be normal because the population isn't." For a sample of n = 50, is the student right? What changes for n = 5?
Show solution
For n = 50 the student is wrong: the Central Limit Theorem says the distribution of the sample mean is approximately normal for large n (≥ 30) regardless of the population's shape. For n = 5, the CLT hasn't kicked in — with so few values the sample mean's distribution still mirrors the population's skew. The magic is in the sample size, not the population.
Unit VI — Hypothesis Testing
① Warm-up
Write H₀ and H₁ for: "A company claims its batteries last 40 hours on average; a consumer group suspects they last less." Is it one- or two-tailed?
Show solution
H₀: μ = 40 (the status quo, always with =). H₁: μ < 40 (the suspicion). Because H₁ uses "<", it's a one-tailed (left-tailed) test.
② Exam-level
A sample of n = 36 gives = 38, with population σ = 6. Test at α = 0.05 whether the true mean is below 40 (H₀: μ = 40, H₁: μ < 40). The critical value is z = −1.645. Compute the test statistic and decide.
Show solution
z = ( − μ) / (σ/√n) = (38 − 40) / (6/√36) = −2 / (6/6) = −2 / 1 = −2.0
Since −2.0 < −1.645, the statistic lands in the rejection tail → reject H₀. There's evidence the mean is below 40 hours.
③ Challenge
You rejected H₀ above. Suppose in reality the true mean is 40 (the company was honest). (a) What error did you make? (b) If α had been 0.01 (critical z = −2.33), would your decision change? (c) What does this reveal about α?
Show solution
(a) Rejecting a true H₀ is a Type I error (a false alarm). (b) At α = 0.01 the cutoff is −2.33; since −2.0 is not beyond −2.33, you'd now fail to reject. (c) A smaller α makes rejection harder, lowering the Type I error rate — but it raises the chance of missing a real effect (Type II). You can't shrink both at once; it's a trade-off.
Unit VII — Correlation & Regression
① Warm-up
Given n = 5, Σx = 15, Σy = 25, Σxy = 88, Σx² = 55, compute the regression slope b.
Show solution
b = [nΣxy − ΣxΣy] / [nΣx² − (Σx)²] = [5·88 − 15·25] / [5·55 − 15²] = [440 − 375] / [275 − 225] = 65 / 50 = 1.3
(Bonus: intercept a = ȳ − b· = 5 − 1.3·3 = 1.1, so ŷ = 1.1 + 1.3x.)
② Exam-level
A study finds r = 0.85 between hours studied and exam score. (a) Interpret the strength and direction. (b) Compute and interpret it. (c) If the line is ŷ = 50 + 8x, predict the score for 5 hours.
Show solution
(a) A strong positive linear relationship — more study, higher score. (b) r² = 0.85² = 0.7225 → about 72% of the variation in scores is explained by hours studied. (c) ŷ = 50 + 8(5) = 90.
③ Challenge
A headline reads: "Cities with more libraries have higher crime (r = 0.7)." Does cutting libraries reduce crime? Name the flaw and a plausible hidden variable.
Show solution
No. This is the correlation ≠ causation trap. A hidden variable — population (city size) — drives both: larger cities have more libraries and more total crime. The headline mistakes a shared cause for a direct one. Cutting libraries would do nothing to crime.
Unit VIII — Experimentation
① Warm-up
A farmer tests 3 fertilizers on tomato plants and measures yield (kg). Identify the treatments, the experimental units, and the response variable.
Show solution
Treatments = the 3 fertilizers (the "what-if"). Experimental units = the tomato plants/plots (what receives the treatment). Response = yield in kg (what's measured).
② Exam-level
A researcher compares a new teaching method vs. the old one on test scores, but lets students choose their group. Name the flaw, the Fisher principle it violates, and the fix.
Show solution
The flaw is self-selection bias — more motivated students may flock to the new method, so any score difference could be due to who chose it, not the method. It violates randomization. Fix: randomly assign students to the two groups.
③ Challenge
An experiment tests 3 fertilizers but uses only one plant per fertilizer. Even if the yields differ, why can't we trust the conclusion? Which principle is missing, and what does it protect against?
Show solution
With one plant each, a yield difference could come from that individual plant (natural plant-to-plant variation) rather than the fertilizer — you can't tell signal from noise. The missing principle is replication. It protects against mistaking random variation for a real treatment effect, and it's what lets you estimate the experimental error in the first place.
Unit IX — ANOVA
① Warm-up
An ANOVA has SS_between = 60 (df = 3) and SS_within = 90 (df = 18). Compute MS_between, MS_within, and F.
Show solution
MS_between = 60 / 3 = 20 MS_within = 90 / 18 = 5 F = MS_between / MS_within = 20 / 5 = 4.0
Follow the pipeline: SS → df → MS → F.
② Exam-level
Three diets are compared on weight loss; the ANOVA gives F = 4.0 with critical F = 3.35 (α = 0.05). (a) State H₀ and H₁. (b) Decide. (c) What does rejecting H₀ tell you — and what does it not?
Show solution
(a) H₀: μ₁ = μ₂ = μ₃ (all three diet means equal); H₁: at least one mean differs. (b) F = 4.0 > 3.35 → reject H₀. (c) It tells you at least one diet's mean is different — it does not tell you which one(s). Pinning that down needs a post-hoc test.
③ Challenge
In a two-way ANOVA (factors: Drug × Diet), the interaction term is significant. A student concludes "Drug A is always best." Why might that be wrong? Explain what a significant interaction means here.
Show solution
A significant interaction means the effect of one factor depends on the level of the other. Drug A might be best on Diet 1 but worst on Diet 2 — so no blanket "always best" claim holds. You have to read the Drug effect separately within each Diet. Interaction is the formal version of "it depends."

★ / Exam Day

Exam Cheat Sheet

Everything on one page, in the order you'll actually reach for it: which test to run, every formula, how to read the z-table, and the mistakes that quietly cost the most points. Nothing here is new — it's every formula from Units I–IX, gathered in one place for the night before.

1 · Which test do I use?

GoalData typeTestTable
Compare 1 mean to a target numbernumericz (σ known / large n) or t (σ unknown / small n)z / t
Compare 2 group meansnumeric, 2 groups2-sample tt
Compare 3+ group meansnumeric, 3+ groupsANOVA (F)F
Test one proportionyes / noz for proportionz
Compare two proportionsyes / no, 2 groupsz for two proportionsz
Are two categories related?categoricalChi-square (independence)χ²
Relationship between two numericsnumeric pairscorrelation / regressiont
Diagram — pick a path, land on a test
What's your data? numeric categorical How many groups are you comparing? Related to another category? Chi-square (χ²) 1 2 3+ σ known / large n? yes → z · no → t 2-sample t ANOVA (F) Separately: two numeric variables, tracking a relationship? Correlation / Regression

2 · Master formula list

QuantityFormulaNote
Mean = Σx / n
Weighted meanw = Σ(w·x) / Σw÷ total weight, not n
Median position(n + 1) / 2seat, not score
Grouped mean = Σfx / nx = class mark
Grouped medianL + [(n/2 − CF)/f] × widthL = median class's lower boundary
Grouped modeL + [d₁/(d₁+d₂)] × widthL = modal class's lower boundary
Mean Absolute DeviationMAD = Σ|x−| / ngrouped: Σf|x−| / n
Sample variances² = [Σx² − (Σx)²/n] / (n−1)computational form
Grouped variances² = Σf(x−)² / (n−1)x = class mark
Standard deviations = √s²real units
Coeff. of variationCV = (s / ) × 100%compare across things
Slovin's sample sizen = N / (1 + N·e²)e = margin of error, round UP
Standard errorSE = σ / √nSD of the mean
z-scorez = (x − μ) / σstandardize a value
One-sample zz = ( − μ) / (σ/√n)σ known / large n
One-sample tt = ( − μ) / (s/√n)df = n − 1
Correlation r[nΣxy − ΣxΣy] / √([nΣx²−(Σx)²][nΣy²−(Σy)²])−1 to +1
Regression slopeb = [nΣxy − ΣxΣy] / [nΣx²−(Σx)²]a = ȳ − b
Chi-squareχ² = Σ[(O − E)² / E]O = observed, E = expected
ANOVA FF = MS_between / MS_withinMS = SS / df

3 · The z-table lives in its own section

Full standard normal table with worked examples is up in Z-Table (nav bar above) — no need to repeat 350 numbers twice. The t-table below is its natural partner for whenever σ is unknown.

4 · The t-Table (critical values)

Used whenever σ is unknown and you're working with s instead — same idea as the z-table, but the curve's exact shape depends on df, so this table gives straight-to-the-point critical values rather than a full area lookup.

How to read it: find your df (row) and your α (column) — use the one-tail row of column headers for a one-tailed test, the two-tail row for a two-tailed test. That cell is your critical t. Example highlighted: df = 15, one-tailed α = 0.05 → t = 1.753.

df0.1000.0500.0250.0100.005
two-tail →0.200.100.050.020.01
13.0786.31412.70631.82163.657
21.8862.9204.3036.9659.925
31.6382.3533.1824.5415.841
41.5332.1322.7763.7474.604
51.4762.0152.5713.3654.032
61.4401.9432.4473.1433.707
71.4151.8952.3652.9983.499
81.3971.8602.3062.8963.355
91.3831.8332.2622.8213.250
101.3721.8122.2282.7643.169
111.3631.7962.2012.7183.106
121.3561.7822.1792.6813.055
131.3501.7712.1602.6503.012
141.3451.7612.1452.6242.977
151.3411.7532.1312.6022.947
161.3371.7462.1202.5832.921
171.3331.7402.1102.5672.898
181.3301.7342.1012.5522.878
191.3281.7292.0932.5392.861
201.3251.7252.0862.5282.845
211.3231.7212.0802.5182.831
221.3211.7172.0742.5082.819
231.3191.7142.0692.5002.807
241.3181.7112.0642.4922.797
251.3161.7082.0602.4852.787
261.3151.7062.0562.4792.779
271.3141.7032.0522.4732.771
281.3131.7012.0482.4672.763
291.3111.6992.0452.4622.756
301.3101.6972.0422.4572.750
401.3031.6842.0212.4232.704
601.2961.6712.0002.3902.660
1201.2891.6581.9802.3582.617
∞ (z)1.2821.6451.9602.3262.576

As df grows, the t-distribution converges to the normal curve — that's why the bottom row (df = ∞) matches the z-values you already know (1.645, 1.96, 2.326, 2.576). Past df ≈ 30, many people just use z as a close-enough shortcut.

5 · Five mistakes that cost points (no-PC edition)

10 / Define Everything

G

Glossary of Key Terms

Every term the units lean on, defined plainly in one place — so nothing is left to guess. Definitions are checked against the sources listed under Sources.

Foundations & data
Nominal scaleUnordered labels (sex, course). Categories only — no ranking.
Ordinal scaleRanked labels (low / medium / high). Order matters, but the gaps between ranks aren't equal.
Interval scaleEqual gaps but no true zero (temperature in °C). Differences mean something; ratios don't.
Ratio scaleEqual gaps and a true zero (height, weight, income). Every comparison is valid.
OutlierA value far from the rest of the data. It drags the mean and inflates the SD.
Margin of error (e)The largest gap you'll tolerate between a sample estimate and the true value, at a chosen confidence.
Inference & testing
Normal distributionThe symmetric, bell-shaped curve where values cluster near the mean and extremes are rare. Fixed by its mean μ and SD σ.
Standard normal distributionThe normal curve with mean 0 and SD 1 — the scale z-scores live on.
Standard error (SE)The standard deviation of a sample statistic, like the sample mean. Shrinks as n grows.
Degrees of freedom (df)The number of values free to vary once the constraints are fixed — roughly sample size minus the quantities you estimate (n−1 for one sample).
Significance level (α)The false-alarm risk you accept before testing, usually 0.05. Equivalently, the Type I error rate.
Test statisticThe single number from your sample (z, t, F, χ²) that you compare against the critical value.
Critical valueThe cut-off from the reference distribution. If your test statistic is more extreme, reject H₀.
p-valueThe probability of data at least as extreme as observed, assuming H₀ is true. Small p = strong evidence against H₀. It is not the probability that H₀ is true.
Confidence levelThe long-run share of such intervals that would capture the true value (e.g. 95%) — the complement of α.
Regression & ANOVA
Least-squaresThe method that fits the regression line by making the total squared vertical distance from the points to the line as small as possible.
Sum of squares (SS)The total of squared deviations from a mean — the raw amount of variation that ANOVA splits apart.
Mean square (MS)A sum of squares divided by its degrees of freedom. A variance estimate.
F-statisticThe ratio of two mean squares (between ÷ within). A large F signals genuine differences among group means.
Experimental design
Completely Randomized Design (CRD)Treatments assigned to units entirely at random. Used when the units are alike.
Randomized Complete Block Design (RCBD)Units sorted into blocks of similar units first, then treatments randomized within each block — cancelling block-to-block nuisance variation.
Factorial designTwo or more factors tested together across all their level combinations. The only way to see interactions.
Split-plot designA factorial where a hard-to-change factor is applied to large "whole plots" and an easy-to-change factor to subunits within them.
InteractionWhen the effect of one factor depends on the level of another — "it depends."

10 / Go Deeper

§

Sources & Further Reading

This reviewer is the compression — the 20% that earns 80% of the marks. Below are the authorities it's built on, each one free, so you can blow any unit back up to full size when you need the derivation, more worked examples, or practice sets. Built to stay factual: this is where to verify.

1 · Free open references — zero-cost, exam-grade

NIST/SEMATECH e-Handbook of Statistical Methods
U.S. National Institute of Standards & Technology
The engineering-grade reference, written for scientists and engineers. Best for Units IV–IX: exploratory data analysis, hypothesis testing, design of experiments, ANOVA. The rigorous backbone of the set.
itl.nist.gov/div898/handbook
OpenStax — Introductory Statistics 2e
Illowsky & Dean · peer-reviewed · CC-licensed
A complete one-semester college text covering every unit I–IX with step-by-step examples and thousands of exercises. The single best end-to-end companion to this card.
openstax.org/details/books/introductory-statistics-2e
OpenIntro Statistics (4e)
Diez, Çetinkaya-Rundel & Barr · free PDF
A rigorous applied intro used "from community colleges to the Ivy League." Strongest on Units V–VII: inference, the CLT, and linear regression, with clean real-data cases.
openintro.org/os
Penn State — STAT 500 / 501 / 502
Penn State Dept. of Statistics · open notes
University lecture notes, free under Creative Commons. 500 for inference (Unit VI), 501 for regression (VII), 502 for ANOVA & design of experiments (VIII–IX) — the toughest material to master.
online.stat.psu.edu/stat500
Khan Academy — Statistics & Probability
325 free videos · ~38 hrs
The first-pass intuition layer. When a concept won't click from text, watch the 5-minute video — including the full ANOVA F-statistic walkthrough. Best for the initial "oh, that's it" on any unit.
khanacademy.org/math/statistics-probability
OpenStax — Introductory Business Statistics 2e
peer-reviewed · CC-licensed
Formula-forward, with extensive step-by-step walkthroughs — it leans into deriving and applying each formula. Mirrors the Wegner business-stats angle (Units II–VII).
openstax.org/details/books/introductory-business-statistics-2e
ASA Statement on p-Values
American Statistical Association · 2016
The authoritative word on what a p-value is and isn't — the source behind the Unit VI and Glossary definition. Read it before you ever write "p < 0.05" in a report.
doi.org/10.1080/00031305.2016.1154108
Scribbr — Statistics Guides
student-facing · worked definitions
Plain-English definitions with examples for the tricky terms — degrees of freedom, p-value, the normal distribution. Good when a definition needs unpacking.
scribbr.com/category/statistics
Statistics By Jim
Jim Frost · practitioner intuition
Intuitive deep-dives on the concepts students fumble most — degrees of freedom, sums of squares, experimental design. Strong on the "why," not just the formula.
statisticsbyjim.com

2 · Standard course textbooks

3 · Where to go deeper, by unit

UnitBest free sourceWhy
I–II · Foundations & DataOpenStax Ch. 1; Khan "Analyzing data"cleanest intro to terms, sampling, frequency tables
III–IV · Center & SpreadOpenStax Ch. 2; NIST §1 (EDA)worked mean/SD + the why behind n−1 and skew
V · Sampling & CLTOpenIntro Ch. 5; Khan "Sampling distributions"the CLT shown by simulation — it finally clicks
VI · Hypothesis testingPenn State STAT 500; OpenIntro Ch. 5–7full z/t/χ² procedures with university-grade rigor
VII · Regression & correlationPenn State STAT 501; NIST §4least-squares derivation + r² interpretation
VIII–IX · DOE & ANOVAPenn State STAT 502; NIST §3; Walpolethe one-way / two-way ANOVA tables, every cell
Provenance · Unit VIII The three pillars of experimental design — randomization, replication, and local control (blocking) — trace to R.A. Fisher's The Design of Experiments (1935). Every modern design-of-experiments and ANOVA chapter, Walpole's included, descends from that book — worth knowing whose shoulders Unit IX stands on.