結果 : calculate expected value from probability density function