Let $y_1, y_2, \ldots, y_n$ and $z_1, z_2, \ldots, z_n$ be samples of size $n$ of a normal distribution $\mathcal{N}(0,1)$. My goal is to find the distribution of $$\frac{\sum_{i=1}^n (y_i - z_i)^2}{\sum_{i=1}^n(y_i - \bar{y})^2},$$ where $\bar{y} = (y_1 + y_2 + \cdots + y_n) / n$.
My first idea was to approximate the denominator of the expression by $n$, since $$\frac{1}{n}\sum_{i=1}^n(y_i - \bar{y})^2\approx 1.$$ In other words, we approximate the expression by the Mean Squared Error between the samples.
$(y_i - z_i)^2$ follows a $\Gamma(1/2, 4)$ distribution, since it is the square of a $\mathcal{N}(0, 2)$. Then, the distribution of the whole thing is a $\Gamma(n/2, 4/n)$. This seems to be working well enough as an approximation, but the first assumption is not correct, I believe. Using Python, I have produced some simulations which seem to confirm my suspicion:
Then, I tried expressing the whole distribution as a quotient of distributions. The numerator has distribution $\Gamma(n/2, 4)$, but I am not sure about the denominator. I know that the quotient of $\Gamma$ distributions is known so, if the denominator follows a $\Gamma$ distribution, we would be done. However, I do not know how to show this. Any hints? Thank you in advance.
Edit: by a bit of educated trial and error, and using simulation, it looks like the solution is a $\beta'(n, n-1, 1, 2)$ distribution. The way I got to this is by taking the quotient of $\Gamma(n/2,4)$ (the distribution of the numerator) and $\Gamma((n-1)/2, 2)$ (what I think is the distribution of the denominator). However, taking the quotient of these two results in a $\beta'(n/2, (n-1)/2, 1, 2)$ distribution, which is not the correct solution (again, by simulation). Here is what my simulation results look like ($n=30$, $10000$ trials):
Am I computing the quotient incorrectly?

