Expected loss
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In statistical inference, the expected loss is the probability-weighted average of a loss, used to rank actions. Expected loss is the risk of a decision: the probability-weighted average of the loss of one action, given the information available when the action is chosen. The action with the smallest expected loss is the one the score recommends.[1] Loss and risk is the pair of objects used to judge a statistical procedure: a loss that scores an estimate when the parameter is known, and the risk function obtained by taking the expected loss of the procedure at a fixed parameter. Expected loss ranks actions. Loss and risk name that pair.
Expected loss
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
| Worked example | 1 |
Motivating example
A 95-year-old man with a lung tumour chooses radiotherapy, surgery, or no treatment. There is a 90 percent chance the tumour is malignant. If it is not, life expectancy is 34.8 months. If it is, radiotherapy gives 16.7 months, no treatment gives 5.6 months, and surgery kills immediately with probability 0.35 and otherwise follows a life expectancy of 20.3 months if the tumour is malignant. Treatment also costs a month of discomfort. Quality-adjusted life expectancy subtracts that month and averages over the malignancy:
months for radiotherapy, months for surgery, and months for no treatment. Radiotherapy is preferred. Writing the score as months forfeited, a loss, reverses the sign and leaves the ranking unchanged: the preferred action is the one whose expected loss is smallest. No single state, malignant or not, is treated as certain. The average is the decision.[1]
Intuition
A loss charges action when the outcome is . If is still random given , the charge that guides the action is the mean of , not the loss in the most dramatic state and not the loss in the most probable state. A small probability of a large loss can outweigh a likely small loss. Computing the mean forces that tradeoff into the open. In a tree, the mean at a later node is computed with the information available there, and the earlier node averages those later means, weighted by the probability of reaching them. The same construction with a utility maximises instead of minimising a loss. The two agree when the loss is the negative of the utility, up to a constant that does not change the ranking.[1]
Definition
Decision analysis under uncertainty has four steps. List the decisions and the outcomes . For each , specify the distribution . The decision itself is not given a probability. Map outcomes to a utility , and choose the that maximises the expected utility . In a tree the expectation at each decision node is conditional on the information available at that node. The expected loss of is this expectation with the sign flipped,
with a sum in place of the integral when is discrete, and with . The recommended action is the one with the lowest expected loss. The expectation for a branch that says “measure, then act” is the expected loss of the policy that will actually be followed after the measurement. It is not the expected loss of measuring and then ignoring the result.[1]
When the action is a point report about a parameter, the loss is attached to the report. If the loss is quadratic, , the report that minimises the expected loss under the distribution calculated for is the mean of that distribution. A Bayes estimate for squared-error loss is the posterior mean, when the mean exists. Absolute loss selects a median. Those facts are about the average of the loss under the distribution in hand. The sampling risk still depends on . It is the expected loss of a decision rule at a fixed parameter value, which is the risk.[2][1]
Properties
Expected loss is linear in the mixture of outcomes. In the tumour example the radiotherapy score is exactly that mixture, with the final a sure loss from discomfort. Changing the probability changes the expected loss without changing the loss attached to either state. The surgery figure and the no-treatment figure are the same kind of mixture, with surgery’s immediate death contributing a term .[1]
The law of total expectation is what makes a tree computable. The expected value of “test, then act optimally” equals the average, over the test result, of the expected value of the optimal action given that result, plus any loss charged by the test itself. If every result leads to the same treatment, the test cannot improve on taking that treatment immediately once the test itself has a cost. Bronchoscopy in the same example has a positive chance of death and, on the probabilities used there, still leads to radiotherapy whether the test is positive or negative. The quality-adjusted value of testing and then choosing is months, reported as , against for radiotherapy with no test. The test adds risk and does not change the action.[1]
A quadratic loss on a parameter report selects one action, the mean, because the expectation has already been taken under the distribution calculated for the parameter. That is a property of the posterior, or of whatever distribution the loss is averaged over. It does not say that the sample mean minimises squared-error risk at every parameter value. That comparison is the sampling risk of the decision rule.[2]
Worked example
Suppose an action “treat” has loss if the condition is present and loss if it is absent, and an action “watch” has loss if present and loss if absent. At a base rate ,
Watching has the smaller expected loss. The most probable state is “absent,” and watching is also best in that state, but that coincidence is not the reason. The reason is the average. The losses are a utility with the sign flipped, so the same arithmetic maximises expected utility if every loss is multiplied by .[1]
Your turn. Keep the same losses and set the base rate to . Which action has the smaller expected loss, and what are the two values?
Treating has expected loss . Watching has expected loss . Treating is smaller. The ranking flipped because the base rate changed, not because the losses changed.
Assumptions and limits
The expectation exists only when the loss has a finite mean under . A utility or loss that the decision maker does not accept will rank actions they would not rank. The tumour calculation uses life expectancies and a one-month discomfort penalty taken as inputs. Changing either input changes the expected score. The tree calculation for a later action assumes that the stated policy will be followed. An expected loss computed for “measure, then remediate if high” does not apply to a household that will remediate regardless of the measurement. In the radon analysis the expected loss of the measurement branch is defined as the average of the better of the two later actions, and that average is the right number only for someone who will take the better action.[1]
Quadratic loss selects the mean only when the mean exists. A distribution of the parameter with no mean has no Bayes estimate under that loss. Absolute loss selects a median, which can exist when the mean does not. The choice of loss is part of the decision, not a property of the parameter.[1][2]
Connections
A decision problem names the actions whose expected losses are compared. The base rate is a probability weight inside the average, as and are in the worked example. Loss and risk name the loss function and the sampling risk of a procedure. Mean squared error is that risk when the loss is squared error. The quadratic calculation above is the calculated-distribution version of squared error: it selects a mean. The sampling identity of squared-error risk with mean squared error belongs to loss and risk. Choosing a point estimate by minimising an expected loss is the decision-theoretic step in the Bayesian calculation.[2][1]
Check yourself
Try these questions before opening an answer.
Two averages
Expected loss and the risk of a procedure are both averages of a loss. What is being averaged in each case?
Expected loss averages the loss of one action over the outcomes still uncertain when the action is chosen. The risk averages the loss of a procedure over repeated samples at a fixed parameter.
A measurement branch
Why is the expected loss of measure-then-remediate-if-high the wrong score for a household that will remediate whatever the reading is?
That expectation uses the action taken after the measurement. A household that ignores the reading is taking a different action, so it has a different expected loss.
A quadratic report
A point report about a parameter is scored by squared error under the distribution calculated for the parameter. Which summary minimises the expected loss?
The mean of that distribution, when the mean exists.
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k a. (§9.1, pp. 237–238) b. (§9.3, p. 245) c. (§9.1, p. 238; §9.3, p. 245) d. (§9.1, pp. 237–238; §9.4, p. 253) e. (Ch. 4, Exercise 6, p. 99) f. (§9.3, p. 245) g. (§9.3, p. 245) h. (§9.1, p. 238) i. (§9.4, p. 253; §9.3, p. 245) j. (Ch. 4, Exercise 6, p. 99) k. (§9.1, pp. 237–238) Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A. & Rubin, D. B. (2013). Bayesian Data Analysis. Chapman and Hall/CRC. https://doi.org/10.1201/b16018
- ^ a b c d a. (p. 34) b. (p. 34) c. (p. 34) d. (pp. 33–34) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
StatWiki (2026). "Expected loss." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/expected-loss.html
@misc{statwiki_expected_loss,
author = {{StatWiki}},
title = {{Expected loss}},
year = {2026},
url = {https://www.statwiki.io/articles/expected-loss.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}