Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

First-visit Monte Carlo policy evaluation

Definition

Inputs: A finite MDP with nonempty finite state set S, discount 0≤γ<1, terminal set S†⊆S, an initial-state rule, and an episode budget N∈N∪{∞}. Assume the Axiom of Choice for the policy path laws defining Vπ and the episode distributions, and that episodes reach S† in finite time almost surely from every state under each stationary policy used: the target π, and also the behavior μ in off-policy mode. Choose one mode: (a) on-policy prediction with independent episodes under a stationary target policy π; or (b) off-policy prediction with independent episodes under a stationary behavior policy μ and stationary target policy π. In off-policy mode require π(a∣x)>0⇒μ(a∣x)>0 for every nonterminal state x and action a∈A(x).

Output: After every finite number n of completed episodes, for every nonterminal state its visit count and each available estimate; report no estimate when its required denominator is zero. A finite budget N returns these outputs after episode N; budget ∞ emits successive finite-prefix outputs without a final output or convergence assertion. Set the value estimate of every terminal state to 0.

Initialize visit counts C(s)=0 and leave each nonterminal state's estimate unavailable. Generate successive independent episodes using the selected mode and initial-state rule; stop after N episodes when N is finite. In episode i, for each nonterminal state s visited before termination, let ti(s) be its first visit time and let Gti(s)=∑k=ti(s)Ti−1γk−ti(s)Rk+1 be the return from that visit.

In on-policy mode, update only on this first visit: set m=C(s)+1; if m=1, set V^(s)=Gti(s), and otherwise set

V^(s)←V^(s)+Gti(s)−V^(s)m.

Then set C(s)=m. In off-policy mode, for each first visit compute

Wi(s)=∏k=ti(s)Ti−1π(Ak∣Sk)μ(Ak∣Sk),

where Ti is the terminal time and an empty product is 1. Maintain B(s)=0 and WΣ(s)=0 initially; add Wi(s)Gti(s) to B(s) and Wi(s) to WΣ(s), and increment C(s). After any n completed episodes, the ordinary first-visit estimator is

V^nordinary(s)=B(s)C(s)

when C(s)>0; otherwise no ordinary estimate is produced. The weighted first-visit estimator is

V^nweighted(s)=B(s)WΣ(s)

when WΣ(s)>0; otherwise no weighted estimate is produced. Under target support, for each positive-probability behavior history ending immediately upon a first visit to a nonterminal state s, before its action is sampled, the ordinary weighted return has conditional mean Vπ(s) by the finite-episode likelihood-ratio identity. The self-normalized weighted estimator need not be unbiased at a finite sample size. These procedures make no convergence claim or Monte Carlo control claim.

Depends on

Used by

Dependency tree · two levels

27 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources