Generalized least squares
DefinitionGeneralized least-squares matrix#✓fully proved
MathlibExt.Probability.Statistics.GeneralizedLeastSquares.glsMatrix
The generalized least-squares matrix (Xᵀ V⁻¹ X)⁻¹ Xᵀ V⁻¹; glsMatrix X V *ᵥ y is the GLS
estimate of b in y = X b + e with Cov e = V.
TheoremUnbiasedness of the generalized least-squares estimator#✓fully proved
MathlibExt.Probability.Statistics.GeneralizedLeastSquares.glsMatrix_mul_self
The GLS estimator is unbiased: B X = 1 when Xᵀ V⁻¹ X is invertible.
theorem glsMatrix_mul_self (hX : IsUnit (Xᵀ * V⁻¹ * X)) : glsMatrix X V * X = 1
noncomputable def glsMatrix (X : Matrix m k ℝ) (V : Matrix m m ℝ) : Matrix k m ℝ :=
(Xᵀ * V⁻¹ * X)⁻¹ * Xᵀ * V⁻¹
MathlibExt/Probability/Statistics/GeneralizedLeastSquares.lean:48
Uses 1 · Used by 1
Statement usesGeneralized least-squares matrix
Used byAitken's theorem
TheoremCovariance of the generalized least-squares estimator#✓fully proved
MathlibExt.Probability.Statistics.GeneralizedLeastSquares.glsMatrix_mul_mul_transpose
The covariance of the GLS estimator: B V Bᵀ = (Xᵀ V⁻¹ X)⁻¹.
theorem glsMatrix_mul_mul_transpose (hV : V.PosDef) (hX : IsUnit (Xᵀ * V⁻¹ * X)) :
glsMatrix X V * V * (glsMatrix X V)ᵀ = (Xᵀ * V⁻¹ * X)⁻¹
noncomputable def glsMatrix (X : Matrix m k ℝ) (V : Matrix m m ℝ) : Matrix k m ℝ :=
(Xᵀ * V⁻¹ * X)⁻¹ * Xᵀ * V⁻¹
MathlibExt/Probability/Statistics/GeneralizedLeastSquares.lean:48
Uses 1
Statement usesGeneralized least-squares matrix
TheoremAitken's theorem#✓fully proved
MathlibExt.Probability.Statistics.GeneralizedLeastSquares.aitken
The GLS estimator has minimal covariance among linear unbiased
estimators: for every A with A X = 1, A V Aᵀ - B V Bᵀ is positive semidefinite, where
B = glsMatrix X V.
theorem aitken (hV : V.PosDef) (hX : IsUnit (Xᵀ * V⁻¹ * X)) (A : Matrix k m ℝ)
(hA : A * X = 1) :
(A * V * Aᵀ - glsMatrix X V * V * (glsMatrix X V)ᵀ).PosSemidef
noncomputable def glsMatrix (X : Matrix m k ℝ) (V : Matrix m m ℝ) : Matrix k m ℝ :=
(Xᵀ * V⁻¹ * X)⁻¹ * Xᵀ * V⁻¹
MathlibExt/Probability/Statistics/GeneralizedLeastSquares.lean:48
Uses 2
Statement usesGeneralized least-squares matrix
4 fully proved
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.