Section SB · Deterministic equivalents for the EMA Gram resolvent
Proved in Lean
Lemma SB.8 (Gaussian response)
Let \(A\in\R^{\Nout\times\Nin}\) be deterministic, \(z\sim\mathcal N(0,\Id_{\Nout})\), \(w\sim\mathcal N(0,\Id_{\Nin})\) independent, and \(d=z^\T Aw\). Let \(f\in C^3(\R)\) and \(\psi\in C^2(\R)\) have polynomially bounded derivatives up to the stated orders. Then
\begin{align}
\EE[(z\tensor w)\,f(d)]&=A\,\EE f'(d)+A\,\EE[(w\tensor w)\,f'''(d)]\,A^\T A,
\tag{SB.22}\\
\norm{\EE[(z\tensor w)\,f(d)]-A\,\EE f'(d)}_\F&\le\norm{f'''}_\infty\norm A^2\norm A_\F,
\notag\\
\EE[(z\tensor z-\Id)\,\psi(d)]&=A\,\EE[(w\tensor w)\,\psi''(d)]\,A^\T,
\tag{SB.23}\\
\norm{\EE[(z\tensor z-\Id)\,\psi(d)]}_\F&\le\norm{\psi''}_\infty\norm A\norm A_\F,
\notag
\end{align}
Proof.
The tool is Stein’s lemma [96, Lemma 1]: for \(g\sim\mathcal N(0,1)\) and an absolutely continuous \(\phi\) with \(\EE\abs{\phi'(g)}<\infty\),
\begin{equation}\tag{SB.24}
\EE[g\,\phi(g)]=\EE\phi'(g).
\end{equation}
We apply it to one coordinate of \(z\) or \(w\) at a time, conditionally on all other coordinates. The partial derivatives of \(d=z^\T Aw\) are
\[
\partial_{z_i}d=(Aw)_i,\qquad \partial_{w_l}d=(A^\T z)_l .
\]
The first identity is obtained by three applications of (SB.24). Applying it to the coordinate \(z_i\) gives
\[
\EE[z_iw_lf(d)]=\EE\big[w_l\,\partial_{z_i}f(d)\big]=\EE\big[w_l\,(Aw)_i\,f'(d)\big].
\]
Applying it to the coordinate \(w_l\), with the product rule, gives
\[
\EE\big[w_l\,(Aw)_i\,f'(d)\big]=\EE\big[\partial_{w_l}\big((Aw)_if'(d)\big)\big]
=A_{il}\,\EE f'(d)+\EE\big[(Aw)_i\,(A^\T z)_l\,f''(d)\big].
\]
In matrix form the two steps read
\begin{equation}\tag{SB.25}
\EE[(z\tensor w)\,f(d)]=A\,\EE f'(d)+A\,\EE[(w\tensor z)\,f''(d)]\,A .
\end{equation}
Applying (SB.24) to the coordinate \(z_l\) inside the remaining expectation gives
\[
\EE[w_kz_lf''(d)]=\EE\big[w_k\,(Aw)_l\,f'''(d)\big],\qquad\text{that is,}\qquad
\EE[(w\tensor z)\,f''(d)]=\EE[(w\tensor w)\,f'''(d)]\,A^\T .
\]
The bound for the first identity has two steps. The matrix \(N\defeq\EE[(w\tensor w)\,f'''(d)]\) satisfies
\[
\norm N=\sup_{\norm x=\norm y=1}\big|\EE\big[(x^\T w)(y^\T w)f'''(d)\big]\big|
\le\norm{f'''}_\infty\sup_{\norm x=\norm y=1}\EE\big[\abs{x^\T w}\,\abs{y^\T w}\big]\le\norm{f'''}_\infty ,
\]
the last step by the Cauchy–Schwarz inequality and \(\EE(x^\T w)^2=\norm x^2\). Then
\[
\norm{A\,N\,A^\T A}_\F\le\norm A\,\norm N\,\norm{A^\T A}_\F\le\norm A\,\norm N\,\norm A\,\norm A_\F
\le\norm{f'''}_\infty\norm A^2\norm A_\F ,
\]
using \(\norm{XY}_\F\le\norm X\norm Y_\F\) twice.
The second identity is obtained by two applications of (SB.24). Applying it to the coordinate \(z_i\) of \(z_i\cdot z_k\psi(d)\) gives
\[
\EE[z_iz_k\psi(d)]=\EE\big[\partial_{z_i}\big(z_k\psi(d)\big)\big]
=\delta_{ik}\,\EE\psi(d)+\EE\big[z_k\,(Aw)_i\,\psi'(d)\big],
\]
that is, in matrix form,
\[
\EE[(z\tensor z-\Id)\,\psi(d)]=A\,\EE[(w\tensor z)\,\psi'(d)].
\]
The step from \(\EE[(w\tensor z)\,f''(d)]\) to \(\EE[(w\tensor w)\,f'''(d)]A^\T\) above, applied with \(\psi'\) in place of \(f''\), gives \(\EE[(w\tensor z)\,\psi'(d)]=\EE[(w\tensor w)\,\psi''(d)]A^\T\), which proves (SB.23). Its bound is the same two-step estimate with \(\norm{\psi''}_\infty\) in place of \(\norm{f'''}_\infty\) and one factor of \(\norm A\) fewer:
\[
\norm{A\,\EE[(w\tensor w)\,\psi''(d)]\,A^\T}_\F\le\norm A\,\norm{\psi''}_\infty\,\norm{A^\T}_\F=\norm{\psi''}_\infty\norm A\norm A_\F .
\]
The last claim follows from the symmetry \(d=w^\T A^\T z\): the same computations with the roles of \(z\) and \(w\) exchanged and \(A\) replaced by \(A^\T\) give both identities and both bounds for \((w,z,A^\T)\).
Used by
- Theorem SB.2 Gram closure
- Proposition SC.3 Response equation
- Lemma SE.7 Finite mean and susceptibility
- Lemma SE.11 Gaussian response of the derivative functional
Lean
Proved in Lean
Muon.DetEquiv.lem_app_de_stein_i source
theorem lem_app_de_stein_i {m n : ℕ} (A : Mat m n) (f : ℝ → ℝ) (hf : ContDiff ℝ 3 f)
(hfp : ∀ j : ℕ, j ≤ 3 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j f x| ≤ K * (1 + |x| ^ k)) :
Muon.mean (gaussPair m n) (fun x => f (resid A x) • Muon.outer x.1 x.2) =
(∫ x, deriv f (resid A x) ∂(gaussPair m n)) • A +
A * Muon.mean (gaussPair m n) (fun x => iteratedDeriv 3 f (resid A x) • Muon.outer x.2 x.2)
* Aᵀ * A := byMuon.DetEquiv.lem_app_de_stein_ii source
theorem lem_app_de_stein_ii {m n : ℕ} (A : Mat m n) (f : ℝ → ℝ) (hf : ContDiff ℝ 3 f)
(hfp : ∀ j : ℕ, j ≤ 3 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j f x| ≤ K * (1 + |x| ^ k)) :
∀ M : ℝ, (∀ x : ℝ, |iteratedDeriv 3 f x| ≤ M) →
fro (Muon.mean (gaussPair m n) (fun x => f (resid A x) • Muon.outer x.1 x.2) -
(∫ x, deriv f (resid A x) ∂(gaussPair m n)) • A) ≤
M * opNorm A ^ 2 * fro A := byMuon.DetEquiv.lem_app_de_stein_iii source
theorem lem_app_de_stein_iii {m n : ℕ} (A : Mat m n) (ψ : ℝ → ℝ) (hψ : ContDiff ℝ 2 ψ)
(hψp : ∀ j : ℕ, j ≤ 2 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j ψ x| ≤ K * (1 + |x| ^ k)) :
Muon.mean (gaussPair m n) (fun x => ψ (resid A x) • (Muon.outer x.1 x.1 - 1)) =
A * Muon.mean (gaussPair m n) (fun x => iteratedDeriv 2 ψ (resid A x) • Muon.outer x.2 x.2) * Aᵀ := byMuon.DetEquiv.lem_app_de_stein_iv source
theorem lem_app_de_stein_iv {m n : ℕ} (A : Mat m n) (ψ : ℝ → ℝ) (hψ : ContDiff ℝ 2 ψ)
(hψp : ∀ j : ℕ, j ≤ 2 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j ψ x| ≤ K * (1 + |x| ^ k)) :
∀ M : ℝ, (∀ x : ℝ, |iteratedDeriv 2 ψ x| ≤ M) →
fro (Muon.mean (gaussPair m n) (fun x => ψ (resid A x) • (Muon.outer x.1 x.1 - 1))) ≤
M * opNorm A * fro A := byMuon.DetEquiv.lem_app_de_stein_v source
theorem lem_app_de_stein_v {m n : ℕ} (A : Mat m n) (f : ℝ → ℝ) (hf : ContDiff ℝ 3 f)
(hfp : ∀ j : ℕ, j ≤ 3 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j f x| ≤ K * (1 + |x| ^ k)) :
Muon.mean (gaussPair n m) (fun x => f (resid Aᵀ x) • Muon.outer x.1 x.2) =
(∫ x, deriv f (resid Aᵀ x) ∂(gaussPair n m)) • Aᵀ +
Aᵀ * Muon.mean (gaussPair n m) (fun x => iteratedDeriv 3 f (resid Aᵀ x) • Muon.outer x.2 x.2)
* A * Aᵀ := byMuon.DetEquiv.lem_app_de_stein_vi source
theorem lem_app_de_stein_vi {m n : ℕ} (A : Mat m n) (f : ℝ → ℝ) (hf : ContDiff ℝ 3 f)
(hfp : ∀ j : ℕ, j ≤ 3 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j f x| ≤ K * (1 + |x| ^ k)) :
∀ M : ℝ, (∀ x : ℝ, |iteratedDeriv 3 f x| ≤ M) →
fro (Muon.mean (gaussPair n m) (fun x => f (resid Aᵀ x) • Muon.outer x.1 x.2) -
(∫ x, deriv f (resid Aᵀ x) ∂(gaussPair n m)) • Aᵀ) ≤
M * opNorm Aᵀ ^ 2 * fro Aᵀ :=Muon.DetEquiv.lem_app_de_stein_vii source
theorem lem_app_de_stein_vii {m n : ℕ} (A : Mat m n) (ψ : ℝ → ℝ) (hψ : ContDiff ℝ 2 ψ)
(hψp : ∀ j : ℕ, j ≤ 2 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j ψ x| ≤ K * (1 + |x| ^ k)) :
Muon.mean (gaussPair n m) (fun x => ψ (resid Aᵀ x) • (Muon.outer x.1 x.1 - 1)) =
Aᵀ * Muon.mean (gaussPair n m) (fun x => iteratedDeriv 2 ψ (resid Aᵀ x) • Muon.outer x.2 x.2) * A := byMuon.DetEquiv.lem_app_de_stein_viii source
theorem lem_app_de_stein_viii {m n : ℕ} (A : Mat m n) (ψ : ℝ → ℝ) (hψ : ContDiff ℝ 2 ψ)
(hψp : ∀ j : ℕ, j ≤ 2 → ∃ (K : ℝ) (k : ℕ), ∀ x : ℝ, |iteratedDeriv j ψ x| ≤ K * (1 + |x| ^ k)) :
∀ M : ℝ, (∀ x : ℝ, |iteratedDeriv 2 ψ x| ≤ M) →
fro (Muon.mean (gaussPair n m) (fun x => ψ (resid Aᵀ x) • (Muon.outer x.1 x.1 - 1))) ≤
M * opNorm Aᵀ * fro Aᵀ :=