Markov decision processes

The standard formal model: states, actions, transitions, rewards — with the Markov property.

Agent Environment action a state s′, reward r
The agent–environment loop: action out, next state and reward back.
Discount $\gamma$

$\gamma \in [0,1)$ down-weights future rewards so the agent prefers sooner gains and infinite-horizon returns stay finite. Typical values like $0.9$.

Maze

State = cell. Actions = N/E/S/W. Reward = −1 per step, +10 at the exit. Markov: the next cell depends on the current cell and move, not the full history of wandering.

Key takeaways

  • MDP = RL’s math stage.
  • Markov: future depends on present state (given the model).
  • Discount stabilizes long horizons.