I don't understand why the test statistic of a two sided two sample t-test actually t distributed is. The test statistic is definded as:
$T=\sqrt{\frac{n_1n_2}{n_1+n_2}}(\frac{\bar{Y}-\bar{X}}{\sqrt{\frac{1}{n_1+n_2-2}(\sum_{i=1}^{n_1}(X_i-\bar{X})^2+\sum_{j=1}^{n_2}(Y_j-\bar{Y})^2})})$ with $X_i$ and $Y_j$ normally distributed with mean m and variance v (under $H_0$) for all $i=1...n_1$ and $j=1...n_2$ .
To show that T is t distributed it has to be shown that $A:= \bar{Y}-\bar{X}$ and $B:=X_i-\bar{X}$ and $C:=Y_j-\bar{Y}$ are independent and standard normally distributed. Is that right?
I was able to calculate that the mean of $A$ is indeed zero and but the variance of $\sqrt{\frac{n_1n_2}{n_1+n_2}}\cdot A$ is equal to v (not 1).
I don't understand how to show the independence. Can someone help me?