Documentation

LogOptimalEProcesses.Gaussian.HelmertLaw

Lemma S2(iii): the distribution of the running mean and of the variables Y_i #

This file proves Lemma S2(iii) of the supplementary material, following its proof: since the image of a normal distribution with covariance v times the identity under an orthogonal map is normal with the same covariance, Lemma S2(i) gives Lemma S2(iii). The orthogonal map is the Helmert map x ↦ (⟨ω₁, x⟩, …, ⟨ω_t, x⟩) = (t^{1/2} x̄_t, −y₂, …, −y_t) of Helmert.lean, and the invariance of the standard Gaussian measure under linear isometries is stdGaussian_map of Mathlib. The vector X^t ∼ N(m, v)^{⊗t} is written m + v^{1/2} Z^t with Z^t ∼ N(0, 1)^{⊗t}.

The Helmert map preserves the standard Gaussian measure #

noncomputable def LogOptimal.helmertMap (t : ℕ) (y : Fin t → ℝ) :
Fin t → ℝ

The Helmert map y ↦ (⟨ω₁, y⟩, …, ⟨ω_t, y⟩) of ℝ^t, the coordinates of y in the Helmert basis.

Equations
Instances For
    theorem LogOptimal.helmertMap_apply (t : ℕ) (y : Fin t → ℝ) (j : Fin t) :

    The orthogonal Helmert map preserves the standard Gaussian measure N(0, 1)^{⊗t}.

    Finite-dimensional distributions of N(m, v)^{⊗∞} #

    The distribution of X^t = (X₁, …, X_t) under ν^{⊗∞} is ν^{⊗t}.

    The image of N(0, 1) under z ↦ m + c z is N(m, c²).

    N(m, v)^{⊗∞} is the image of N(0, 1)^{⊗∞} under z ↦ m + v^{1/2} z.

    Lemma S2(iii) #

    theorem LogOptimal.runningMean_affine {t : ℕ} (ht : t ≠ 0) (m c : ℝ) (z : ℕ → ℝ) :
    (runningMean t fun (k : ℕ) => m + c * z k) = m + c * runningMean t z
    theorem LogOptimal.helmertY_affine {i : ℕ} (hi : 2 ≤ i) (m c : ℝ) (z : ℕ → ℝ) :
    (helmertY i fun (k : ℕ) => m + c * z k) = c * helmertY i z
    noncomputable def LogOptimal.helmertFamily (t : ℕ) (i : Fin t) :
    (ℕ → ℝ) → ℝ

    The family (X̄_t, Y₂, …, Y_t) of Lemma S2(iii), indexed by Fin t.

    Equations
    Instances For
      noncomputable def LogOptimal.helmertAffine (t : ℕ) (m : ℝ) (v : NNReal) (j : Fin t) (w : ℝ) :

      The affine map that sends the coordinates ⟨ω_j, z⟩ of a standard Gaussian vector z in the Helmert basis to (X̄_t, Y₂, …, Y_t) for X = m + v^{1/2} z: the shift m and the factor (v/t)^{1/2} for j = 0, and the factor −v^{1/2} for j ≥ 1.

      Equations
      Instances For
        theorem LogOptimal.helmertFamily_affine {t : ℕ} (ht : 0 < t) (m : ℝ) (v : NNReal) (z : ℕ → ℝ) (j : Fin t) :
        (helmertFamily t j fun (k : ℕ) => m + √↑v * z k) = helmertAffine t m v j (helmertMap t (fun (k : Fin t) => z ↑k) j)

        Lemma S2(iii), joint distribution: under N(m, v)^{⊗∞}, the distribution of (X̄_t, Y₂, …, Y_t) is the product of the images of N(0, 1) under the maps helmertAffine.

        Lemma S2(iii): if X ∼ N(m, v)^{⊗∞}, then X̄_t, Y₂, …, Y_t are independent, with X̄_t ∼ N(m, v/t) and Y_i ∼ N(0, v).

        Lemma S2 #

        theorem LogOptimal.lem_orth_proof (t : ℕ) :
        2 ≤ t → ((∀ (a b : ℝ) (x x' : ℕ → ℝ), (runningMean t fun (i : ℕ) => a * x i + b * x' i) = a * runningMean t x + b * runningMean t x' ∧ ∀ (i : ℕ), 2 ≤ i → i ≤ t → (helmertY i fun (j : ℕ) => a * x j + b * x' j) = a * helmertY i x + b * helmertY i x') ∧ (∀ (x : ℕ → ℝ), (√↑t * runningMean t x) ^ 2 + ∑ i ∈ Finset.Icc 2 t, helmertY i x ^ 2 = ∑ i ∈ Finset.range t, x i ^ 2) ∧ (∀ (x : ℕ → ℝ) (m : ℝ) (i : ℕ), 2 ≤ i → i ≤ t → (helmertY i fun (j : ℕ) => x j + m) = helmertY i x) ∧ ∀ (x : ℕ → ℝ) (m : ℝ), ∑ i ∈ Finset.range t, (x i - m) ^ 2 = ↑t * (runningMean t x - m) ^ 2 + ∑ i ∈ Finset.Icc 2 t, helmertY i x ^ 2) ∧ (∀ (x : ℕ → ℝ), runningMean t x = runningMean (t - 1) x + helmertY t x / √(↑t * (↑t - 1))) ∧ ∀ (m : ℝ) (v : NNReal), 0 < v → have μ := MeasureTheory.Measure.infinitePi fun (x : ℕ) => ProbabilityTheory.gaussianReal m v; have f := fun (i : Fin t) => if ↑i = 0 then runningMean t else helmertY (↑i + 1); ProbabilityTheory.iIndepFun f μ ∧ MeasureTheory.Measure.map (runningMean t) μ = ProbabilityTheory.gaussianReal m (v / ↑t) ∧ ∀ (i : ℕ), 2 ≤ i → i ≤ t → MeasureTheory.Measure.map (helmertY i) μ = ProbabilityTheory.gaussianReal 0 v