4. Let $X_1, \cdots, X_n$ be a sample from a $N(\mu_1, \sigma^2)$ and $Y_1, \cdots, Y_m$ be another independent sample from a $N(\mu_2, \rho^2 \sigma^2)$, where $\rho$ is known. Define $\bar{X} = \sum_{i=1}^n X_i / n$; $\bar{Y} = \sum_{i=1}^m Y_i / m$; $S_X^2 = \frac{1}{n-1} \sum_{i=1}^n (X_i - \bar{X})^2$ and $S_Y^2 = \frac{1}{m-1} \sum_{i=1}^m (Y_i - \bar{Y})^2$. Show that $$\frac{(\bar{X} - \bar{Y}) - (\mu_1 - \mu_2)}{\sqrt{\frac{1}{n} + \frac{\rho^2}{m}} \sqrt{\frac{(n-1)S_X^2 + (m-1)S_Y^2 / \rho^2}{n+m-2}}}$$
has a t distribution with n + m - 2 degrees of freedom and $S_Y^2 / (\rho^2 S_X^2)$ has an F distribution with m - 1 and n - 1 degrees of freedom. (20 points)