The Gaussian location model #
This file defines the objects of Section 4 of the paper and of Sections S1 and S2 of its
supplementary material. The observations take values in 𝒳 = ℝ, and the coordinate x i of a
path x : ℕ → ℝ is the observation X_{i+1}.
nullDist θ: the null distributionP_θ = N(θ, 1)^{⊗∞}, andgaussNullthe null𝔓 = {P_θ : θ ∈ ℝ};altDist s μ: the alternativeQ_μ = N(μ, s²)^{⊗∞}, andmixAlt s ρthe mixtureQ = ∫ Q_μ N(0, ρ²)(dμ), whereN(0, 0)is the unit mass at zero;runningMean t x: the running meanX̄_t = t^{-1} ∑_{i=1}^t X_i;helmertY i x: the variableY_i = {(i − 1)/i}^{1/2}(X_i − X̄_{i−1})of eq. (7), fori ≥ 2;lik s y: the likelihood ratioℓ = φ_{s²}/φ₁, whereφ_vis the density ofN(0, v);kappa s:κ = (s² − 1 − log s²)/2;helmertFiltration: the filtration(𝒢_t)generated by(Y_t)_{t ≥ 2}, with𝒢₀and𝒢₁trivial;gaussNumeraire s t: the numéraireE*_t = ∏_{i=2}^t ℓ(Y_i)of Proposition 2;likProcess s θ t: the likelihood ratioL^θ_t = ∏_{i=1}^t ℓ(X_i − θ)ofQ_θagainstP_θ;stdGaussSeq,walk t,walkFiltration,reward s t: the random walk(S_t)withS₀ = 0and independentN(0, 1)increments, realized on the space of its increments, the filtration generated by(S_t), and the rewardh_tof Lemma 2;horizon j,blockRatio s j,etaBound s j,mixtureEProcess s: the horizonsT_j = ⌈exp(e^j)⌉, the ratiosq_j, the boundsu_j, and the e-process of Proposition 3(ii);runningMeanProcess s t: the processẼ_t = ∏_{i=2}^t ℓ(X_i − X̄_{i−1})of Proposition S6.
Variances are nonnegative reals in Mathlib's gaussianReal; the variances s² and ρ² are
(s ^ 2).toNNReal and (ρ ^ 2).toNNReal.
The null and the alternative #
The null distribution P_θ = N(θ, 1)^{⊗∞} of Section 4.
Equations
- LogOptimal.nullDist θ = MeasureTheory.Measure.infinitePi fun (x : ℕ) => ProbabilityTheory.gaussianReal θ 1
Instances For
The Gaussian location null 𝔓 = {P_θ : θ ∈ ℝ} of Section 4.
Instances For
The alternative Q_μ = N(μ, s²)^{⊗∞} of Section 4.
Equations
- LogOptimal.altDist s μ = MeasureTheory.Measure.infinitePi fun (x : ℕ) => ProbabilityTheory.gaussianReal μ (s ^ 2).toNNReal
Instances For
The alternative Q = ∫ Q_μ N(0, ρ²)(dμ) of Section 4, where N(0, 0) is the unit mass at
zero.
Equations
- LogOptimal.mixAlt s ρ = (ProbabilityTheory.gaussianReal 0 (ρ ^ 2).toNNReal).bind (LogOptimal.altDist s)
Instances For
The running mean and the variables Y_i #
The running mean X̄_t = t^{-1} ∑_{i=1}^t X_i.
Equations
- LogOptimal.runningMean t x = (∑ i ∈ Finset.range t, x i) / ↑t
Instances For
The filtration (𝒢_t)_{t ≥ 0} generated by (Y_t)_{t ≥ 2}, with 𝒢₀ and 𝒢₁ trivial.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Likelihood ratios and numéraires #
The likelihood ratio ℓ = φ_{s²}/φ₁, where φ_v is the density of N(0, v).
Equations
- LogOptimal.lik s y = ProbabilityTheory.gaussianPDFReal 0 (s ^ 2).toNNReal y / ProbabilityTheory.gaussianPDFReal 0 1 y
Instances For
The mixture of N(θ, b) over θ ∼ N(m, a) is N(m, a + b).
The conditional expectation
E_θ(E*_2 ∣ X_1) = {2/(1 + s²)}^{1/2} exp{−(1 − s²)(X_1 − θ)²/(2 + 2s²)} of eq. (S15), as a
function of the path.
Equations
Instances For
The numéraire E*_t = ∏_{i=2}^t ℓ(Y_i) of Proposition 2, equal to one for t ≤ 1.
Equations
- LogOptimal.gaussNumeraire s t x = ENNReal.ofReal (∏ i ∈ Finset.Icc 2 t, LogOptimal.lik s (LogOptimal.helmertY i x))
Instances For
The likelihood ratio L^θ_t = ∏_{i=1}^t ℓ(X_i − θ) of Q_θ against P_θ on ℱ_t, with
L^θ₀ = 1 (Section 4.2).
Equations
- LogOptimal.likProcess s θ t x = ∏ i ∈ Finset.range t, LogOptimal.lik s (x i - θ)
Instances For
The random walk of Lemma 2 #
The distribution N(0, 1)^{⊗∞} of the increments of the random walk (S_t) of Lemma 2.
Equations
Instances For
The random walk S_t = ∑_{i < t} ω_i with S₀ = 0, as a function of its increments ω.
Equations
- LogOptimal.walk t ω = ∑ i ∈ Finset.range t, ω i
Instances For
The filtration generated by the random walk (S_t)_{t ≥ 0}.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The e-process of Proposition 3(ii) #
The horizon T_j = ⌈exp(e^j)⌉ of Proposition 3(ii).
Instances For
The bound u_j = {(j + 1)/(s² j)}(2 + 2 log T_j / log q_j)^{1 − s² j/(j + 1)} of
Proposition 3(ii).
Equations
Instances For
The process with the running mean of Proposition S6 #
The process Ẽ_t = ∏_{i=2}^t ℓ(X_i − X̄_{i−1}) of Proposition S6.
Equations
- LogOptimal.runningMeanProcess s t x = ENNReal.ofReal (∏ i ∈ Finset.Icc 2 t, LogOptimal.lik s (x (i - 1) - LogOptimal.runningMean (i - 1) x))