Notation and Conventions
The notation is Sutton and Barto’s throughout, so that a reader can move between this companion and the original without translation.Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL http://incompleteideas.net/book/the-book-2nd.html Capital letters are random variables and lower-case letters their values or scalar functions; vectors are bold lower case, even when random, and matrices bold capitals. The symbol marks an equality that holds by definition, and an assignment inside an algorithm.
0.3General Symbols#
| Symbol | Meaning |
|---|---|
| probability that the random variable takes the value | |
| is drawn from the distribution , | |
| , | expectation; the subscript names the policy that generates the data |
| a value of at which is maximal (ties broken arbitrarily) | |
| indicator: if the predicate is true, else | |
| probability of a random action in an -greedy policy | |
| step-size parameters | |
| discount rate, | |
| decay rate of eligibility traces |
0.4Bandits#
| Symbol | Meaning |
|---|---|
| number of actions (arms) | |
| true value (expected reward) of action | |
| estimate at time of | |
| number of times was selected before time | |
| learned preference for at time | |
| probability of selecting at time | |
| running estimate of the expected reward |
0.5Markov Decision Processes#
| Symbol | Meaning |
|---|---|
| ; ; | states; an action; a reward |
| , | nonterminal states; all states including the terminal one |
| , | actions available in ; the finite set of possible rewards |
| state, action and reward at time ( follows ) | |
| final time step of an episode | |
| probability of moving to with reward after taking in | |
| , | state-transition probability; expected reward |
| , | stochastic policy; action of a deterministic policy |
| return following time | |
| -step return (bootstrapped from step ) | |
| -return | |
| , | state and action values under |
| , | optimal state and action values |
| ; | tabular estimates of state and action values |
| temporal-difference error at time | |
| importance-sampling ratio from time through | |
| behavior policy, when learning about a target policy | |
| average reward of | |
| on-policy distribution over states | |
| expected number of visits to per episode |
0.6Function Approximation#
| Symbol | Meaning |
|---|---|
| , | weight vector of a value function and its dimension |
| , | approximate state and action values |
| , | feature vector of ; shorthand for |
| inner product | |
| eligibility trace vector | |
| , | policy parameter vector and its dimension |
| , | parameterized policy; its performance |
| , , | transition matrix under ; ; matrix whose rows are the |
| , , | , , and the TD fixed point |
| , | Bellman operator of and Bellman optimality operator ( in the off-policy chapters, as in the original) |
| projection onto representable value functions | |
| , , , | mean squared value, Bellman, projected Bellman and TD errors |
0.7Conventions of This Companion#
Numbered algorithms are written as compact pseudo-code: parameters, initialization, then the loop; they correspond to the boxed algorithms of the original. Theorems are stated with the hypotheses they need and proved, or their proof is sketched with a reference. A sidenote that begins with Beyond Sutton and Barto (2018) introduces material that is not in the book: later results, or classic results it leaves out, always with the primary source.
The Wolfram Language checks are code blocks in the JavaScript mode of wolfram-ws-bridge: show`…` sends Wolfram Language text to the kernel and typesets the result, which appears right below the block exactly as the kernel produced it, and ${name} inserts the value of an earlier step. No check assigns a Wolfram symbol: values live in JavaScript constants and functions are pure Functions, so each chapter’s checks are self-contained and run in order.