Given $H_0$ : $\rho=0$ and $H_A$ : $\rho\neq0$, we use the test statistic $t_{n-2}$ , which is $\frac{r\sqrt{n-2}}{\sqrt{1-r^2}}$. I have to show that $\frac{r\sqrt{n-2}}{\sqrt{1-r^2}}$ equals $\frac{\hat{\beta}}{SE(\hat{\beta})}$ with the hint that $SE(\hat{\beta})=\frac{S_{(Y|X)}}{\sqrt{\sum\limits_{i=1}^{n} (x_i-\bar{x})^2}}$. Any ideas on how to do this?
I do know that $\hat{\beta}=r\frac{S_y}{S_x}$ and that $\sqrt{\sum\limits_{x=1}^{n} (x_i-\bar{x})^2}=S_x$. After doing some algebra, I get $\frac{S_y}{S_{y|x}}=\frac{\sqrt{n-2}}{\sqrt{1-r^2}}$. But I get stuck there.
self-study
tag (and if you haven't seen it before, read through it's tag wiki, though I think your post is pretty close to the guidelines already) $\endgroup$