The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Business Analytics: Optimization and Simulation

Unit 5

Monte Carlo simulation

Learning objectives

  • Explain monte carlo simulation in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Monte Carlo simulation

Specify input distributions and dependence, sample scenarios, calculate outcomes, and examine the distribution of results. Validate extreme cases and convergence. More trials reduce computational uncertainty, not model uncertainty.

Worked example

Ten thousand runs use an unrealistically narrow cost distribution.

Current on-site learning

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Written business-analytics preparation establishes no actual legal opinion, technical clearance, licensing approval, funding authorization or observed professional competence.

Work through the reasoning

Draw a timeline, label the cash-flow claimant, and distinguish operating assumptions from financing. For this unit, connect the explanation of monte carlo simulation to the worked example before answering the practice question.

Check the limits

Check units, signs, discounting periods, risk assumptions, and the opportunity cost of capital. If the source model and the practical example use different assumptions, state the difference rather than applying the formula or rule mechanically.

Apply it independently

What remains wrong? Write an answer before opening the model response. Show the calculation or explain the causal or logical steps. Change one material assumption and say whether your conclusion changes. This practice is optional; you can read every part of the course without submitting work.

Extended text lesson

Continue with Verify simulation against exact states and measure computational error for the full worked case, source readings and optional progressive practice.

Complete current conceptual preparation

Regression inputs and simulation uncertainty

This onsite studio includes three complete original Academy methods actually read in full: correlation/regression foundations, diagnostics/covariance and software/manual reproduction. The independent Willow data remain separate from Tideglass, Alder and Cedar. Historical source consultation statements remain historical; no new R or Excel execution is claimed. All three source studios are included unchanged, including their original contextual references and qualifications.

Context for the included examples

The source studios originally accompanied Regression Analysis for Business. Their references to a retained eight-row companion describe a separate synthetic dataset: (x,D,y)=(0,0,8.5),(1,0,11.5),(2,0,14.5),(3,0,17.5),(4,1,24.5),(5,1,25.5),(6,1,26.5),(7,1,27.5). Its additive fit is 10+2 x+5 D with SSE 10. The four-row Willow fit used throughout the complete methods below is a different dataset and has intercept .7 and slope 1.2. No visit to the original course is required to reconstruct that four-row example. References to original campaign/clinic cases are provenance context, not additional assigned learning or cash to add to Tideglass.

Put the regression in the simulation at the right boundary

A fitted conditional mean can supply a model input, but substituting a mean for a random outcome can erase variance, tails and nonlinear effects. Write the response model and an appropriate residual/error mechanism separately. Residual resampling requires a design argument about exchangeability and variance; independent draws do not preserve serial or cluster dependence automatically. A normal error distribution can generate impossible negative demand. Restricting or censoring output changes the model and must be explained rather than silently repaired in code.

Parameter estimation uncertainty differs from drawing new outcomes at fixed parameters. A simulation conditional on one fitted coefficient vector does not automatically incorporate uncertainty about those coefficients. A bootstrap or parameter-draw scheme has assumptions of its own and should preserve the sampling/design structure. It does not turn an observational association into a causal response. Validate the decision under coherent alternative model structures and tail scenarios, not just more random draws from the favored fit.

Monte Carlo verification begins with exact small cases and deterministic limits. An independent trial mean has estimated numerical standard error s/sqrt(N) under relevant finite-variance conditions; quadrupling N approximately halves this error. A fixed seed supports reproduction, not truth of the inputs. Common random numbers can reduce variance of a policy difference when outcomes covary positively: Var(A-B)=Var(A)+Var(B)-2 Cov(A,B). Estimate the variance of actual paired differences and keep each policy's information and recourse feasible. Pairing that grants one policy hindsight is invalid regardless of its smaller standard error.

Quantiles and rare-event estimates need their own definitions and uncertainty. A simulation with no failures in a finite run has not established a zero population failure probability. Policy selection from hundreds of noisy candidates followed by reporting the same best run creates selection optimism. Use an independently reserved evaluation protocol with a declared target and loss. The retained Tideglass application supplies exact paired variance 41.16, independent comparison 242.76 and cash tails; those complete original calculations remain assigned onsite with this preparation.

