Let \(X\) have the discrete uniform on \(\{1,\,2,\,...,\,n\}\). This means \(P(X=i)=1/n\) for all \(i = 1,\,2,\,...,\,n\).
- Compute the MGF of \(X\);
- Use it to compute the mean;
- Use it to compute the variance.
Let \(X\) have the discrete uniform on \(\{1,\,2,\,...,\,n\}\). This means \(P(X=i)=1/n\) for all \(i = 1,\,2,\,...,\,n\).