Lean module · Online foundations
BanditRLProof.OnlineLearningMean
Generated source map for this Lean module.
Module map
Imports
No project-local imports.
Imported by
BanditRLProof, BanditRLProof.OnlineGuessingLogLower, BanditRLProof.OnlineLearningFTL
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRL.OnlineLearning.empiricalMean
Compiled
Mean of the first n observations; zero is used only as the empty-prefix convention.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def empiricalMean (y : ℕ → ℝ) (n : ℕ) : ℝ :=
(∑ t ∈ Finset.range n, y t) / n
theorem
BanditRL.OnlineLearning.empiricalMean_decomposition
Compiled
Exact squared-loss decomposition underlying Orabona v10 Chapter 1, printed p3.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_decompositionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_decomposition (y : ℕ → ℝ) (n : ℕ) (hn : 0 < n) (u : ℝ) : (∑ t ∈ Finset.range n, (u - y t)^2) = (∑ t ∈ Finset.range n, (empiricalMean y n - y t)^2) + n * (u - empiricalMean y n)^2
theorem
BanditRL.OnlineLearning.empiricalMean_minimizes
Compiled
The empirical mean is a global minimizer, hence also a feasible-set minimizer when feasible.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_minimizesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_minimizes (y : ℕ → ℝ) (n : ℕ) (hn : 0 < n) (u : ℝ) : (∑ t ∈ Finset.range n, (empiricalMean y n - y t)^2) ≤ ∑ t ∈ Finset.range n, (u - y t)^2
theorem
BanditRL.OnlineLearning.empiricalMean_mem
Compiled
Feasibility in the guessing game's interval.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_mem (y : ℕ → ℝ) (n : ℕ) (hn : 0 < n) (hy : ∀ t < n, y t ∈ Set.Icc (0 : ℝ) 1) : empiricalMean y n ∈ Set.Icc (0 : ℝ) 1
theorem
BanditRL.OnlineLearning.empiricalMean_unique
Compiled
Positive-horizon cumulative squared loss has the unique empirical-mean minimizer.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_uniqueReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_unique (y : ℕ → ℝ) (n : ℕ) (hn : 0 < n) (u : ℝ) (hu : (∑ t ∈ Finset.range n, (u-y t)^2) ≤ ∑ t ∈ Finset.range n, (empiricalMean y n-y t)^2) : u = empiricalMean y n
theorem
BanditRL.OnlineLearning.empiricalMean_succ
Compiled
Exact running-average recurrence, including the empty-prefix transition.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_succ (y : ℕ → ℝ) (t : ℕ) : empiricalMean y (t + 1) = empiricalMean y t + (y t - empiricalMean y t) / ((t : ℝ) + 1)