# Derive the mean of a discrete probability distribution

I am reading inference statistics by casella and berger. They are deriving the general formula for the probability distribution like that:

$$EX=\sum_{x=1}^{N}xP(X=x|N)=\sum_{x=1}^{N}x\frac{1}{N}=\frac{N+1}{2}$$

I do not get the step before the result. I would appreciate your explanation on this step!

• The last equality? Jul 16, 2014 at 6:49
• @StefanHansen I mean, how to get the $\frac {N+1} {2}$? Jul 16, 2014 at 7:35
• This follows from the fact that the sum of the first $N$ integers is $N(N+1)/2$. This can easily be shown using induction in $N$. Jul 16, 2014 at 7:50
• Your question should specify which particular distribution is under discussion. The result is not general, but specific. You should also give the correct title of the book, capitalize it, and capitalize the names of the authors. Jul 16, 2014 at 23:59