Question: what is confidence interval in hypothesis testing?
Answer: We can think about how often the random quantity p will end up within some distance of the fixed but unknown p. In particular, we can ask for an interval around p for any sample so that in 95% of samples, the true mean p will lie inside this interval. Such an interval is called a confidence interval.