342. Stochastic DP

Extends deterministic DP to problems with random transitions. The framework underlying Markov Decision Processes (MDPs), reinforcement learning, and most multi-period stochastic optimization in operations.

342.1. Setup

At stage 𝑡 in state 𝑠𝑡:

After the last decision: terminal cost 𝑐𝑇(𝑠𝑇).

342.2. Policy (not plan)

A fixed plan (𝑎0,𝑎1,,𝑎𝑇1) no longer works — you don’t know which state will realize at each step. Instead, a policy is a function:

𝜋𝑡:𝒮︀𝒜︀,𝜋𝑡(𝑠)is the action taken in state𝑠at stage𝑡

Total cost is a random variable; we minimize its expectation:

𝐽𝜋(𝑠0)=𝐸[𝑡=0𝑇1𝑐𝑡(𝑠𝑡,𝜋𝑡(𝑠𝑡))+𝑐𝑇(𝑠𝑇)]

342.3. Stochastic Bellman equation

Same argument as the deterministic case (additivity + principle of optimality, now applied to expected cost):

𝐽𝑡(𝑠)=min𝑎𝒜︀(𝑠){𝑐𝑡(𝑠,𝑎)+𝑠𝑃𝑡(𝑠|𝑠,𝑎)𝐽𝑡+1(𝑠)}

Equivalently:

𝐽𝑡(𝑠)=min𝑎{𝑐𝑡(𝑠,𝑎)+𝐸𝑠𝑃𝑡(|𝑠,𝑎)[𝐽𝑡+1(𝑠)]}

The expectation over 𝑠 replaces the deterministic transition 𝑓𝑡(𝑠,𝑎) from the deterministic Bellman.

342.4. Side-by-side comparison

deterministic:𝐽𝑡(𝑠)=min𝑎{𝑐𝑡(𝑠,𝑎)+𝐽𝑡+1(𝑓𝑡(𝑠,𝑎))}stochastic:𝐽𝑡(𝑠)=min𝑎{𝑐𝑡(𝑠,𝑎)+𝐸[𝐽𝑡+1(𝑠)]}

342.5. Worked example

From state 𝐵 at stage 1, action “right” leads to:

𝑄1(𝐵,right)=0.7(1+2)+0.3(6+4)=2.1+3.0=5.1

If action “left” gives 4.5, optimal action at (𝑡=1,𝐵) = left.

342.6. Examples

342.7. Finite vs infinite horizon

342.8. Curse of dimensionality + curse of randomness

Stochastic DP inherits the dimensionality curse from deterministic DP, plus the cost of computing expectations over the next-state distribution. Approximations:

342.9. See also