I was checking the definition of pooled variance, and although I think it makes sense intuitively, I was wondering how can one obtain that estimator. For the case of only one group, I understand the MLE of the variance assuming gaussian iid samples in which case we obtain a biased estimate. After computing the Expected value, we can see that is actually biased and we can correct the estimation by dividing by $n-1$. However, I have not been able to find a way to arrive to the pooled variance estimation equation:
$s_p^2=\frac{\sum_i (n_i-1)s_i^2}{\sum_i (n_i-1)}$ Where $i$ is the index of the groups.
How could I obtain that equation?
Thanks!