opyeb FlowSim

Sensitivity analysis and the tornado chart

2026-11-28 · 2 min read

Once a model exists, the next question is which assumption to check. Sensitivity analysis shakes each input a little, measures how far the output moves, and ranks them.

How it is computed

Choose one output node. Then, one at a time, move each input marked for sensitivity to −20% and +20%, recompute the whole graph, and record the change.

One at a time is the point: moving two together makes the cause unreadable. This is one-at-a-time sensitivity analysis.

FlowSim only shakes sliders and constants marked for sensitivity, leaving structural values such as the horizon or a square-root exponent alone.

Reading the tornado

Sort by impact and draw each variable's two results as horizontal bars: the result is a tornado, widest at the top.

The top variable moves the conclusion most. If its source is the least certain, that uncertainty is the uncertainty of the whole answer.

Asymmetry matters too. Bars of different lengths mean the relationship is not linear and one direction carries more risk.

An example from the wealth model

Start 10,000,000, contribute 500,000 a month, 5% a year, 240 months, 15.4% tax: the after-tax value is 216,836,179. Shaking each input gives the table below.

The monthly contribution dominates at ±17.7%. The rate is asymmetric: −10.5% for −20% and +12.3% for +20%, because compounding is convex.

Inflation has a 0% effect on the after-tax value because it only feeds the real-value node. That means "no effect on this output", not "no effect".

Variable−20% result+20% resultChange (down/up)Rank
Monthly contribution 500k178,367,000255,306,000−17.7% / +17.7%1
Annual return 5%193,969,000243,468,000−10.5% / +12.3%2
Starting capital 10M211,938,000221,734,000−2.3% / +2.3%3
Inflation 2.5%216,836,000216,836,0000.0% / 0.0%4

Choosing the wrong output

The result depends entirely on what you asked. Against the after-tax value, inflation does nothing; against the real value it is the biggest variable.

So fix the question first. "How much can I save" and "what can I buy with it" are different questions needing different assumptions.

Switching the base output in the simulator reorders the tornado — that is how one model gets examined from several angles.

for v in inputs:
    low  = recompute(v * 0.8)
    high = recompute(v * 1.2)
    impact = max(abs(low - base), abs(high - base)) / base
sort(inputs, key=impact, reverse=True)

Turning it into action

Check where the top variable came from. If it is a guess, finding better data is the cheapest improvement. If it is a signed contract, there is nothing to shake.

Variables further down are not irrelevant: correlated inputs can matter together even when each is small, and one-at-a-time analysis cannot see that interaction.

Record the result. Keeping a note beside the saved graph JSON means the next person knows which assumption mattered.

Questions

Why ±20%?

It is a convention. Uncertainty differs per variable, so in practice set the range from the confidence interval of the source.

What about changing several at once?

That is Monte Carlo simulation. The one-at-a-time pass is the quick way to find which variable deserves it.

Sources

Every calculation here can be reproduced with a template in the simulator.

Open the simulator