Risk, Uncertainty, and Ambiguity: A Mathematical Comparison

Environment

Python 3.14.6, NumPy 2.5.4, SciPy 1.18.1, Matplotlib 3.11.2 (Jupyter Notebook).

This article is a rewrite of a post from around 2021, with calculations performed in the environment described above.

Overview

Distinguish cases with one specified distribution from cases where the probabilities themselves remain unclear. A numerical example compares robust evaluation over a set of distributions with Bayesian evaluation using a prior over probabilities.

This article corresponds to Chapter 3, “Decision Making under Uncertainty”, of The Theory and Practice of Decision Making. The numerical examples are illustrative, not observed data.

Setup

Run the cells in order. Round to three significant figures only when displaying results.

Check versions, import libraries, and configure plots
import sys
from pathlib import Path
from pprint import pprint

import numpy as np
import scipy
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter, ScalarFormatter
from matplotlib_inline.backend_inline import set_matplotlib_formats
from IPython.display import Math, display

# 表示だけを丸め、計算には丸める前の値を使う。
def s3(value):
    return format(float(value), "#.3g").rstrip(".")


np.set_printoptions(formatter={"float_kind": s3})
set_matplotlib_formats("svg")
plt.rcParams.update({
    "figure.figsize": (7, 4),
    "font.size": 11,
    "axes.spines.top": False,
    "axes.spines.right": False,
    "axes.grid": True,
    "grid.alpha": 0.200,
    "svg.fonttype": "path",
})
OUT_DIR = Path("107_nb_files")
OUT_DIR.mkdir(exist_ok=True)


def save_fig(fig, name):
    # 数値の目盛りだけを整形し、候補名などのラベルは保つ。
    for ax in fig.axes:
        for axis in (ax.xaxis, ax.yaxis):
            if isinstance(axis.get_major_formatter(), ScalarFormatter):
                axis.set_major_formatter(FuncFormatter(lambda x, pos: s3(x)))
    # SVGをファイルとセル出力の両方に残す。
    fig.tight_layout()
    fig.savefig(OUT_DIR / f"{name}.svg", format="svg", bbox_inches="tight")
    display(fig)
    plt.close(fig)


assert sys.version_info[:3] == (3, 14, 6), "Python 3.14.6のカーネルを選択すること"
print("実行環境: wa-src(3.14.6)")
print("Python:", sys.version.split()[0])
print("NumPy:", np.__version__, "SciPy:", scipy.__version__)
print("Matplotlib:", matplotlib.__version__)
実行環境: wa-src(3.14.6)
Python: 3.14.6
NumPy: 2.5.4 SciPy: 1.18.1
Matplotlib: 3.11.2

1. Connect terminology to models

Uncertainty has different meanings across fields. Here it covers any situation with an undetermined future outcome, with the following distinctions.

SituationTerm used hereMathematical representation
One state distribution is specifiedRiskA single probability vector
Several distributions remain possibleAmbiguityA set of candidate distributions
States or actions are not fully identifiedIncompletely modeled uncertaintyRevise the sets or the outcome mapping

Some classical accounts reserve uncertainty for situations where probabilities cannot be quantified. Rather than relying on the name, state in the model what is known and what remains uncertain.

Errors in estimated probabilities, variation in demand, and errors in the profit formula are different problems. Enlarging a probability set does not automatically account for omitted states or an incorrect profit formula.

2. Evaluate a specified distribution by expectation

The safe option S earns 40 in either state. The variable option R earns 0 on failure and 100 on success. Let success probability be $p$. Under risk neutrality in money,

$$ V(S;p)=40,\qquad V(R;p)=(1-p)0+p100=100p. $$

At $p=0.600$, R has expected profit 60.0, exceeding S. This does not guarantee success. Even with known probabilities, realized outcomes still vary.

3. A set of distributions needs an additional decision criterion

Suppose all we know is $0.200\leq p\leq0.800$. The candidate distribution set is

$$ \mathcal P=\{(1-p,p)^{\mathsf T}:0.200\leq p\leq0.800\}. $$

A set alone does not uniquely determine an action. Here we maximize the smallest expected profit across candidate distributions.

