Core/Stat: Implement confidence interval calculation.