Bellman equation describes the relationship among the values of all states
推导
即:当前时刻得到的return=立即能得到的reward+下一个时刻的return
因此,由条件期望的线性性:

对状态s下的state value有:
接下来只需分别计算两个条件期望
第一项
第一项是状态s下的immediate reward的均值
第二项
对于当前状态s,下一个状态可能有好多种s',到每一种s'的概率为
表示从状态s'出发得到的return的均值,也就是s'的state value:
第二项是future reward的均值
加和
以上就是贝尔曼公式,它描述了不同状态的state value的关系,包含两项:immediate reward和future reward。由于,所以贝尔曼公式对于state space里的所有state都成立
Solving the equation is called policy evaluation.
grid-world example

可得:
参考文章
S. Zhao. Mathematical Foundations of Reinforcement Learning. Springer
Nature Press, 2025.
【【强化学习的数学原理】课程:从零开始到透彻理解(完结)】 https://www.bilibili.com/video/BV1sd4y167NS/?p=2&share_source=copy_web&vd_source=52164f68a5f27ac2e86f0e7963ea966c
概率论笔记(10)——条件期望 - 知乎
https://zhuanlan.zhihu.com/p/79050943