Value Functions and Bellman Equations

Value functions turn delayed reward into a prediction problem. They answer “how much future return should I expect if I start here?” or “how much future return should I expect if I take this action first?”

Defining Math

For a policy , the state-value function is

The action-value function is

The Bellman expectation equation rewrites value recursively:

The value of a state is the expected immediate reward plus the discounted value of the next state.

Optimality

The optimal action-value function satisfies

The term says that after taking action , the agent assumes optimal behavior from the next state onward. This is the target behind many value-based control algorithms.

Worked Calculation

Suppose a state has two actions. Action gives reward and moves to a next state with value . Action gives reward and moves to a next state with value . With :

Action has the smaller immediate reward but higher total value because it leads to a much better future state. That is the central point of value functions: they price delayed consequences.

Intuition

Bellman equations are consistency equations. A value estimate is good when the value assigned to the current state agrees with the observed reward and the value assigned to the next state. Temporal-difference learning uses this mismatch as a learning signal.

Caveats

Exact Bellman updates require known transition probabilities or enough samples to estimate them. Large state spaces replace tables with function approximators, which introduces approximation error, instability, and distribution-shift risk.

Connections

References