MOMENT-GENERATING FUNCTIONS
1. Demonstrate how the moments of a random variable x may be obtained from its moment generating function by showing that the rth derivative of E(ext) with respect to t gives the value of E(xr) at the point where t =0. Show that the moment generating function of the Poisson p.d.f. f(x)= e x/x!; x ∈{0,1,2,...} is given by M(x, t) = exp{ } exp{ et}, and thence nd the mean and the variance.
2. Demonstrate how the moments of a random variable may be obtained from the derivatives in respect of t of the function M(t)=E{exp(xt)}. If x =1,2,3,... has the geometric distribution f(x)=pqx 1, where q = 1 p, show that the moment generating function is
pet M(t)= . 1 qet
Find E(x).
Answer: The moment generating function of x is
X∞ X∞ p x M(t)= extpqx 1 = qet q x=1 x=1 ∞ X t x pe = pet qet = . 1 qet x=0
To nd E(x), we may use the quotient rule to di erentiate the expression M(t) with respect to t. This gives
dM(t) (1 qet)pet pet( qet) = . dt (1 qet)2
Setting t = 0 gives E(x)=1/p.
3. Let xi; i =1,...,n be a set of independent and identically distributed random variables. If the moment generating function of xi is M(xPi,t)= E{exp(xit)} for all i, nd the moment generating function for y = xi.
Find the moment generating function of a random variable xi =0,1 1 xi xi whose probability density function if f(xi)=(1P p) p , and thence nd the moment generating function of y = xi. Find E(y) and V (y).
1 EXERCISES IN STATISTICS
4. Demonstrate how the moments of a random variable x may be obtained from the derivatives in respect of t of the function M(x, t)=E(exp{xt}) If x ∈{1,2,3...} has the geometric distribution f(x)=pqx 1 where q =1 p, show that the moment generating function is
pet M(x, t)= , 1 qet
and thence nd E(x).
5. Demonstrate how the moments of a random variable x—if they exist— may be obtained from its moment generating function by showing that the rth derivative of E(ext) with respect to t, evaluated at the point t =0, gives the value of E(xr). Find the moment generating function of x f(x) = 1, where 0