Professional Documents
Culture Documents
Expectation, Moments
and Moment Generating
Functions
Page 2
Mean and Variance
Observations:
Expectation, Moments
and Moment Generating
Functions
Page 4
Mean and Variance
Remarks:
Expectation, Moments
and Moment Generating
Functions
Page 5
Mean and Variance
Remarks:
Expectation, Moments
and Moment Generating
Functions
Page 6
Mean and Variance
2. E[X] is the center of gravity (or centroid) of the
unit mass that is determined by the density function
of X. So the mean of X is a measure of where the
values of the random variable X are" centered.“
Expectation, Moments
and Moment Generating
Functions
Page 7
Mean and Variance
Example 1. The probability function for the
number of seizures, X, of a typical epileptic
person in any given year is given in the
following table.
Expectation, Moments
and Moment Generating
Functions
Page 8
Mean and Variance
Sol’n.
𝐸 𝑋 = 𝑥𝑗 𝑓(𝑥𝑗 )
Expectation, Moments
and Moment Generating
Functions
Page 9
Mean and Variance
Example 2. Fair six-sided die is labelled in one of
three ways: there are two sides labelled 1, three
sides labelled 2 and one side labelled 3. If it costs $1
to play and you win $1 × result from die, what is the
expected value of this game?
Die 1 2 3
x, payoff 0 1 2
2 3 1 5
𝐸 𝑋 = 𝑥𝑗 𝑓 𝑥𝑗 =0 +1 +2 =
6 6 6 6
Expectation, Moments
and Moment Generating
Functions
Page 10
Mean and Variance
Example 3. Let the random variable X denote the
time a person waits for an elevator to arrive.
Suppose the longest one would need to wait for
the elevator is 2 minutes, so that the possible
values of X (in minutes) are given by the
interval [0,2]. A possible pdf for X is given by
Expectation, Moments
and Moment Generating
Functions
Page 12
Mean and Variance
Sol’n.
Expectation, Moments
and Moment Generating
Functions
Page 13
Mean and Variance
Example 4. Let X be the random variable with
density function given by
−2𝑥
𝑓 𝑥 =ቊ2𝑒 if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 14
Mean and Variance
Sol’n. 𝑓 𝑥 =ቊ 2𝑒 −2𝑥
if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 15
Mean and Variance
Expectation, Moments
and Moment Generating
Functions
Page 16
Mean and Variance
Note:
Expectation, Moments
and Moment Generating
Functions
Page 18
Mean and Variance
5
𝐸 𝑋 =
6
Expectation, Moments
and Moment Generating
Functions
Page 19
Mean and Variance
Sol’n.
𝑉𝑎𝑟 𝑋
2 2 2
2 5 2 5 3 5 1 17
= 𝑥𝑗 − 𝜇 𝑓 𝑥𝑗 = 0− + 1− + 2− =
6 6 6 6 6 6 36
Expectation, Moments
and Moment Generating
Functions
Page 20
Mean and Variance
Example 2. Find the variance of the random variable
X in example 4.
2𝑒 −2𝑥 if 𝑥 > 0
Sol’n. 𝑓 𝑥 =ቊ
0 elsewhere
E(X) = 1/2
Expectation, Moments
and Moment Generating
Functions
Page 21
Mean and Variance
Example 2. Find the variance of the random variable
X in example 4.
2𝑒 −2𝑥 if 𝑥 > 0
Sol’n. 𝑓 𝑥 =ቊ
0 elsewhere
E(X) = 1/2
Expectation, Moments
and Moment Generating
Functions
Page 22
Mean and Variance
Sol’n.
+∞ 2
1
𝑉𝑎𝑟 𝑋 = න 𝑥− . 2𝑒 −2𝑥 𝑑𝑥
0 2
+∞ 2 1
= 20 𝑥 −𝑥+ 4
𝑒 −2𝑥 𝑑𝑥
+∞ 2 −2𝑥 +∞ +∞ 1 −2𝑥
=2 0 𝑥 𝑒 𝑑𝑥 − 0 𝑥𝑒 −2𝑥 𝑑𝑥 + 0 𝑒 𝑑𝑥
4
1
𝑉𝑎𝑟 𝑋 = 4
Expectation, Moments
and Moment Generating
Functions
Page 23
Mean and Variance
Expectation, Moments
and Moment Generating
Functions
Page 24
Mean and Variance
Expectation, Moments
and Moment Generating
Functions
Page 25
Mean and Variance
Proof of (iv)
Expectation, Moments
and Moment Generating
Functions
Page 26
Mean and Variance
Proof.
Expectation, Moments
and Moment Generating
Functions
Page 27
Mean and Variance
Theorem. Below are some properties of the
variance:
Expectation, Moments
and Moment Generating
Functions
Page 28
Mean and Variance
Proof. (3) Var [c g(x) + d] = c2 Var [g(x)]
Expectation, Moments
and Moment Generating
Functions
Page 29
Mean and Variance
Expectation, Moments
and Moment Generating
Functions
Page 30
Mean and Variance
Example 1. Suppose X is a random variable with
E(X2) = 16 and E(X) = 2. Find the following:
b) E(5X - 2) Ans. 8
Expectation, Moments
and Moment Generating
Functions
Page 31
Mean and Variance
Example 2. Let X have the pdf
Sol’n.
Expectation, Moments
and Moment Generating
Functions
Page 34
Chebyshev and Jensen Inequality
Proof.
Expectation, Moments
and Moment Generating
Functions
Page 35
Chebyshev and Jensen Inequality
Expectation, Moments
and Moment Generating
Functions
Page 36
Chebyshev and Jensen Inequality
Remarks:
1
1. 𝑃( 𝑋 − 𝜇𝑥 < 𝑟𝜎𝑥 ) ≥ 1 − 𝑟 2 gives a lower bound
1
= 𝑃(𝜇𝑥 − 𝑟𝜎𝑥 < 𝑋 < 𝜇𝑥 + 𝑟𝜎𝑥 ) ≥ 1 −
𝑟2
Sol’n.
Expectation, Moments
and Moment Generating
Functions
Page 38
Chebyshev and Jensen Inequality
Expectation, Moments
and Moment Generating
Functions
Page 39
Chebyshev and Jensen Inequality
Expectation, Moments
and Moment Generating
Functions
Page 40
Chebyshev and Jensen Inequality
Expectation, Moments
and Moment Generating
Functions
Page 41
Chebyshev and Jensen Inequality
Expectation, Moments
and Moment Generating
Functions
Page 42
Chebyshev and Jensen Inequality
To use Jensen Inequality, we need to determine if a
function g is convex.
Expectation, Moments
and Moment Generating
Functions
Page 43
Chebyshev and Jensen Inequality
Note if 𝑎 = 0, then
𝐸 𝑋 0 = 𝐸 1 = 1 and
(𝐸[𝑋])0 = 1
Note if 𝑎 = 1, then
𝐸 𝑋1 = 𝐸 𝑋 and
(𝐸[𝑋])1 = 𝐸[𝑋]
Expectation, Moments
and Moment Generating
Functions
Page 44
Chebyshev and Jensen Inequality
For 𝑎 ≠ 0 and 𝑎 ≠ 1, let 𝑔 𝑥 = 𝑥 𝑎 . Then
𝑔′ 𝑥 = 𝑎𝑥 𝑎−1
𝑔′′ 𝑥 = 𝑎(𝑎 − 1)𝑥 𝑎−2
𝐸[𝑋 𝑎 ] ≥ (𝐸[𝑋])𝑎
Illustration:
𝜇1′ = 𝐸 𝑋1 = 𝐸 𝑋 = 𝜇𝑋
𝜇2′ = 𝐸 𝑋 2
𝜇3′ = 𝐸 𝑋 3
Expectation, Moments
and Moment Generating
Functions
Page 46
Moments and
Moment Generating Function
Illustration:
𝜇1 = 𝐸 (𝑋 − 𝜇𝑋 )1 = 0
𝜇2 = 𝐸 (𝑋 − 𝜇𝑋 )2 = 𝜎𝑋2
𝜇3 = 𝐸 𝑋 − 𝜇𝑋 3 (measure of skewness
or asymmetry)
𝜇4 = 𝐸 𝑋 − 𝜇𝑋 4 (measure of excess or
Expectation, Moments kurtosis)
and Moment Generating
Functions
Page 47
Moments and
Moment Generating Function
Note:
𝜇3
1. The ratio 3 which is a unitless is called the
𝜎
coefficient of skewness. In general,
𝜇3
< 0, the distribution is skewed to the left
𝜎3
𝜇3
> 0, the distribution is skewed to the right
𝜎3
𝜇3
= 0, the distribution is symmetric
𝜎3
Expectation, Moments
and Moment Generating
Functions
Page 48
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 49
Moments and
Moment Generating Function
2. The quantity
𝓈 = (𝑚𝑒𝑎𝑛 − 𝑚𝑒𝑑𝑖𝑎𝑛)/(𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑 𝑑𝑒𝑣𝑎𝑖𝑡𝑖𝑜𝑛)
Expectation, Moments
and Moment Generating
Functions
Page 51
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 52
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 53
Moments and
Moment Generating Function
Solution.
Q1
Expectation, Moments
and Moment Generating
Functions
Page 54
Moments and
Moment Generating Function
Q2
Q3
Expectation, Moments
and Moment Generating
Functions
Page 55
Moments and
Moment Generating Function
1
2. Let 𝑓𝑋 𝑥 = 𝑥 𝐼[0,2] . Find the median of X.
2
Sol’n.
Expectation, Moments
and Moment Generating
Functions
Page 56
Moments and
Moment Generating Function
Illustration:
At r = 1, E(X)
At r = 2, E[X(X – 1)]
At r = 3, E[X(X – 1)(X – 2)]
Expectation, Moments
and Moment Generating
Functions
Page 57
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 58
Moments and
Moment Generating Function
Applications:
Expectation, Moments
and Moment Generating
Functions
Page 59
Moments and
Moment Generating Function
𝑚𝑋 𝑡 = 𝐸( 𝑒 𝑡𝑥 )
𝑥𝑡 2 𝑥𝑡 3 𝑥𝑡 4
= 𝐸( 1 + 𝑥𝑡 + 2! + 3! + 4! + ⋯)
𝑡2 𝐸 𝑥 2 𝑡3 𝐸 𝑥 3
=1+𝑡𝐸 𝑥 + +
2! 3!
𝑡4 𝐸 𝑥 4
+ +⋯)
4!
2 3 4
𝑡 𝑡 𝑡
= 1 + 𝑡𝜇1′ + 𝜇2′ + 𝜇3′ + 𝜇4′ + ⋯
2! 3! 4!
Expectation, Moments
and Moment Generating
Functions
Page 60
Moments and
Moment Generating Function
−2𝑥
𝑓 𝑥 =ቊ 2𝑒 if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 61
Moments and
Moment Generating Function
2𝑒 −2𝑥 if 𝑥 > 0
Sol’n. 𝑓 𝑥 =ቊ
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 62
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 63
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 64
Moments and
Moment Generating Function
𝑒 −3 3𝑥
𝑓𝑋 𝑥 = ቐ 𝑥! , 𝑥 = 0, 1, 2, …
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 65
Moments and
Moment Generating Function
𝑒 −3 3𝑥
Sol’n. 𝑓𝑋 𝑥 = ቐ 𝑥! , 𝑥 = 0, 1, 2, …
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 66
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 67
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 68
Moments and
Moment Generating Function
1 𝑡 2 2𝑡 3 3𝑡
Example 3. Let 𝑚𝑋 𝑡 = 𝑒 + 𝑒 + 𝑒 . Find
6 6 6
the density function of X.
Sol’n.
Expectation, Moments
and Moment Generating
Functions
Page 69
Moments and
Moment Generating Function
1. 𝑚𝑋+𝑎 𝑡 = 𝑒 𝑎𝑡 ∙ 𝑚𝑋 (𝑡)
2. 𝑚𝑏𝑋 𝑡 = 𝑚𝑋 (𝑏𝑡)
𝑎
𝑡 𝑡
3. 𝑚𝑋+𝑎 𝑡 = 𝑒 𝑏 ∙ 𝑚𝑋
𝑏
𝑏
Expectation, Moments
and Moment Generating
Functions
Page 70
Moments and
Moment Generating Function
−2𝑥
𝑓 𝑥 =ቊ 2𝑒 if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 71
Moments and
Moment Generating Function
Sol’n. 𝑓 𝑥 = ቊ2𝑒
−2𝑥
if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 72
Moments and
Moment Generating Function
Cont’.
Expectation, Moments
and Moment Generating
Functions
Page 73
Moments and
Moment Generating Function
Expectation, Moments
and Moment Generating
Functions
Page 74
Moments and
Moment Generating Function
Remark:
The factorial moment generating function is used to generate
factorial moments in the same way as the raw moments are
obtained from E[etX] except that t approaches 1 instead of 1.
It sometimes simplifies finding moments of discrete
distributions
𝑑 𝑥
Note: 𝑑𝑡
𝐸 𝑡 |𝑡=1 = 𝐸(𝑋)
𝑑 ′′ 𝑥 |
𝐸 𝑡 𝑡=1 = 𝐸[(𝑋 𝑋−1 ]
𝑑𝑡 2
⋮
𝑑𝑟
𝐸 𝑡 𝑥 |𝑡=1 = 𝐸[(𝑋 𝑋 − 1 𝑋 − 2 … (𝑋 − 𝑟 + 1)]
𝑑𝑡 𝑟
Expectation, Moments
and Moment Generating
Functions
Page 75
Moments and
Moment Generating Function
𝑒 −3 3𝑥
𝑓𝑋 𝑥 = ቐ 𝑥! , 𝑥 = 0, 1, 2, …
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 76
Moments and
Moment Generating Function
Sol’n. 𝑒 −3 3𝑥
𝑓𝑋 𝑥 = ቐ 𝑥! , 𝑥 = 0, 1, 2, …
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 77
Moments and
Moment Generating Function
E(X)
Expectation, Moments
and Moment Generating
Functions
Page 78
Moments and
Moment Generating Function
Var(X)
Expectation, Moments
and Moment Generating
Functions
Page 79
Moments and
Moment Generating Function
−2𝑥
𝑓 𝑥 =ቊ 2𝑒 if 𝑥 > 0
0 elsewhere
Expectation, Moments
and Moment Generating
Functions
Page 80
Moments and
Moment Generating Function
Soln.
Expectation, Moments
and Moment Generating
Functions
Page 81
Moments and
Moment Generating Function
E(X)
Expectation, Moments
and Moment Generating
Functions
Page 82
Moments and
Moment Generating Function
Var(X)
Expectation, Moments
and Moment Generating
Functions
Page 83