The positive semidefinite solution of A * S * A = T #
The Loewner order on square matrices makes Matrix n n π an algebra with a continuous functional
calculus, so TauCeti.geometricMean applies to it: for S positive definite and T positive
semidefinite there is exactly one positive semidefinite A with A * S * A = T, namely
TauCeti.geometricMean Sβ»ΒΉΚ³ T, which is the classical matrix
β(Sβ»ΒΉ) * β(βS * T * βS) * β(Sβ»ΒΉ).
Read through covariance matrices, that matrix is the linear map pushing a centred Gaussian law of
covariance S forward to one of covariance T, that is, the Brenier map between two Gaussians.
The solution is Hermitian, so for positive definite S and positive semidefinite T it solves
the congruence equation A * S * Aα΄΄ = T as well; when T is positive definite the solution is
positive definite itself, and its inverse is the solution TauCeti.geometricMean Tβ»ΒΉΚ³ S of the
reversed equation.
Main results #
Matrix.PosDef.existsUnique_posSemidef_mul_mul: existence and uniqueness of that matrix.Matrix.PosDef.geometricMean_ringInverse_eq_sqrt_mul_mul_sqrt: that matrix is the congruence(βS)β»ΒΉ * β(βS * T * βS) * (βS)β»ΒΉof the positive square root ofβS * T * βS.Matrix.isHermitian_geometricMeanandMatrix.PosDef.posDef_geometricMean_ringInverse: the geometric mean is Hermitian, and this one is positive definite whenTis.Matrix.PosDef.mul_mul_conjTranspose_geometricMean: the solution satisfiesA * S * Aα΄΄ = T.Matrix.PosDef.inv_geometricMean_ringInverse: reversingSandTinverts the solution.Matrix.PosDef.trace_geometricMean_ringInverse_mul: the cross trace of the solution is the trace of the square root of the covariance sandwich.Matrix.PosDef.trace_one_sub_geometricMean_ringInverse_mul_mul_conjTranspose: the trace of the covariance left by subtracting the standard positive map.
For a positive definite S and a positive semidefinite T there is exactly one positive
semidefinite matrix A with A * S * A = T; it is TauCeti.geometricMean Sβ»ΒΉΚ³ T.
The standard positive matrix, its Hermitian symmetry, and its inverse #
The standard positive matrix. For a positive-definite S the matrix
geometricMean Sβ»ΒΉΚ³ T is the congruence (βS)β»ΒΉ * β(βS * T * βS) * (βS)β»ΒΉ of the positive
square root of βS * T * βS by the inverse (βS)β»ΒΉ of the positive square root of S; when T
is positive semidefinite it is the solution A of A * S * A = T.
The solution is Hermitian. The geometric mean
βa * β(βaβ»ΒΉ * b * βaβ»ΒΉ) * βa is a Hermitian matrix sandwiched between two copies of a
Hermitian matrix: each square root is nonnegative, hence Hermitian. No positivity hypothesis is
needed, so this is a statement about geometricMean a b for every a and b; in particular the
solution A of A * S * A = T is Hermitian whenever S is positive definite and T is
positive semidefinite.
The standard positive matrix of two positive-definite matrices is positive definite: the geometric mean of a strictly positive and of a strictly positive element is strictly positive.
The congruence form. The solution A of A * S * A = T for positive-definite S and
positive-semidefinite T is Hermitian by isHermitian_geometricMean, so it solves the
congruence A * S * Aα΄΄ = T as well. This is the form in which a covariance matrix transforms
under a change of variables; over the reals Aα΄΄ is the transpose Aα΅.
An algebraic trace identity for geometricMean Sβ»ΒΉΚ³ T. When T is positive semidefinite,
the geometric mean is the standard positive solution and the right-hand side is the trace of the
positive square root of the covariance sandwich.
The trace of the covariance transformed by 1 - A, for the standard positive solution
A * S * A = T, is the Bures covariance expression.
Reversing the equation inverts the solution. The solution of A * S * A = T, inverted, is
the solution of B * T * B = S: the geometric mean commutes with inversion and is symmetric in
its two arguments.