Lawfare Group → Knowledge Institute → Lawfare Academy

← Course syllabus · Related lesson

Simulate dependent risks and compare a complete response policy

Current complete on-site edition 3

Required teaching and complete optional models are supplied on LawfareGroup.com. Publisher and primary links are optional provenance or further reading. Florida is the contemporary state-law default; federal rules and explicitly comparative material are distinguished. Independent subject review and observed human learner testing remain pending.

Cumulative information-system dossier, transfer models and 30-point rubric

Preserved original teaching integrated with complete current on-site preparation. Independent human subject review and observed learner testing remain pending.

Learning objectives

A distribution needs dependence and timing, not just averages

Simulation repeatedly draws uncertain conditions and computes consequences of a defined decision. Before choosing a random generator, define the sequence: which decision is made first, which state becomes known next and what action remains possible afterward. A response unavailable until after a missed service deadline cannot be counted as timely recourse.

In an original inventory-service file, demand is either eight or fourteen units. Usable supply is eight if a supplier delay occurs and twelve otherwise. Four joint states have stipulated probabilities: High demand with Delay 0.25, High with No delay 0.15, Low with Delay 0.05 and Low with No delay 0.55. They sum to one. High demand has marginal probability 0.40 and Delay 0.30.

The joint chance of High and Delay is 0.25, not 0.40×0.30=0.12. A common event could raise both risks; the file stipulates dependence without claiming to measure an actual storm or market. Separate marginal distributions do not establish independence. The exercise compares modeled consequences, not current weather, supplier reliability or real business forecasts.

Exact enumeration provides a reference for the simulation

Unserved units are max(demand-usable supply, 0). In the four states, shortages are six, two, zero, zero. Expected shortage is 0.25(6)+0.15(2)=1.8 units per period. Probability of any shortage is 0.40, while probability shortage is at least six is 0.25. A mean and a tail probability describe different aspects of exposure.

If independence were incorrectly imposed while retaining the same marginal probabilities, state probabilities become 0.12, 0.28, 0.18, 0.42. Expected shortage would be 1.28 and chance of a six-unit shortage 0.12. Probability of any shortage remains 0.40 because High demand exceeds supply in either delay state. One unchanged summary can therefore conceal a material change in severity and the tail.

At a stipulated loss 100 per unserved unit, expected shortage cost is 180 under the dependent file versus 128 under the independence file. This loss convention omits any nonlinear customer harm, carryover, contractual effects or service priority. A realistic decision needs evidence for both the input distribution and the loss function.

Compare policies using the same states and available actions

Suppose a backup commitment costs eighty per period and guarantees four additional usable supply units in every state before demand must be served. Supply becomes twelve with delay and sixteen otherwise. Only High/Delay now has shortage, equal to two units. Expected shortage is 0.50 and expected shortage loss 50. Including commitment cost 80 gives total expected modeled cost 130 versus 180 without backup, an improvement of 50.

Under the separate independence model, expected backup shortage is 0.12(2)=0.24 and total cost 104, compared with 128 without backup: improvement 24. The decision still favors backup in these particular files, but the estimated benefit differs. Do not claim dependence must always reverse a decision; it can alter value and risk even when the ranking stays unchanged.

The guarantee, timing and four-unit availability are supplied assumptions. If the backup supplier fails in the same conditions, add that dependence. If backup is ordered after demand is observed, it is a different policy and needs different prices and lead times. Comparing alternatives on the same sampled states reduces irrelevant simulation noise but does not create a guarantee about operations.

More trials improve numerical precision, not the underlying evidence

For this four-state model, exact enumeration already gives the expected values. Monte Carlo is an additional teaching check: sample a state using cumulative probabilities, calculate shortage and backup cost, and average many trials. A fixed seed makes the illustrative run reproducible. It does not prove the distributions or freeze uncertainty in the real world.

Sampling error generally falls with more independent simulated trials; misspecified dependence, omitted events, biased probabilities and wrong loss functions do not. Report the number of draws, input version, seed, mean, relevant tail frequency and any numerical approximation. Distinguish the variability of simulated outcomes from uncertainty about the estimated mean.

The current complete on-site probability, risk and commodity studios supply the conceptual preparation; source links are optional. The laboratory independently reconstructs exact scenarios before running the reproducible simulation. Optional exercises change dependence and backup timing. A recommendation should state why the modeled improvement is credible, what evidence supports the response capability and which omitted condition could invalidate it.

Worked example: Matching marginals is insufficient

High demand 0.40 and Delay 0.30 permit many joint distributions. The supplied High/Delay probability 0.25 gives mean shortage 1.8; independence gives 1.28 even with those same marginals.

Worked example: Backup value includes its commitment price

Dependent backup shortage is two only in the 0.25 High/Delay state, averaging 0.5. At 100 per unit plus fee 80, expected cost 130 is fifty below no-backup cost 180.

Progressive optional practice

Attempt each problem before opening its model. Then revise the reasoning under the changed conditions.

Guided

Compute expected shortage in the dependent four-state file.

Compare the model reasoning

1.8 units from 0.25×6+0.15×2.

Changed conditions

Independence is imposed with the same marginals.

Compare the revised analysis

Expected shortage becomes 1.28, while the six-unit tail probability drops from 0.25 to 0.12.

Independent

Does doubling simulation trials correct a wrong joint distribution?

Compare the model reasoning

No. It can reduce Monte Carlo noise around the wrong model.

Changed conditions

New evidence changes High/Delay probability.

Compare the revised analysis

Rebuild a valid full joint distribution with consistent marginals or explicitly changed marginals, then rerun both exact and simulated comparisons.

Transfer

What does the backup policy require?

Compare the model reasoning

Four usable extra units before service is due, in every modeled state, for the supplied fee.

Changed conditions

The backup arrives after the service deadline.

Compare the revised analysis

It cannot be counted as timely shortage prevention under the original policy. Model late recovery and its consequences separately.

Preserved historical development snapshot · Course content review

Source readings and scope

Principles of Finance — 13.5 Probability Distributions — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Principles of Finance — 20.1 The Importance of Risk Management — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Principles of Finance — 20.2 Commodity Price Risk — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Reproduce the worked examples in Python 3. Standard library only; synthetic data; no production records or network access.