Complete original methods with independent cases

Correlation, least squares and the meaning of a conditional comparison

The retained complete unit-two companion already derives the eight-row additive fit, normal equations, partialling out, nonoverlap and rank failure. Preserve its coefficients 10/2/5 and every original row. This original studio supplies broader correlation and regression preparation using a separate four-row Willow dataset. Its calculations do not revise or replace the original fit.

Define the relation before fitting it

A scatterplot displays paired measurements and can reveal direction, curvature, groups, unusual observations or restricted support. Pearson correlation standardizes the centered cross-product of two quantitative variables. It measures linear association, not every form of dependence. It is unitless and lies between−1 and 1 when both sample variances are positive. A zero variance makes the ordinary coefficient undefined; zero correlation does not rule out a curved relationship.

A positive change of measurement scale leaves the sign and magnitude of correlation unchanged; reversing a scale reverses its sign. Its value can change when an observation is added, when the population is selected or when a group mixture changes. Correlation is symmetric between x and y. A regression of y on xis not symmetric with a regression of x on ybecause each minimizes residuals in a different direction. Neither algebraic operation identifies an intervention effect by itself.

A fitted straight line yhat=b 0+b 1 xuses coefficients estimated from data. With an intercept and nonconstant x, least squares minimizes the sum of squared vertical residuals. Define Sxx=sum(x−xbar)², Sxy=sum(x−xbar)(y−ybar)and Syy=sum(y−ybar)². Then b 1=Sxy/Sxx and b 0=ybar−b 1 xbar. The fitted line passes through the sample means, and residuals sum to zero and are orthogonal to x. These are projection identities, not empirical tests of a correct conditional mean or independent errors.

Independent Willow calculation, fully inspectable

Use four synthetic rows(x,y)=(0,1),(1,2),(2,2),(3,5). Here xbar=1.5,ybar=2.5,Sxx=5,Sxy=6 and Syy=9. The slope is 6/5=1.2 and intercept 0.7. Fitted values are 0.7,1.9,3.1,4.3; residuals 0.3,0.1,−1.1,0.7. Their sum is zero, and their x-weighted sum is 0.1−2.2+2.1=0. Residual sum of squares is 1.8.

With an intercept the centered sum of squares decomposes into fitted plus residual components under least squares. Willow's explained sum is 7.2 and total 9, so R²=1−1.8/9=0.8. Correlation is 6/sqrt(45)=2/sqrt(5), approximately 0.894427; its square equals R² in this simple intercept model. This identity does not apply unchanged to every multiple-regression or no-intercept output. High R²does not validate a causal claim, a sampling model or future prediction.

Under a separately stipulated independent, homoskedastic normal-error model, with two fitted parameters, the residual variance estimate is 1.8/(4−2)=0.9. Slope variance is 0.9/5=0.18 and SE about 0.424264. Those conditions are assumptions for an illustrative inferential calculation, not facts established by four rows. The finite-sample t statistic for a specified slope null uses n−2 degrees of freedom under that model. Testing zero correlation via r sqrt((n−2)/(1−r²))is equivalent to testing zero slope in the matching simple normal-model setting; it is not valid for every dependent or selected pair sample.

For a fitted mean at x 0, the classical variance is s²[1/n+(x 0−xbar)²/Sxx]. For a new independent individual outcome, the corresponding prediction variance adds s². At x 0=1.5 the mean prediction is 2.5 and estimated mean variance 0.225; individual prediction variance is 1.125. The additional term is why coefficient precision is not individual forecasting precision. Out-of-support extrapolation and future regime changes add problems that the displayed formula does not resolve.

Multiple regression changes the contrast

With several predictors, create an explicit design matrix including the intercept, indicators and transformations. Full column rank is required for a unique coefficient vector in ordinary least squares. The normal equations express residual orthogonality to each included column. The original companion reconstructs these equations in full for its eight rows; it also demonstrates the Frisch–Waugh–Lovell identity by residualizing both outcome and focal regressor against the same controls.

