Weissman deviation of the empirical transition row at a fixed sample size
ProvedBanditAlgorithm.mdp_empirical_row_deviation_at_sample_size_prob_leFix a finite MDP with states and actions, an initial state distribution, a policy, a horizon , a state-action pair and a sample size . Under the law of the trajectory, for every ,
where is the number of transitions out of observed before time and is the corresponding empirical row.
This is Weissman's deviation inequality applied to the empirical row of a state-action pair at a fixed sample size, rather than at a fixed time. The empirical row at time depends on only through the number of observations it is built from, so quantifying over the times at which the count equals describes a single empirical distribution; the content of the statement is that, conditionally on having been visited times, the recorded successor states behave as an i.i.d. sample from the true row , even though the visit times are determined by the policy and by the trajectory itself. The bound is uniform in and in the policy, which is what makes the union bound over pairs and sample sizes in the UCRL2 analysis possible.
Formalization note. No lower bound on the horizon is needed: when is too small for to be visited times the event is empty. The count mdpObservedCount h k s a lags the visit count by one round, because a transition out of is recorded only once the following state has been observed.
Source: Jaksch, Ortner and Auer, Near-optimal Regret Bounds for Reinforcement Learning, JMLR 11 (2010), Section 4.1 and Lemma 17 (via Weissman et al., Inequalities for the L1 deviation of the empirical distribution, HP Labs tech. report HPL-2003-97).
import Definitions.Def_UCRL2ConfidenceSets open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.mdp_empirical_row_deviation_at_sample_size_prob_le
(S A n : ℕ) (hS : 0 < S) (hA : 0 < A)
(M : FiniteMDP S A) (μ0 : MDPStateDistribution S) (π : MDPPolicy S A)
(s : Fin S) (a : Fin A) (m : ℕ) (hm : 0 < m) {ε : ℝ} (hε : 0 ≤ ε) :
(mdpMeasure M μ0 π n).real
{h | ∃ k ≤ n, mdpObservedCount h k s a = m ∧
ε ≤ ∑ s', |mdpEmpiricalRow h k s a s' - (M.P s a s' : ℝ)|}
≤ 2 ^ S * Real.exp (-(m : ℝ) * ε ^ 2 / 2) := by
sorry