Turn results into decisionsLesson 52 of 76 · 8 min
Find where the decision changes
Check which stock choice a higher shortage penalty changes across demand scenarios.
A robust recommendation should explain which assumptions support it and where it changes. Sensitivity analysis deliberately varies an input or relationship while retaining the decision procedure.
Here demand mean is a scenario input. Every scenario compares the same stock options and penalty rule, then reports its preferred choice. The result is a decision map, not a probability distribution over scenarios.
An interaction means the effect of one input depends on another. Raising mean demand may change the preferred stock more when a shortage is very costly than when it is cheap. Test combinations of demand and shortage penalty near a decision boundary; a one-input-at-a-time map can miss that dependence.
- Change an assumption
- Compare the same options
- Report a conditional choice
If the preferred stock rises with assumed demand, does that mean the scenario rates have been estimated from data?
Write a prediction (optional)
Seeded teaching simulation
Select Run Python below with the code unchanged.
A saved draft is open. To run the published example, open Tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
Your result
Published example output
This result comes from the original Python. Your runs appear above. Build environment ↗
assumed_mean preferred_stock expected_loss
18 20 14.897
22 25 15.220
26 30 15.970
30 35 16.914
34 40 18.182
Read the first result
The input values were chosen for exploration. The table shows conditional decisions, not estimated scenario probabilities.
Try an edit
Replace losses = 10*np.maximum with losses = 20*np.maximum. Select Run Python again. For each assumed_mean row compare preferred_stock with your original output. In which demand scenarios did a higher shortage penalty change the choice?
Scope. The map compares a finite set of assumed demand levels and penalties. It leaves other inputs fixed.
Try a fresh case
A decision is unchanged over a wide tested range of one input. What does that support?
Need a hint?
Hint 1
Name exactly which input was varied.
Hint 2
Keep untested assumptions visible.