Theorem 10.1, pp. 172–173 — the uniform-prior portfolio has logarithmic regret
ProvedModernOnlineLearning.Portfolio.theorem_10_1_uniformConsider a market with stocks and a horizon . Let each market-gain vector be nonnegative and nonzero. Algorithm 10.1 uses the uniform probability prior on the portfolio simplex, and its realized wealth is . For every constantly rebalanced portfolio with ,
Thus the log-wealth shortfall to the best fixed allocation grows only logarithmically with the horizon, without upper or lower bounds on the positive market gains.
Formalization Note Portfolios with have log wealth in the book; Lean’s real logarithm is total and assigns zero to , so the real-log inequality is stated for positive-wealth comparators. The theorem asserts that the algorithm’s wealth is positive. The prior is fixed by its uniform coordinate density, and the portfolio is the exact integral-ratio strategy.
import Mathlib import Definitions.Def_ModernOnlineLearning_Portfolio_Setting set_option autoImplicit false
namespace ModernOnlineLearning.Portfolio
/-- Theorem 10.1, uniform-prior bullet, pp. 172-173. Comparator portfolios of
zero wealth have logarithmic wealth `-∞` in the book, so the real-log inequality
is stated on the positive-wealth comparators. -/
theorem theorem_10_1_uniform {d T : ℕ} (hd : 2 ≤ d) (hT : 1 ≤ T)
(w : ℕ → Fin d → ℝ)
(hw_nonneg : ∀ t ∈ Finset.Icc 1 T, ∀ i, 0 ≤ w t i)
(hw_ne : ∀ t ∈ Finset.Icc 1 T, w t ≠ 0) :
0 < portfolioWealth w (weightedPortfolio (uniformPrior d) w) T ∧
(∀ u ∈ stdSimplex ℝ (Fin d), 0 < wealthCRP w u T →
Real.log (wealthCRP w u T) -
Real.log (portfolioWealth w (weightedPortfolio (uniformPrior d) w) T) ≤
Real.log (((T + d - 1).choose (d - 1) : ℕ) : ℝ)) ∧
Real.log (((T + d - 1).choose (d - 1) : ℕ) : ℝ) ≤
((d - 1 : ℕ) : ℝ) *
(Real.log ((T : ℝ) / ((d - 1 : ℕ) : ℝ) + 1) + 1) := by sorry
end ModernOnlineLearning.Portfolio
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.