Lawfare Academy · Complete Business Analytics: Optimization and Simulation edition 3

Statistical foundations for a decision model

All six actual native lessons and seven complete applications have been reviewed. This original onsite preparation preserves their independent cases and complete reasoning. Independent Cedar observations below do not replace Tideglass reservations, beliefs or information timing. This studio supplies original statistical preparation; no observed market, legal or learner outcome is claimed.

Define the quantity and its population

A variable describes a characteristic at a stated observation grain: a job, person, period, shipment or event. Nominal categories identify groups without numerical order. Ordered categories have rank but not necessarily equal distances. Numeric measurements need units and a meaningful scale. An account with several transactions should not become several independent customers merely because a table contains several rows. Preserve the source, cutoff and rule for missing observations.

A population is the defined set of interest. A sample is an observed subset. A complete description of four synthetic records is not an estimate with a guaranteed relationship to a real business population. Selection, measurement, dependence and changing mix matter before any calculation. A model parameter may be estimated from evidence, stipulated for an exercise or uncertain within a range; record which status applies.

Center, spread and position answer different questions

The arithmetic mean is the sum divided by count. A weighted mean uses defined weights and divides by their sum; weights can represent frequencies, economic importance or a standard mix and must be explained. The median splits ordered observations under an explicit even-count convention. The mode identifies the most frequent value or category and need not be unique. A skewed or mixed distribution can make those summaries differ. Never choose the most flattering center after seeing the result without explaining why it fits the decision.

Spread describes variation around or across the observations. Range uses the endpoints and is sensitive to extremes. An interquartile range compares two stated quartiles. Population variance divides squared deviations from the population mean by its full count. The usual sample variance divides squared deviations from the sample mean by one less than the sample count; its inference properties require assumptions, including the relevant sampling/dependence conditions. Standard deviation returns variance to the original measurement units. It is not a worst-case loss or a universal confidence interval.

Quantiles require a convention, particularly for small datasets. Percentile rank and percentile value are different quantities. A standardized score expresses distance from a stated mean in standard-deviation units when that deviation is positive; it does not make every distribution normal. A boxplot or an outlier rule flags observations to investigate rather than authorize deletion. A legitimate rare case may drive the actual decision.

Cedar's independent worked record

Cedar's four synthetic completion times are 2,2,4,8 hours. Mean is 4, median 3 and the unique mode 2. Squared deviations from 4 sum to 24. If these four equally weighted values are the entire specified population, variance is 6 and standard deviation is the square root of 6. If they are treated as a sample for the usual sample-variance calculation, variance is 8 and standard deviation the square root of 8. Those are different denominators, not competing arithmetic answers to the same definition.

Using medians of the lower and upper halves gives first quartile 2 and third quartile 6, so interquartile range 4; range is 6. A linear interpolation convention can give a different third quartile. Adding 10 hours to every observation raises mean to 14 and median to 13 but leaves both variance definitions unchanged. Multiplying every time by 2 raises mean to 8 and population variance to 24, not 12. Unit changes alter variance quadratically.

Distributions, probability and uncertainty

A frequency distribution summarizes observed counts. A probability mass function assigns probabilities to discrete outcomes that sum to one. A continuous density is not itself the probability of an exact point; interval probability is its area, and the cumulative distribution gives probability at or below a threshold. A cumulative frequency plot from a selected sample is not automatically the population distribution.

If Cedar's four values instead define four equally likely future outcomes, the probability of 2 hours is one half, and 4 or 8 each has probability one quarter. The expected time is 4 and variance 6 under that invented distribution. The expected value need not be an outcome that occurs frequently, and an expectation does not pay a bill or satisfy a service requirement in every realized state. Apply relevant nonlinear delivery and cash constraints within states, as the preserved Tideglass application explains.

A Bernoulli model describes one binary event with probability p; its mean is p and variance p(1−p). A binomial count adds independent binary trials with a common p, giving mean np and variance np(1−p). With three independent events each having probability one fifth, expected count is three fifths, variance twelve twenty-fifths, and probability of at least one is 1−(4/5)^3=61/125. If all three event indicators instead move together perfectly with the same marginal probability, the chance of at least one is one fifth. The marginal rate alone does not justify independence.

Normal models describe a particular symmetric continuous shape; exponential waiting models have their own rate, support and memoryless assumption. Neither is established by knowing a mean alone. A bounded, skewed, mixed or heavy-tailed outcome can need a different model. Distinguish randomness within a known model from uncertainty about that model's parameters or structure. More simulation draws reduce computational sampling noise under the chosen model; they cannot prove its premises or eliminate actual business risk.

Visualize the decision-relevant structure

Use a bar display for comparable categories and a histogram for numeric intervals with a stated binning rule. Unequal bin widths require care about area and density. A time plot preserves order and can reveal changes hidden in one pooled distribution. An empirical cumulative display helps compare threshold probabilities; a scatterplot examines two-variable relationships without establishing causality. Label axes, units, denominators, dates and exclusions. A truncated axis or changed cohort can create a misleading impression even when plotted numbers are correct.

Show center, spread, tail and relevant groups together when the decision requires them. A favorable average can conceal severe delays in an excluded segment. Do not replace uncertainty with unsupported decimal precision or infer independence from a smooth graph. Compare the strongest plausible alternative model and identify which evidence would change the recommendation.

Optional R workflow, with expected interpretation

For the synthetic vector, use `x <- c(2,2,4,8)`. `mean(x)` gives 4 and `median(x)` gives 3. `var(x)` uses the sample denominator and gives 8; `mean((x-mean(x))^2)` computes the full-vector population variance 6. `quantile(x, probs=c(.25,.75), type=2)` gives 2 and 6 under that specified convention, whereas the default type 7 gives 2 and 5. Do not compare quartile reports without their algorithm.

The displayed R documentation for `var` and `quantile` was consulted for the denominator, missingness and algorithm distinctions: variance documentation, quantile documentation. This is a narrow syntax/method review, not execution of an R session or a claim about every version. Preserve the input and script; inspect `NA` handling rather than automatically remove inconvenient observations. An independently checked formula supplies an expected result, not proof that a particular user's software executed it.

Optional practice and complete models

Model 1 — One variance is declared wrong without checking its boundary

Cedar's squared-deviation total is 24. Dividing by 4 gives population variance 6 for the complete specified population; dividing by 3 gives the usual sample variance 8. State the purpose and sampling assumptions. Changed fact: times are doubled. The corresponding variances become 24 and 32 because squared deviations grow by four. A unit conversion does not create new empirical evidence.

Model 2 — Equal marginal rates become independent trials

For three independent Bernoulli events with p=1/5, probability of at least one is 61/125. If the indicators move together, it is 1/5 despite unchanged marginal rates. Define a justified joint distribution or scenarios before multiplying probabilities. Changed fact: a shared provider creates a common outage mode. Investigate that dependency and re-evaluate service or cash gates; do not add more draws from the old independent model and call the dependence resolved.

Model 3 — A favorable average supplies a service guarantee

Identify the actual threshold, observation population, tails, missing cases and resource conditions. A mean of 4 hours does not establish every job finishes within 4 hours. Changed fact: an observed subgroup has a long delay and was omitted from the original report. Restore its relevant denominator and show both group and combined results. Preserve the earlier version and explain the correction rather than silently change the population to retain a favorable claim.

Optional twenty-point rubric

Award 0–4 each for population/grain/units; complete center-spread-position distinctions; probability and dependence assumptions; honest graphics and reproducible software interpretation; and a material changed-fact response tied to an actual decision. Explain partial credit. Human subject review, R/device execution and observed learner testing remain separately pending.