Calculation of confidence interval for the mean