This question is very similar to: Distribution of the ratio of dependent chi-square random variables
But the big difference is what happens when we don't have standard normal variables.
I want to know the expectation (and potentially other moments/distribution) of:
$$ W = \frac{X_1^2}{X_1^2 + \sum_{i=2}^{n} X_i^2} $$
where $X_i \sim N(0, \sigma_i^2)$ for $i = 1, ..., n$.
If all the variances of the $X$-s are equal, then this reduces to a ratio of chi-square random variables and the distribution of $W$ is a beta distribution. However, when the variances are not the same, I can't see a way to use that result.
Is the answer a simpe textbook result, or does it need to be worked out from scratch? If it's the latter, what's the best way to go about it? I haven't done this before.
Another way to phrasing it is what is the distribution of $W = \frac{U}{U+ V}$ where $U \sim \Gamma(\frac{N -1}{2}, 2\sigma^2)^{\text{is this correct?}}$, but then what is $V$? I guess that's another question: if $V = \sum_i \sigma_i ^2 Z_i^2$ is the sum of a bunch of scaled standard normal variables, what is its distribution? Is it some generalised form of the Gamma distribution?
Given some commenters suggested that this may not have a closed form solution, here is an alternative question. With large $n$, $\sum_{i=2}^{n} X_i^2$ tends towards normally distributed. So the alternative question is this:
If we have
$$ W_2 = \frac{Y^2}{Y^2 + a + bZ}$$
where $Y \sim N(0, 1)$ and $Z \sim N(0, 1)$ are independent and standard normal, and $a$ and $b$ are positive constants, does this have a closed form solution?