Sub topic 10
Mitigation tools: hedging, insurance, and rerolls
This chapter assumes you can compute expected value and variance for a simple gamble. It also assumes you know the difference between input and output randomness, and can read short Python. Earlier chapters covered those ideas. Here they are used to analyze the tools designers add to make risk feel fair.
What a mitigation tool does
A mitigation tool is a rule that lets the player change the shape of a gamble after it has been offered to them. The gamble's possible outcomes are the same, but the player gets some control over how bad the bad ones are, how likely they are, or how many of them they must face at once.
Every mitigation tool does one or more of three things to a distribution:
- It raises the worst outcome (a floor).
- It shifts probability from bad outcomes to good ones.
- It spreads the stakes across several outcomes so no single result decides the game.
Each of these lowers variance, and most also change expected value. A tool is a decision in its own right. The player now has to ask whether the tool is worth its cost, and when to use it.
Three common tools
| Tool | What it changes | Typical cost | Example |
|---|---|---|---|
| Hedging | Spreads stakes across outcomes that do not move together | Opportunity cost: less invested in any one option | Splitting resources between two strategies that succeed in different conditions |
| Insurance | Sets a floor on loss | A certain, up-front premium | Paying gold to keep a unit if it dies |
| Reroll | Replaces a result with a fresh draw | A limited token, a resource, or a turn | A reroll token for a failed attack roll |
Hedging
To hedge is to hold positions that tend to succeed in different situations, so that one failure is cushioned by another. A player who builds both a ranged and a melee army is hedged against the opponent's counter. The cost is that neither army is as strong as a full commitment would make it.
Hedging works when the outcomes are negatively correlated or at least independent. If both options fail under the same condition, such as two armies that both lose to the same enemy, the player has paid for diversification and received none.
Insurance
Insurance trades a small certain loss for protection against a large uncertain one. The premium is the certain cost, and the payout is the floor it guarantees.
Insurance lowers the spread of outcomes. The premium shifts the average down by a fixed amount, and the floor shrinks the gap between best and worst outcomes. The code below shows both effects on the risky choice from earlier chapters.
def expected_value(outcomes):
return sum(p * v for p, v in outcomes)
def variance(outcomes):
mean = expected_value(outcomes)
return sum(p * (v - mean) ** 2 for p, v in outcomes)
def insure(outcomes, premium, floor):
# Pay the premium in every case. Any outcome below the floor is raised to it.
return [(p, max(v, floor) - premium) for p, v in outcomes]
risky = [(0.5, 25), (0.5, -2)]
print("uninsured", expected_value(risky), variance(risky))
for premium in (0, 1, 3):
covered = insure(risky, premium, 0)
print(premium, expected_value(covered), variance(covered))The output is:
uninsured 11.5 182.25
0 12.5 156.25
1 11.5 156.25
3 9.5 156.25Two things stand out. The variance is the same for every premium, because a premium subtracts the same amount from every outcome and does not change the spread. Only the floor reduces variance, from 182.25 to 156.25. And a premium of 0 makes the insured gamble strictly better than the uninsured one, so nobody would ever decline it. A premium of 1 leaves the average unchanged at 11.5 while still cutting variance. That is a real trade: the player keeps the same average and accepts less swing. Beyond that, each point of premium costs average value in exchange for safety.
Rerolls
A reroll lets the player discard a result and draw again. Its value depends on a rule about which result stands. If the player must keep the second result, a reroll is a gamble on top of a gamble. If the player keeps the better of the two, a reroll is strictly beneficial and needs a cost to stay interesting.
The code below enumerates a six-sided die where the player may reroll once and must keep the second result.
def expected_value(outcomes):
return sum(p * v for p, v in outcomes)
def variance(outcomes):
mean = expected_value(outcomes)
return sum(p * (v - mean) ** 2 for p, v in outcomes)
def die_with_reroll(should_reroll):
# The player sees the first roll, then may reroll once and must keep the new result.
outcomes = []
for first in range(1, 7):
if should_reroll(first):
outcomes.extend((1 / 36, second) for second in range(1, 7))
else:
outcomes.append((1 / 6, first))
return outcomes
plain = [(1 / 6, v) for v in range(1, 7)]
smart = die_with_reroll(lambda roll: roll < 4)
print(round(expected_value(plain), 3), round(variance(plain), 3))
print(round(expected_value(smart), 3), round(variance(smart), 3))The output is:
3.5 2.917
4.25 2.354The rule roll < 4 is the best use of the token. A fresh roll averages 3.5, so rerolling any first result below 3.5 raises the expected outcome, and keeping 4 or higher does not. The reroll raises the average by 0.75 and lowers variance, since the token mostly removes the worst results.
Where in time the tool acts
A tool can act before the player commits, or after the outcome is known. That timing changes how much information the player has when choosing, which connects to the earlier chapter on information and agency.
Hedging and insurance are decisions made under uncertainty, so the player judges them using the odds they know. A reroll is used after the result is visible, so the player decides with full information. That makes rerolls feel powerful and easy to use well, and it makes them the tool most likely to remove all tension if they are plentiful.
Design questions for each tool
Before adding a mitigation tool, answer these questions in numbers.
- What is the cost? A tool with no cost is a dominant choice. Costs can be a resource, a limited supply, or a turn.
- What is the supply? A token that refreshes every turn turns a swingy game into a smooth one. A token granted once per game turns the decision into when to spend it.
- How much variance does it remove? Compare the variance before and after, as in the examples above. A tool that removes almost all variance makes the risky choice irrelevant.
- Does it change the average? Mitigation that also raises the average is a bonus. Players will choose it every time, so price it accordingly.
- Who gets it? In a competitive game, a tool that only one side can use shifts the balance as much as a damage bonus.
Common failure modes
- Free or near-free insurance. The premium is lower than the average loss it prevents, so every player buys it. The risk it covers stops mattering.
- Stacked mitigation. Several tools that each remove some variance can combine to remove all of it. Test combinations, not only single tools.
- Hidden premiums. If the player cannot see what a tool costs or covers, they cannot judge it. Players then either avoid it or use it blindly.
- Rerolls that feel like punishment. Under a "must keep the second result" rule, a reroll can make the result worse. Players feel that loss more strongly than they felt the original bad roll, which is the loss aversion discussed earlier. If the game's tone is friendly, let the player keep the better of the two results and raise the cost instead.
- Hedges that are not independent. If the hedged options share a weakness, the player has paid for protection that does not exist.
Tuning a tool
Tuning a mitigation tool means picking a cost and a supply so that using it is a close call. A useful target is that skilled players use it in some situations and decline it in others. Use the functions above to compute the tool's value across the situations that actually occur in play, then adjust the premium, floor, or token count until the value crosses zero in the middle of that range.
Exercise
A reroll token lets a player reroll one d6 and keep the second result. The player has two tokens and knows the plan from this chapter. On a first roll of 3, should the player spend a token, and what is the expected gain from doing so?
Show answer
Yes. A fresh roll averages 3.5, which beats 3, so the expected gain is 3.5 - 3 = 0.5 points. The gain is small, though. If tokens are scarce, the player might save them for rolls of 1 or 2, where the expected gain is 2.5 or 1.5.
Exercise
A game offers insurance on a gamble that pays 40 with probability 0.25 and -10 with probability 0.75. The insurance costs a premium of 2 and raises any result below 0 to 0. Compute the expected value with and without insurance. Does the insurance leave the player better off on average?
Show answer
Without insurance, EV = 0.25 40 + 0.75 (-10) = 10 - 7.5 = 2.5. With insurance, each outcome has 2 subtracted: 38 with probability 0.25 and -2 with probability 0.75, so EV = 9.5 - 1.5 = 8.0. The insured gamble is better on average because the premium of 2 is less than the expected loss it prevents (0.75 * 10 = 7.5). Because every player should buy it, the designer should raise the premium. A premium of 7.5 would make the average the same.