Definition (Probe spectral estimation). For a Hermitian n\times n matrix and s probes, average their spectral measures with normalization 1/(ns). With isotropic probes, the expected measure equals the empirical eigenvalue measure. Lanczos quadrature provides finite-step approximations to the probe measures; its error must be accounted for separately.
Probe spectral estimation
Results
Theorem (The probe spectral measure is unbiased).
if every probe (column of the random test matrix \mathbf{\Omega}) is isotropic and m is nonempty, then for Hermitian \mathbf{A} and every f : \mathbb{R} \to \mathbb{R}, \mathbb{E}\int f\,d\,\mathsf{probeSpectralMeasure}(\mathbf{A}, \mathbf{\Omega}) = \int f\,d\nu_{\mathbf{A}}\,, \nu_{\mathbf{A}} the empirical spectral measure. No independence of the probes is needed: Gaussian, sign, and \sqrt{\lvert n\rvert} times uniform-sphere or Haar-frame probes are instances. With f = \mathbf{1}_S, the expected measure of every Borel set is \nu_{\mathbf{A}}(S). [ChenTrogdonUbaru2021, §3] (locator to check).
General form: sizes are index types
Lean statement and details
NLAlib.integral_integral_probeSpectralMeasure.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
{n : Type u_2} {m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] {Ω : Type u_4}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} [Nonempty m] {X : Ω → Matrix n m 𝕜}
(hX : ∀ (j : m), IsIsotropic (fun ω i ↦ X ω i j) μ) {A : Matrix n n 𝕜} (hA : A.IsHermitian)
(f : ℝ → ℝ) :
∫ (ω : Ω), ∫ (x : ℝ), f x ∂probeSpectralMeasure A (X ω) ∂μ =
∫ (x : ℝ), f x ∂empiricalSpectralMeasure ATheorem (The Kolmogorov-distance tail of the probe spectral measure).
Let the entries of the real n \times m test matrix \mathbf{\Omega} be independent, each satisfying the sub-Gaussian moment generating function bound with variance proxy c and having second moment 1. Then for real symmetric \mathbf{A} and every \tau \ge 0, the distribution functions of \nu_{\mathbf{A}} (the empirical spectral measure) and of \mathsf{probeSpectralMeasure}(\mathbf{A}, \mathbf{\Omega}) differ by more than \tau at some eigenvalue with probability at most 2\lvert n\rvert\exp\Bigl(-\frac{1}{196}\,m\lvert n\rvert\min\Bigl(\frac{\tau^2}{c^2}, \frac{\tau}{c}\Bigr)\Bigr)\,, the constant being hansonWrightConstant: a union bound over the at most \lvert n\rvert eigenvalues; both distribution functions are constant between eigenvalues, and Matrix.IsHermitian.abs_empiricalSpectralMeasure_real_Iic_sub_probeSpectralMeasure_real_Iic_le extends the bound to every threshold. [ChenTrogdonUbaru2021, §3] (locator to check); there for probes uniform on the sphere.
General form: sizes are index types
Lean statement and details
NLAlib.measureReal_exists_abs_empiricalSpectralMeasure_real_sub_probeSpectralMeasure_real_gt_le.{u_2,
u_3, u_4}
{n : Type u_2} {m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] {Ω : Type u_4}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {X : Ω → Matrix n m ℝ} {c : ℝ≥0}
(hind : iIndepFun (fun p ω ↦ X ω p.1 p.2) μ)
(hsub : ∀ (i : n) (j : m), HasSubgaussianMGF (fun ω ↦ X ω i j) c μ)
(hvar : ∀ (i : n) (j : m), ∫ (ω : Ω), X ω i j ^ 2 ∂μ = 1) {A : Matrix n n ℝ} (hA : A.IsHermitian)
{τ : ℝ} (hτ : 0 ≤ τ) :
μ.real
{ω |
∃ x ∈ spectrum ℝ A,
τ <
|(empiricalSpectralMeasure A).real (Set.Iic x) -
(probeSpectralMeasure A (X ω)).real (Set.Iic x)|} ≤
2 * ↑(Fintype.card n) *
rexp
(-(hansonWrightConstant *
(↑(Fintype.card m) * ↑(Fintype.card n) * min (τ ^ 2 / ↑c ^ 2) (τ / ↑c))))Theorem (O(c^2\log(\lvert n\rvert/\delta)/(\lvert n\rvert\tau^2)) probes suffice for SLQ to approximate the spectral density, uniformly in Lipschitz test functions).
there is an absolute constant C > 0 such that the following holds. Let the entries of the real n \times m test matrix \mathbf{\Omega} be independent, each satisfying the sub-Gaussian moment generating function bound with variance proxy c > 0 and having second moment 1; let \mathbf{A} be real symmetric with spectrum in [a, b], a < b; let L \ge 0, q \in \mathbb{N}, 0 < \tau \le 1 and 0 < \delta \le 1. If m \ge C c^2\log(2\lvert n\rvert/\delta)/(\lvert n\rvert\tau^2), then except with probability at most \delta every f that is L-Lipschitz on [a, b] satisfies \Bigl\lvert\int f\,d\nu_{\mathbf{A}} - \int f\,d\,\mathsf{slqMeasure}(\mathbf{A}, \mathbf{\Omega}, q + 1)\Bigr\rvert \le (\lvert f(b)\rvert + L(b - a))\tau + \frac{\pi L(b - a)}{2q + 3}(1 + \tau)\,, \nu_{\mathbf{A}} the empirical spectral measure; the constant of the Gauss term is jacksonApproximationConstant. The constant C comes before every dimension, matrix and parameter. With \lvert n\rvert in the denominator, for large n a single probe suffices. Proved from NLAlib.measureReal_exists_abs_integral_empiricalSpectralMeasure_sub_integral_slqMeasure_gt_le with C = 196. [ChenTrogdonUbaru2021, the Wasserstein bound for SLQ] (theorem number to check); there for probes uniform on the sphere. Asymptotic: NLAlib.measureReal_exists_abs_integral_empiricalSpectralMeasure_sub_integral_slqMeasure_gt_le
General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_measureReal_exists_abs_integral_empiricalSpectralMeasure_sub_integral_slqMeasure_gt_le :
∃ C,
0 < C ∧
∀ {Ω n m : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype n] [inst_2 : DecidableEq n]
[inst_3 : Fintype m] (μ : Measure Ω) (X : Ω → Matrix n m ℝ) (c : ℝ≥0) (A : Matrix n n ℝ)
(a b : ℝ) (L : ℝ≥0) (q : ℕ) (τ δ : ℝ),
0 < c →
iIndepFun (fun p ω ↦ X ω p.1 p.2) μ →
(∀ (i : n) (j : m), HasSubgaussianMGF (fun ω ↦ X ω i j) c μ) →
(∀ (i : n) (j : m), ∫ (ω : Ω), X ω i j ^ 2 ∂μ = 1) →
A.IsHermitian →
a < b →
spectrum ℝ A ⊆ Set.Icc a b →
0 < τ →
τ ≤ 1 →
0 < δ →
δ ≤ 1 →
C * ↑c ^ 2 * Real.log (2 * ↑(Fintype.card n) / δ) /
(↑(Fintype.card n) * τ ^ 2) ≤
↑(Fintype.card m) →
μ.real
{ω |
∃ f,
LipschitzOnWith L f (Set.Icc a b) ∧
(|f b| + ↑L * (b - a)) * τ +
jacksonApproximationConstant * ↑L * (b - a) /
(2 * ↑q + 3) *
(1 + τ) <
|∫ (x : ℝ), f x ∂empiricalSpectralMeasure A -
∫ (x : ℝ), f x ∂slqMeasure A (X ω) (q + 1)|} ≤
δMathematical background
Spectral theory
The spectral theorem, eigenvalue variational principles, interlacing, and positive definiteness.
Orthogonal polynomials and quadrature
Three-term recurrences and Gauss, Gauss–Radau, and Gauss–Lobatto quadrature.
Probability for numerical linear algebra
Distributions, random matrices, and concentration bounds used in randomized numerical algorithms.