$$ a^*\in\underset{a}{\arg\max}\ \min_{\mathbf{p}\in\mathcal P} \sum_s p_s G(a,s). $$

The worst expected profit is 40 for S and $100\times0.200=20$ for R, so we choose S. This pessimistic treatment of ambiguity is an additional preference or decision criterion; unknown probabilities alone do not imply it.

$$ \displaystyle \min_{p\in[0.200,0.800]}100p=20<40 $$

p_grid = np.linspace(0, 1, 301)
lower, upper = 0.200, 0.800
profit = np.array([[40, 40], [0, 100]], dtype=float)
endpoint_probabilities = np.array([[1 - lower, lower], [1 - upper, upper]])
endpoint_values = profit @ endpoint_probabilities.T
worst_values = endpoint_values.min(axis=1)
pprint({"端点での期待利益": endpoint_values, "最悪期待利益": worst_values})
assert np.allclose(worst_values, [40, 20])

fig, ax = plt.subplots()
ax.axvspan(lower, upper, color="gray", alpha=0.150, label="Plausible probabilities")
ax.plot(p_grid, np.full_like(p_grid, 40), label="Safe")
ax.plot(p_grid, 100 * p_grid, label="Risky")
ax.scatter([lower], [20], color="tab:red", label="Worst case for Risky")
ax.set(xlabel="Success probability", ylabel="Expected profit")
ax.legend()
save_fig(fig, "01_probability_set")
{'最悪期待利益': array([40.0, 20.0]),
 '端点での期待利益': array([[40.0, 40.0],
       [20.0, 80.0]])}

With two states, expected profit is affine in $p$, so its minimum on an interval occurs at an endpoint. Expanding to the entire probability simplex $\mathcal P=\{\mathbf{p}:p_s\geq0,\sum_s p_s=1\}$ gives

$$ \min_{\mathbf{p}\in\mathcal P}\sum_s p_sG(a,s)=\min_sG(a,s) $$

because probability 1 can be assigned to the least profitable state. If $\mathcal P$ contains one point, we recover ordinary expected profit. The size of the set controls how unfavorable a distribution is considered.

4. Distinguish this from a distribution over probabilities

A $\operatorname{Beta}(2,2)$ prior on $p$ has mean $2/(2+2)=0.500$. Bayesian evaluation averages at both levels:

$$ \mathbb E_p[\mathbb E[G(R,S)\mid p]]=100\mathbb E[p]=50.0. $$

This model therefore selects R. Taking a worst case differs from averaging under a prior. Even priors with the same support can give different evaluations when their probability weights differ.

For this single binary outcome, the prior predictive success probability depends only on the prior mean. Changing to $\operatorname{Beta}(20,20)$ leaves expected profit unchanged. Prior concentration can matter when decisions involve repeated outcomes or learning.

from scipy.stats import beta as beta_distribution

prior_means = [float(beta_distribution(a, a).mean()) for a in [2, 20]]
pprint({"事前予測の期待利益": [s3(100 * p) for p in prior_means]})

# 中心0.600のまま、許容する確率区間を広げる。
radius = np.linspace(0, 0.400, 201)
robust_risky = 100 * np.maximum(0, 0.600 - radius)
fig, ax = plt.subplots()
ax.plot(radius, np.full_like(radius, 40), label="Safe")
ax.plot(radius, robust_risky, label="Worst expected profit of Risky")
ax.axvline(0.200, color="gray", linestyle="--", label="Tie")
ax.set(xlabel="Radius of probability interval", ylabel="Worst expected profit")
ax.legend()
save_fig(fig, "02_ambiguity_radius")
{'事前予測の期待利益': ['50.0', '50.0']}

Widening the interval lowers the evaluation of R. When reporting a robust decision, record why the probability set was chosen as well as the recommendation. An overly wide set can reject promising options; an overly narrow one can exclude unfavorable possibilities.

Conclusion

We calculated evaluations under a known distribution, a set of distributions, and a prior over probabilities.

With ambiguity, specify both the range of uncertainty and how that range is evaluated. Worst-case evaluation and Bayesian averaging express different decision criteria.

References

Gilboa and Schmeidler (1989), Maxmin Expected Utility with Non-Unique Prior . Background on evaluation using multiple probability distributions.