I am reading the book Statistical Methods In Online A/B Testing.
I have two questions:
1]
Please Consider the scenario, an A/B test in which the variance of A and B groups are assumed to be same, and the conversions Vs users is recorded.
For group A, n1 = no.of observations(users) in A, p1=(no.of conversions)/(no.of users) for A.
For group B, n2 = no.of observations(users) in B, p2=(no.of conversions)/(no.of users) for B.
For this in the book it is given that the pooled standard deviation of the means is calculated by:
$$\sqrt{p*(1-p)*(\frac{1}{n_1} + \frac{1}{n_2}})$$
where
$$p=({p_1*n_1 + p_2*n_2})/(n_1+n_2)$$
Could anyone please tell how this is derived? It seems to be related to binomial distribution and pooled variance. I cannot figure out how to derive it.
2] For difference in means other than proportions, in the book it is given that the pooled standard deviation of means is $$\sqrt{(\sigma_1^2*(n_1-1) + \sigma_2^2*(n_2-1))/(n_1+n_2-1)}$$ where the $\sigma_1$ and $\sigma_1$ are sample variance of A and B respectively. $n_1$ and $n_1$ are sample population of A and B respectively. Shouldn't the formula be $$\sqrt{\sigma^2/n_1 + \sigma^2/n_2}$$ where $$\sigma=({\sigma_1*n_1 + \sigma_2*n_2})/(n_1+n_2)$$ Explanation for the Alternate formula given by me, since A and B groups have same variance we can use pooled variance to calculate $\sigma$. The standard error of mean for group A and B are $\sigma/\sqrt{n1}$ and $\sigma/\sqrt{n2}$ respectively. And since by central limit theorem the mean follows a normal distribution, the standard deviation of the difference is square root of sum of variances of A and B. Please correct me if it is wrong. Thanks anyway!!