Lawfare Academy · Complete Business Analytics and Decision Modeling edition 3
Simulate a joint operating risk and compare complete response policies
Define the random experiment before the random number
The preserved Harbor supply file has four states: high demand with delay .25; high without delay .15; low with delay .05; low without delay .55. Demand is 14 when high and 8 when low; usable supply is 8 with delay and 12 otherwise. These are stipulated synthetic joint probabilities. The high-demand marginal .40 and delay marginal .30 do not imply their joint event has probability .12. A separate independence model does have .12 there, but changing that cell requires changing the complete table consistently.
A valid discrete simulation maps a uniform draw u in [0,1)to the four states using cumulative cutoffs .25,.40,.45,1.00. The intervals' lengths equal the stated probabilities. Document the outcome associated with each interval and a boundary convention. Independent draws across simulated periods are an additional assumption; they do not establish that the real operating periods are independent. A fixed seed reproduces the numerical experiment, not the world.
For each state compute shortage max(demand−supply,0), then apply the actual modeled policy and loss. State shortages are 6,2,0,0. Expected shortage is 1.8; expected squared shortage 9.6; variance 9.6−1.8^2=6.36. The probability of any shortage .40 does not describe its severity; the probability of a six-unit shortage is .25. A mean-only report can therefore miss the tail relevant to a service decision.
Exact enumeration and Monte Carlo answer related but different questions
For these four states exact weighted enumeration is preferable for the expected value: sum probability times state outcome. Monte Carlo estimates that same quantity by repeated modeled draws and is useful for studying numerical precision or a larger system. With independent draws, the standard deviation of the sample mean shortage is sqrt(6.36/n). It is not the standard deviation of an individual period. With n 10000 the model-based standard error is approximately .02522 units. A biased joint distribution remains biased after a million draws.
Separate simulation error from input-parameter and structural uncertainty. If the actual failure mechanism links primary and backup suppliers, the current four-state policy can omit the relevant joint event. More trials of it cannot repair the missing failure. Rebuild the model, preserve the old version and explain whether marginals, dependence, response timing or loss changed. Do not silently choose independence because it produces a lower expected loss.
Compare the whole policy on the same state file
Under the original shortage loss 100/unit, no-backup state costs are 600,200,0,0, with expected 180. A guaranteed timely four-unit backup costs 80 each period. Its total state costs become 280,80,80,80; expected 130. The expected saving is 50. The commitment fee is paid even in low demand . Counting only the avoided-shortage gain would omit part of the decision.
Evaluate both policies on the same modeled states. Their paired savings are 320,120,−80,−80. Weighted mean is 50 and variance 29100 currency units squared. With n independent paired simulations, standard error of the estimated mean saving is sqrt(29100/n). A standard error is a property of that specified numerical experiment; it does not include uncertainty about whether backup actually arrives on time. Common random states reduce irrelevant between-run differences, but do not guarantee a variance improvement for every conceivable pair of policies.
The backup's maximum break-even fee in this dependent file is 130 because expected shortage loss drops 180 to 50 before the fee. At fee 80 it is beneficial by 50. Under the separate independence file expected no-backup loss 128 and pre-fee backup loss 24 give break-even fee 104. At fee 110 the dependent model favors backup (160 vs 180), while independence rejects it (134 vs 128). This is a new fee sensitivity; the original fee 80 case favors backup under both distributions and must remain represented accurately.
Commodity price risk needs a defined cash exposure
The former required commodity chapter is supplied on site in the complete independent capital/risk studio in unit 4, including fixed-price supply, matched long futures, basis risk, excess notional and margin timing. The four-state Harbor example here models demand and delivery quantities; it is not a commodity futures quote or a hedge for every supplier risk. Define the physical amount, quality/index, settlement date, currency and uncertainty before selecting a risk response.
A fixed-price contract can reduce price variability while leaving supplier performance and purchase volume uncertain. A derivative payoff at maturity can look favorable while an earlier margin call breaches cash capacity. Avoidance, reduction, retention and transfer change different parts of the risk system. A recommendation must show residual risk, feasible financing and actual authority; the text course authorizes no purchase, trading or supplier commitment.
Optional complete practice
Guided: distinguish the period from its estimated mean
Model: shortage mean 1.8 and variance 6.36 refer to the stated period distribution. With 10000 independent draws, sample-mean standard error sqrt(6.36/10000)≈.02522. Changed fact: draw count quadruples. Revised model: standard error halves, while outcome variance and assumed tail probabilities do not change. Dependence across draws requires a different variance calculation.
Independent: a fee changes the policy ranking
At fee 110, dependent backup expected cost 50+110=160 beats 180; independence gives 24+110=134 which exceeds 128. Changed fact: fee returns 80. Model:130 beats 180 and 104 beats 128, preserving the original two favorable rankings. Never report that dependence necessarily reverses every recommendation.
Transfer: recourse arrives too late
The original backup prevents shortages only because four usable units are guaranteed before the service deadline. Changed fact: backup arrives one day after the deadline. Model: it is no longer timely prevention; compute the original deadline shortage, then model later recovery, customer effects and fee separately. A later accounting recovery cannot retroactively make the earlier service constraint feasible.
Integrated uncertainty rubric:20 points
Award four points each for valid joint distribution/timing, exact expectation/tail calculations, simulation method and numerical uncertainty, complete policy/fee comparison, and source/evidence/authority limitations. Complete model: show the .25/.15/.05/.55 table,1.8 mean,6.36 variance,.40 any shortageand .25 six-unit tail. Reconcile 180 unprotectedvs 130 protectedatfee 80, then the fee 110 ranking reversal across the expressly separate distributions. Report a fixed numerical seed/draw count if simulation is run; never present these fictional probabilities as verified operating frequencies. Preserve a feasible fallback and the new evidence needed before a real commitment.