NLA-lib Explorer

The mean logarithmic overlap

Library · Result group

Theorem (integral_log_norm_sq_div_sq_le_of_hasLaw_gaussianVector). The mean logarithmic overlap. For a standard Gaussian vector \mathbf{g} in \mathbb{R}^n and a unit vector \mathbf{u}, with N = \lvert n \rvert, \mathbb{E} \log \frac{\|\mathbf{g}\|^2}{\langle \mathbf{u}, \mathbf{g} \rangle^2} \le \log(2N) + 2, whereas the inverse squared overlap has infinite expectation when N \ge 2. When N = 1, the quotient is 1 almost surely and its logarithm has expectation 0. Integrating the tail NLAlib.measureReal_log_norm_sq_div_sq_ge_le_of_hasLaw_gaussianVector; the random-start step of the power and Lanczos methods [KuczynskiWozniakowski1992]. The exact mean is \psi(N/2) - \psi(1/2) \sim \log(2N) + \gamma (digamma \psi, Euler's constant \gamma), so the additive constant is not tight.

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.integral_log_norm_sq_div_sq_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {u : n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hu : ‖WithLp.toLp 2 u‖ = 1) :
  ∫ (ω : Ω), Real.log (‖WithLp.toLp 2 (g ω)‖ ^ 2 / (u ⬝ᵥ g ω) ^ 2) ∂μ ≤
    Real.log (2 * ↑(Fintype.card n)) + 2

Full source on GitHub

Copy link

Other forms

Theorem (integral_log_norm_sq_div_sq_sq_le_of_hasLaw_gaussianVector). The second moment of the logarithmic overlap. For a standard Gaussian vector \mathbf{g} in \mathbb{R}^n and a unit vector \mathbf{u}, with T = \log(2N) and N = \lvert n \rvert, \mathbb{E}\Bigl(\log \frac{\|\mathbf{g}\|^2}{\langle \mathbf{u}, \mathbf{g} \rangle^2}\Bigr)^2 \le T^2 + 4T + 8, so the logarithmic overlap has variance O(1) around a mean of order \log N. Integrating the tail NLAlib.measureReal_log_norm_sq_div_sq_ge_le_of_hasLaw_gaussianVector beyond T.

General form: sizes are index types

Lean statement and details
NLAlib.integral_log_norm_sq_div_sq_sq_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {u : n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hu : ‖WithLp.toLp 2 u‖ = 1) :
  ∫ (ω : Ω), Real.log (‖WithLp.toLp 2 (g ω)‖ ^ 2 / (u ⬝ᵥ g ω) ^ 2) ^ 2 ∂μ ≤
    Real.log (2 * ↑(Fintype.card n)) ^ 2 + 4 * Real.log (2 * ↑(Fintype.card n)) + 8

Full source on GitHub

Copy link

Theorem (measureReal_log_norm_sq_div_sq_ge_le_of_hasLaw_gaussianVector). The tail of the logarithmic overlap. For a standard Gaussian vector \mathbf{g} in \mathbb{R}^n and a unit vector \mathbf{u}, for every real t, \mathbb{P}\Bigl[t \le \log \frac{\|\mathbf{g}\|^2}{\langle \mathbf{u}, \mathbf{g} \rangle^2} \Bigr] \le \sqrt{2N}\, e^{-t/2}, with N = \lvert n \rvert; the bound is below 1 exactly when t > \log(2N). The logarithm is 0 on the null event \langle \mathbf{u}, \mathbf{g} \rangle = 0. The random-start step of the power and Lanczos methods [KuczynskiWozniakowski1992], in logarithmic form.

General form: sizes are index types

Lean statement and details
NLAlib.measureReal_log_norm_sq_div_sq_ge_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {u : n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hu : ‖WithLp.toLp 2 u‖ = 1) (t : ℝ) :
  μ.real {ω | t ≤ Real.log (‖WithLp.toLp 2 (g ω)‖ ^ 2 / (u ⬝ᵥ g ω) ^ 2)} ≤
    √(2 * ↑(Fintype.card n)) * rexp (-t / 2)

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.