Course outline

Expected Loss and the Decision Rule

By the end of this lesson, you should be able to: compute expected loss from a posterior, set a region of practical equivalence from real costs, explain why P(better) is not a decision rule, and defend a shipping threshold with money rather than convention.

The number that isn't a decision

Last lesson ended with P(treatment > control) = 0.9937 on Meridian's rebooking test. As close to certain as an experiment gets.

So ship it?

Here are three results, all of them over 94% likely to be positive:

CaseP(B > A)Median differenceExpected loss
Meridian ADV-010.9940+0.008020.0000064
A tiny effect, huge sample0.9436+0.000900.0000136
A big effect, small sample0.9771+0.034930.0001461

The third case is 23 times more consequential than the first, and its probability is lower.

P(B > A) collapses the entire posterior into one bit: which side of zero is most of the mass on. It throws away how far, which is the only thing that determines what shipping is worth.

Expected loss

The fix is to keep the magnitude. Expected loss is the average amount you give up by taking an action, integrated over the whole posterior.

E[loss from shipping]=E[max(0,  δ)]\mathbb{E}[\text{loss from shipping}] = \mathbb{E}\big[\max(0,\; -\delta)\big]

Read it as: in the worlds where treatment is worse, how much worse, weighted by how likely each of those worlds is. When treatment is better, the loss from shipping is zero, so those draws contribute nothing.

On Meridian:

ValuePer year
Expected loss from shipping0.0000063$208
Expected loss from not shipping0.0080223$263,933
Ratio1,267x

Across 14 million riders a year at $2.35 of margin a trip, the downside of shipping this is two hundred dollars. The downside of not shipping it is a quarter of a million.

Two panels. Left, the posterior over the absolute conversion difference, mostly positive and shaded indigo, with the small sliver below zero shaded rose and annotated as the expected loss from shipping, and a dashed amber line marking the ROPE at 0.0073 sitting inside the bulk of the distribution. Right, paired bars for three cases showing P(B greater than A) all near 0.95 in grey against expected losses in rose that differ by more than twentyfold.
Left: the loss is the red area weighted by how deep it goes. Right: the same confidence, three different amounts at stake.

That asymmetry is the decision. Not the probability, the two losses side by side.