12 Bayesian decision theory: Making choices under uncertainty and risks
Bayesian decision theory shifts the focus from merely estimating what is true to deciding what to do under uncertainty. The core idea is to combine beliefs about unknown outcomes with preferences over those outcomes, expressed through utility or cost, and then choose the action with the best overall tradeoff. In the website example, launching or not launching a redesign depends not just on the probability of a good conversion rate, but on how valuable each possible outcome is and what it would cost to act.
The central rule is to maximize expected utility. For simple problems, this can be done by listing possible outcomes, assigning each a utility, weighting by probability, and averaging. The chapter then extends this idea to continuous settings, where utility becomes a function over all possible values of an unknown quantity and expected utility is computed by integration or approximated with Monte Carlo samples. This same framework also applies to other choices, such as deciding among policies with different costs, payoffs, and probabilities of success.
The chapter then broadens the picture to sequential decision making, where choices today affect what can be learned and done later. By evaluating decisions backward through a search tree, Bayesian decision theory can choose actions that balance immediate reward with future opportunity, revealing the tension between exploitation and exploration. Because exact long-horizon planning is often computationally expensive, the chapter also introduces practical approximations such as upper confidence bound, Thompson sampling, and Monte Carlo tree search, each offering a different way to manage uncertainty and search efficiently.
A tree representation of the current problem of decision making under uncertainty. Each rectangle represents a possible scenario that might take place with corresponding probabilities, while each circle represents an action we can take.
While traversing from a leaf node to an action node, we multiply the utility we obtain in the leaf node by the probability that we do obtain the utility.
After adding up the weighted utilities associated with each action, we obtain the action’s expected utility. The action with the highest expected utility is chosen by Bayesian decision theory.
Given a continuous utility function that depends on the specific value of the conversion rate 𝑟, the circle node corresponding to the decision to launch now has infinitely many branches, each yielding the utility under a particular value of 𝑟, three examples of which are shown.
The utility obtained under each action and the PDF of Beta(64, 438) as functions of the value of the conversion rate 𝑟.
The distribution of utility values of launching, induced by the samples of 𝑟. We compute the average of the distribution and compare it against the utility of not launching.
Comparison between two alternative settings of the decision problem where each conversion is valued differently. Regardless of the setup, Bayesian decision theory may be applied to determine the optimal action.
The search tree for the one-step decision-making problem, where each action’s net utility accounts for the cost of taking that action if there is one.
The search tree for a two-step decision-making problem, where after implementing a policy, we have the option to implement the remaining policy. We also have the option to terminate at any time.
A branch in the two-layer search tree, where the utility values at leaf nodes depend on which policies have been implemented, their effects, and their implementation costs.
Propagation of utility from the leaf nodes to a sub-action node, and from sub-action nodes to an intermediate state node. As sub-actions have the same expected utility, the utility of either one may be used to determine the expected utility of the previous layer’s node.
Another example of propagating utility from leaf nodes to a sub-action, and from sub-action nodes to an intermediate state node. The sub-action with the higher expected utility is chosen to have its expected utility propagated to its parent node.
Propagating the adaptive expected utilities from intermediate state nodes to the initial action node. The final number represents the expected utility of making adaptive decisions after policy A is implemented in the first stage.
Propagating utility from leaf nodes to a sub-action, and from sub-action nodes to an intermediate state node, given that policy B is implemented first, and we receive the maximum payoff. Termination is chosen as the optimal sub-action given the large payoff from the first step.
Propagating utility from leaf nodes to a sub-action, and from sub-action nodes to an intermediate state node, given that policy B is implemented first, and we receive zero payoff. Policy A should be examined next, which would help us avoid the negative terminal utility.
The upper confidence bound (UCB) heuristic with β = 2 chooses policy B as its action, agreeing with Bayesian decision theory’s decision.
Summary
- Bayesian decision theory extends Bayesian inference from what to believe to what to do.
- A utility function quantifies how desirable different outcomes are, allowing us to compare decisions under uncertainty.
- The optimal decision is the one that maximizes expected utility, which averages outcomes weighted by their probabilities.
- Discrete decision problems can be generalized to continuous ones by defining utility as a function of the unknown outcome.
- When expected utilities cannot be computed analytically, Monte Carlo sampling provides a simple and general approximation.
- In sequential settings, decisions must account for future actions and outcomes, not just immediate utility.
- The optimal strategy in a multi-step problem may differ from the optimal one-step decision due to the ability to adapt over time.
- The exploitation–exploration tradeoff arises when actions affect both immediate utility and future gains.
- Practical methods like upper confidence bound (UCB), Thompson sampling, and Monte Carlo tree search (MCTS) approximate optimal decision-making under uncertainty.
Grokking Bayes ebook for free