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.

Find where the recommendation changes
  1. Change an assumption
    λ∈{18,22,26,30,34}\lambda\in\{18,22,26,30,34\}
  2. Compare the same options
    s∈{20,25,30,35,40}s\in\{20,25,30,35,40\}
  3. Report a conditional choice
    s∗(λ)=arg⁡min⁡sE[Ls∣λ]s^*(\lambda)=\arg\min_sE[L_s\mid\lambda]
Reference illustration. The result maps assumed demand to a preferred policy. It is a sensitivity boundary, not evidence assigning probabilities to the demand scenarios.

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.

Tools
About Python ↗

The code is editable. Press Ctrl+Enter or ⌘+Enter to run Python from the editor.

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?

Back to the Python editor

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?

Choose an answer
Need a hint?
Hint 1

Name exactly which input was varied.

Hint 2

Keep untested assumptions visible.

Your notes