Source: https://imai.fas.harvard.edu/teaching/files/Expectation.pdf