Docsity

Expectations of Random Variables: Properties and Calculations, Study notes of Probability and Statistics

Toggle sidebar
bg1
Lecture 11
1. Some properties of expectations
Suppose Xis a random variable with mass function f. If Y=g(X) for
some function g, then what is the expectation of Y? One way to address
this is to first find the mass function fYof Y, and then to compute EYas
!aafY(a) [provided that the sum makes sense, of course]. But there is a
more efficient method.
Theorem 11.1. If Xhas mass function fand gis some function, then
E [g(X)] = "
x
g(x)f(x),
provided that either g(x)≥0for all x, or !x|g(x)|f(x)<∞.
Proof. Let y1, y2, . . . denote the possible values of g(X). Consider the set
Aj={x:g(x) = yj}for all j≥1. Because the yj’s are distinct, it follows
that the Aj’s are disjoint. Moreover,
E [g(X)] =
∞
"
j=1
yjP{g(X) = yj}=
∞
"
j=1
yjP{X∈Aj}
=
∞
"
j=1
yj"
x∈Aj
f(x) =
∞
"
j=1 "
x∈Aj
g(x)f(x).
Because the Aj’s are disjoint,
∞
"
j=1 "
x∈Aj
g(x)f(x) = "
x∈∪∞
j=1Aj
g(x)f(x).
The theorem follows from making one final observation: ∪∞
j=1Ajis the col-
lection of all possible values of X.!
37
pf3
pf4

Partial preview of the text

Download Expectations of Random Variables: Properties and Calculations and more Study notes Probability and Statistics in PDF only on Docsity!

Lecture 11

1. Some properties of expectations

Suppose X is a random variable with mass function f. If Y = g(X) for some function g, then what is the expectation of Y? One way to address th∑is is to first find the mass function fY of Y , and then to compute EY as

a afY^ (a)^ [provided^ that^ the^ sum^ makes^ sense,^ of^ course].^ But^ there^ is^ a more efficient method.

Theorem 11.1. If X has mass function f and g is some function, then

E [g(X)] =

x

g(x)f (x),

provided that either g(x) ≥ 0 for all x, or

x |g(x)|f^ (x)^ <^ ∞.

Proof. Let y 1 , y 2 ,... denote the possible values of g(X). Consider the set Aj = {x : g(x) = yj } for all j ≥ 1. Because the yj ’s are distinct, it follows that the Aj ’s are disjoint. Moreover,

E [g(X)] =

∑^ ∞

j=

yj P{g(X) = yj } =

∑^ ∞

j=

yj P{X ∈ Aj }

∑^ ∞

j=

yj

x∈Aj

f (x) =

∑^ ∞

j=

x∈Aj

g(x)f (x).

Because the Aj ’s are disjoint,

∑^ ∞

j=

x∈Aj

g(x)f (x) =

x∈∪∞ j=1Aj

g(x)f (x).

The theorem follows from making one final observation: ∪∞ j=1Aj is the col- lection of all possible values of X.!

One can derive other properties of expectations by applying similar ar- guments. Here are some useful properties. For proof see the text.

Theorem 11.2. Let X be a discrete random variable with mass function f and finite expectation EX. Then:

(1) E(aX + b) = aE(X) + b for all constants a, b; (2) Ea = a for all nonrandom (constant) variables a; (3) If P{a ≤ X ≤ b} = 1, then a ≤ EX ≤ b; (4) If g(X) and h(X) have finite expectations, then

E[g(X) + h(X)] = E[g(X)] + E[h(X)].

This is called linearity.

2. A first example

Suppose X has mass function

f (x) =

1 / 4 if x = 0, 3 / 4 if x = 1, 0 otherwise.

Recall: EX = ( 14 × 0) + ( 34 × 1) = 34. Now let us compute E(X 2 ) using Theorem 11.1:

E(X 2 ) =

× 02

× 12

Two observations:

(1) This is obvious because X = X 2 in this particular example; and (2) E(X 2 ) '= (EX)^2. In fact, the difference between E(X 2 ) and (EX)^2 is an important quantity, called the variance of X. We will return to this topic later.

3. A second example

If X = Bin(n , p), then what is E(X 2 )? It may help to recall that EX = np. By Theorem 11.1,

E(X 2 ) =

∑^ n

k=

k 2

n k

p k^ q n−k^ =

∑^ n

k=

k

n! (k − 1)!(n − k)!

p k^ q n−k^.

Proof. Expand the trivial bound (|X| − E(|X|))^2 ≥ 0 to obtain:

X 2 − 2 |X|E(|X|) +

∣E(|X|)

Take expectations, and note that b = E(|X|) is nonrandom. This proves that E(X 2 ) − 2E(|X|)E(|X|) +

∣E(|X|)

The left-hand side is manifestly equal to E(X 2 ) − |E(|X|)|^2 , whence follows the theorem.!

One can use more advanced methods to prove the following: E(|X|) ≤

E(X 2 ) for all random variables X.

Note that |X| and X 2 are nonnegative. So the expectations are defined, though possibly infinite. The preceding form of the Cauchy–Schwarz in- equality implies that if E(X 2 ) is finite, then so is E(|X|).