I have a PDF:
fy(y)=λnΓ(n)(y−nτ)n−1e−λ(y−nτ)
I want to find the moment generating function for it: (I believe I made a mistake somewhere?)
M(t)=E[eYt]=∫∞0eytλnΓ(n)(y−nτ)n−1e−λ(y−nτ)dy=λneλnτΓ(n)∫∞0e−y(λ−t)(y−nτ)n−1dy... let u=y(λ−t)=λneλnτΓ(n)∫∞0e−u(uλ−t−nτ)n−11λ−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)e−u(uλ−t−nτ)n−11λ−tdu=λneλnτΓ(n)(λ−t)n∫∞nτ(λ−t)e−u(u−nτ(λ−t))n−1du
The integral looks like a gamma function? But how do I handle u−nτ(λ−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)(y−nτ)n−1e−λ(y−nτ)dy.
Now apply the change of variables u=y−nτ to get
M(t)=enτt∫∞0eutλnΓ(n)un−1e−λ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