안녕하세요 이연욱 샘입니다.
In significance test, we assume that the null hypothesis is true such that H0: p=p0. Therefore, we use p0 when we calculatge z test statistic.
However, confidence interval uses sample proportion (P hat) to predict the true population proportion.
감사합니다.