NLA-lib Explorer

Moments of Haar frames

Library · Source module

Moments of Haar frames

Exact second moments of an n \times k Haar frame \mathbf{Q} (\lvert k \rvert \le \lvert n \rvert), from orthogonal invariance alone: \mathbb{E}[\mathbf{Q}\mathbf{B}\mathbf{Q}^{\mathsf{H}}] = (\operatorname{tr} \mathbf{B} / \lvert n \rvert) \, \mathbf{I}, in particular \mathbb{E}[\mathbf{Q}\mathbf{Q}^{\mathsf{H}}] = (\lvert k \rvert / \lvert n \rvert) \, \mathbf{I}; \mathbb{E}[\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}] = (\operatorname{tr} \mathbf{A} / \lvert n \rvert) \, \mathbf{I}; \mathbb{E} \, \mathbf{Q}_{i,j}^2 = 1 / \lvert n \rvert; and \sqrt{\lvert n \rvert} times a column is isotropic. The integrands are bounded (ae_specNorm_le_one_of_hasLaw_haarFrame), so the integrability companions hold in every shape.

These are what a Haar sketch \mathbf{S} = \sqrt{\lvert n \rvert / \lvert k \rvert} \, \mathbf{Q}^{\mathsf{H}} needs for \mathbb{E}[\mathbf{S}^{\mathsf{H}}\mathbf{S}] = \mathbf{I}, and what trace estimation with sphere probes or an orthonormal test matrix consumes. The fourth moment of a projected column, \mathbb{E}\|\mathbf{V}^{\mathsf{H}}\mathbf{u}\|^4 for \mathbf{u} uniform on the sphere, is in NLAlib/RandomMatrix/Haar/Sphere.lean, also from invariance. The inverse mean of the Beta matrix \mathbf{W}\mathbf{Q}\mathbf{Q}^{\mathsf{H}}\mathbf{W}^{\mathsf{H}}, a moment of a block of \mathbf{Q}, is NLAlib.integral_frobNorm_pinv_const_mul_sq_of_hasLaw_haarFrame in NLAlib/RandomMatrix/Haar/Blocks.lean.

The fourth moments enter through the variance of a Haar compression: for real symmetric \mathbf{A} and \lvert n \rvert \ge 2, \operatorname{Var}\operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) = \frac{2\lvert k \rvert(\lvert n \rvert - \lvert k \rvert)} {(\lvert n \rvert - 1)\lvert n \rvert(\lvert n \rvert + 2)} \Bigl(\|\mathbf{A}\|_{\mathsf{F}}^2 - \frac{(\operatorname{tr} \mathbf{A})^2}{\lvert n \rvert} \Bigr)\,, from invariance and the fourth moment of a projected sphere vector. Its case \lvert k \rvert = 1 is the variance of the Girard–Hutchinson estimate with a probe uniform on the sphere of radius \sqrt{\lvert n \rvert}, (2\lvert n \rvert/(\lvert n \rvert + 2)) (\|\mathbf{A}\|_{\mathsf{F}}^2 - (\operatorname{tr}\mathbf{A})^2/\lvert n \rvert), and the complex sphere of \mathbb{C}^n, the image of the real sphere of \mathbb{R}^{n \sqcup n}, gives (\lvert n \rvert/(\lvert n \rvert + 1))(\|\mathbf{A}\|_{\mathsf{F}}^2 - \lvert\operatorname{tr}\mathbf{A}\rvert^2/\lvert n \rvert) for e\mathbf{v}ery comple\mathbf{x} \mathbf{A} (Epperly's reduction to the real case). The m-probe estimator is NLAlib/Estimation/Trace/GirardHutchinson.lean.

Main results

* NLAlib.integral_mul_mul_conjTranspose_of_hasLaw_haarFrame, NLAlib.integral_mul_conjTranspose_of_hasLaw_haarFrame. * NLAlib.integral_conjTranspose_mul_mul_of_hasLaw_haarFrame, NLAlib.integral_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame. * NLAlib.integral_apply_sq_of_hasLaw_haarFrame. * NLAlib.isIsotropic_sqrt_mul_col_of_hasLaw_haarFrame. * NLAlib.variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame, its multiplied form NLAlib.mul_variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame (every \lvert n \rvert) and the form for any real matrix, NLAlib.variance_trace_conjTranspose_mul_mul_eq_hermitianPart_of_hasLaw_haarFrame. * NLAlib.variance_quadForm_sqrt_smul_of_hasLaw_uniformSphereVector, NLAlib.variance_quadForm_sqrt_smul_eq_hermitianPart_of_hasLaw_uniformSphereVector: real sphere probes.

Declarations