Source: http://www.hec.unil.ch/rbichsel/correction1.pdf