Markov Decision Processes

A Markov decision process is a way to describe decision-making over time. The agent is in some current state, takes an action, the environment samples a next state, and the agent receives reward. The important modeling question is: what information must be in the state so that the next step can be predicted locally?

The Markov property says the current state and action contain everything needed to predict the next state distribution. If you are driving, your next position depends on where you are now and your steering choice. That is Markovian, assuming the current state includes the relevant driving facts.

Some processes are non-Markovian under an incomplete state description. Drawing marbles from a bag is a useful counterexample: if previous marbles have been removed and the current state omits what remains, the probability of the next draw depends on the draw history.

Markov property

Does the past still matter?

Keep the current state and action fixed. Switch the history. If the next-state prediction changes, the state was missing information.

Held fixed

State: current position: Oak & 3rd, facing north

Action: steer right

Change only the history

You arrived from the library.

Next state: eastbound on Oak Street.

Diagnosis

Markovian

The current position and steering choice contain what the next-state prediction needs.
Memoryless means the current state already contains the past information needed to predict the next step.

A Markov decision process, or MDP, packages a decision problem as:

M=S,A,P,R,γM=\langle S,A,P,R,\gamma\rangle

SS is the set of states, AA is the set of actions, P(ss,a)P(s'\mid s,a) describes transition probabilities, R(s,a,s)R(s,a,s') describes rewards, and γ\gamma controls how much future reward counts.

The state representation is doing real work. A locked-door gridworld may be Markov if the state includes both position and whether the key has been collected. It may be non-Markov if the state only says "at the door," because the same visible state can lead to different next states depending on hidden history.

The Markov Property Is A Modeling Claim

Calling something an MDP still requires a complete state definition. Memoryless means the current state contains the information needed for the next-step prediction. If hidden history changes what happens next, the chosen state is missing information.

Checkpoint

In the locked-door gridworld, why might a state defined only as the agent's current cell fail to be Markov?