Formula sheet

Probability and statistics — Formula Sheet

9 formulas from Probability & Statistics, each with what it means, when to use it and the trap it sets.

Combinations and permutations

What it says
Combinations ignore order; permutations count it.
When to reach for it
Counting outcomes before any probability can be computed.
Watch out
Ask whether rearranging the same items counts as a new outcome. If not, it is a combination.

Ten possible pairs from five people, since a pair has no order.

Addition rule

What it says
Add the two chances, then remove the overlap you counted twice.
When to reach for it
Anything phrased with "or".
Watch out
The overlap term vanishes only for mutually exclusive events. Assuming it always does inflates the probability.

The subtraction is what keeps the total below 1.

Conditional probability

What it says
The chance of A once you already know B happened.
When to reach for it
Anything phrased with "given that".
Watch out
P(A|B) and P(B|A) are different numbers, and confusing them is the base-rate fallacy.

The same rule, rearranged into the multiplication rule.

Bayes’ rule

What it says
Turn a conditional probability around using the prior.
When to reach for it
Medical tests, spam filters, and any "given a positive result, what is the chance" question.
Watch out
The denominator usually needs the law of total probability: P(B) = P(B|A)P(A) + P(B|A′)P(A′). A rare condition keeps P(A|B) low even after a positive test.

Compute the denominator first — it is where the marks are lost.

Expectation and variance

What it says
The long-run average, and how far outcomes typically sit from it.
When to reach for it
Summarising any distribution, discrete or continuous.
Watch out
Variance is E[X²] minus the square of the mean, in that order. Reversing it gives a negative number.

The equivalent definition, usually slower to compute.

Binomial distribution

What it says
Exactly k successes in n independent tries, each succeeding with probability p.
When to reach for it
A fixed number of independent yes/no trials with a constant success rate.
Watch out
All four conditions must hold. Sampling without replacement breaks independence and needs the hypergeometric instead.

Worth memorising alongside the probability itself.

z-score

What it says
How many standard deviations x sits above or below the mean.
When to reach for it
Normal probabilities, and comparing values from different distributions.
Watch out
For a sample mean the denominator is σ/√n, not σ — that √n is the whole point of the central limit theorem.

The sampling-distribution version, used for intervals and tests.

Confidence interval for a mean

What it says
The sample mean, plus and minus a margin that shrinks as the sample grows.
When to reach for it
Estimating a population mean from a sample.
Watch out
Quadrupling n only halves the width — √n, not n. And 95% describes the procedure, not the probability that this one interval is right.

Use t* instead when σ is unknown and n is small.

Least-squares line

What it says
The line minimising total squared vertical distance to the data.
When to reach for it
Fitting a straight line to a scatter of points.
Watch out
The line always passes through (x̄, ȳ), and correlation is not causation however good r looks.

r² of 0.8 means 80% of the variation is accounted for by the line.

Other formula sheets