Mehmet Emre Tiryaki
Back to Notes

Expectation and Integration

Simple Random Variables

For a simple RV X:Ω→RX : \Omega \to \mathbb{R} with distinct values a1,…,aKa_1, \ldots, a_K,

X=∑i=1Kai1Ai,Ai={X=ai}X = \sum_{i=1}^{K} a_i \mathbf{1}_{A_i}, \qquad A_i = \{X = a_i\}

The AiA_i form a measurable partition of Ω\Omega and σ(X)=σ(A1,…,AK)\sigma(X) = \sigma(A_1, \ldots, A_K).

Let E\mathcal{E} be the collection of all measurable simple functions, and let X=∑i=1Kai1AiX = \sum_{i=1}^{K} a_i \mathbf{1}_{A_i}, Y=∑j=1mbj1BjY = \sum_{j=1}^{m} b_j \mathbf{1}_{B_j}.

  1. E\mathcal{E} is a vector space over R\mathbb{R}. For c∈Rc \in \mathbb{R}, cX=∑i=1Kcai1Ai∈EcX = \sum_{i=1}^{K} c a_i \mathbf{1}_{A_i} \in \mathcal{E} and X+Y=∑i∑j(ai+bj)1Ai∩Bj∈EX + Y = \sum_{i} \sum_{j} (a_i + b_j) \mathbf{1}_{A_i \cap B_j} \in \mathcal{E}.
  2. E\mathcal{E} is closed under products, max and min.

Measurability Theorem X:Ω→[0,∞]X : \Omega \to [0, \infty] is measurable iff there is a sequence Xn∈EX_n \in \mathcal{E} with 0≤Xn↑X0 \le X_n \uparrow X pointwise. That is, X≥0X \ge 0 is measurable iff there are simple Xn↑XX_n \uparrow X.

Here Xn↑XX_n \uparrow X means XnX_n is non-decreasing and Xn→XX_n \to X.

Expectation

For X=∑i=1nai1Ai∈EX = \sum_{i=1}^{n} a_i \mathbf{1}_{A_i} \in \mathcal{E} with ai∈Ra_i \in \mathbb{R}, Ai∈FA_i \in \mathcal{F},

E(X)=∫X dP=∑i=1naiP(Ai)E(X) = \int X \, dP = \sum_{i=1}^{n} a_i P(A_i)

On E\mathcal{E},

  1. E(1)=1E(1) = 1, E(1A)=P(A)E(\mathbf{1}_A) = P(A),
  2. if X≥0X \ge 0 then E(X)≥0E(X) \ge 0,
  3. EE is linear,
  4. EE is monotone,
  5. if Xn↑XX_n \uparrow X in E\mathcal{E} then E(Xn)↑E(X)E(X_n) \uparrow E(X).

Let E‾+\overline{\mathcal{E}}_+ be the set of all nonnegative measurable RVs. For X∈E‾+X \in \overline{\mathcal{E}}_+ choose Xn∈EX_n \in \mathcal{E}, Xn≥0X_n \ge 0, with Xn↑XX_n \uparrow X, and define

E(X):=lim⁡n→∞E(Xn)E(X) := \lim_{n \to \infty} E(X_n)

This does not depend on the choice of XnX_n. On E‾+\overline{\mathcal{E}}_+, 0≤E(X)≤∞0 \le E(X) \le \infty, and EE is monotone and linear. Convention: 0⋅∞=00 \cdot \infty = 0.

Monotone Convergence Theorem (MCT) If Xn,X∈E‾+X_n, X \in \overline{\mathcal{E}}_+ and Xn↑XX_n \uparrow X, then E(Xn)↑E(X)E(X_n) \uparrow E(X). Equivalently

E(lim⁡nXn)=lim⁡nE(Xn)E\Big(\lim_{n} X_n\Big) = \lim_{n} E(X_n)

As a consequence, if ξj≥0\xi_j \ge 0 are RVs,

E(∑j=1∞ξj)=∑j=1∞E(ξj)E\Big(\sum_{j=1}^{\infty} \xi_j\Big) = \sum_{j=1}^{\infty} E(\xi_j)

Integrable Random Variables

