How to construct a confidence interval