1. ## Moment Generating Function

Hi. I have a problem with this question:

Let $X$ be a discrete uniform random variable with pmf $p_{X}(x)=\frac{1}{N}$, for $x=1,2,...,N$. Find the mgf of $X$.

What I did was:

$M_{X}(t)=E[e^{tx}]$
$=\sum_{x=1}^N e^{tx}\frac{1}{N}$
$=\frac{1}{N} \sum_{x=1}^N e^{tx}$

I don't know how to continue after that

2. Originally Posted by Zayyym
Hi. I have a problem with this question:

Let $X$ be a discrete uniform random variable with pmf $p_{X}(x)=\frac{1}{N}$, for $x=1,2,...,N$. Find the mgf of $X$.

What I did was:

$M_{X}(t)=E[e^{tx}]$
$=\sum_{x=1}^N e^{tx}\frac{1}{N}$
$=\frac{1}{N} \sum_{x=1}^N e^{tx}$

I don't know how to continue after that
$\sum_{x=1}^N e^{tx} = \sum_{x=1}^N (e^{t})^x$

is a geometric series. The first term is $e^t$ and the ratio is $e^t$.

If you scroll about two thirds of the way down this thread: Uniform Distribution -- from Wolfram MathWorld

you'll find the answer you should get.