← ALL STATEMENTS
AcceptedTheorem · Statement with omitted proof

Expectation and tail bounds for matrix sampling

Averages of bounded independent matrix samples approximate their mean in spectral norm.

Martinsson & Tropp ↗
Source label: thm:mtx-sampling

Formal statement. The assumptions and conclusion are explicit; the theorem proof is omitted (sorry).

01 / MATHEMATICAL STATEMENT

Meaning & conditions

Mathematical summary

Averages of bounded independent matrix samples approximate their mean in spectral norm.

E∥X‾k−B∥≤2vlog⁡(m+n)k+2Rlog⁡(m+n)3k,Pr⁡{∥X‾k−B∥≥t}≤(m+n)exp⁡(−kt2/2v+2Rt/3),t≥0.\begin{aligned}\mathbb E\|\overline X_k-B\|&\le\sqrt{\frac{2v\log(m+n)}k}+\frac{2R\log(m+n)}{3k},\\ \Pr\{\|\overline X_k-B\|\ge t\}&\le(m+n)\exp\left(\frac{-kt^2/2}{v+2Rt/3}\right),\quad t\ge0.\end{aligned}

Assumptions & context

  • The samples are iid copies of X with E X = B and ‖X‖ ≤ R almost surely; k > 0 and m+n > 0. Let v be the maximum of the two second-moment operator norms.

Source

Martinsson & Tropp. Randomized numerical linear algebra: Foundations and algorithms.

Source label: thm:mtx-sampling

02 / LEAN REPRESENTATION

Formal statement

Statement with omitted proof. Expand the complete file below to read imports, local definitions and surrounding context.

theorem matrix_sampling_bound
    {Ω 𝕜 : Type*} [MeasurableSpace Ω] [RCLike 𝕜] [MeasurableSpace 𝕜] [BorelSpace 𝕜]
    (P : Measure Ω) [IsProbabilityMeasure P]
    {m n : ℕ} (hdim : 0 < m + n) (B : Matrix (Fin m) (Fin n) 𝕜) (R : ℝ)
    (X : Ω → Matrix (Fin m) (Fin n) 𝕜) (hXmeas : Measurable X)
    (hmean : matrixExpectation P X = B)
    (hbound : ∀ᵐ ω ∂P, ‖X ω‖ ≤ R)
    (k : ℕ) (hk : 0 < k)
    (Xs : Fin k → Ω → Matrix (Fin m) (Fin n) 𝕜)
    (hindep : ProbabilityTheory.iIndepFun Xs P)
    (hident : ∀ i, ProbabilityTheory.IdentDistrib (Xs i) X P P) :
    (∫ ω, ‖matrixSamplingEstimator k Xs ω - B‖ ∂P ≤
        Real.sqrt (2 * perSampleSecondMoment P X * Real.log ((m : ℝ) + n) / k)
          + 2 * R * Real.log ((m : ℝ) + n) / (3 * k)) ∧
    (∀ t : ℝ, 0 ≤ t →
      P {ω | t ≤ ‖matrixSamplingEstimator k Xs ω - B‖} ≤
        ENNReal.ofReal (((m : ℝ) + n) *
          Real.exp ((-((k : ℝ) * t ^ 2 / 2)) /
            (perSampleSecondMoment P X + 2 * R * t / 3)))) := by
  sorry
Complete Lean file and local definitions
import RNLAPhaseB.B3Base
import RNLAPhaseB.Complexity

open MeasureTheory
open scoped Matrix
open scoped Matrix.Norms.L2Operator
open scoped BigOperators
open scoped ENNReal

namespace RNLAPhaseB.MtxSampling

/-- Measurable-space structure on finite matrices over a measurable scalar type,
inherited from their representation as finitely indexed functions. -/
noncomputable instance instMeasurableSpaceMatrixFinScalar {α : Type*} [MeasurableSpace α]
    (p q : ℕ) : MeasurableSpace (Matrix (Fin p) (Fin q) α) := by
  unfold Matrix
  infer_instance

