MHB What Common Mistakes Occur When Calculating Moment Generating Functions (MGFs)?

  • Thread starter Thread starter nacho-man
  • Start date Start date
  • Tags Tags
    Moments Mystery
Click For Summary
The discussion centers on the challenges of calculating moment generating functions (MGFs) and common mistakes made during the process. The user attempted to compute the MGF using the integral of a probability density function but encountered convergence issues, leading to an invalid answer. Clarification was provided that the integral converges only under specific conditions, particularly when t is less than the parameter λ. Additionally, the MGF is crucial for deriving moments, such as the mean and variance, which are expressed through derivatives of the MGF evaluated at zero. Understanding these concepts is essential for correctly applying MGFs in probability and statistics.
nacho-man
Messages
166
Reaction score
0
Please refer to the attached image.The concept of MGF still plagues me.

I got an invalid answer when i tried this.

What i did was:

$ \int e^{tx}f_{X}(x)dx $
= $ \int_{-\infty}^{+\infty} e^{tx}(p \lambda e^{-\lambda x} + (1-p)\mu e^{-x\mu})dx$

I was a bit wary at this point, because it reminded me of the bernoulli with the p and (1-p) but i could not find any relation for this.

i separated the two integrals, and ended up with
$ p \lambda \int_{-\infty}^{+\infty}e^{tx-x\lambda}dx + ... $ which i knew was immediately wrong because that integral does not converge.
What did i do wrong.

What does the MGF even tell us. First, second, nth moment, what does this mean to me?
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    8.7 KB · Views: 103
Physics news on Phys.org
nacho said:
Please refer to the attached image.The concept of MGF still plagues me.

I got an invalid answer when i tried this.

What i did was:

$ \int e^{tx}f_{X}(x)dx $
= $ \int_{-\infty}^{+\infty} e^{tx}(p \lambda e^{-\lambda x} + (1-p)\mu e^{-x\mu})dx$

I was a bit wary at this point, because it reminded me of the bernoulli with the p and (1-p) but i could not find any relation for this.

i separated the two integrals, and ended up with
$ p \lambda \int_{-\infty}^{+\infty}e^{tx-x\lambda}dx + ... $ which i knew was immediately wrong because that integral does not converge.
What did i do wrong.

What does the MGF even tell us. First, second, nth moment, what does this mean to me?

By definition is...

$\displaystyle M(t) = E \{ e^{t\ X} \} = \int_{- \infty}^{+ \infty} f(x)\ e^{t\ x}\ dx = \int_{0}^{\infty} \{p\ \lambda\ e^{- \lambda\ x} + (1-p)\ \mu\ e^{- \mu\ x}\ \}\ e^{t\ x}\ d x = \frac{p}{1 - \frac{t}{\lambda}} + \frac{1-p}{1-\frac{t}{\mu}}\ (1)$

The knowledge of M(t) permit us to find mean and variance of X with the formula...

$\displaystyle E \{X^{n}\} = M^{(n)} (0)\ (2)$

... so that is...

$\displaystyle E \{X\} = \frac{p}{\lambda} + \frac{1-p}{\mu}\ (2)$

$\displaystyle E \{X^{2}\} = \frac{2\ p}{\lambda^{2}} + \frac{2\ (1-p)}{\mu^{2}}\ (3)$

$\displaystyle \sigma^{2} = E \{X^{2} \} - E^{2} \{ X \} = \frac{2\ p - p^{2}}{\lambda^{2}} + \frac{2\ (1-p) - (1-p)^{2}}{\mu^{2}} - 2\ \frac{p\ (1-p)}{\lambda\ \mu}\ (4)$

Kind regards

$\chi$ $\sigma$
 
chisigma said:
By definition is...

$\displaystyle M(t) = E \{ e^{t\ X} \} = \int_{- \infty}^{+ \infty} f(x)\ e^{t\ x}\ dx = \int_{0}^{\infty} \{p\ \lambda\ e^{- \lambda\ x} + (1-p)\ \mu\ e^{- \mu\ x}\ \}\ e^{t\ x}\ d x = \frac{p}{1 - \frac{t}{\lambda}} + \frac{1-p}{1-\frac{t}{\mu}}\ (1)$

$\chi$ $\sigma$
I don't see how this integral converges, how did you get that answer
 
nacho said:
I don't see how this integral converges, how did you get that answer

Is...

$\displaystyle \lambda\ \int_{0}^{\infty} e^{- (\lambda-t)\ x}\ d x = \frac{\lambda}{t - \lambda} |e^{- (\lambda-t)\ x}|_{0}^{\infty} = \frac{1}{1-\frac{t}{\lambda}}\ (1)$

... and [of course...] the integral in (1) converges if $\displaystyle t< \lambda$. That is not a disavantage because from the pratical point of view what matters in the behaviour of M(t) in t=0...

Kind regards

$\chi$ $\sigma$
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K