結果 : expectation of a function of a discrete random variable