STA 474 · Probability Theory
Our notes
2 min readDefinition
A random variable on (Ω, F, P) is a function X: Ω → ℝ that is measurable: for every Borel set B, the set {ω : X(ω) ∈ B} = X⁻¹(B) is in F.
It is enough to check sets of the form (−∞, x]: X is measurable if {X ≤ x} is in F for all real x (because these sets form a π-system generating B(ℝ)).
Why measurability matters
We need P(X ∈ B) to make sense for every Borel set B. Measurability guarantees that X⁻¹(B) is an event.
Building measurable functions
- Indicator of an event A: 1_A(ω) = 1 if ω ∈ A, 0 otherwise. Measurable because A is.
- Simple functions: finite sums Σ aᵢ 1_{Aᵢ}.
- Sums, products, maxima, minima of random variables are random variables.
- Continuous (indeed Borel) functions of random variables are random variables: if g is Borel, g(X) is.
- Limits: sup Xₙ, inf Xₙ, limsup Xₙ, liminf Xₙ are measurable (allowing ±∞), so a pointwise limit of random variables is a random variable.
- Every non-negative random variable is the increasing limit of simple ones: Xₙ = min(n, ⌊2ⁿX⌋ / 2ⁿ). This is the key to defining expectation.
The law (distribution) of X
X carries P from Ω to ℝ: P_X(B) = P(X ∈ B) is a probability on B(ℝ), called the law or distribution of X. It is fixed by the distribution function F(x) = P(X ≤ x), which is:
- non-decreasing,
- right-continuous,
- F(x) → 0 as x → −∞ and → 1 as x → ∞.
Jumps: P(X = x) = F(x) − F(x−).
Types of distribution
- Discrete: P_X sits on a countable set (binomial, Poisson).
- Absolutely continuous: there is a density f with F(x) = ∫ f(t) dt from −∞ to x (normal, exponential).
- Singular continuous: F is continuous but has no density (the Cantor distribution).
- Lebesgue decomposition: every distribution is a mix of these three.
σ-algebra generated by X
σ(X) = {X⁻¹(B) : B Borel} is the information X carries. A random variable Y is σ(X)-measurable if and only if Y = g(X) for some Borel function g (the Doob-Dynkin lemma).
Worked example
Toss a fair coin twice: Ω = {HH, HT, TH, TT}. Let X = number of heads. σ(X) contains {HH}, {HT, TH}, {TT} and all their unions: 8 sets. The event "first toss is H" = {HH, HT} is not in σ(X): knowing X = 1 does not tell you which toss was the head.
Exams usually ask
- Define a random variable and its law; prove that sums and limits are measurable.
- Show that a distribution function is right-continuous, using continuity of P.
Common mistake
Thinking any function of the outcome is a random variable. On a general space, measurability must be checked (it is automatic only when F is the power set).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.