UNIHIVE

Study Hub UNIPORT MTH 474

MTH 474 · Probability Theory

Expectation as an integral

Defining E(X) from simple functions, the Lebesgue integral, and computing expectations through the law.

Our notes

2 min read

The construction (three steps)

  1. Simple X = Σ aᵢ 1_{Aᵢ}: E(X) = Σ aᵢ P(Aᵢ).
  2. Non-negative X: E(X) = sup E(S) over simple S with 0 ≤ S ≤ X. Equivalently, the limit of E(Xₙ) for any simple Xₙ increasing to X. It may be +∞.
  3. General X: write X = X⁺ − X⁻ (positive and negative parts). If E|X| < ∞ (X is integrable), E(X) = E(X⁺) − E(X⁻).

This is the Lebesgue integral ∫ X dP.

Properties

  • Linear: E(aX + bY) = aE(X) + bE(Y) for integrable X, Y.
  • Monotone: X ≤ Y a.s. implies E(X) ≤ E(Y).
  • If X ≥ 0 and E(X) = 0, then X = 0 a.s.
  • Change of variables: E(g(X)) = ∫ g(x) dP_X(x). For a density, ∫ g(x) f(x) dx; for a discrete law, Σ g(x) P(X = x). This is why we compute with distributions, not with Ω.

Why the Lebesgue integral

It handles discrete, continuous and mixed laws in one theory, and it has excellent limit theorems (next topic). The Riemann integral cannot deal with functions like the indicator of the rationals (Lebesgue integral 0 on [0, 1]).

Useful formula for non-negative X

E(X) = ∫ P(X > t) dt, from 0 to ∞ (the tail formula). For integer-valued X ≥ 0: E(X) = Σ P(X ≥ n), from n = 1.

Worked example 1: tail formula

X exponential with rate λ = 2: P(X > t) = e^(−2t). E(X) = ∫ e^(−2t) dt from 0 to ∞ = 1/2. Matches 1/λ.

Worked example 2: mixed law

From the earlier example: X is uniform on [0, 1) with weight 1/2 and equals 1 with weight 1/2.
E(X) = (1/2) × (mean of uniform, 1/2) + (1/2) × 1 = 1/4 + 1/2 = 3/4.
Check by the tail formula: P(X > t) = 1 − t/2 for 0 ≤ t < 1. ∫ (1 − t/2) dt from 0 to 1 = 1 − 1/4 = 3/4.

Worked example 3: geometric

P(X = n) = (1/2)ⁿ for n = 1, 2, .... P(X ≥ n) = (1/2)^(n−1). E(X) = Σ (1/2)^(n−1) = 2.

Moments

  • E(Xᵏ) is the k-th moment, when finite.
  • Var(X) = E(X²) − (E X)².
  • If the k-th moment is finite, so is every lower moment (by Jensen or Lyapunov).

Exams usually ask

  • Define E(X) for simple, non-negative and integrable X.
  • Prove the tail formula or use it to compute an expectation.

Common mistake

Writing E(X) for a variable that is not integrable. The Cauchy distribution has no mean: E(X⁺) and E(X⁻) are both infinite.

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.

All MTH 474 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.