← All topics · Core

Probability & Statistics

Descriptive statistics, distributions, counting, confidence intervals. ~4–6%

About 5 min read · 12 sections

Overview

Probability and statistics questions are short and formula-driven. You will describe a data set, use a distribution (normal, binomial, Poisson), build a confidence interval, run a hypothesis test, or fit a line. The key skill is recognising which tool a question wants.

1. Describing data

  • Mean x̄ = Σx/n. Median is the middle value of the ordered data and resists outliers. Mode is the most frequent value.
  • Sample variance s² = Σ(x − x̄)²/(n − 1); the standard deviation is its square root. Population variance divides by N.
  • Range = max − min. IQR = Q3 − Q1.
s = √[ Σ(x − x̄)² / (n − 1) ]

Use the sample formula whenever the data are a sample from a larger group, which is the usual exam case.

2. Probability rules

P(A or B) = P(A) + P(B) − P(A and B)
P(A and B) = P(A) · P(B | A) (independent events: P(A)P(B))
P(A | B) = P(A and B) / P(B)

Bayes' theorem reverses a conditional probability.

P(A | B) = P(B | A) P(A) / [ P(B | A) P(A) + P(B | not A) P(not A) ]

Bayes' theorem

Given: 1% of parts are defective. A test flags 95% of defective parts, and also flags 5% of good parts. A part is flagged. What is the chance it is defective?

Solution: defective and flagged: 0.01 × 0.95 = 0.0095. Good and flagged: 0.99 × 0.05 = 0.0495. Total flagged = 0.0590.

Answer: 0.0095/0.0590 = 0.161, only about 16%, because good parts vastly outnumber bad ones.

3. Counting

Permutations (order matters): P(n, r) = n!/(n − r)!. Combinations (order does not matter): C(n, r) = n!/[r!(n − r)!]. Ask yourself whether swapping two chosen items makes a different outcome.

4. Distributions

Binomial

n independent trials, each with success probability p.

P(X = k) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ, mean = np, variance = np(1 − p)

Poisson

Counts of rare events at an average rate λ per interval.

P(X = k) = e^(−λ) λᵏ / k!, mean = variance = λ

Normal

Standardise with z = (x − μ)/σ and use the table. Memorise 68–95–99.7: about 68% lies within ±1σ, 95% within ±2σ and 99.7% within ±3σ. P(Z > 1.645) = 0.05 and P(Z > 1.96) = 0.025.

Student's t

Used instead of z when σ is unknown and n is small. It has heavier tails; the degrees of freedom are n − 1.

5. Sampling and the central limit theorem

The mean of n observations has standard error σ/√n and is approximately normal for large n whatever the population shape. Quadrupling the sample size halves the standard error.

6. Confidence intervals

x̄ ± z · σ/√n (σ known) x̄ ± t · s/√n (σ unknown)

Confidence interval with the t-distribution

Given: n = 16, x̄ = 20, s = 4. Find the 95% interval.

Solution: degrees of freedom = 15, t(0.025, 15) = 2.131. Half-width = 2.131 × 4/√16 = 2.13.

Answer: 20 ± 2.13, i.e. 17.87 to 22.13.

7. Hypothesis testing

  1. State H₀ (no effect) and H₁ (the claim).
  2. Choose the significance level α, commonly 0.05.
  3. Compute the test statistic, z = (x̄ − μ₀)/(σ/√n).
  4. Compare with the critical value or find the p-value. Reject H₀ if p < α.

A Type I error rejects a true H₀ (probability α). A Type II error fails to reject a false H₀ (probability β).

One-sample z test

Given: H₀: μ = 50. σ = 6, n = 36, x̄ = 52, α = 0.05 (two-sided).

Solution: z = (52 − 50)/(6/√36) = 2.0, which exceeds 1.96, and the two-sided p-value is 0.0455.

Answer: reject H₀; the mean differs from 50.

8. Regression and correlation

Least squares line y = a + bx with slope b = Sxy/Sxx and intercept a = ȳ − b x̄. The correlation r runs from −1 to +1, and r² is the fraction of variation explained.

Least-squares line

Given: x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5.

Solution: x̄ = 3 and ȳ = 4. Sxy = Σ(x − 3)(y − 4) = 6 and Sxx = 10, so b = 0.6 and a = 4 − 0.6(3) = 2.2.

Answer: y = 2.2 + 0.6x.

Common mistakes

  • Using n instead of n − 1 for a sample standard deviation.
  • Adding probabilities of events that are not mutually exclusive without subtracting the overlap.
  • Using combinations when order matters.
  • Using z when σ is estimated from a small sample.
  • Reading a one-sided table value for a two-sided test.

Exam strategy

Identify the distribution first (counts of successes = binomial, rare events per interval = Poisson, continuous measurements = normal). Draw the bell curve and shade the area, because it prevents upper-tail and lower-tail mix-ups.

Checklist

  • [ ] I can compute mean, median and sample standard deviation.
  • [ ] I can use binomial, Poisson and normal probabilities.
  • [ ] I can build a confidence interval with z or t.
  • [ ] I can carry out a one-sample hypothesis test.
  • [ ] I can fit a least-squares line.