Say I have a set of $N$ distinct and independent sources of noise. Each source, $X_{n}$, follows a normal distribution with individual means and variances.
\begin{equation} X_{1}\sim\mathcal{N}\left(\mu_{1},\sigma_{1}^{2}\right), X_{2}\sim\mathcal{N}\left(\mu_{2},\sigma_{2}^{2}\right), \dots, X_{N}\sim\mathcal{N}\left(\mu_{N},\sigma_{N}^{2}\right) \end{equation}
Now consider a new r.v, $P_{n}$, which is defined as the difference of two i.i.d. $X_{n}$ such that
\begin{equation} P_{n}=X_{n,1}-X_{n,2} \sim\mathcal{N}\left(\mu_{n}-\mu_{n},\sigma_{n}^{2}+\sigma_{n}^{2}\right) \to\mathcal{N}\left(0,2\sigma_{n}^{2}\right) \end{equation}
I want to find the pdf of the r.v. $Z$ which is defined to be the sample variance of the vector of differences, divided by $2$ i.e.
\begin{equation} Z=%\frac{1}{2(N-1)}\sum_{n=1}^{N}\left(P_{n}-\overline{P_{n}}\right)^{2} \frac{\mathrm{Var}\bigl[P_{1},\dots,P_{N}\bigr]}{2} \end{equation}
An attempt:
\begin{equation} Z=\frac{1}{2(N-1)}\sum_{n=1}^{N}\left(P_{n}-\mu_{P_{n}}\right)^{2} \end{equation}
We know $\mu_{P_{n}}=0\ \forall \,n$ therefore,
\begin{equation} Z=\frac{1}{2(N-1)}\sum_{n=1}^{N}P_{n}^{2} \end{equation}
Introducing $W_{n} = P_{n}/\sqrt{2}\sim \mathcal{N}(0,\sigma_{n}^{2})$ gives
\begin{equation} Z=\frac{1}{(N-1)}\sum_{n=1}^{N}W_{n}^{2} \end{equation}
Since $W_{n}/\sigma_{n}\sim\mathcal{N}(0,1)$, it follows that $W_{n}^{2}\sim \sigma_{n}^{2}\,\Gamma(1/2,2)=\Gamma(1/2,2\sigma_{n}^{2})$.
Introducing $Y_{n}=W_{n}/(N-1)\sim \Gamma(1/2,2\sigma_{n}^{2}/(N-1))$. Therefore
\begin{equation} Z=\sum_{n=1}^{N}Y_{n} \end{equation}
If each $\sigma_{n}$ is equal then the sum of these gamma random variables is another gamma random variable such that
\begin{equation} Z\sim \Gamma\left(\frac{N}{2},\frac{2\sigma^{2}}{N-1}\right) \quad \text{for}\ \sigma_{1}^{2}=\sigma_{2}^{2}=\dots=\sigma_{N}^{2} \end{equation}
I am not sure if this is right or not but I am looking for the solution for when the $\sigma_{n}^{2}$'s are not equal. Any help is appreciated.