We consider $Y=X\beta+\epsilon$, $\epsilon \sim N(0,\sigma^2 I)$.
Let H$_0$ is $\beta_0=\dots\beta_k=0$ vs
exist $i\in{0,1,\dots,k}: \beta_i\neq 0$
How to proof that if H$_0$ is true then $F=\frac{n-1-k}{k}\frac{\sum_{i=1}^n(\hat{Y}_i-\overline Y)^2}{\sum_{i=1}^n(\hat{Y}_i-Y_i)^2}\sim F_{(k,n-k-1)}$. I can only proof, that $\frac{1}{\sigma^2}\sum_{i=1}^n(\hat{Y}_i-Y_i)^2\sim \chi^2_{n-k-1}$. So exactly, we should show, that
$\frac{1}{\sigma^2}\sum_{i=1}^n(\hat{Y}_i-\overline Y)^2\sim\chi^2_{k}$. But I don't know, how to do it. Can anyone give me some advice? i will be very gratefull.