I have this stats problem where I am to create a 98% confidence interval for the difference between proportions. $X_1 = 21, n_1 = 90$ and $X_2 = 39, n_2 = 70.$
I did a 2propzinterval test and my confidence interval came out as $(-.497, -.151).$
The question is: A marketing manager claims that the proportion of customers who purchased pretzels did not change after the app campaign. Does the confidence interval contradict this claim?
How do I know if this confidence interval contradicts the claim? Thank you for your help!
Not familiar with the intended technique. But I think the following method is good and it works without the Gaussian approximation. Assume $x_1\sim B(n_1,p_1)$ and $x_2\sim B(n_2,p_2)$ have the same probability $\,p_1=p_2=p$ and are independent. Then we have $$x_1+x_2\sim B(n_1+n_2,p),$$ and therefore the most likely value for $\,p\,$ is $\,p=\frac{x_1+x_2}{n_1+n_2}=\frac{3}{8}.$ Knowing $\,p\,$ makes the hypothesis test much easier. If the $\,n_1=90\,$ cases are randomly selected from $\,n_1+n_2=160$, the probability to have $x_1$ successful cases is given by
$$p(x_1|x_1+x_2=60)=\frac{{60\choose x_1}{100\choose90-x_1}}{{160\choose90}}.$$
Numerics shows that the $\,0.9864\,$ confidence range is $x_1\in[27,41]$. The biggest confidence range that does not includes $\,x_1=21\,$ is $\,x_1\in[22,46]$, which has a confidence level of $\,0.999965$. Thus the chance for $\,x_1(=21)\notin[22,46]$ is only $3.5\times 10^{-5}$ if $\,p_1=p_2$. This gives a statistically strong evidence for $p_1\neq p_2$.