Created by: gorokhovnik
Changed logic to the comparison between optimal prediction and constant prediction.