Statistics Formula Reference Card
Lesson opener
In one line: This lesson covers formula reference card in plain English, with steps you can reuse at work.
Why it matters: This skill shows up in day-to-day analysis and delivery work.
Before this lesson: Nothing, this is a starting point.
Before you start
| Resource | Link |
|---|---|
| Applied ML statistics | Applied ML statistics |
| Glossary | Statistics glossary |
Printable desk reference — print-friendly, no colored backgrounds needed (plain markdown tables only).
| Concept | Formula | In Plain English | ||
|---|---|---|---|---|
| Mean | x̄ = (Σ xᵢ) / n | Add all values, divide by how many you have — the arithmetic average. | ||
| Median | Middle value when sorted (or average of the two middle values if n is even) | The centre of the list — half the data is below, half above; robust to outliers. | ||
| Mode | Most frequent value | The number or category that shows up most often. | ||
| Range | max − min | Spread from smallest to largest — simple but sensitive to outliers. | ||
| Variance (population) | σ² = Σ(xᵢ − μ)² / N | Average squared distance from the population mean — spread in squared units. | ||
| Variance (sample) | s² = Σ(xᵢ − x̄)² / (n − 1) | Same idea for a sample; divide by n − 1 (Bessel's correction) for an unbiased estimate. | ||
| Standard deviation | σ = √σ² or s = √s² | Spread in the original units — typical distance from the mean. | ||
| Z-score | z = (x − x̄) / s | How many standard deviations a value sits from the mean — flags outliers and standardises scales. | ||
| IQR | IQR = Q₃ − Q₁ | Middle 50% span — robust spread; values outside Q₁ − 1.5×IQR or Q₃ + 1.5×IQR are often flagged as outliers. | ||
| Correlation (Pearson) | r = Cov(X, Y) / (σₓ σᵧ) | Linear co-movement on a −1 to +1 scale; +1 = perfect rise together, 0 = no linear link, −1 = perfect opposite. | ||
| Covariance | Cov(X, Y) = Σ(xᵢ − x̄)(yᵢ − ȳ) / (n − 1) | Whether two variables move in the same direction — size depends on units, so hard to compare across pairs. | ||
| Linear regression slope | β₁ = Σ(xᵢ − x̄)(yᵢ − ȳ) / Σ(xᵢ − x̄)² | Expected change in y per one-unit increase in x — the steepness of the best-fit line. | ||
| Residual | eᵢ = yᵢ − ŷᵢ | Actual minus predicted — what the model missed on each point; patterns in residuals mean the model is wrong. | ||
| Standard error of mean | SE = s / √n | Uncertainty in the sample mean — shrinks as sample size grows. | ||
| Confidence interval (approx.) | x̄ ± z / (s / √n) or x̄ ± t / (s / √n) | Range of plausible values for the true mean — narrower when n is large or spread is small. | ||
| t-statistic (concept) | t = (x̄₁ − x̄₂) / SE of difference | How far apart two group means are, measured in units of sampling noise — large \ | t\ | → stronger evidence of a real gap. |
| p-value (definition) | P(data this extreme \ | H₀ true) | If nothing really changed, how often would you see a result this extreme by luck alone — not proof, only surprise under the null. | |
| Binomial mean | μ = np | Expected count of successes in n independent trials, each with success probability p. | ||
| Binomial variance | σ² = np(1 − p) | Spread of that success count — largest when p = 0.5. | ||
| Normal 68–95–99.7 rule | ~68% within μ ± 1σ; ~95% within μ ± 2σ; ~99.7% within μ ± 3σ | For bell-shaped data, most values cluster near the centre — useful for thresholds and outlier flags. | ||
| MLE (normal mean) | μ̂ = x̄ | The sample mean is the parameter value that makes the observed data most probable under a normal model. | ||
| Bias–variance decomposition | Error ≈ Bias² + Variance + irreducible noise | Total prediction error splits into being too simple, too sensitive to training noise, and random luck you cannot remove. | ||
| Ridge penalty | Loss + λ Σ βⱼ² | Shrinks regression weights toward zero — trades a little bias for lower variance and more stable predictions. |
How to use this card
- Print it — open in your browser or editor, print to PDF or paper; plain tables need no special styling.
- Study in pairs — cover the Formula column, say the Plain English meaning aloud, then check; focus on rows you confuse (mean vs median, p-value vs effect size).
- Use with lessons — when a lesson mentions a term, find it here first, then read the full lesson for examples and Python code.
Back to lessons
| Lesson | Topic |
|---|---|
| What is statistics? | Why stats matter for data and ML |
| Foundations | Mean, spread, normal and binomial distributions |
| Relationships | Correlation, covariance, feature selection |
| Inferential stats | Hypothesis tests, p-values, t-tests |
| Applied ML statistics | Bias–variance, MLE, regularisation |