For and fixed full-row-rank , is independent of the squared residual
ProvedGaussianMatrix.regression_residual_indepchi-squaregaussianindependenceprobabilityrandom-matrices
Let be a fixed matrix with , so that is invertible, and let have independent standard normal coordinates. Define the squared residual
Then the random vector and the random variable are independent.
Indeed, if the columns of form an orthonormal basis of , then , and the jointly Gaussian vectors and are uncorrelated because , hence independent. In the analysis of an inverse Wishart matrix this makes the regression coefficients of one row on the others independent of its residual, conditionally on the other rows.
Formalization Note. Independence is ProbabilityTheory.IndepFun with respect to the product measure Measure.pi fun _ => gaussianReal 0 1 on Fin k → ℝ.
Preamble
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
Formal statement
namespace GaussianMatrix
theorem regression_residual_indep {n k : ℕ} (H : Matrix (Fin n) (Fin k) ℝ) (hH : H.rank = n) :
IndepFun (fun g : Fin k → ℝ => H *ᵥ g)
(fun g : Fin k → ℝ => g ⬝ᵥ g - (H *ᵥ g) ⬝ᵥ ((H * Hᵀ)⁻¹ *ᵥ (H *ᵥ g)))
(Measure.pi fun _ : Fin k => gaussianReal 0 1) := by sorry
end GaussianMatrixSource
standard fact: uncorrelated components of a Gaussian vector are independent; for and a matrix with orthonormal columns spanning , ; see R. J. Muirhead, Aspects of Multivariate Statistical Theory, Wiley 1982, Ch. 1 (multivariate normal distribution: independence of uncorrelated normal subvectors) [section from memory].