Wednesday, 15 July 2015

calculus - Moment generating function for a gamma distribution



I have a PDF:



fy(y)=λnΓ(n)(ynτ)n1eλ(ynτ)



I want to find the moment generating function for it: (I believe I made a mistake somewhere?)



M(t)=E[eYt]=0eytλnΓ(n)(ynτ)n1eλ(ynτ)dy=λneλnτΓ(n)0ey(λt)(ynτ)n1dy... let u=y(λt)=λneλnτΓ(n)0eu(uλtnτ)n11λtdu



Usually after the substitution I would get something that I know how to integrate like a PDF of some distribution or in this case perhaps a gamma function? But in this case it looks complex? Maybe I made a wrong substitution?



Since the PDF is that of a gamma distribution, I expected the MGF of a gamma distribution which I belive should be λλtn in this case?



UPDATE




Ok probably 1 of my mistakes is after changing variables, my limits of integration should change ... but I am not sure how to proceed after:



after change of variables



=λneλnτΓ(n)nτ(λt)eu(uλtnτ)n11λtdu=λneλnτΓ(n)(λt)nnτ(λt)eu(unτ(λt))n1du




The integral looks like a gamma function? But how do I handle unτ(λt)? I got a feeling it have something to do with the limits of integration, but I am not sure what ...


Answer



You wanted to shift the gamma distribution, but you didn't shift it. Your integral should start from nτ.



M(t)=nτeytλnΓ(n)(ynτ)n1eλ(ynτ)dy.
Now apply the change of variables u=ynτ to get
M(t)=enτt0eutλnΓ(n)un1eλudu.=enτt×MGF of unshifted Gamma(t)
Meanwhile, we have also shown that the MGF of the shifted PDF is just etSHIFTAMOUNT times the unshifted MGF, and all this calculation was actually not necessary :)


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...