/-- Expectation `𝔼 M` of a matrix-valued random variable, taken entrywise as a
Bochner integral against the sample measure. -/
noncomputable def matrixExpectation {Ω 𝕜 : Type*} [MeasurableSpace Ω] [RCLike 𝕜]
    {p q : ℕ} (P : Measure Ω) (M : Ω → Matrix (Fin p) (Fin q) 𝕜) :
    Matrix (Fin p) (Fin q) 𝕜 :=
  Matrix.of fun i j => ∫ ω, M ω i j ∂P

/-- The per-sample second moment
`v(X) := max { ‖𝔼[X X^*]‖, ‖𝔼[X^* X]‖ }` (spectral norms). -/
noncomputable def perSampleSecondMoment {Ω 𝕜 : Type*} [MeasurableSpace Ω] [RCLike 𝕜]
    {m n : ℕ} (P : Measure Ω) (X : Ω → Matrix (Fin m) (Fin n) 𝕜) : ℝ :=
  max ‖matrixExpectation P (fun ω => X ω * (X ω)ᴴ)‖
    ‖matrixExpectation P (fun ω => (X ω)ᴴ * X ω)‖

/-- The matrix sampling estimator `X̄_k = (1/k) ∑_{i=1}^k X_i`. -/
noncomputable def matrixSamplingEstimator {Ω 𝕜 : Type*} [RCLike 𝕜] {m n : ℕ} (k : ℕ)
    (Xs : Fin k → Ω → Matrix (Fin m) (Fin n) 𝕜) : Ω → Matrix (Fin m) (Fin n) 𝕜 :=
  fun ω => ((k : 𝕜)⁻¹) • ∑ i, Xs i ω

/-- Matrix sampling (matrix Bernstein) bound, mt2020::thm:mtx-sampling.
The field `𝔽` is ℝ or ℂ (`RCLike 𝕜`); `‖·‖` is the spectral norm (scoped L2
operator norm). `X` is a random matrix with `𝔼 X = B` and `‖X‖ ≤ R` (almost surely);
`X_1, …, X_k` are iid copies of `X`.

Domain: the source's bounds involve `log(m+n)` and the factor `(m+n)`, which
presuppose `m + n ≥ 1`. The degenerate case `m = n = 0` is not meaningfully covered
by the source (`log 0` is undefined), so the statement is restricted to
`0 < m + n` (hypothesis `hdim`). No other dimension restriction is imposed. -/
theorem matrix_sampling_bound
    {Ω 𝕜 : Type*} [MeasurableSpace Ω] [RCLike 𝕜] [MeasurableSpace 𝕜] [BorelSpace 𝕜]
    (P : Measure Ω) [IsProbabilityMeasure P]
    {m n : ℕ} (hdim : 0 < m + n) (B : Matrix (Fin m) (Fin n) 𝕜) (R : ℝ)
    (X : Ω → Matrix (Fin m) (Fin n) 𝕜) (hXmeas : Measurable X)
    (hmean : matrixExpectation P X = B)
    (hbound : ∀ᵐ ω ∂P, ‖X ω‖ ≤ R)
    (k : ℕ) (hk : 0 < k)
    (Xs : Fin k → Ω → Matrix (Fin m) (Fin n) 𝕜)
    (hindep : ProbabilityTheory.iIndepFun Xs P)
    (hident : ∀ i, ProbabilityTheory.IdentDistrib (Xs i) X P P) :
    (∫ ω, ‖matrixSamplingEstimator k Xs ω - B‖ ∂P ≤
        Real.sqrt (2 * perSampleSecondMoment P X * Real.log ((m : ℝ) + n) / k)
          + 2 * R * Real.log ((m : ℝ) + n) / (3 * k)) ∧
    (∀ t : ℝ, 0 ≤ t →
      P {ω | t ≤ ‖matrixSamplingEstimator k Xs ω - B‖} ≤
        ENNReal.ofReal (((m : ℝ) + n) *
          Real.exp ((-((k : ℝ) * t ^ 2 / 2)) /
            (perSampleSecondMoment P X + 2 * R * t / 3)))) := by
  sorry

end RNLAPhaseB.MtxSampling

How to read the formalization

  • The rectangular dimensions enter through log(m+n). The expected error and the tail probability are distinct conclusions.
← Back to all statements