The Observation Theory EncyclopediaFrom TSKAboutBy kindBy chapterBy Lean fileLedgerProvenance

trace concept

DefinitionThe sum of a matrix's diagonal, which for a covariance is the total variance. Equation 0.3.
Examplediag(0.3, 1.7) has trace 2.0, the total variance.
BookData Mining as Observation, draft 0.2, commit f3914f0; entry id trace, kind concept.
Statusmeasures [demonstrated]. Corrections: none recorded.
Defining equation

Book equation 0.3.

Assumptions and scope
  • The sum of a matrix’s diagonal. It is linear, the trace of the identity is the dimension, the trace of an outer product is the vector’s squared length, the trace of a product does not depend on the order, and the trace of a read operator times a rank-one error is the read distortion of that error.
  • For a covariance the trace is the total variance, and the trace pairing of a read operator with a second moment is the invariant the ledger’s row OT-7 names, unchanged by a change of basis where the spectrum and effective rank are not.
Prior artnone recorded
Evidencegeometric-observation/claims/LEDGER.md:30, lean/DataMiningAsObservation/Trace.lean
Reviewednot yet reviewed; generated 2026-09-10 from records at the commits on the provenance page.
tr Σ
The sum of the diagonal, the total variance for a covariance.

Equation

Book equation 0.3.

\[\Sigma_{ij}=\mathbb E\big[(x_i-\mu_i)(x_j-\mu_j)\big],\qquad \operatorname{tr}\Sigma=\sum_{i}\Sigma_{ii}.\]

Book equation 0.10.

\[d_O=\operatorname{tr}(P_C\,M_\delta)=\mathbb E\!\left[\delta^{\top}P_C\,\delta\right],\qquad M_\delta=\mathbb E\!\left[\delta\delta^{\top}\right],\qquad P_C=I\ \Rightarrow\ d_O=\operatorname{tr}M_\delta.\]

Conditions

Conditions are curated in entries.toml rather than read from a record.

Ledger

First stated

Chapter 0 section 0.2 of Data Mining as Observation, with the trace pairing of Volume 14’s invariance row OT-7.

Measurements

none

Failures and corrections

none

Invariance envelope

none declared

Machine checked

lean/DataMiningAsObservation/Trace.lean, theorems trace_add, trace_smul, trace_one, trace_vecMulVec, trace_mul_comm, trace_read, trace_identity_read, at observation-data-mining f3914f0; what the check covers is stated in the book’s appendix C.

Used in

Data Mining as Observation primer L, chapters 0, 1, 3, 4, 13.

Related

covariance matrix; read distortion; identity reader; effective rank.

See also

Ledger rows that cite the entry’s records without naming it: OT-2.

Sources-table rows that share a record with the entry without naming it: chapter 2 section 2.2.

Status

Generated 2026-09-10 by encyclopedia/generate.py; book at observation-data-mining f3914f0; the commit of every record is listed in the encyclopedia’s provenance.

← tokentransaction →