how to find p hat with confidence interval