RL 003
· 5 min read
Markov Property
- The future is independent of the past given the present state.
- The current state is sufficient to determine the future, without history.
Markov State
- : Time step
- : Next state
- : Current state
- : History (All previous states)
State Transition Probability
- Likelihood or probability of moving from one state to another state in the next time step .
- : Markov State
- : Successor State
- : Time step
- State transition matrix defines the transitions probabilities between all states to all successor states .
State Transition Matrix
- State transition matrix defines the transition probabilities between all states to all successor states .
- Probability of moving from state to is .
Math cal
Reinforcement Learning and Math Major Symbols
- : Transition Probability Matrix
- : State Space
- : Action Space
- : Reward Function
- : Loss Function
- : Normal Distribution
- : Dataset
- : Entropy / Hypothesis Space
Markov Process
Markov Chain
- What is going to be happened next?
- it goes through a sequence of states overtime.
- Stochastic Process: The next state is determined by the current state and the transition probability matrix that exhibits the Markov Property.
- Current state is independent of the past states.
- Memoryless: History of states leading up to the current state is not necessary to predict the next/future state.
- MP: , What states comes next?, Observer's Perspective.
- MRP: , How good/How much reward is this state in the long run?, Evaluator's Perspective.
- MDP: , What action should I take right now to maximize the long-term reward?, Decision Maker's Perspective.
- : a finite set of states.
- : a state transition matrix, defines the transitions probabilities from all states to all successor states .
- NO REWARD, NO ACTIONS.
Transition Diagram

- Box: where it ends
- Arrow: transitions
- Circle: states
- Number: probability of transitioning to the state
- S1: Calibration Site
- S2: Mineral Site
- S3: Water Site
- S4: Drill Site
- S5: Alien Remain Site
- S6: Lander Site
Markov Chain Episode
- A sequence of states from a starting state to a terminal state.
Episodic Task vs Continuous Task
| Feature | Episodic Tasks | Continuing Tasks |
|---|---|---|
| Termination | Has a well-defined terminal state () | Runs indefinitely without termination () |
| Real-World Examples | • Video games (e.g., Super Mario: level clear or death) • Navigation (reaching destination) • Board games (e.g., Chess: checkmate/draw) | • Smart thermostat (HVAC temperature control) • 24/7 industrial robotic process control • Automated trading & server load management |
| Execution Flow | Environment resets to a start state once finished | Operates continuously without automatic resets |
- Episodic Tasks: Tasks with a defined end/terminal state.
- Continuing Tasks: Tasks without a defined end/terminal state.
- It may require different MDP formulation and solution methods for each type of task.
Markov Reward Process
Markov Chain + Reward
- : a finite set of states.
- : a state transition matrix (Transition Dynamics)
- : a reward function to compute expected reward from a state.
- In the state , how much reward can you expect to get in the next time step?
- : a discount factor, to balance the immediate and future rewards.

Return
- : Goal Reward
- The sum of the rewards received from time step .
- : the sequence of rewards received after time step
- : terminal state
- : time step
Discount
- The present value of future rewards.
- : Myopic evaluation for maximizing immediate reward.
- : Far-sighted/Long-term evaluation for maximizing future reward.
Discounted Return
- : Discounted Return
- : Undiscounted Markov Reward Process, if all sequences terminate (like games)