Bellman Equations

The Bellman Equation, named after Richard Bellman, is a fundamental mathematical relationship that defines the optimal behavior of a system over time in a sequential decision-making process. It is a cornerstone of Dynamic Programming and Reinforcement Learning.

Core Concept

At the heart of the Bellman equation is the Principle of Optimality:

“An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.”

The equation decomposes a multi-stage decision problem into a series of simpler recursive steps. It expresses the value of a state as the sum of the immediate reward and the discounted value of the next state:

where:

  • is the value of state .
  • is the action taken.
  • is the immediate reward.
  • is the discount factor.
  • is the transition probability from state to state given action .

Key Features

  1. Recursive Decomposition: Breaks down the total expected return of a trajectory into the immediate reward plus the discounted expected return from the subsequent state, avoiding the need to calculate the entire trajectory.
  2. Two Primary Forms:
    • Bellman Expectation Equation: Computes the expected return of a state under a specific policy .
    • Bellman Optimality Equation: Computes the maximum possible expected return from a state under the optimal policy .
  3. Model-Based vs. Model-Free Division:
    • In Dynamic Programming (model-based), the exact transition probabilities and reward function are known, allowing direct calculation of the value functions via algorithms like Value Iteration or Policy Iteration.
    • In Reinforcement Learning (model-free), the environment’s dynamics are unknown, and algorithms estimate the values using temporal difference errors and sample experiences.
  • Markov Decision Process (MDP): The formal mathematical framework for modeling decision-making where outcomes are partly random and partly under the control of a decision maker.
  • Q-Learning: A model-free reinforcement learning algorithm that uses a variant of the Bellman equation (specifically, Q-value iteration) to find the optimal action-selection policy.
  • Value Iteration & Policy Iteration: Iterative algorithms in dynamic programming that solve the Bellman optimality equation to find optimal policies.
  • Temporal Difference (TD) Learning: A method that updates value estimates based on other learned estimates, directly utilizing the recursive structure of the Bellman equation.