An Approach to Measure the Expectation of Generic Functions of the Market Return