Probability & Statistics

Probability measures how likely an event is on a scale from 0 (impossible) to 1 (certain); statistics is the science of collecting, summarising, and drawing conclusions from data. Key result in words: the long-run frequency of an event converges to its probability, and large random samples reliably reveal the structure of the population they come from. Applies to: gambling, insurance, quality control, medicine, polling, machine learning, and any reasoning under uncertainty. Foundations laid by Pascal & Fermat (1654), formalised by Kolmogorov (1933). Probability is a function that assigns to each possible outcome of a random experiment a number between 0 and 1, obeying a few simple axioms, so that the chances of compound events can be computed by arithmetic. Statistics runs the logic in reverse: given observed data, it infers the unknown probabilities or quantities that generated them. The subject matters because almost no real measurement is exact and almost no future event is certain — probability and statistics give a disciplined language for quantifying and managing that uncertainty. A surprising fact is that even perfectly random processes produce strikingly stable averages: flip a fair coin a million times and the proportion of heads will sit astonishingly close to 0.5, a regularity guaranteed by the Law of Large Numbers. Equally surprising is that almost any well-behaved random quantity, when averaged, becomes bell-shaped — the Central Limit Theorem.

The Core Insight

Randomness in the small produces order in the large. A single coin flip is unpredictable, but the average behaviour of many independent repetitions is governed by precise mathematical laws. Probability builds a deductive model of this randomness from axioms; statistics uses observed averages to work backwards to the model's hidden parameters. The bridge between the two is the idea that relative frequency estimates probability, and that estimate improves predictably as the sample grows.

Formal Statement

Sample Space, Events, and Probability

A random experiment has a sample space , the set of all possible outcomes. An event is any subset of . A probability measure assigns to each event a number satisfying Kolmogorov's axioms:

1
⟳probabilities are non-negative by definition — they count "share of certainty."
2
⟳something in the sample space must occur, so the total probability is 1.
3
⟳for mutually exclusive (disjoint) events, probabilities simply add.

Here is the set of outcomes, are events, is union ("or"), is intersection ("and"), and is the empty event (impossible).

Conditional Probability and Independence

The conditional probability of given that has occurred is

4
⟳restrict the sample space to and renormalise so .

Events and are independent when knowing one tells nothing about the other:

5
⟳substitute independence into [4] to get .

Bayes' Theorem

For events and with ,

6
⟳write two ways using [4] — as and — then solve.

If partition , the denominator expands by the law of total probability:

7
⟳ is the disjoint union of the ; apply [3] repeatedly and [4].

Random Variables, Expectation, Variance

A random variable assigns a number to each outcome. Its expected value (mean) and variance are

8
⟳a probability-weighted average of all values , with the probability density.
9
⟳expand and use linearity of , noting .

The standard deviation is , in the same units as .

Key Distributions

The binomial distribution counts successes in independent trials each with success probability :

10
⟳each specific sequence has probability ; multiply by the orderings.

The normal (Gaussian) distribution with mean and standard deviation has density

11
⟳the unique symmetric density whose log is quadratic; the constant makes the total area 1.

Why It Holds / Derivation

The Mean and Variance of a Sample Average

Let be independent random variables, each with mean and variance , and let be the sample mean.

  1. Mean of the average. By linearity of expectation, . The sample mean is an unbiased estimator of .
  1. Variance of a sum of independent variables. For independent variables, variances add: .
  1. Scaling. Since with ,
12
⟳combine additivity of variance for independent terms with the scaling rule.
  1. Consequence. The standard deviation of is , the standard error. As it shrinks to 0, so concentrates ever more tightly around — this is the quantitative heart of the Law of Large Numbers. ∎

Andrey Kolmogorov | 1903–1987

The Soviet mathematician Andrey Kolmogorov transformed probability from a collection of clever gambling tricks into a rigorous branch of mathematics. In his 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung he proposed that probability is simply a measure — a non-negative function on sets summing to 1 — borrowing the machinery of measure theory developed by Lebesgue. This axiomatic foundation (equations [1]–[3]) settled centuries of philosophical dispute about what probability is by declining to answer it: instead it specified the rules probability must obey, leaving interpretation open. Kolmogorov also made deep contributions to turbulence, dynamical systems, and complexity theory.

Building Intuition

Think of probability as shared-out certainty. You have one unit of belief to distribute over all possible outcomes; equation [2] says it all has to go somewhere, and [1] says you can't assign negative belief. Conditional probability [4] is zooming in: once you learn happened, you throw away the part of the world where it didn't and rescale what remains so it again sums to 1.

For statistics, picture a giant opaque urn (the population) and a handful of balls you draw out (the sample). You never see the whole urn, but each handful is a blurry photograph of it. The blur is the standard error from [12]: bigger handfuls give sharper photographs, but only as fast as — to halve the blur you must quadruple the sample. This square-root law is why national polls of 1,000 people work surprisingly well, yet doubling accuracy is genuinely expensive.

The normal distribution: the 68–95–99.7 rule. About 68% of probability lies within one standard deviation of the mean.

μ μ−σ μ+σ μ−2σ μ+2σ 68% 95% within 2σ f(x)

Worked Examples

Disease Testing and Bayes' Theorem

Given: A disease affects 1% of a population. A test is 99% sensitive (detects the disease when present) and 95% specific (correctly negative when absent). A randomly chosen person tests positive. What is the probability they actually have the disease? Steps: Let = has disease, = tests positive.
  • ,
  • ,
  • Total probability of a positive test [7]:
  • Bayes' theorem [6]:
