SOLUTION: I need help with two problems of a problem set of 15. A recent topic I'm unclear on is moment generation functions, I know they can be used to find out probability distributions as

Algebra ->  Probability-and-statistics -> SOLUTION: I need help with two problems of a problem set of 15. A recent topic I'm unclear on is moment generation functions, I know they can be used to find out probability distributions as      Log On


   



Question 19416: I need help with two problems of a problem set of 15. A recent topic I'm unclear on is moment generation functions, I know they can be used to find out probability distributions as well as means and variance but I'm not sure.
a,) Problem 1: suppose that X has a moment generation function m(t)=(.25 + .75e^t)^12. find P(X>4). I know I can differeiate this function and set to zero M(0) but then what do I do?
b. Problem 2: Henry is going to keep rolling a die until he obtains four different values. What is the expected number of rolls that he will need? I have no idea in which to start this problem. My logic is obviously flawed. Help as ASAP. They are due tomorrow a.m. Orignally submitted Friday.

Answer by khwang(438) About Me  (Show Source):
You can put this solution on YOUR website!
Problem 1: suppose that X has a moment generation function m(t)=(.25 + .75e^t)^12. find P(X>4).
Comment 1: Never write any function as .25+%2B+.75e%5Et, should be
m(t) = 0.25+%2B+0.75%2Ae%5Et
2.Yes, M(0) = 1, M'(0) = E(X) and M"(0) = E%28X%5E2%29
But no differentiation is necessary for solving the pdf P.
3. The point is to know the the MGF of the binomial function B(x,n;p)
is (q + p e^t)^n, where q = 1-p.
[ Since M(t) = SIGMA e%5Ext%2AC%28n%2Cx%29%2Ap%5Ex%2Aq%5E%28n-x%29 = SIGMA C%28n%2Cx%29%2A%28pe%5Et%29%5Ex+q%5E%28n-x%29+
= %28q%2Bpe%5Et%29%5En+.
Here, for given m(t) = %280.25+%2B+0.75e%5Et%29%5E12, p=0.75 and
the corresponding binomial distribution B(x,n;p) is B(x,12,0.75).
Hence, P(X > 4) = 1 - SIGMA B(x,12,0.75) (x = 0,1,2,3)
=
= 0.999608
= 1- BINOMDIST(3,12,0.75,TRUE) (by using Excel)
The next one is difficult for beginners because it should use very high level
formulas in algebra and combinatorials.

Problem 2: Henry is going to keep rolling a die until he obtains four different values. What is the expected number of rolls that he will need?
Sol: 1) Let the corresponding random variable be X.
Of course, we need to compute the pdf of X ,P(X= n), if n%3E=+4+ first.
[Note: P(X= k) = 0 if k <=3]
Note when Henry succeeds (the 4th number) at the nth trial, that means he got exactly 3 distinct numbers in the previous n-1 trials. That is, the same as we consider the sum of all coefficients of the terms of three variables as
x%5Ei%2A+y%5Ej%2A+z%5Ek (i,j,k>=1) in the polynomial %28x%2By%2Bz%2Bw%2Bu%2Bv%29%5E%28n-1%29.
Since there are C(6,3)=20 such triples as xyz in %28x%2By%2Bz%2Bw%2Bu%2Bv%29%5E%28n-1%29 , and there are 3%5Ek+%96+3+%96+3%282%5Ek-2%29++ (why?)
= 3%5Ek+-+3%2A2%5Ek+%2B+3+ terms of 3 variables in (x+y+z)^k.
Hence, there are 20%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29 terms of 3 variables
(as xyz, yzw,..) in +%28x%2By%2Bz%2Bw%2Bu%2Bv%29%5E%28n-1%29+.
That is among the possible 6%5E%28n-1%29 outcomes of first (n-1) rollings, there are 20%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29 possible appearance of 3 different values.
To be successful(i.e. to make 4 different values), the n th rolling must be one of the remaining 3 numbers. Thus the probability of success at the nth trial is
P(X=n) = 60%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29%2F6%5En for n%3E=+4
For example, P(X=4) = 6%2A5%2A4%2A3%2F6%5E4+=+10%2F6%5E2,
P(X=5) = +60%283%5E4+-+3%2A2%5E4+%2B+3%29%2F6%5E5+=+10%2F6%5E2+,
P(X=6) = 60%283%5E5+-+3%2A2%5E5+%2B+3%29%2F6%5E6+=+250%2F6%5E4+.
[P must be a pdf, checking , SIGMA P(X=n) = 20* SIGMA+ %281%2F2%29%5En - 90*SIGMA %281%2F3%29%5En + 180* SIGMA 1%2F6%5En+ n%3E=+4+
=
=
... Correct for a well-defined pdf.]
Therefore, E(X) = SIGMA 60%2An%2A%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29%2F6%5En++
= 20+%2ASIGMA n%2A%281%2F2%29%5En - 90%2A+SIGMAn(1/3)^n + 180%2ASIGMAn/6^n }}} n+%3E=4+
[Note: SIGMA n%2Ar%5En+= r%2ASIGMAn%2Ar%5E%28n-1%29 = r%2ASIGMA (r%5En%29)' = r(%281%2F%281-r%29%29)' = r%2F%281-r%29%5E2 - r%281%2B2r%2B3r%5E2%29 for n+%3E=4+
We obtain E(X) = 20 SIGMAn%2A%281%2F2%29%5En - 90 SIGMA n%281%2F3%29%5En + 180 SIGMA n%2F6%5En+
=
= +10%2A%284-+11%2F4%29+-+30%2A%289%2F4+-+2%29+%2B+30%2A%2836%2F25+-+17%2F12%29+
= 5.7
Good luck !!
Kenny

PS 1: I have doubly checked that the answer should be correct.
2. Don't feel bad that you could not do Problem2, but it is a good
exercise for prob. Try to read and understand the above details.
3. You posted these questions in wrong place. I am sure almost nobody
knows what you asked about here.
4. To answer Problem 2, you can write
Let the random variable be X.
(i)Since the the sum of all coefficients of the terms of three variables
in in the polynomial %28x%2By%2Bz%2Bw%2Bu%2Bv%29%5E%28n-1%29 is
20%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29
(ii) For n%3E=4, P(X =n) = 60%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29%2F6%5En
(iii) E(X) = SIGMA 60%2An%2A%283%5E%28n-1%29-+3%2A2%5E%28n-1%29+%2B+3%29%2F6%5En++
= 5.7
[Using SIGMA n%2Ar%5En+=r%2F%281-r%29%5E2 - r%281%2B2r%2B3r%5E2%29
for n%3E=4 ]