Compute confidence interval of sample data