https://github.com/OpenIntroStat/openintro-statistics/blob/4b6f11d60855d9ba562e7733f7fde066c846ffbd/ch_foundations_for_inf/TeX/ch_foundations_for_inf.tex#L2303 I think the standard error formula here should be for the null value proportion $p_0$ rather than $\hat{p}$