liveBook · Manning

Transition probability

As explained in Causal AI

A transition function in reinforcement learning specifies the probability distribution of the next state given the current state and action.

An agent choosing an action needs more than a destination: it needs a model of how the environment changes. A transition function gives the probability of reaching each next state after taking an action in the current state. section 12.5.1

For discrete states, the transition probability is written P(Sₜ₊₁ = s′ | Sₜ = s, Aₜ = a). It answers: given current state s and action a, how likely is next state s′? Actions can lead to different outcomes, including remaining in place when a border or obstacle blocks movement. section 12.5.1

Grid-world navigation

In a grid world, the agent moves up, down, right, or left toward a reward of 100 while avoiding a reward of −100 and an obstacle. From a particular cell, the transition probability describes where the agent will be after each selected move, supporting a policy that reaches the goal without entering the loss state. section 12.5.1

The probability also has a causal interpretation. In the MDP’s causal DAG, the direct parents of Sₜ₊₁ are Sₜ and Aₜ, so the transition function is the causal Markov kernel for the next state. This makes the Markov assumption operational: the current state summarizes the relevant history for predicting the next state. section 12.5.2

For counterfactual reasoning, the transition probability must reflect the environment’s actual state-change rules. An SCM can encode those rules through assignment functions, but specifying correct counterfactual distributions is difficult when the underlying mechanisms are unknown. Rule-based games make this easier because their rules support simulation of alternative action trajectories. section 12.6.3

Figure 12.27 A simple grid world
figure

Use the grid-world figure to connect states, actions, obstacles, terminal rewards, and possible transitions. section 12.5.1

Figure 12.28 The Markov decision process represented as a DAG
figure

Use the DAG to trace how the previous state and action determine the next state’s causal Markov kernel. section 12.5.2

How Causal AI covers it

How deep it goes
Defines discrete-state notation, connects it to a causal DAG, and extends it to SCM-based counterfactual modeling.
Examples
Uses a grid-world navigation task, a causal DAG, and rule-based games such as poker to illustrate transitions and counterfactual trajectories.
What it assumes
Builds the MDP framing from states, actions, rewards, and environments through a concrete grid-world navigation problem.
What you can do after
Evaluate state changes and simulate alternative action trajectories when the environment’s causal rules are specified.
How it connects
Connects Markov decision processes, causal Markov properties, causal DAGs, structural causal models, and counterfactual inference.

Also explained in

Compare how 5 books explain transition probability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.