Take a look here: http://mathworld.wolfram.com/ExpectationValue.htmlPDF: probability distribution function