Active inference agents minimise the expected free energy over a trajectory of actions. Free energy over a trajectory is the divergence between the variational distribution Q(o|π) of expected outcomes, o, given the action policy, π, and P(o|C): the conditioned probability of outcomes, o, upon some desired state of affairs, C…