fix the expected value according to the formula