KatInterview

Components and Semantics of MDPs

Machine LearningModel answer
HardModel answerMachine Learningreinforcement-learningdecision-processesmarkov-property

Last updated

Define the formal structure of a Markov decision process and explain how policies generate trajectories that accumulate discounted return.

Problem Statement

Provide a formal definition of a Markov decision process by specifying its mathematical components. Explain what makes a state representation valid under the Markov assumption, describe how an agent's policy interacts with environment dynamics to produce trajectories, and clarify how rewards accumulate into return over time.

What to Cover

  • The tuple of elements that fully specify an MDP
  • The Markov property and what it requires of state representations
  • How policies map states to action distributions
  • The relationship between transition dynamics, rewards, and the next state
  • Trajectory generation and the computation of discounted return
  • The role of the discount factor and its effect on optimization

Assumptions

  • Work with discrete state and action spaces unless otherwise specified
  • Assume infinite-horizon discounted return with discount factor γ ∈ [0, 1)
  • Reward may be a function of the current state, chosen action, and resulting next state

Questions You Should Address

  • What information must be encoded in the state to satisfy the Markov property?
  • How does the agent select actions given the current state?
  • What distinguishes the environment model from the policy?
  • Why might a naive observation fail the Markov property, and how would you fix it?

Hints

Hint 1

An MDP consists of five components: states, actions, dynamics, rewards, and a discount factor

Hint 2

The Markov property means the future depends only on the present state, not on history

Hint 3

Return is the sum of discounted future rewards starting from a given time step