Finding Moment Generating Functions for Gamma and Poisson Distributions

In summary: And I am still confused about the 'double of double expectation'...when we take expectation of a function of a random variable, we get a number. What does it mean to take 'expectation of a number'? What does it mean to 'take expectation of something we got after taking expectation'?Thank you!The formula E[E(Y|X)]=E(Y) holds for conditional expectations, which is what you have here. E(Y|X) is a function of X. But E[E(Y|X)] is a number, not a function of anything. Similarly, the formula E[E[e^{tS}|N]] = E[e^{tS}] holds for conditional expectations, which is what you have here
  • #1
kingwinner
1,270
0

Homework Statement


Suppose X1,X2,... are independent each having exponential distirbution with parameter lambda and N has a Poisson(lambda) distribution and is independent of the Xi's. You are given that the moment generating function of a Gamma(alpha,lambda) variable is m(t)=[lambda/(lambda-t)]alpha
Find the moment generating function of SN=X1+X2+...+XN

Homework Equations


Just in case you are confused about the parameters above.
Poisson(lambda) =>E(W)=Var(W)=lambda
W~Gamma(alpha,lambda) => E(W)=alpha/lambda, Var(W)=alpha/lambda^2

The Attempt at a Solution


I know that the moment generating function of a sum of indepedent random variables is the product of the moment generating functions of each random variable. But here we have capital "N" and N follows some other distribution as well. This really scares me off...and I have no clue what to do in this case...

Does anyone have any idea? Please help!
 
Physics news on Phys.org
  • #2
Try the double of double expectation:
First, find the moment generating function of the sum given [tex] N = n [/tex] (this will go in the way you are accustomed)
Second: treat the result of the first step as a function of [tex] n [/tex] and take its expectation with respect to the distribution of [tex] N [/tex].
 
  • #3
Hi statdad,

What is "double of double expectation"?

So SN given some fixed N=n. Define a new random variable to be Y=SN|N=n (holding n constant here)
Y~Gamma(n,lambda) with moment generating function m(t)=[lambda/(lambda-t)]n
What should we do next? I don't quite understand your second comment...I believe here we need the moment generating function, not the expectation...

Thanks for your help!
 
  • #4
You have

[tex]
S_N = X_1 + X_2 + \dots + X_n = \sum_i X_i
[/tex]

where the summands are i.i.d with one distribution, and [tex] N [/tex] has another (Poisson) distribution, independent of the summands. You want

[tex]
m_S (t) = E[e^{tS}]
[/tex]

the moment generating function of the sum. The question -in this definition, with respect to what is the expectation taken? The answer is that it is taken with respect to two distributions - that of the [tex] X [/tex] values as well as that of [tex] N [/tex]. You can do the work as follows.

[tex]
m_S(t) = E[e^{tS}] = E [\underbrace{E[e^{tS} \mid N = n]}_{\substack{\text{Here}\\\text{N is fixed}}}]
[/tex]

That is, you can evaluate

[tex]
E[e^{tS} \mid N = n]
[/tex]

just as you would the the mgf for any sum of independent r.v.s. The result will depend on [tex] n [/tex]: in the second step calculate the expected value of this expression with respect to the Poisson distribution.
 
  • #5
[tex]E[e^{tS} \mid N = n][/tex]=[lambda/(lambda-t)]n

[tex]E[e^{tS} \mid N][/tex]=[lambda/(lambda-t)]N

[tex]E[E[e^{tS} \mid N]][/tex]=E[[lambda/(lambda-t)]N] <---how can we calculate this?

Thank you!
 
  • #6
Use the definition:
[tex]
E[f(N)]=\sum_{n=0}^\infty{f(n)\operatorname{pmf}(n)}
[/tex]

where pmf(n) is the probabilty mass function of the Poisson distribution.
 
  • #7
E[[lambda/(lambda-t)]N]

Since you know the distribution of [tex] N [/tex], use

[tex]
E\left\[ \left(\frac{\lambda}{\lambda - t} \right)^n \right\] =\sum_n \left(\frac{\lambda} {t-\lambda}\right)^n \cdot p(n)
[/tex]

where by [tex] p(n) [/tex] I mean the probability function of [tex] N [/tex] - your Poisson function.

I'm not sure why the final code ended up on two lines.
 
Last edited:
  • #8
E[[lambda/(lambda-t)]N] <--I think here it should be capital N right? It should be the expectation of some 'random variable'. But in your post, it's small n...


And why does it become (t-lambda) in the denominator of your expression? Shouldn't it be (lambda-t)?


We are given: "...N has a Poisson(lambda) distribution and is independent of the Xi's" <---in which step did we actually used the fact that N is independent of the Xi's? Is this just extraneous information?
 
Last edited:
  • #9
kingwinner said:
E[[lambda/(lambda-t)]N] <--I think here it should be capital N right? It should be the expectation of some 'random variable'. But in your post, it's small n...


