Value Functions

1 min read

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^\pi(s):

Vπ(s)=Eπ[GtSt=s]=Eπ[k=0γkRt+k+1St=s]V^\pi(s) = \mathbb{E}_\pi[G_t | S_t = s] = \mathbb{E}_\pi\left[\sum_{k=0}^\infty \gamma^k R_{t+k+1} \bigg| S_t = s\right]

"Expected return starting from state ss and following policy π\pi."

Action-value function Qπ(s,a)Q^\pi(s,a):

Qπ(s,a)=Eπ[GtSt=s,At=a]Q^\pi(s,a) = \mathbb{E}_\pi[G_t | S_t = s, A_t = a]

"Expected return starting from state ss, taking action aa, then following π\pi."

Relationship: Vπ(s)=aπ(as)Qπ(s,a)V^\pi(s) = \sum_a \pi(a|s) Q^\pi(s,a) — the value of a state is the expected Q-value over actions.

Optimal value functions:

  • V(s)=maxπVπ(s)V^*(s) = \max_\pi V^\pi(s) — best possible value
  • Q(s,a)=maxπQπ(s,a)Q^*(s,a) = \max_\pi Q^\pi(s,a) — best possible Q-value
  • Optimal policy: π(as)=1\pi^*(a|s) = 1 if a=argmaxaQ(s,a)a = \arg\max_a Q^*(s,a) — just be greedy w.r.t. QQ^*

Key insight: if you know QQ^’ , the optimal policy is trivial — just take the action with highest QQ-value. This is why Q-Learning focuses on learning QQ^’.

See also: Bellman Equations , Markov Decision Process , Advantage Function

Linked from