REINFORCEMENT LEARNING · INTERVIEW QUESTION
What is the role of a policy in reinforcement learning?
🟢 beginner · Fundamentals & MDPs
Hint: A policy maps states to actions — it defines the agent's behavior.
Answer
A policy defines the agent's behavior — it maps states to actions.
Types
Deterministic: — one action per state.
Stochastic: — probability distribution over actions.
Optimal Policy
The optimal policy maximizes expected cumulative reward:
Learning Policies
| Method | How |
|---|---|
| Value-based | Learn , derive policy as |
| Policy gradient | Directly parameterize and optimize |
| Actor-critic | Learn both policy (actor) and value function (critic) |
A good policy balances exploration (trying new actions) and exploitation (using known good actions).
Related questions
- Explain the Bellman equation. How is it used in Q-learning?
- What is reinforcement learning, and how does it differ from supervised and unsupervised learning?
- Explain the exploration-exploitation tradeoff. What strategies address it?
- Define the terms: agent, environment, state, action, and reward in the context of reinforcement learning.
- Can you explain the concept of the Markov Decision Process (MDP) in reinforcement learning?