Skip to content
Quantoros

Why does the trace of a covariance matrix equal total coordinate variance?

MathematicsLevel: IntermediateMatrix geometry and computation

Why does the trace of a covariance matrix equal total coordinate variance?

Hints
  • Inspect the covariance diagonal.
  • Trace is rotation invariant.

Answer

Its diagonal entries are coordinate variances, and trace sums them. Orthogonal rotations preserve this total even though individual coordinate variances change.

Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial

Related questions