And why does it become (t-lambda) in the denominator of your expression? Shouldn't it be (lambda-t)?


We are given: "...N has a Poisson(lambda) distribution and is independent of the Xi's" <---in which step did we actually used the fact that N is independent of the Xi's? Is this just extraneous information?

When you begin you will have the capital [tex] N [/tex], when you begin writing the sum it is customary to use [tex] n [/tex] as the index of summation.

The denominator? Chalk that off to my typing too fast in order to finish before going to teach. You are correct.
 
  • #10
So the moment generating function of SN = E[[lambda/(lambda-t)]N] = Sum from n=0 to n=infinity of [lambda/(lambda-t)]n * e-lambdalambdan/n!] by definition of expectation. How should I proceed now?
 
  • #11
kingwinner said:
So the moment generating function of SN = E[[lambda/(lambda-t)]N] = Sum from n=0 to n=infinity of [lambda/(lambda-t)]n * e-lambdalambdan/n!] by definition of expectation. How should I proceed now?

Evaluate the sum using the exponential series
[tex]
\sum_{n=0}^\infty{\frac{Z^n}{n!}}=e^Z
[/tex]
What is Z here?
There are already two powers with exponent n in your formula, namely [itex]\lambda/(\lambda-t)[/itex] and [itex]\lambda[/itex]; combine these two to find what Z is.
 
  • #12
OK, I get e-lambda+[lambda2/(lambda-t)]

Am I right?
 
  • #13
kingwinner said:
OK, I get e-lambda+[lambda2/(lambda-t)]

Am I right?

This looks quite right.
 
  • #14
So I am still wondering:
"...N has a Poisson(lambda) distribution and is independent of the Xi's" <---why is this information important? In which step did we actually used it??
 
  • #15
The fact that [tex] N [/tex] is independent of the [tex] X_i [/tex] was used in the double expectation calculation, via the fact that we could base the calculation by considering the two marginal distributions separately. If they were not independent, the calculation would be more difficult due to the requirement of needing to work with a conditional distribution of [tex] N [/tex] given the [tex] X [/tex] values.

Did that make sense?
 
  • #16
statdad said:
The fact that [tex] N [/tex] is independent of the [tex] X_i [/tex] was used in the double expectation calculation, via the fact that we could base the calculation by considering the two marginal distributions separately. If they were not independent, the calculation would be more difficult due to the requirement of needing to work with a conditional distribution of [tex] N [/tex] given the [tex] X [/tex] values.

Did that make sense?

Um...But I believe that the formula E[E(Y|X)]=E(Y) holds even if X and Y are dependent, so is the assumption "N independent of the Xi's" really necessary??
 
  • #17
"Um...But I believe that the formula E[E(Y|X)]=E(Y) holds even if X and Y are dependent, so is the assumption "N independent of the Xi's" really necessary?"

You are correct - either I wasn't clear enough or you missed my point. The independence makes the calculation of [tex] E[E(Y \mid X)] = E[Y] [/tex] easier - easier than it would be if the two variables were dependent, since the marginal distributions would be more complicated - possible a lot, possibly a little, more still, more complicated.
 
  • #18
The question has a second part to it:

Part b) Find the distribution of
Code:
   n
Y= ∑ [2lambda  X[sub]i[/sub]]
  i=1[/b]

How can we identify the dsitribution? I tried using moment generating functions(mgf), but the mgf of Y is not looking like anything close to the gamma mgf that we are given in the original question.

Please help...
 

Related to Finding Moment Generating Functions for Gamma and Poisson Distributions

1. What is a moment generating function (MGF)?

A moment generating function (MGF) is a mathematical function used in probability theory to uniquely define a probability distribution. It is the expected value of e^(tx) for a given distribution, where t is a real number and x is a random variable.

2. What is the purpose of a moment generating function?

The purpose of a moment generating function is to provide a convenient method for calculating moments of a probability distribution. This allows for easier analysis and characterization of the distribution, as well as determining its mean, variance, and other important properties.

3. How is a moment generating function calculated?

A moment generating function is calculated by taking the expected value of e^(tx), where t is a real number and x is a random variable. This can be done using integration or summation, depending on the type of distribution.

4. What are the advantages of using a moment generating function?

There are several advantages of using a moment generating function, including its ability to uniquely define a probability distribution, its convenience in calculating moments and other properties of the distribution, and its usefulness in statistical analysis and hypothesis testing.

5. What are some common uses of moment generating functions?

Moment generating functions are commonly used in statistical analysis, hypothesis testing, and probability theory. They are also used in fields such as economics, physics, and engineering to model and study various phenomena.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
266
  • Calculus and Beyond Homework Help
Replies
8
Views
689
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
2
Replies
56
Views
3K
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
984
Replies
1
Views
1K
Replies
2
Views
1K
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top