Holding included predictors fixed describes a model contrast. It does not guarantee that the data observe that contrast or that an intervention can change only one feature. Nonoverlapping groups, almost redundant predictors or a restricted range can make interpretation depend heavily on functional form. Exact collinearity causes nonuniqueness; near collinearity can amplify coefficient uncertainty and sensitivity. Merely adding a small number to make an inverse exist changes the estimator rather than creating missing information.

An omitted factor biases a proposed causal coefficient when its relationship with the outcome and the included predictor violates the needed exogeneity condition; omission is not judged simply by counting variables. Including a post-treatment mediator, a collider or a variable defined by future outcomes can also change or distort the intended comparison. Specify the causal estimand and data-generation argument before selecting controls. A good forecast can use predictors whose coefficients should not be called policy effects.

Report model fit in the appropriate setting

Adding columns cannot increase in-sample least-squares residual sum of squares on the same rows, but can increase instability and out-of-sample error. Adjusted R²penalizes parameter count under its definition; it does not establish causal validity or remove tuning bias. Compare candidate models on compatible rows, targets, transformations and validation protocols. R² for a transformed outcome is not directly the same quantity as R² for the original outcome.

Document variable definitions, units, missingness, weights and the population represented by a row. If a legitimate large account changes the fit, inspect support, weighting and specification and report sensitivity. If a record has wrong units, correct it with an audit trail. Deleting a valid inconvenient point to restore a preferred sign is not model diagnosis. The retained diagnostic companion develops this example in detail.

Optional complete models

Model 1 — A high correlation is called a verified response to action

Willow r=2/sqrt(5)and R²=0.8 describe its four supplied pairs and simple fit. They do not establish how a change in xwould affect y. Changed fact: the rows arise because managers choose higher xwhen they already expect larger outcomes. That selection is a rival explanation for the positive association. Preserve the descriptive calculation, withdraw the unsupported causal claim and specify a design that could identify the intended effect.

Model 2 — A mean interval is used for an individual invoice

At Willow x 0=1.5, the stated classical estimated mean variance is 0.225 but an individual prediction variance is 1.125. The latter includes new-outcome variation. Changed fact: the future observation belongs to a new regime outside the original process. Neither variance formula automatically supplies the promised coverage. State the target and what assumption changed rather than simply choosing the wider interval as a universal cure.

Model 3 — An arbitrary inverse is called a unique coefficient estimate

The original eight-row companion's extra column w=2 xcauses exact rank deficiency. Separate x andw coefficients are not uniquely identified, although some fitted combinations can be. Changed fact: a numerical routine uses a generalized inverse or regularization. Explain the convention or changed estimator; do not present its chosen coefficient pair as unique information supplied by the original design. A computational output is not evidence of exogeneity or overlap.

Optional rubric 20 points: population/scatterplot/correlation 4; complete least-squares reconstruction 4; inference versus prediction assumptions 4; multiple-regression/rank/causal contrast 4; changed-fact revision 4. All calculations are synthetic. This written preparation does not imply independent human review or observed learner competence.

Diagnostics, covariance and a reproducible uncertainty calculation

The retained diagnostic companion already supplies the full original eight-row classical, HC 1 and deliberately inadequate two-cluster calculations, leverage and large-account sensitivity. Preserve those numbers and their qualifications. This studio develops the diagnostic workflow and covariance mechanics alongside a separate Willow four-row example. No formula or software option is a substitute for a design argument.

Diagnose distinct problems separately

A residual is observed minus fitted response. Plot residuals against fitted values, each important predictor, group and observation time. Curvature can suggest a missing mean term; changing spread can suggest conditional variance differences; runs over time can suggest dependence. None identifies its cause uniquely. An incorrect unit, an omitted interaction and a selected sample can produce patterns requiring different responses. Inspect definitions and substantive mechanisms before mechanically adding a term.

