This is for beginners in probability!
Could someone give me a step by step on how to find the MGF of the binomial distribution?
This is for beginners in probability!
Could someone give me a step by step on how to find the MGF of the binomial distribution?
Write down the definition of a MGF.
Write down the definition of the binomial distribution.
Plug the binomial distribution into the definition of MGF.
Clean up the expression.
First remember the definition of a MGF
$m_Y(t) = E[e^{tY}]$ For any random variable Y
so for a random variable Y with the binomial distribution
$m_Y(t)= \sum_{y=0}^n e^{ty}{n\choose y} p ^y q^{n-y} $
First step is to combined exponents
$m_Y(t)= \sum_{y=0}^n {n\choose y} (pe^{t})^y q^{n-y} $
The most important part here is to know that
$(x+y)^n = \sum_{i=0}^n {n\choose i}x^i y^{n-i}$
When looking at are sum we can see that $x = pe^{t}$ and $y = q$
So we can come to the conclusion that
$m_Y(t) = (pe^{t} + q)^n$