NLA-lib Explorer

The Girard–Hutchinson trace estimator

Library · Source module

The Girard–Hutchinson trace estimator

For a square \mathbf{A} and a test matrix \mathbf{\Omega} with m columns (the probes \boldsymbol{\omega}_1, \dots, \boldsymbol{\omega}_m), the Girard–Hutchinson estimate is \mathsf{girardHutchinson}(\mathbf{A}, \mathbf{\Omega}) := \frac{1}{m}\operatorname{tr}(\mathbf{\Omega}^{\mathsf{H}}\mathbf{A}\mathbf{\Omega}) = \frac{1}{m}\sum_{j=1}^m \boldsymbol{\omega}_j^{\mathsf{H}}\mathbf{A}\boldsymbol{\omega}_j\,. It is unbiased when every probe is isotropic, and with independent probes its variance is the single-probe variance divided by m. The single-probe variances are proved where their laws live: independent coordinates (real Gaussian, Rademacher) in NLAlib/Probability/QuadraticForm/Moments.lean, the real sphere and Haar frames in NLAlib/RandomMatrix/Haar/Moments.lean. With the probes \sqrt{\lvert n \rvert} times the columns of a Haar frame, which are not independent, the variance is computed exactly here.

Main definitions

* NLAlib.girardHutchinson.

Main results

* NLAlib.girardHutchinson_eq_sum: the average of the single-probe estimates. * NLAlib.integral_girardHutchinson: unbiasedness. * NLAlib.integral_norm_trace_sub_girardHutchinson_sq, NLAlib.variance_girardHutchinson: the variance with m independent probes is the single-probe variance divided by m. * NLAlib.variance_girardHutchinson_sqrt_smul_of_hasLaw_haarFrame: orthonormal (Haar) probes. * NLAlib.integral_norm_trace_sub_girardHutchinson_sq_of_hasLaw_gaussianMatrix, NLAlib.integral_norm_trace_sub_girardHutchinson_sq_of_hasLaw_rademacherMatrix: the mean-square error with Gaussian and with sign probes, for any real matrix. * NLAlib.measureReal_abs_trace_sub_girardHutchinson_ge_le: the tail with independent sub-Gaussian entries, from Hanson–Wright. * NLAlib.girardHutchinson_smul: homogeneity in the matrix.

Declarations