Rana Maninder Singh
Lesson 7 of 7Statistics for AI & ML

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

ResourceLink
Applied ML statisticsApplied ML statistics
GlossaryStatistics glossary

Printable desk reference — print-friendly, no colored backgrounds needed (plain markdown tables only).


ConceptFormulaIn Plain English
Meanx̄ = (Σ xᵢ) / nAdd all values, divide by how many you have — the arithmetic average.
MedianMiddle 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.
ModeMost frequent valueThe number or category that shows up most often.
Rangemax − minSpread from smallest to largest — simple but sensitive to outliers.
Variance (population)σ² = Σ(xᵢ − μ)² / NAverage 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-scorez = (x − x̄) / sHow many standard deviations a value sits from the mean — flags outliers and standardises scales.
IQRIQR = 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.
CovarianceCov(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.
Residualeᵢ = yᵢ − ŷᵢActual minus predicted — what the model missed on each point; patterns in residuals mean the model is wrong.
Standard error of meanSE = s / √nUncertainty 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 differenceHow 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μ = npExpected 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 decompositionError ≈ Bias² + Variance + irreducible noiseTotal prediction error splits into being too simple, too sensitive to training noise, and random luck you cannot remove.
Ridge penaltyLoss + λ Σ βⱼ²Shrinks regression weights toward zero — trades a little bias for lower variance and more stable predictions.

How to use this card


Back to lessons

LessonTopic
What is statistics?Why stats matter for data and ML
FoundationsMean, spread, normal and binomial distributions
RelationshipsCorrelation, covariance, feature selection
Inferential statsHypothesis tests, p-values, t-tests
Applied ML statisticsBias–variance, MLE, regularisation