8/32
Part 2 of 6 · ChanceLearn and do

The interval keeps each group's own rate

The interval measures the difference, so it can't assume the difference is zero. Each group keeps its own rate:

SE=p^A(1−p^A)nA+p^B(1−p^B)nB\text{SE} = \sqrt{\frac{\hat p_A(1 - \hat p_A)}{n_A} + \frac{\hat p_B(1 - \hat p_B)}{n_B}} (p^B−p^A)±z1−α/2 SE(\hat p_B - \hat p_A) \pm z_{1 - \alpha/2}\,\text{SE}

In words: this is the unpooled standard error, the variance formula with each group's measured rate. The interval is the gap, plus or minus a multiplier times that standard error.

α\alpha is the significance level, the false positive rate you accept, so α=0.05\alpha = 0.05 gives a 95% interval. z1−α/2z_{1 - \alpha/2} is the multiplier that leaves α/2\alpha/2 of the normal curve in each tail, 1.96 at that α\alpha. The next chapter computes it.

This is the Wald interval, the one the practice problem asks for.

In the editor, write unpooled_se(conv_a, n_a, conv_b, n_b): the interval's standard error, with each group's own rate.