I'm having trouble following the derivation of the expected value for the geometric distribution.
I've reached:
$$\sum_{k=1}^{\infty} p \cdot k(1-p)^{k-1} = p(1 + 2(1-p) + 3(1-p)^2 + ...) $$
The next step rewrites $k$ as an infinite sum of ascending values, that is:
$$=p( \sum_{k=1}^{\infty}\ (1-p)^{k-1} + \sum_{k=2}^{\infty}\ (1-p)^{k-1} + \sum_{k=3}^{\infty}\ (1-p)^{k-1} + ...)$$
Why exactly is it that we can represent $k$ as this infinite sum?