expected_value function

Expected value of a given function for any distribution