Leverage concerns location in predictor space. In a full-rank least-squares design, the projection matrix is H=X(X'X)⁻¹X', and its diagonal entries sum to the number of fitted coefficients. A high-leverage row can pull a fit strongly even with a small residual. Influence measures how the fitted relationship changes under a specified perturbation, such as leaving one row out; it combines design position and residual departure. A threshold is a screening aid, not permission to delete valid data.

Standardized or studentized residuals compare departures on a variance scale, sometimes adjusting for leverage. Cook-style influence measures and deletion diagnostics summarize sensitivity under their definitions. They do not determine whether an observation is erroneous or whether the population should exclude it. Report documented corrections separately from analyses with and without legitimate observations. If a small change reverses a consequential recommendation, investigate model form and support rather than conceal the reversal.

Multicollinearity concerns relationships among design columns. Exact dependence prevents a unique unrestricted coefficient vector; near dependence can amplify variance and sensitivity. It does not automatically bias an otherwise appropriate OLS estimand. Centering can improve a reference interpretation but cannot create missing independent information. Residual orthogonality is a projection identity and does not verify exogeneity, normality or the conditional mean.

Covariance follows the observation process

Let A=(X'X)⁻¹ for a full-rank design, p count all fitted coefficients including the intercept, and e the residual vector. The classical estimated covariance is [SSE/(n−p)]A under the stipulated constant-variance conditional-error model. Its exact finite-sample t interpretation requires additional assumptions. Homoskedasticity describes equal conditional variance, not equal fitted values or equal observed residuals.

With conditionally heteroskedastic but suitably independent observations, the HC 0 sandwich is A[sum(xi xi' ei²)]A. HC 1 multiplies this matrix by n/(n−p). Other HC definitions adjust residuals and leverage differently. The official statsmodels HC 1 reference was consulted for this specific correction; the word robust does not identify one universal estimator. Changing covariance retains the OLS point estimates and fitted values. It does not remove omitted-variable confounding, a wrong mean, leakage or selection.

For genuine clusters, form each cluster score sg=sum(xi ei)within that cluster, then use A[sum(sg sg')]A with the stated finite-sample correction if one is used. This retains within-cluster cross-products omitted by row-level HC calculations. The grouping must reflect dependence or assignment rather than a preferred p-value. HAC methods instead target specified time dependence using lagged score covariances and a chosen weighting/bandwidth convention. Neither is automatically appropriate merely because rows have dates or group labels.

Routine cluster asymptotics rely on sufficient independent cluster information and other regularity conditions. Two clusters do not become many when each acquires thousands of rows. Unequal cluster size, leverage or few treated clusters can further weaken an approximation. Corrections, appropriate cluster resampling and design-based alternatives have assumptions and limitations of their own; an arbitrary bootstrap or a tcritical with G−1 degrees of freedom is not a universal repair. State a narrower claim or seek more independent information when a defensible uncertainty procedure is unavailable.

The introduction, basic covariance discussion and opening few-cluster discussion in Cameron and Miller's 2015 paper were consulted for the dependence and finite-cluster limitations. Historical software commands, numerical simulations and a universal cluster-count cutoff are not adopted here. The original companion's two-cluster result remains an algebra illustration, explicitly without routine nominal-coverage approval.

Independent Willow covariance reconstruction

For the separate rows(0,1),(1,2),(2,2),(3,5), the line is 0.7+1.2 xwith residuals 0.3,0.1,−1.1,0.7 and Sxx 5. Leverage equals 1/4+(x−1.5)²/5, giving 0.7,0.3,0.3,0.7; the sum is 2, matching the intercept and slope. Do not transplant the original eight-row leverage values into this independent fit.

The classical slope variance is[SSE/(4−2)]/Sxx=0.9/5=0.18. The HC 0 slope variance in this simple intercept case is sum[(x−xbar)²e²]/Sxx². The numerator is 0.2025+0.0025+0.3025+1.1025=1.61, giving 0.0644. HC 1 doubles it to 0.1288. Its SE is approximately 0.358887, smaller than the classical SEapproximately 0.424264. A robust SE need not be larger. Four constructed rows do not establish that either interval procedure has reliable coverage in an actual population.

For any linear fitted contrast c'b, use c'Vcand the reference distribution justified by the design. A prediction interval needs the additional variation of the future outcome and a relevant forecast-error model. A coefficient interval cannot simply be relabeled a business outcome range. The original companions explicitly retain those distinctions, including covariance for their combined x andDcontrast.

A diagnostic decision record

Record the issue, evidence, interpretation, proposed response and unresolved assumption. For a unit error, correct with an audit trail. For unsupported extrapolation, restrict the claim or obtain relevant support. For a plausible missing interaction, compare a substantively justified model and validate its consequences. For dependence, justify a covariance or inference method using the actual observation process. For a valid influential customer, show sensitivity and reconsider the target rather than optimize the result by deleting the record.

Optional complete models

Model 1 — A smaller HC 1 standard error is called an error

Willow's classical slope variance is 0.18, while HC 0 is 0.0644 and HC 1 is 0.1288. Their direction differs because the covariance formulas weight the residual pattern differently. Changed fact: residual spread or design leverage changes. Recompute the full relevant sandwich; do not force the robust value to exceed the classical one. Neither arithmetic comparison alone validates a coverage claim in a tiny constructed sample.

Model 2 — Rows are counted instead of independent clusters

The original companion's two-cluster illustration does not justify routine many-cluster inference. Changed fact: each group now contains 5,000 rows but the same shared cluster shocks. G remains 2. A larger row count cannot establish the missing asymptotic justification. Report what is supported and seek an actual design or defensible finite-sample method rather than manufacture a confidence label.

Model 3 — A valid influential observation is removed for its sign

The original large-account sensitivity changes the indicator from 5 to−205/33. First verify units, definition, timing and target population. Changed fact: the extra account was recorded in cents while all others use dollars. Correct the documented measurement inconsistency and refit, preserving the audit trail. That is a different action from deleting a valid account solely because it reverses a conclusion.

Optional rubric 20 points: separate diagnostic mechanisms 4; complete classical/HC/cluster construction 4; actual design and finite-sample limits 4; prediction and contrast uncertainty 4; complete changed-fact response 4. No learner records or real customer data are used. Human subject review and observed learner testing remain separate pending tasks.

Reproducible analysis from raw rows to a feasible recommendation

The original analytical-report companion and full cumulative clinic remain required on-site teaching. Preserve their campaign 600/contribution 80/capacity 7 upper bound, capacity 10 alternative and extra 200 capacitycost; preserve the original 30-point rubric with five categories of six. This studio supplies complete original software/manual preparation and a further decision exercise, rather than making an external software chapter the explanation.

Create a reproducible analysis specification

Begin with the decision, target population, observation unit, outcome, predictor units, sampling or assignment process and information date. Identify whether the output describes a historical association, predicts an outcome from available information or estimates a defined intervention effect. Name the comparator, action and consequences. A coefficient table cannot supply an unstated causal design or operating authority.

Keep an immutable copy of the permitted synthetic inputs, a transformation log, variable definitions and the exact model expression. State reference categories, interactions, missing-value handling, weights and exclusions. A blank cell is not automatically zero. A transformed variable must respect its domain. A separate identifier can help reconcile rows without becoming a predictor; this exercise requires no access to learner records or actual confidential customer data.

Construct the actual design columns and verify sample size and rank before interpreting output. Preserve intercept choices and missingness consistently across comparisons. Use stable numerical algorithms such as an appropriate QR or SVD implementation for real floating-point fitting; a tiny exact normal-equation inverse is a transparent teaching method rather than a general production solver. A software convention that drops a column or returns one generalized solution does not establish unique economic effects for redundant regressors.

Spreadsheet workflow with complete expected results

Use the separate Willow rows from studio two. Put x values 0,1,2,3 in A2:A5 and y values 1,2,2,5 in B2:B5, with headers in row 1. Enter the exact supplied values rather than a rounded chart trendline. The English-locale formula below requests an intercept and additional statistics. Array entry/display behavior can depend on the installed spreadsheet version and locale; a user may instead reproduce every value manually from the on-site Sxx/Sxycalculations.

``` =LINEST(B2:B5,A2:A5,TRUE,TRUE) ```

For this full-rank simple fit the two-column output is: first row slope 1.2 and intercept 0.7; second row coefficient SEsqrt(0.18)and intercept SEsqrt(0.63); third row R²0.8 and residual standard sqrt(0.9); fourth row F 8 and residual df 2; fifth row regression sum of squares 7.2 and residual sum of squares 1.8. These classical SEs and tests inherit their model assumptions, not a guarantee from the function. The complete independent calculation and assumptions appear in studios two and four.

The LINESTparameter order and returned-statistics layout were checked in Microsoft's function reference. For multiple xcolumns the returned slope order is reversed relative to the predictor-column order, followed by the intercept. Label columns explicitly. In the original eight-row x,D case, x then Dcolumns would therefore give coefficients 5,2,10 across the first output row, representing D,x,intercept. Removing the intercept or changing rows changes the fit. No current Excel installation or device execution is claimed by these manual expected results.

For a manual audit, calculate each fitted value as 0.7+1.2 x, subtract it from the observed y, square residuals and sum them. Check fitted values 0.7,1.9,3.1,4.3 and residual sum of squares 1.8. Plot observed and fitted values and a residual-versus-xplot; do not let a favorable R²replace the diagnostic record. For the original interaction model, construct xD explicitly and retain the reference/centering distinctions from its complete companion.

Optional R workflow, with the same on-site reasoning

R's statsdocumentation for lm and predict.lm was consulted for formula fitting, extractor use and the distinction between mean-confidence and individual-prediction intervals. The following original commands operate only on supplied synthetic values. They are optional executable instructions; all expected coefficient and fitted-value results are already supplied on site. No R execution is claimed unless separately recorded.

```r willow <- data.frame(x = c(0, 1, 2, 3), y = c(1, 2, 2, 5)) fit <- lm(y ~ x, data = willow) coef(fit) fitted(fit) residuals(fit) summary(fit) predict(fit, newdata = data.frame(x = 1.5)) predict(fit, newdata = data.frame(x = 1.5), interval = "confidence") predict(fit, newdata = data.frame(x = 1.5), interval = "prediction") ```

The coefficients are intercept 0.7 and slope 1.2, with mean prediction 2.5 at x 1.5. Under the stated classical model the mean-prediction variance is 0.225 and individual-prediction variance 1.125. Interval endpoints additionally require the matching critical value and assumptions. A program can compute a nominal interval even when selection, dependence or future conditions invalidate the interpretation. Inspect warnings, omitted rows, factor levels and the actual design rather than copying only the printed significance marks.

For multiple regression, a formula such as y~x+Dmeans an additive model, while y~x*Dincludes the lower-order terms and interaction. Inspect the resulting columns and reference levels. A category coded numerically can be treated as a quantitative slope unless represented as intended; a factor's reference choice affects coefficient meaning. Automated omission or rank handling is not permission to hide a changed sample or redundant predictor. Preserve results and diagnostics with the code and version information actually used.

Translate predictions through the feasible action

The statistical model is one input to a decision. Define completed and collected work, qualification, timing, contribution, action cost, displacement and available capacity. An estimate of demand is not automatically completed output. If an observational model does not identify intervention response, label response-to-action calculations as conditional scenarios and explain what evidence would change that status.

Use a new independent Willow proposal costing 480, with contribution 60 per completed incremental job and capacity 10. Response scenarios 4,8,12 produce completed 4,8,10 and net contributions−240,0,120. Eight whole jobs break even; nine produce a positive net if capacity and other assumptions hold. A high-demand 12 scenario cannot earn 12×60−480=240 because only 10 jobs can be completed. The original 600/80/capacity 7 case remains a distinct problem.

Now suppose an additional facility permits capacity 12 but costs 180 for this decision. At response 12 the net is 720−480−180=60, below the existing-capacity 120. More capacity need not improve the net after its cost. For uncertain response, specify a distribution and compute expected completed quantities under the action. In general E[min(D,K)]differs from min(E[D],K). A mean response alone cannot determine expected capped contribution.

Write the report as an inspectable argument

The executive page should identify the question, evidence type, most material numerical result, feasible recommendation and assumption that could reverse it. The technical appendix should preserve data definitions, design matrix, coefficients, covariance choice, diagnostics, validation origins/horizons, benchmarks and loss. Separate exploration from confirmatory claims and distinguish numerical reproduction from substantive validity.

Choose a next action proportionate to the evidence. A bounded experiment can be useful if it identifies a decision-relevant quantity and its value justifies its costs; it is not an automatic answer to uncertainty. If the best feasible outcome cannot recover the action cost, refining demand alone cannot reverse the conclusion under those fixed assumptions. State who can reconsider the scope, capacity or objective without inventing approval or a real commitment. Florida remains the default for state-law applications; no statistical result supplies legal or professional authority.

Optional complete models

Model 1 — Software output is treated as evidence of a supported model

The Willow coefficient calculation can be reproduced by a spreadsheet, R or the on-site arithmetic. Matching 1.2 and 0.7 verifies the fit, not causal identification or coverage. Changed fact: a required outcome is absent and software silently omits its row. Record the changed sample and recompute the actual estimand and comparability. Do not report the original sample size or assume the omitted observation equals zero.

Model 2 — Forecast demand is treated as completed contribution

At response 12, capacity 10 caps Willow's net at 10×60−480=120. Changed fact: capacity 12 requires 180 extra. The 12 response now yields 720−480−180=60, less than the earlier 120. Include all incremental resources and compare the same response scenario. This is a conditional scenario, not an observed or identified response.

Model 3 — A mean demand is inserted into a nonlinear action rule

Suppose Willow demand is 4 or 12 with equal probability and capacity 10. Mean demand 8 does not imply expected completed 8: completed quantities 4 and 10 average 7. Expected net is 7×60−480=−60, while incorrectly capping the mean gives zero. Changed fact: capacity is 12 with no extra cost in this separate hypothetical. The cap no longer binds for either state and expected completed output becomes 8, giving zero. State the full distribution, action and cost boundary rather than a favorable mean alone.

Optional rubric 20 points: reproducible design and data trail 4; correct software/manual output interpretation 4; matching diagnostics and validation 4; feasible contribution/action calculation 4; complete changed-fact report 4. Optional execution and assessments do not change learner records. Independent human subject review and observed learner testing remain separately pending.

Additional context for preserved diagnostic and decision examples

The independent eight-row regression context above has residuals -1.5,-.5,.5,1.5 in D=0 and1.5,.5,-.5,-1.5 in D=1. With SSE10,n8,p3, classical residual variance is2 and slope variance .2. HC1 uses the stated8/5 correction and gives slope variance41/125=.328. Grouping these rows into two clusters gives the illustrative CR1 factor14/5 and slope variance7/5; two clusters do not justify routine nominal coverage. Adding the valid synthetic row(x,D,y)=(20,1,100) gives coefficients185/33,488/99,-205/33. That supplies the complete changed observation behind the preserved diagnostic model. It is a separate example from the four Willow rows, not evidence about any actual customer.

The preserved software studio's original campaign context is a separate cost600, contribution80 per completed job and capacity7 case: maximum contribution560 cannot recover600, leaving a40 loss even if demand exceeds capacity. Capacity10 raises that ceiling to800, but a distinct200 capacity cost restores a maximum net0. These are conditional upper bounds, not realized campaign results. The Willow480/60/capacity10 case in the full studio remains independent. No external companion visit is required for these referenced comparisons.

Apply the idea

Ten thousand runs use an unrealistically narrow cost distribution.

What remains wrong? Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning

The model understates input uncertainty. Simulation accuracy depends on plausible assumptions as well as repetition. In an independent response, state the given facts, identify the governing relationship, work through the calculation or comparison, and distinguish the conclusion from assumptions that still need evidence.

Check understanding

What remains wrong?

  1. Too few decimal places
    Feedback

    This alternative does not follow from the stated facts. Simulation accuracy depends on plausible assumptions as well as repetition.

  2. All uncertainty has been eliminated
    Feedback

    This alternative overlooks the relevant mechanism. Simulation accuracy depends on plausible assumptions as well as repetition.

  3. The model understates input uncertainty
    Feedback

    Simulation accuracy depends on plausible assumptions as well as repetition.

Further reading

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Written business-analytics preparation establishes no actual legal opinion, technical clearance, licensing approval, funding authorization or observed professional competence.

My learning →