---
title: "Bellman Equation for General Discrete Dynamic Programming Problems"
author:
  - name: "Fan Wang"
    affiliation: "Department of Economics, University of Houston"
    url: "https://fanwangecon.github.io/"
date: "2026-11-30"
---

**Part of [Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics](https://fanwangecon.github.io/Stam4Econ/).**  
[Main Stam4Econ site](https://fanwangecon.github.io/Stam4Econ/) | [View this section in the book](https://fanwangecon.github.io/Stam4Econ/dynamic_programming_discrete/overview.html#bellman-equation-for-general-discrete-dynamic-programming-problems) | [Author: Fan Wang](https://fanwangecon.github.io/) | [DOI: 10.5281/zenodo.24696926](https://doi.org/10.5281/zenodo.24696926)  
Date: 2026-11-30 | [HTML](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/dynamic_programming_discrete/bellman_equation.html) | [PDF](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/dynamic_programming_discrete/bellman_equation.pdf) | [QMD](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/dynamic_programming_discrete/bellman_equation.qmd)

## Bellman Equation for General Discrete Dynamic Programming Problems

### Ingredients of value function

There are six ingredients to a value function.

First, states. Call the state variable vector $\mathbb{s}$ (s for states). State variables are the pieces of information that summarize the current situation and are necessary to make optimal decisions. They capture all relevant information from the past that affects future decisions. State variables from a data point of view might be:

- Endogenous to prior choices (often observed)
- Random realization of shocks (usually unobserved)
- Permanent characteristics of the individual (in a model with multiple individuals) that might be observed or unobserved

Second, choices. Call the choice variable vector $\mathbb{a}$ (a for actions). Choice variables are the decisions that the decision-maker can make at each point in time. They represent the actions that can be taken given the current state.

Third, constraints on choices.$a\in \mathcal{A}(\mathbb{s})$, where $\mathcal{A}(\mathbb{s})$ is the choice set available when the state variable is $\mathbb{s}$. This captures the idea that not all choices are available in all states. For example, if the state variable represents wealth, then the choice set might be constrained by the amount of wealth available. Furthermore, choices are constrained due to whether they are discrete or continuous. These choices are contained in choice sets, which can vary depending on the state variable. For example, perhaps $a_1 \in \left\{0, 1\right\}$, it's a discrete choice of two options, or $a_2 \in \left[0, 1\right]$, it's a continuous choice between 0 and 1.

Fourth, then there are current period rewards. This is a function of $\mathbb{s}$ and $\mathbb{a}$, which are inputs to some contemporaneous reward function $r(\mathbb{s}, \mathbb{a})$.

Fifth, there are future rewards, which depend on the next state $\mathbb{s}'$. Its transition distribution is conditional on the current state and action, $F_{\mathbb{s}'}(\cdot\mid\mathbb{s},\mathbb{a})$, and can include both deterministic and stochastic components.

Sixth, we weight future rewards by a discount factor $\beta \in (0, 1)$, which captures the idea that the future rewards are worth potentially less than current rewards.

### Bellman equation

The Bellman equation captures the idea that the value of being in a particular state $\mathbb{s}$, $V(\mathbb{s})$, is the maximum expected reward that can be obtained by choosing an action $\mathbb{a}$ from the choice set $\mathcal{A}(\mathbb{s})$, receiving the immediate reward $r(\mathbb{s}, \mathbb{a})$, and then transitioning to a distribution of new state $\mathbb{s}'$ where future rewards can be obtained with different probabilities, where the future rewards are evaluated by the same value function $V(\mathbb{s}')$.

The Bellman equation can be written as:

\begin{align}
V(\mathbb{s}) = \max_{\mathbb{a} \in \mathcal{A}(\mathbb{s})} \left\{
r(\mathbb{s}, \mathbb{a}) + \beta E_{\mathbb{S}'} \left( V(\mathbb{s}') \mid \mathbb{s}, \mathbb{a} \right)
\right\}
\end{align}

Writing a maximum assumes that an optimal action exists. For example, existence follows under standard conditions such as a nonempty compact choice set and a continuous objective; otherwise the supremum may not be attained.

The fixed point, in the context of the Bellman Equation, refers to getting the same $V$ back after plugging $V$ into the "Bellman Equation Operator". While we have been analyzing the value function as a function given values along the state-space, we can also think of the right-hand side of the Bellman equation as taking a value function $V$ as input and produces a new value function as output. When we have $V = T(V)$, that is a fixed point of the Bellman operator $T$.

Contraction mapping refers to the property that the Bellman operator $T$ brings value functions closer together in terms of some metric. This means that if we start with some initial value function, $V^0$, by applying the Bellman operator on it, we return $V^1 = T(V^0)$, and then $V^2 = T(V^1)$, and then $V^3 = T(V^2)$, and each of these value functions get closer and closer together as we iterate. Closer meaning the distance between the values of these functions over all points along the state-space get closer. This closeness can be the max/sup norm distance between the consecutive iterations of the value functions across the domain of the state space. 

Under what conditions will the value function have contraction mapping? (See Blackwell sufficiency conditions). Basically: 

1. the per period return ($r(s,a)$) needs to be bounded over its domain and not go to infinity,
2. the discount factor ($\beta$) needs to be less than 1, and
3. the stochastic process needs to be well-defined, with finite conditional expectation.

These conditions jointly ensure that the problem does not explode as we iterate. As we sum over and over again via value function iteration guesses for future values, we want the total discounted ($\beta$) expected (conditional expectation) sum of current payoffs ($r(s,a)$) to be bounded and not go to infinity.