For measurable X:Ω→R‾X : \Omega \to \overline{\mathbb{R}}, let X+:=X∨0X^+ := X \vee 0 and X−:=(−X)∨0X^- := (-X) \vee 0. Then ∣X∣=X++X−|X| = X^+ + X^- and X=X+−X−X = X^+ - X^-.

XX is quasi-integrable if E(X+)<∞E(X^+) < \infty or E(X−)<∞E(X^-) < \infty, and then

E(X):=E(X+)−E(X−)E(X) := E(X^+) - E(X^-)

XX is integrable if E∣X∣=E(X+)+E(X−)E|X| = E(X^+) + E(X^-) is finite.

L1(P)={X:Ω→R‾:X measurable, E∣X∣<∞}L^1(P) = \{X : \Omega \to \overline{\mathbb{R}} : X \text{ measurable},\ E|X| < \infty\}
  1. If X∈L1(P)X \in L^1(P) then P(∣X∣=∞)=0P(|X| = \infty) = 0.
  2. EE is linear on L1(P)L^1(P).
  3. EE is monotone.
  4. If X1∈L1(P)X_1 \in L^1(P) and Xn↑XX_n \uparrow X, then E(Xn)↑E(X)E(X_n) \uparrow E(X).
  5. ∣E(X)∣≤E∣X∣|E(X)| \le E|X|.
Var(X):=E[(X−E[X])2]=E[X2]−E[X]2\mathrm{Var}(X) := E[(X - E[X])^2] = E[X^2] - E[X]^2 Cov(X,Y):=E[XY]−E[X]E[Y]\mathrm{Cov}(X,Y) := E[XY] - E[X]E[Y]

Fatou and Dominated Convergence

Fatou If Xn≥0X_n \ge 0 are RVs, then

E[lim inf⁡n→∞Xn]≤lim inf⁡n→∞E(Xn)E\Big[\liminf_{n \to \infty} X_n\Big] \le \liminf_{n \to \infty} E(X_n)

General Fatou If Xn≥ZX_n \ge Z with Z∈L1Z \in L^1, then E[lim inf⁡Xn]≤lim inf⁡E(Xn)E[\liminf X_n] \le \liminf E(X_n).

Reverse Fatou If Xn≤WX_n \le W with W∈L1W \in L^1, then lim sup⁡E(Xn)≤E(lim sup⁡Xn)\limsup E(X_n) \le E(\limsup X_n).

Dominated Convergence Theorem (DCT) If Xn→XX_n \to X a.s. and ∣Xn∣≤Z|X_n| \le Z with Z∈L1Z \in L^1, then

E(Xn)→E(X)andE∣Xn−X∣→0E(X_n) \to E(X) \quad \text{and} \quad E|X_n - X| \to 0

Integrals over Sets

For X∈L1(P)X \in L^1(P) and A∈FA \in \mathcal{F},

∫AX dP=E(X1A)\int_A X \, dP = E(X \mathbf{1}_A)

so P(A)=E[1A]P(A) = E[\mathbf{1}_A]. For measurable X≥0X \ge 0,

  1. 0≤∫AX dP≤E(X)0 \le \int_A X \, dP \le E(X),
  2. ∫AX dP=0\int_A X \, dP = 0 iff P(A∩{X>0})=0P(A \cap \{X > 0\}) = 0,
  3. for pairwise disjoint AnA_n, ∫∪AnX dP=∑n=1∞∫AnX dP\int_{\cup A_n} X \, dP = \sum_{n=1}^{\infty} \int_{A_n} X \, dP,
  4. if A1⊆A2A_1 \subseteq A_2, ∫A1X dP≤∫A2X dP\int_{A_1} X \, dP \le \int_{A_2} X \, dP,
  5. if An↑AA_n \uparrow A, ∫AnX dP↑∫AX dP\int_{A_n} X \, dP \uparrow \int_A X \, dP. If An↓AA_n \downarrow A the same holds with ↓\downarrow, but this needs ∫A1X dP<∞\int_{A_1} X \, dP < \infty.

Change of Variables

