# Explain how the mean of discrete variables is $\mu = \sum[x P(x)]$

Instead of just memorizing this formula, I'd like a detailed explanation/proof on why this is the case.