Correctly compute statistic.