Value functions estimate how good it is to be in a state (or to take an action in a state) under a given policy’
State-value function Vπ(s):
Vπ(s)=Eπ[Gt∣St=s]=Eπ[k=0∑∞γkRt+k+1St=s]
"Expected return starting from state s and following policy π."
Action-value function Qπ(s,a):
Qπ(s,a)=Eπ[Gt∣St=s,At=a]
"Expected return starting from state s, taking action a, then following π."
Relationship: Vπ(s)=∑aπ(a∣s)Qπ(s,a) — the value of a state is the expected Q-value over actions.
Optimal value functions:
- V∗(s)=maxπVπ(s) — best possible value
- Q∗(s,a)=maxπQπ(s,a) — best possible Q-value
- Optimal policy: π∗(a∣s)=1 if a=argmaxaQ∗(s,a) — just be greedy w.r.t. Q∗
Key insight: if you know Q’ , the optimal policy is trivial — just take the action with highest Q-value. This is why Q-Learning focuses on learning Q’.
See also: Bellman Equations , Markov Decision Process , Advantage Function