what are the steps in computing the mean of a probability distribution of a random variable​