RL Bible · Appendix A
Notation & Conventions
Every symbol used in this book, in one place.
This book uses one consistent notation from the first bandit to the last vision-language-action model. When a chapter introduces a symbol, it uses the convention here; when a paper we teach uses different notation, we translate it into this one and say so. Capital letters denote random variables, lowercase letters denote particular values, and bold is reserved for vectors and matrices where the distinction matters.
1. The Agent–Environment Interface
| Symbol | Meaning |
|---|---|
| discrete time step, | |
| set of states | |
| , | set of actions (available in state ) |
| set of rewards | |
| state at time (a random variable) | |
| action at time | |
| reward received after taking in | |
| observation at time (partially observable settings) | |
| a trajectory | |
| final time step of an episode |
We follow Sutton & Barto's convention that the reward for the transition is indexed , not : the reward arrives with the next state, one tick after the action that earned it. Some papers (and most deep-RL codebases) write for the same quantity; when we quote such a paper we align its indices with ours.
2. Dynamics and the MDP
| Symbol | Meaning |
|---|---|
| joint dynamics: probability of next state and reward given | |
| state-transition probability, | |
| expected immediate reward, | |
| expected reward given the successor state too | |
| or | initial-state distribution |
| discount factor | |
| (discounted) state visitation distribution under |
An MDP is the tuple , or when transition and reward are given separately. Chapter 3 constructs all of this carefully.
3. Returns, Policies, and Value Functions
| Symbol | Meaning |
|---|---|
| return from time : | |
| -step return (Chapter 7) | |
| λ-return (Chapter 7) | |
| stochastic policy: probability of action in state | |
| deterministic policy: the action taken in state | |
| policy with parameters | |
| state value: | |
| action value: | |
| , | optimal value functions |
| advantage: | |
| an optimal policy | |
| Sutton & Barto's lowercase equivalents of — we use the capital forms |
Estimates carry hats or subscripted parameters: , , . Target-network parameters are (Chapter 10). Time-indexed estimates during learning are , .
4. Learning Quantities
| Symbol | Meaning |
|---|---|
| step size / learning rate | |
| exploration probability (ε-greedy) | |
| TD error: | |
| or | eligibility trace (Chapter 7) |
| trace-decay / λ-return parameter | |
| importance-sampling ratio | |
| behavior policy (off-policy learning) | |
| replay buffer or offline dataset | |
| policy performance objective, | |
| policy gradient | |
| advantage estimate (e.g. GAE, Chapter 11) | |
| , , | temperature / trust-region / soft-update coefficients, per chapter |
5. Probability and Analysis
| Symbol | Meaning |
|---|---|
| , | expectation (under policy ) |
| variance | |
| is distributed according to | |
| Gaussian distribution | |
| Kullback–Leibler divergence | |
| entropy | |
| sup-norm, | |
| , | Bellman expectation / optimality operators (Chapter 4) |
| indicator function | |
| inner product; vectors are columns | |
| , | asymptotic complexity (ignoring log factors) |
6. Conventions
- Expectation subscripts. abbreviates the expectation over trajectories generated by interacting with the MDP: , , . When only one random variable matters we name it explicitly, e.g. .
- Episodic vs. continuing. Episodic tasks terminate at ; we treat termination as entering an absorbing state with zero reward, so a single set of equations covers both cases (Chapter 3).
- Greedy operators. breaks ties arbitrarily unless stated otherwise.
- Gradients. denotes the gradient with respect to ; when the variable is clear from context we write .
- Code. Code samples use NumPy for tabular methods and PyTorch for function approximation. Variables in code mirror the math:
gamma,alpha,td_error,q_values. - Citations. Papers are cited inline by first author and year, with a link, and collected with annotations in the bibliography.
7. Deep-RL and Robotics Notation (Parts II–IV)
| Symbol | Meaning |
|---|---|
| , , | parameters of policy, value/critic, and model networks respectively |
| , | target-network parameters |
| loss function | |
| parameterized stochastic policy | |
| parameterized deterministic policy (DDPG/TD3) | |
| , | parameterized critics |
| learned dynamics model | |
| , | latent state / recurrent state of a world model (Chapter 23) |
| observation history | |
| goal (goal-conditioned RL, Chapter 19) | |
| goal-conditioned policy | |
| reward model over prompt–response pairs (Chapter 20) | |
| action chunk over horizon (Chapter 24) |
When a chapter needs a symbol not listed here, it defines the symbol at first use and stays consistent within the chapter. If you ever meet an undefined symbol, that is a bug — the notation contract of this book is that everything traces back to this page.