A collection of fragments of understanding in the pursuit of deeper questions.
Markov Chain (MC) A Bayesian Network is a kind of PGM that uses a directed (acyclic) graph to represent a factorized probability distribution and associated conditional independence over a set of variables.
Definition: A state is Markov if and only if:
where is the current state and is the successor state.
The state captures all relevant information from the history. Once the state is known, the history may be thrown away. This means that the state is a sufficient statistic of the future.
![]() |
![]() |
![]() |
|---|
The state transition matrix P defines transition probabilities from all states to all successor states : (Left) An example Markov Chain showing all state transition probabilities next to its node. (Right) The corresponding state transition matrix and results of a sampling procedure applied to this Markov chain. Be aware that this is not a PGM, the nodes are not random variables.
Markov Reward Process (MRP) A Markov reward process is a stochastic process which extends a Markov chain by adding a reward rate to each state. Definition: A Markov Reward Process is a tuple where S is a finite set of states, P is a state transition probability matrix , is a reward function and is a discount in the interval (0,1).
Facts:
We call the return which is the total discounted reward from time step t onward.
If we just look at we must assume that we know the chain of events that lead to the specific rewards R, however the MRP is a stochastic process. Therefore we may compute the conditional value function given that we know where we start (. We have seen this function before in the RL chapter:
which is just
Hence, the state value function of an MRP is the expected return starting from state s. It gives the long-term value of state s.
![]() |
![]() |
![]() |
|---|
Markov Decision Process (MDP) Markov Decision Process (MDP) is a Markov reward process with decisions (actions that we can take). It is still an environment in which all states are Markov.
Definition: A Markov Reward Process is a tuple where S is a finite set of states, A is a finite set of actions, P is a state transition probability matrix , is a reward function and is a discount in the interval (0,1).
Markov Decision Processes formally describe an environment for Reinforcement Learning where the environment is fully observable. Almost all RL problems can be formalized as MDPs.
The MC seen before extended to be a MRP is here extended again to be an MDP. However, we should be careful with the comparisons. In the MRP, our agent was guided purely by randomness and we had no choice. Now, the agent is able to directly influence its path. Note that some of the transitions are deterministic. For example, if we quit Facebook, we are for sure back to studying, however if were in the pub, we might be too drunk and randomness influences the outcome.
One can see that we are very close now to what we introduced in the RL section, however, one key piece is missing. Given that we have choice as an agent now, how do we know the optimal behavior?