NLA-lib Explorer

Gaussian integration by parts

Library · Result group

Theorem (integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw). Gaussian integration by parts (Stein's identity, covariance form): for a Gaussian vector \mathbf{g} in \mathbb{R}^\iota and f of class C^1 with \|Df(\mathbf{x})\| \le C, \mathbb{E}[(\mathbf{g}_i - \mathbb{E}\mathbf{g}_i) f(\mathbf{g})] = \sum_j \operatorname{Cov}(\mathbf{g}_i, \mathbf{g}_j)\, \mathbb{E}[\partial_j f(\mathbf{g})]\,. [Vershynin2018, Lemma 7.2.5]; stated there for a standard Gaussian, \mathbb{E}[g f(g)] = \mathbb{E} f'(g); here any mean and any covariance, possibly singular, and no centring hypothesis (a centred consumer rewrites with sub_zero). The case k = 0 of integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw_of_le_pow.

Headline (provisional)

Lean statement and details
NLAlib.integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw.{u_1, u_2}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {ι : Type u_2} [Fintype ι] [DecidableEq ι]
  {g : Ω → ι → ℝ} (hg : HasGaussianLaw g μ) {f : (ι → ℝ) → ℝ} (hf : ContDiff ℝ 1 f) {C : ℝ}
  (hdf : ∀ (x : ι → ℝ), ‖fderiv ℝ f x‖ ≤ C) (i : ι) :
  ∫ (ω : Ω), (g ω i - ∫ (ω' : Ω), g ω' i ∂μ) * f (g ω) ∂μ =
    ∑ j, cov[fun ω ↦ g ω i, fun ω ↦ g ω j; μ] * ∫ (ω : Ω), (fderiv ℝ f (g ω)) (Pi.single j 1) ∂μ

Full source on GitHub

Copy link

Other forms

Theorem (integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw_of_le_pow). Gaussian integration by parts (Stein's identity, covariance form): for a Gaussian vector \mathbf{g} in \mathbb{R}^\iota and f of class C^1 whose derivative grows at most polynomially, \|Df(\mathbf{x})\| \le C (1 + \|\mathbf{x}\|)^k, \mathbb{E}[(\mathbf{g}_i - \mathbb{E}\mathbf{g}_i) f(\mathbf{g})] = \sum_j \operatorname{Cov}(\mathbf{g}_i, \mathbf{g}_j)\, \mathbb{E}[\partial_j f(\mathbf{g})]\,. [Vershynin2018, Lemma 7.2.5]; stated there for a standard Gaussian, here any mean and any covariance, possibly singular. \|\mathbf{x}\| is the sup norm of ι → ℝ; any norm gives the same class. Both integrands are integrable (Gaussian moments of every order), so the identity is never between junk values.

Lean statement and details
NLAlib.integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw_of_le_pow.{u_1,
    u_2}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {ι : Type u_2} [Fintype ι] [DecidableEq ι]
  {g : Ω → ι → ℝ} (hg : HasGaussianLaw g μ) {f : (ι → ℝ) → ℝ} (hf : ContDiff ℝ 1 f) {C : ℝ} {k : ℕ}
  (hdf : ∀ (x : ι → ℝ), ‖fderiv ℝ f x‖ ≤ C * (1 + ‖x‖) ^ k) (i : ι) :
  ∫ (ω : Ω), (g ω i - ∫ (ω' : Ω), g ω' i ∂μ) * f (g ω) ∂μ =
    ∑ j, cov[fun ω ↦ g ω i, fun ω ↦ g ω j; μ] * ∫ (ω : Ω), (fderiv ℝ f (g ω)) (Pi.single j 1) ∂μ

Full source on GitHub

Copy link