how to find expected value of probability distribution