I'm given the formula:
$(1-p)^{x-1}p, x = 1, 2, ..., \infty$
and I'm asked to find the mean and variance.
I know the mean is represented by $\sum_{i=1}^n p_ix_i$ and the variance by $\sum_{i=1}^n p_i(x_i-\mu)^2$, but I'm not really sure how to get from those formulas to a generalized answer for the mean and variance. I've looked around online, but nearly everything seems to involve the use of a finite set of numbers. Those examples make sense, but I'm not sure how to translate that understanding into the more general solution asked for above. An explanation or a link to reading on the topic would help greatly!