Mean (expected value) of a discrete random variable