What Is the Difference Between a Policy and a Value Function?
A policy tells a robot how to choose an action from its observation or state. A value function estimates the expected discounted return when the robot follows a particular policy.
The key idea
A policy tells a robot how to choose an action from its observation or state. A value function estimates the expected discounted return when the robot follows a particular policy.
At an aisle junction, the policy might turn right. The state value estimates how rewarding the remaining trip will be. An action value instead evaluates a specific first action.
Values depend on the policy, reward definition, and discount factor. A large predicted value does not certify physical safety. Evaluate the learned behavior on the actual task and operating conditions.
What to remember
- Policy chooses actions. Value estimates return
- V evaluates a state. Q evaluates an action
- A return estimate depends on the task
Check your understanding
How do a policy and an action-value function answer different questions?
Show the explanation
The policy selects an action. An action-value function estimates expected discounted return for taking a particular action and then following the specified policy.