Skip to content
Part IA Michaelmas, Lent, Easter Term

Probability Theory

Basic Definitions

Sample space Ω\Omega: set of all possible outcomes.

Event: subset of Ω\Omega.

Probability: P(A)[0,1]P(A) \in [0, 1] for event AA. Properties:

  • P(Ω)=1P(\Omega) = 1
  • P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B) for disjoint events: P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

Conditional Probability

P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

“Probability of AA given that BB has occurred.”

Bayes’ theorem:

P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}

Independence: AA and BB are independent if P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B).


Random Variables

A random variable XX is a function from Ω\Omega to R\mathbb{R}.

Discrete: Takes countably many values.

Continuous: Takes values in an interval or R\mathbb{R}.


Probability Distributions

Discrete: Probability Mass Function (PMF)

p(xi)=P(X=xi)p(x_i) = P(X = x_i)

Requirements: p(xi)0p(x_i) \geq 0 and ip(xi)=1\sum_i p(x_i) = 1.

Continuous: Probability Density Function (PDF)

f(x)f(x) such that:

P(aXb)=abf(x)dxP(a \leq X \leq b) = \int_a^b f(x)\,dx

Requirements: f(x)0f(x) \geq 0 and f(x)dx=1\int_{-\infty}^{\infty} f(x)\,dx = 1.


Expectation Value (Mean)

Discrete: E[X]=μ=ixip(xi)E[X] = \mu = \sum_i x_i p(x_i)

Continuous: E[X]=μ=xf(x)dxE[X] = \mu = \int_{-\infty}^{\infty} x f(x)\,dx

Linearity: E[aX+bY]=aE[X]+bE[Y]E[aX + bY] = aE[X] + bE[Y]


Variance and Standard Deviation

Variance: Var(X)=σ2=E[(Xμ)2]=E[X2](E[X])2\text{Var}(X) = \sigma^2 = E[(X - \mu)^2] = E[X^2] - (E[X])^2

Standard deviation: σ=Var(X)\sigma = \sqrt{\text{Var}(X)}

Properties:

  • Var(aX)=a2Var(X)\text{Var}(aX) = a^2\text{Var}(X)
  • Var(X+c)=Var(X)\text{Var}(X + c) = \text{Var}(X)

Moments

The nnth moment is E[Xn]E[X^n].

The nnth central moment is E[(Xμ)n]E[(X - \mu)^n].

  • 1st moment = mean
  • 2nd central moment = variance
  • 3rd central moment (scaled) = skewness
  • 4th central moment (scaled) = kurtosis

Binomial Distribution

nn independent trials, each with success probability pp.

P(X=r)=(nr)pr(1p)nrP(X = r) = \binom{n}{r} p^r (1-p)^{n-r}

where (nr)=n!r!(nr)!\binom{n}{r} = \frac{n!}{r!(n-r)!}.

Mean: E[X]=npE[X] = np

Variance: Var(X)=np(1p)\text{Var}(X) = np(1-p)


Poisson Distribution

For rare events with average rate λ\lambda:

P(X=r)=λreλr!P(X = r) = \frac{\lambda^r e^{-\lambda}}{r!}

Mean: E[X]=λE[X] = \lambda

Variance: Var(X)=λ\text{Var}(X) = \lambda

Limit: Poisson is the limit of Binomial as nn \to \infty, p0p \to 0 with np=λnp = \lambda fixed.


Normal (Gaussian) Distribution

f(x)=1σ2πexp((xμ)22σ2)f(x) = \frac{1}{\sigma\sqrt{2\pi}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right)

Normal distribution bell curve with mean μ and standard deviation σ marked, showing 68-95-99.7 rule

Notation: XN(μ,σ2)X \sim N(\mu, \sigma^2).

Mean: μ\mu

Variance: σ2\sigma^2

Standard normal (μ=0\mu = 0, σ=1\sigma = 1):

f(z)=12πez2/2f(z) = \frac{1}{\sqrt{2\pi}} e^{-z^2/2}

Cumulative distribution function: Φ(z)=12πzet2/2dt\Phi(z) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{z} e^{-t^2/2}\,dt


Central Limit Theorem

If X1,X2,,XnX_1, X_2, \ldots, X_n are independent, identically distributed random variables with mean μ\mu and variance σ2\sigma^2, then:

Xˉμσ/nN(0,1)as n\frac{\bar{X} - \mu}{\sigma/\sqrt{n}} \to N(0, 1) \quad \text{as } n \to \infty

where Xˉ=1nXi\bar{X} = \frac{1}{n}\sum X_i.

Significance: Sample means tend toward normal distribution, regardless of the underlying distribution (provided it has finite variance).


Stirling’s Approximation

ln(n!)nlnnn\ln(n!) \approx n\ln n - n

More precisely: n!nnen2πnn! \approx n^n e^{-n} \sqrt{2\pi n}

Derivation sketch: ln(n!)=k=1nlnk1nlnxdx=nlnnn+1\ln(n!) = \sum_{k=1}^{n} \ln k \approx \int_1^n \ln x\,dx = n\ln n - n + 1

Use in probability: Essential for approximating binomial coefficients in limiting cases.