For measurable T:(Ω,F)→(Ω′,F′)T : (\Omega, \mathcal{F}) \to (\Omega', \mathcal{F}'), the induced measure is P′=P∘T−1P' = P \circ T^{-1}, i.e. P′(A′)=P(T−1(A′))P'(A') = P(T^{-1}(A')) for A′∈F′A' \in \mathcal{F}'. For measurable X′:(Ω′,F′)→(R,B(R))X' : (\Omega', \mathcal{F}') \to (\mathbb{R}, \mathcal{B}(\mathbb{R})),

  1. if X′≥0X' \ge 0, ∫ΩX′∘T dP=∫Ω′X′ dP′\int_\Omega X' \circ T \, dP = \int_{\Omega'} X' \, dP',
  2. X′∈L1(P′)X' \in L^1(P') iff X′∘T∈L1(P)X' \circ T \in L^1(P), and then the same equality holds.

Let XX be a real valued RV with distribution PX=P∘X−1P_X = P \circ X^{-1} and F(x)=P(X≤x)F(x) = P(X \le x). If g:R→Rg : \mathbb{R} \to \mathbb{R} is Borel measurable and either g≥0g \ge 0 or E∣g(X)∣<∞E|g(X)| < \infty, then

E(g(X))=∫Rg(x) PX(dx)=∫Rg(x) dF(x)E(g(X)) = \int_{\mathbb{R}} g(x) \, P_X(dx) = \int_{\mathbb{R}} g(x) \, dF(x)

In particular E(X)=∫Rx dF(x)E(X) = \int_{\mathbb{R}} x \, dF(x).

Densities

The distribution of X∈RkX \in \mathbb{R}^k is absolutely continuous with respect to Lebesgue measure if there is a nonnegative Borel measurable ff such that for all A∈B(Rk)A \in \mathcal{B}(\mathbb{R}^k),

PX(A)=∫Af(x1,…,xk) dx1⋯dxkP_X(A) = \int_A f(x_1, \ldots, x_k) \, dx_1 \cdots dx_k

Then f≥0f \ge 0 and ∫f=1\int f = 1.

Measures

A measure on (Ω,F)(\Omega, \mathcal{F}) is μ:F→[0,∞]\mu : \mathcal{F} \to [0, \infty] such that μ(∅)=0\mu(\emptyset) = 0 and μ\mu is σ\sigma-additive for disjoint sets in F\mathcal{F}.

μ\mu is σ\sigma-finite if there are An∈FA_n \in \mathcal{F} with Ω=⋃n≥1An\Omega = \bigcup_{n \ge 1} A_n and μ(An)<∞\mu(A_n) < \infty for all nn.

Riemann Integral

For bounded f:[a,b]→Rf : [a,b] \to \mathbb{R} and a partition Q:a=x0<x1<⋯<xn=bQ : a = x_0 < x_1 < \cdots < x_n = b, let mi:=inf⁡x∈[xi−1,xi]f(x)m_i := \inf_{x \in [x_{i-1}, x_i]} f(x) and Mi:=sup⁡x∈[xi−1,xi]f(x)M_i := \sup_{x \in [x_{i-1}, x_i]} f(x).

L(f,Q)=∑i=1nmi(xi−xi−1),U(f,Q)=∑i=1nMi(xi−xi−1)L(f,Q) = \sum_{i=1}^{n} m_i (x_i - x_{i-1}), \qquad U(f,Q) = \sum_{i=1}^{n} M_i (x_i - x_{i-1})

ff is Riemann integrable if sup⁡QL(f,Q)=inf⁡QU(f,Q)\sup_Q L(f,Q) = \inf_Q U(f,Q). If f:[a,b]→Rf : [a,b] \to \mathbb{R} is measurable and Riemann integrable, it is Lebesgue integrable with the same integral.

Almost Sure Equality

Let X,X′X, X' be real RVs with X∈L1(P)X \in L^1(P).

  1. If P(X=X′)=1P(X = X') = 1, then X′∈L1(P)X' \in L^1(P) and E(X′)=E(X)E(X') = E(X).
  2. Let P⊆F\mathcal{P} \subseteq \mathcal{F} be a π\pi-system with Ω∈P\Omega \in \mathcal{P} and σ(P)=F\sigma(\mathcal{P}) = \mathcal{F}. If also X′∈L1(P)X' \in L^1(P), then P(X=X′)=1P(X = X') = 1 iff ∫AX dP=∫AX′ dP\int_A X \, dP = \int_A X' \, dP for all A∈PA \in \mathcal{P}.