Implemented computation of confidence interval