Answer: — despite the accurate test, most positives are false alarms because the disease is rare. This is the base-rate effect.

Sampling and the Standard Error

Given: Heights of adult women have cm and cm. A random sample of women is taken. Within what range does the sample mean fall about 95% of the time? Steps:
  • Standard error from [12]: cm.
  • By the Central Limit Theorem, is approximately normal about cm.
  • The 95% range is roughly .
Answer: . Note the individual heights vary by cm, but the average of 49 varies only by cm — averaging suppresses noise.

Common Misconceptions

The Gambler's Fallacy

Independent events have no memory. After five heads in a row, a fair coin is still exactly 50% to land heads next — equation [5] guarantees past flips do not change future ones. The belief that tails is "due" confuses the Law of Large Numbers (long-run averaging) with a non-existent self-correcting force. The average drifts toward 0.5 not because future flips compensate for the past, but because past flips become an ever-smaller fraction of the total.

Correlation Is Not Causation

Two variables can move together — high correlation — without one causing the other. Ice-cream sales and drowning deaths correlate strongly, but neither causes the other; both rise with summer temperature, a confounding variable. Statistics can establish association; only a controlled experiment or careful causal reasoning can establish cause.

Probability of "At Least One" Is Not a Simple Sum

A common error: with a 1-in-6 chance per roll, "the probability of at least one six in 6 rolls" is not . Probabilities of non-exclusive events don't simply add (that violates the disjointness condition in [3]). Compute via the complement instead:

The naïve sum even exceeds 1 for 7 rolls, which is impossible by [1]–[2].

Connections

Probability is the deductive engine; statistics runs it in reverse for inference. The Central Limit Theorem explains why the Normal Distribution appears everywhere, justifying the confidence intervals and hypothesis tests of Statistical Inference. Bayes' Theorem generalises into Bayesian Inference, an entire framework for updating beliefs with data. The expectation and variance of [8]–[9] connect to Combinatorics (for counting outcomes) and to Calculus (integrals define continuous expectations and densities). Variance and the standard error link to Regression Analysis, where the same square-of-distance ideas underpin least-squares fitting.

Real-World Applications

  • Insurance & actuarial science: premiums are set so that expected payouts [8] plus a margin stay below collected premiums; the Law of Large Numbers makes aggregate losses predictable.
  • Medical trials & epidemiology: randomised controlled trials use hypothesis tests and -values to decide whether a drug beats placebo; Bayes' theorem [6] interprets diagnostic test results.
  • Political polling: the margin of error reported by Gallup and Pew is essentially from [12].
  • Quality control (Six Sigma): factories monitor whether measurements stay within of target, using control charts built on the normal distribution [11].
  • Finance & risk (Value at Risk): banks model portfolio returns as random variables to estimate worst-case losses at a chosen probability.
  • Machine learning: classifiers like naïve Bayes apply [6] directly; nearly all of statistics underlies modern AI's training and evaluation.
  • Genetics: Mendelian inheritance ratios are binomial [10]; population genetics tracks allele frequencies probabilistically.

Historical Development

  • 1654 — Blaise Pascal and Pierre de Fermat exchange letters solving the "problem of points," founding mathematical probability.
  • 1657 — Christiaan Huygens publishes De ratiociniis in ludo aleae, the first printed treatise on probability, introducing expected value.
  • 1713 — Jacob Bernoulli's posthumous Ars Conjectandi states and proves the first Law of Large Numbers.
  • 1733/1738 — Abraham de Moivre derives the normal curve as an approximation to the binomial, an early Central Limit Theorem.
  • 1763 — Thomas Bayes' essay (published posthumously) introduces what becomes Bayes' theorem.
  • 1809–1812 — Carl Friedrich Gauss and Pierre-Simon Laplace develop least squares and the general central limit theorem; the Gaussian distribution takes Gauss's name.
  • 1900s–1920s — Karl Pearson, Ronald Fisher, and Jerzy Neyman build modern statistics: correlation, the chi-squared test, maximum likelihood, experimental design, and hypothesis testing.
  • 1933 — Andrey Kolmogorov axiomatises probability with measure theory, giving the field its rigorous modern foundation.

Subtleties & Limits

The meaning of probability remains philosophically contested. Frequentists define as the long-run fraction of times occurs in repeated trials — but this is awkward for one-off events ("the probability it rains tomorrow"). Bayesians treat probability as a degree of belief, updated by [6] — but then the choice of prior belief is subjective. Both interpretations use the same axioms [1]–[3]; they disagree on what the numbers mean. Deeper still: real data are rarely truly independent or identically distributed, so the clean theorems above are idealisations. Modern statistics wrestles with the replication crisis — many published findings fail to reproduce, partly from misuse of -values and "-hacking" — and with making valid inferences from massive, messy, non-random datasets where the classical guarantees may not apply.

See Also

Central Limit Theorem · Law of Large Numbers · Normal Distribution · Bayes' Theorem · Statistical Inference · Combinatorics · Regression Analysis · Stochastic Processes

Before this

  • Set Theory — events are subsets; union, intersection, and complement are the language of probability.
  • Combinatorics — counting outcomes is needed for $\binom{n}{k}$ and equal-likelihood probabilities.
  • Functions and Graphs — distributions are functions; reading and interpreting their graphs is essential.
  • Calculus — integrals define continuous probabilities, expectations, and areas under densities.
  • Summation Notation — expectations and variances are weighted sums over outcomes.

Where this leads