Discord

INAIO Guide Stage 1 9Random Variables and Expected Value

9.6 Expected costs and decisions

Compare actions by their probability-weighted rewards or costs, while keeping the assumptions and risk limits visible.

Expected value in Module 9.2 describes the average outcome of one random quantity. A decision adds a choice: each available action changes the possible rewards, costs, or their probabilities. We calculate the expected result for each action and compare them. This is useful in reliability planning and in AI systems that must choose whether to raise an alert.

This is intermediate probability and decision-making. OpenStax's expected-value lesson works through payoff problems; its statistics lesson reviews the weighted-average calculation. You should be comfortable listing a small distribution before comparing actions.

A basic idea: put actions on the same scale

Suppose a machine failure costs 100100. Without maintenance, failure probability is 0.200.20, so expected cost is 0.20(100)=200.20(100)=20. Maintenance costs 1212 and lowers failure probability to 0.050.05, so its expected cost is 12+0.05(100)=1712+0.05(100)=17. On the stated assumptions, maintenance saves 33 in expectation. It does not save exactly 33 in each individual run.

Two rows compare expected costs: no maintenance is 0 plus 0.20 times 100, or 20; maintenance is 12 plus 0.05 times 100, or 17. A second panel marks the alert decision threshold at event probability 0.20.Two rows compare expected costs: no maintenance is 0 plus 0.20 times 100, or 20; maintenance is 12 plus 0.05 times 100, or 17. A second panel marks the alert decision threshold at event probability 0.20.
Compare complete expected costs for each action, including any fixed cost.

A quick tour of decision rules

For action aa and possible outcomes ii, define its reward R(a,i)R(a,i) or cost C(a,i)C(a,i). Then

E[R∣a]=∑iP(i∣a)R(a,i),E[C∣a]=∑iP(i∣a)C(a,i).E[R\mid a]=\sum_i P(i\mid a)R(a,i), \qquad E[C\mid a]=\sum_i P(i\mid a)C(a,i).

Include fixed fees, losses, and gains on the same scale. To choose by expected value alone, maximize expected net reward or minimize expected total cost. Never compare a gross reward for one action with a net reward for another.

For a yes-or-no alert, suppose the event probability is pp, a false alert costs CFPC_{FP}, and a missed event costs CFNC_{FN}, while correct decisions have zero cost. Alerting has expected cost (1−p)CFP(1-p)C_{FP}; staying quiet has cost pCFNpC_{FN}. Alert when

p>CFPCFP+CFN,p>\frac{C_{FP}}{C_{FP}+C_{FN}},

with either action tied at equality. This threshold follows by comparing the two costs; it is not a universal probability cutoff. Expected cost is one criterion: a budget limit, a catastrophic downside, or uncertain probability estimates may require a different decision rule. This module does not develop risk measures beyond expectation.

Application 1: preventive maintenance

A failure costs 100100. Its probability is 0.200.20 without maintenance, or 0.050.05 after a 1212 maintenance job. Which action has lower expected cost?

  1. Without maintenance, E[C]=0.20(100)=20E[C]=0.20(100)=20.
  2. With maintenance, E[C]=12+0.05(100)=17E[C]=12+0.05(100)=17.
  3. Choose maintenance under the expected-cost criterion; its expected cost is lower by 33.

Application 2: a model alert

A model estimates a 0.300.30 chance of an event. A false alert costs 22; missing a real event costs 88. Correct decisions have zero cost. Should the system alert?

  1. Alert: only a false alert costs anything, so E[C∣alert]=(1−0.30)(2)=1.4E[C\mid\text{alert}]=(1-0.30)(2)=1.4.
  2. Stay quiet: only a missed event costs anything, so E[C∣quiet]=0.30(8)=2.4E[C\mid\text{quiet}]=0.30(8)=2.4.
  3. Alert has lower expected cost. The threshold is 2/(2+8)=0.202/(2+8)=0.20, and 0.300.30 exceeds it. This assumes the estimated probability and stated costs are credible.

Resources

SourceTitleWhy read it
OpenStaxExpected valuePractise net-payoff and decision comparisons.
OpenStaxMean or expected value and standard deviationReview probability-weighted averages.

Finished this module? Mark it done.

Comments

Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.

Loading comments