Docsity

Moment Generating Function and It's Applications, Summaries of Applied Mathematics

Toggle sidebar
bg1
MOMENT GENERATING FUNCTION AND IT’S APPLICATIONS
ASHWIN RAO
The purpose of this note is to introduce the Moment Generating Function (MGF) and demon-
strate it’s utility in several applications in Applied Mathematics.
1. The Moment Generating Function (MGF)
The Moment Generating Function (MGF) of a random variable x(discrete or continuous) is
defined as a function fx:R→R+such that:
(1) fx(t) = Ex[etx] for all t∈R
Let us denote the nth-derivative of fxas f(n)
x:R→Rfor all n∈Z≥0(f(0)
xis defined to be
simply the MGF fx).
(2) f(n)
x(t) = Ex[xn·etx] for all n∈Z≥0for all t∈R
(3) f(n)
x(0) = Ex[xn]
(4) f(n)
x(1) = Ex[xn·ex]
Equation (3) tells us that f(n)(0) gives us the nth moment of x. In particular, f(1)
x(0) = f0(0)
gives us the mean and f(2)
x(0)−(f(1)
x(0))2=f00
x(0)−(f0
x(0))2gives us the variance. Note that this
holds true for any distribution for x. This is rather convenient since all we need is the functional
form for the distribution of x. This would lead us to the expression for the MGF (in terms of t).
Then, we take derivatives of this MGF and evaluate those derivatives at 0 to obtain the moments
of x.
Equation (4) helps us calculate the often-appearing expectation Ex[xn·ex]. In fact, Ex[ex]
and Ex[x·ex] are very common in several areas of Applied Mathematics. Again, note that this
holds true for any distribution for x.
MGF should be thought of as an alternative specification of a random variable (alternative to
specifying it’s Probability Distribution). This alternative specification is very valuable because it
can sometimes provide better analytical tractability than working with the Probability Density
Function or Cumulative Distribution Function (as an example, see the below section on MGF
for linear functions of independent random variables).
2. MGF for Linear Functions of Random Variables
Consider mindependent random variables x1, x2, . . . , xm. Let α0, α1, . . . , αm∈R. Now
consider the random variable
x=x0+
m
X
i=1
αixi
1
pf3

Partial preview of the text

Download Moment Generating Function and It's Applications and more Summaries Applied Mathematics in PDF only on Docsity!

MOMENT GENERATING FUNCTION AND IT’S APPLICATIONS

ASHWIN RAO

The purpose of this note is to introduce the Moment Generating Function (MGF) and demon- strate it’s utility in several applications in Applied Mathematics.

  1. The Moment Generating Function (MGF) The Moment Generating Function (MGF) of a random variable x (discrete or continuous) is defined as a function fx : R → R+^ such that:

(1) fx(t) = Ex[etx] for all t ∈ R

Let us denote the nth-derivative of fx as f (^) x(n ): R → R for all n ∈ Z≥ 0 (f (^) x(0) is defined to be simply the MGF fx).

(2) f (^) x(n )(t) = Ex[xn^ · etx] for all n ∈ Z≥ 0 for all t ∈ R

(3) f (^) x(n )(0) = Ex[xn]

(4) f (^) x(n )(1) = Ex[xn^ · ex]

Equation (3) tells us that f (n)(0) gives us the nth^ moment of x. In particular, f (^) x(1) (0) = f ′(0)

gives us the mean and f (^) x(2) (0)−(f (^) x(1) (0))^2 = f (^) x′′ (0)−(f (^) x′(0))^2 gives us the variance. Note that this holds true for any distribution for x. This is rather convenient since all we need is the functional form for the distribution of x. This would lead us to the expression for the MGF (in terms of t). Then, we take derivatives of this MGF and evaluate those derivatives at 0 to obtain the moments of x. Equation (4) helps us calculate the often-appearing expectation Ex[xn^ · ex]. In fact, Ex[ex] and Ex[x · ex] are very common in several areas of Applied Mathematics. Again, note that this holds true for any distribution for x. MGF should be thought of as an alternative specification of a random variable (alternative to specifying it’s Probability Distribution). This alternative specification is very valuable because it can sometimes provide better analytical tractability than working with the Probability Density Function or Cumulative Distribution Function (as an example, see the below section on MGF for linear functions of independent random variables).

  1. MGF for Linear Functions of Random Variables Consider m independent random variables x 1 , x 2 ,... , xm. Let α 0 , α 1 ,... , αm ∈ R. Now consider the random variable

x = x 0 +

∑^ m

i=

αixi

1

2 ASHWIN RAO

The Probability Density Function of x is complicated to calculate as it involves convolutions. However, observe that the MGF fx of x is given by:

(5) fx(t) = E[et(α^0 +

∑m i=1 αixi)] = eα^0 t^ ·

∏^ m

i=

E[etαixi^ ] = eα^0 t^ ·

∏^ m

i=

fαixi (t) = eα^0 t^ ·

∏^ m

i=

fxi (αit)

This means the MGF of x can be calculated as eα^0 t^ times the product of the MGFs of αixi (or of αi-scaled MGFs of xi) for all i = 1, 2 ,... , m. This gives us a much better way to analytically tract the probability distribution of x (compared to the convolution approach).

  1. MGF for the Normal Distribution Here we assume that the random variables x follows a normal distribution. Let x ∼ N (μ, σ^2 ).

(6) fx∼N (μ,σ (^2) )(t) = Ex∼N (μ,σ (^2) )[etx]

=

−∞

2 πσ

· e−^

(x−μ)^2 (7)^2 σ^2 · etx^ · dx

−∞

2 πσ

· e−^

(x−(μ+tσ^2 ))^2 2 σ^2 · eμt+^ σ^22 t 2 (8) · dx

= eμt+^

σ^22 t 2 (9) · Ex∼N (μ+tσ^2 ,σ^2 )[1]

= eμt+^

σ^22 t^2 (10)

(11) f (^) x′∼N (μ,σ (^2) )(t) = Ex∼N (μ,σ (^2) )[x · etx] = (μ + σ^2 t) · eμt+^

σ^22 t^2

(12) f (^) x′′∼N (μ,σ (^2) )(t) = Ex∼N (μ,σ (^2) )[x^2 · etx] = ((μ + σ^2 t)^2 + σ^2 ) · eμt+^

σ^22 t^2

(13) f (^) x′∼N (μ,σ (^2) )(0) = Ex∼N (μ,σ (^2) )[x] = μ

(14) f (^) x′′∼N (μ,σ (^2) )(0) = Ex∼N (μ,σ^2 )[x^2 ] = μ^2 + σ^2

(15) f (^) x′∼N (μ,σ (^2) )(1) = Ex∼N (μ,σ^2 )[x · ex] = (μ + σ^2 )eμ+^

σ 22

(16) f (^) x′′∼N (μ,σ (^2) )(1) = Ex∼N (μ,σ (^2) )[x^2 · ex] = ((μ + σ^2 )^2 + σ^2 )eμ+^ σ 22

  1. Minimizing the MGF Now let us consider the problem of minimizing the MGF. The problem is to: min t∈R

fx(t) = min t∈R

Ex[etx]

This problem of minimizing Ex[etx] shows up a lot in various places in Applied Mathematics when dealing with exponential functions (eg: when optimizing the Expectation of a Constant

Absolute Risk-Aversion Utility function U (y) = −e

−γy γ where^ γ^ is the coefficient of risk-aversion and where y is a parameterized function of a random variable x). Let us denote t∗^ as the value of t that minimizes the MGF. Specifically, t∗^ = arg min t∈R

fx(t) = arg min t∈R

Ex[etx]