Apply Cochran's theorem to show that if $X_{1}, \dots ,X_{n} \stackrel{i.i.d.}{\sim} \mathcal{N}(\mu, \sigma)$, then
\begin{align*} \sum_{i = 1}^{n}\left(\frac{X_{i} - \bar{X}}{\sigma}\right)^{2} \sim \chi_{n - 1}^{2}, \end{align*}
where $\bar{X} = \frac{1}{n}\sum_{i = 1}^{n}X_{i}$.
Following this wikipedia proof, we arrive at
\begin{align*} \sum \left(\frac{X_{i} - \mu}{\sigma}\right)^{2} = \sum \left(\frac{X_{i} - \bar{X}}{\sigma}\right)^{2} + n\left(\frac{\bar{X} - \mu}{\sigma}\right)^{2}. \end{align*}
From here one can see that
\begin{align*} \sum \left(\frac{X_{i} - \bar{X}}{\sigma}\right)^{2} = \frac{1}{\sigma^{2}}X^{\top}\underbrace{\left(I_{n} - \frac{1}{n}1_{n}1_{n}^{\top}\right)}_{=B_1}X, \end{align*}
where $X = [X_1, \dots ,X_n]^{\top}$. We can see that since $B_{1}$ has rank $n - 1$ and is symmetric positive semidefinite, it can be used by Cochran's theorem to complete the proof. However, I am unsure of how to complete the proof because
- Cochran's theorem applies when the $X_{i}$'s above are standard normal, which is not the case here.
- Not sure how to write $n\left(\frac{\bar{X} - \mu}{\sigma}\right)^{2}$ in the form $Z^{\top}B_{2}Z$, where $Z$ is a vector of standard normal random variables and $B_{2}$ is a matrix to be solved.
Asking for a proof expressing $\sum \left(\frac{X_{i} - \mu}{\sigma}\right)^{2}$ as a sum of quadratic forms involving standard normals $Z_1, \dots ,Z_n$ such that Cochran's Theorem can be directly applied to complete the proof? Thanks!