Ask your own question, for FREE!
Mathematics 19 Online
OpenStudy (anonymous):

Anyone available for Stat Homework that's due tomorrow? Gamma distribution - pasting the image of the problem in the comments. Thank you in advance!!

OpenStudy (anonymous):

OpenStudy (perl):

$$ \Large E(X) = \int x \cdot f(x) $$

OpenStudy (anonymous):

is that the same though, as \[E(\frac{ 1 }{ X })\]?

OpenStudy (anonymous):

and what is x? f(x) is my gamma function, correct? Is x=6?

OpenStudy (perl):

almost the same

OpenStudy (perl):

$$ \Large E(\frac1X) = \int\frac1 x \cdot f(x) $$

OpenStudy (perl):

$$ \Large E(\frac1X) = \int_{-\infty }^{\infty} ~ \frac1 x \cdot \frac{1}{\Gamma (6)\cdot 2^6 }\cdot x^{6-1}e^{\frac{-x}{2}} $$

OpenStudy (misty1212):

HI not to butt in, but i think there might be a way to do this directly also, isn't the integral from 0 to \(\infty\)? gamma not defined for \(x<0\) if i am not mistaken

OpenStudy (misty1212):

check the formula for the kth moment on page 36 here http://ocw.mit.edu/courses/mathematics/18-443-statistics-for-applications-fall-2006/lecture-notes/lecture6.pdf

OpenStudy (misty1212):

looks like it might be t \[\frac{\Gamma(5)}{\Gamma(6)\frac{\pi}{2}^{-1}}\]

OpenStudy (misty1212):

\[\Gamma(5)=4!, \Gamma(6)=5! \] so it might be just \[\frac{\pi}{5}\]

OpenStudy (misty1212):

nope bad algebra, \[\frac{\pi}{10}\]

OpenStudy (misty1212):

@perl look reasonable or am i way off base?

OpenStudy (misty1212):

oh another mistake, i completely ignored the \(2^6\) in the denominator

OpenStudy (perl):

right, start at x = 0

OpenStudy (perl):

$$ \Large E(\frac1X) = \int_{0 }^{\infty} ~ \frac1 x \cdot \frac{1}{\Gamma (6)\cdot 2^6 }\cdot x^{6-1}e^{\frac{-x}{2}} $$

OpenStudy (misty1212):

lol i put a \(\pi\) there instead of a 2

OpenStudy (misty1212):

it is one

OpenStudy (misty1212):

\[\gamma(6)=5!, 5!\times 2^6=7680\]

OpenStudy (perl):

\Gamma

OpenStudy (misty1212):

yeah that one

OpenStudy (misty1212):

\[\frac{1}{7680}\int_0^{\infty}x^4e^-{\frac{x}{2}}\]

OpenStudy (misty1212):

damn i can't see what i am typing, lotsa typos

OpenStudy (misty1212):

\[\frac{1}{7680}\int_0^{\infty}x^4e^{\frac{x}{2}}dx\]

OpenStudy (misty1212):

aarrgghh

OpenStudy (anonymous):

what about the (1/X) being multiplied in that integral?

OpenStudy (misty1212):

\[\frac{1}{7680}\int_0^{\infty}x^4e^{-\frac{x}{2}}dx\]

OpenStudy (misty1212):

that turns \(x^5\) in to \(x^4\)

OpenStudy (anonymous):

oh, ok I see that

OpenStudy (perl):

you can do integration by parts a few times

OpenStudy (misty1212):

lol yeah quite a few

OpenStudy (misty1212):

bet we can do it quicker

OpenStudy (misty1212):

\[\frac{\Gamma(5)}{\Gamma(6)2^{-1}}\]

OpenStudy (misty1212):

no that is not working dang i wonder why...

OpenStudy (misty1212):

ooh because i am an idiot!!

OpenStudy (misty1212):

\[\frac{\Gamma(5)}{\Gamma(6)(\frac{1}{2})^{-1}}\]

OpenStudy (misty1212):

\[\frac{4!}{2\times 5!}\]

OpenStudy (misty1212):

yayyy!!!! wasn't that easy?

OpenStudy (anonymous):

haha! Thank you to both of you for jumping in to help me!! I am totally with you until the end @misty1212 - I have no idea where that last equation came from. :)

OpenStudy (anonymous):

ohhh...we haven't covered moments yet. Guess that's my problem. :(

OpenStudy (misty1212):

damn it \[E(X^k)=\frac{\Gamma(\alpha+k)}{\Gamma(\alpha)\beta^k}\]

OpenStudy (misty1212):

in your case \(\alpha=6, \beta=\frac{1}{2},k=-1\)

OpenStudy (misty1212):

and [\Gamma(\alpha)=(\alpha-1)!\] for integer \(\alpha\)

OpenStudy (perl):

is that formula given in the pdf

OpenStudy (misty1212):

\[\Gamma(\alpha)=(\alpha-1)!\]

OpenStudy (misty1212):

damn i hate not having the previewq

OpenStudy (misty1212):

sure is a lot easier than integrating by parts 4 times !!!

OpenStudy (misty1212):

yeah that is the formula in the pdf, take a look it is derived there

OpenStudy (misty1212):

with that formula takes like two seconds if you do it correctly and not mess about like i did 4 or 5 times

OpenStudy (anonymous):

You guys are awesome! Thank you so much!

OpenStudy (perl):

yes thats pretty nifty :)

OpenStudy (perl):

$$ \Large { \mathbb{E}(X^k) = \frac{\Gamma(\alpha+k)}{\Gamma(\alpha)\beta^k} } $$

OpenStudy (perl):

oh by the way, lowercase \gamma is used for euler's constant. thats why i was getting a strange answer on maple

OpenStudy (anonymous):

I think I need to show my homework with the integration by parts, however I've done this at least 4 times and never get the 1/10 that Wolfram shows. I keep getting -4

OpenStudy (perl):

you can expedite the integration by parts by making a table

OpenStudy (perl):

@misty1212 I'm surprised this formula is not mentioned in the wikipedia article. Unless i missed it http://en.wikipedia.org/wiki/Gamma_distribution

OpenStudy (perl):

@BrighterDays want to make a table?

OpenStudy (anonymous):

I don't know about making tables?? :)

OpenStudy (perl):

OpenStudy (perl):

|dw:1428553530664:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!