Digital Business and AI Applications — Quantitative Investigations
Current complete on-site edition 5
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
These original investigations remain preserved alongside the complete current on-site conceptual studios and optional external provenance. Reproduce a worked result, solve the changed record without the answer, then inspect the failure assumptions. The executable laboratory provides independent calculations and transactional failure tests.
Open the course · Run and modify the laboratory
COURSE UNIT 1
Workflow economics before model selection
Define the business decision before choosing an AI technique. A workflow has an eligible population, inputs, transformations, an output recipient and a consequence. Drafting a reply, recommending an action and executing it are different scopes. A system can be useful at the first while unsuitable for the third. Name the authoritative record and the point at which an output becomes a commitment.
Decompose elapsed time into acquisition, generation, verification, correction, exception handling and final delivery. A fast model response shortens only one component. If staff must reconstruct missing context to verify it, total handling can rise. A cost-per-task comparison also needs a common quality standard: a cheap draft and a verified final answer are different products. Rejected or abandoned tasks belong in the workflow record rather than disappearing from the denominator.
Separate labor capacity value from cash savings. Saving 100 staff hours creates a cash saving only if paid costs actually decline or an otherwise required expenditure is avoided. Redeploying those hours can create value when useful work and demand exist, but that is a separate mechanism. A subscription is an actual cash outflow even when the value of freed time is a modeled opportunity benefit. Report the two ledgers explicitly.
Model selection follows failure consequences. A deterministic rule may be preferable when eligibility is precise and exceptions are manageable. Retrieval may help when the answer depends on changing documents. A generative model can support language tasks but adds uncertainty about supported claims and instruction following. A larger model is not automatically the best system when source access, workflow design or review dominates the error.
A good first experiment compares the proposed workflow with a competent feasible baseline. Improve the existing template or search process as a genuine alternative, rather than compare an optimized AI demonstration with an intentionally inefficient manual process. Predefine the decision threshold, record hard cases and include implementation and exit costs. Adoption is justified by a business result under controlled scope, not by the presence of AI in the architecture.
Work from this record
A fictional office handles 1,000 tasks/month. The baseline takes 8 minutes per task. AI drafting takes 2 minutes plus 3 minutes of review, with 20% requiring an extra 5 minutes of correction. Expected handling is 2+3+0.20×5 = 6 minutes, saving 2,000 minutes or 33.333 hours/month. At an opportunity value of 30/hour, that is 1,000/month. A 600 subscription and 200 of monthly maintenance leave 200/month of modeled net value before setup. A 3,000 setup cost therefore takes 15 months to recover under these assumptions. If no paid hours or hiring costs change, the 1,000 is not automatically cash saved.
Independent transfer
Keep all quantities fixed except that half of tasks require the extra correction. Recalculate handling time and monthly net modeled value. Compare the result with a template improvement that takes 7 minutes per task and costs 100/month.
Compare the reasoning after your attempt
AI handling becomes 2+3+0.50×5 = 7.5 minutes, saving 500 minutes or 8.333 hours, valued at 250; subtract 800 recurring cost to get −550/month. The template saves 1,000 minutes or 16.667 hours, valued at 500; subtract 100 for +400/month before its own setup cost. The feasible alternative reverses the preferred choice on the stipulated scale.
Continue in the course reader
COURSE UNIT 2
Selective prediction, base rates and the cost of being confidently wrong
Accuracy compresses a confusion matrix into one number and can conceal the most consequential mistakes. Define the positive state, the unit of evaluation and the real outcome used as a reference. For a triage system, a false negative misses a case needing escalation; a false positive escalates a case that did not need it. Their operational costs need not be equal. A dataset with very few positive cases can make an always-negative classifier appear highly accurate while failing the intended purpose.
Sensitivity is true positives divided by all actual positives. Precision is true positives divided by all predicted positives. The denominators condition on different events. Base rates matter: a system can retain sensitivity and specificity while the practical reliability of a positive alert changes as prevalence changes. A confidence score also needs calibration evidence; fluent language or a numerical score is not proof that a stated probability matches observed frequencies.
Selective prediction permits abstention. Evaluate coverage, the fraction of eligible cases answered automatically, together with error among answered cases and the cost of the review queue. High precision on a small easy subset does not describe performance on all tasks. An abstention is not free if review consumes time or delays service. An always-abstaining system should not receive a perfect usefulness grade simply because it makes no automated assertions.
A reference answer can itself be uncertain. Use an explicit rubric, source-bounded adjudication and a way to retain disagreement rather than forcing every case into an overconfident label. For a factual answer, verify source identity, authorization, date and actual support for each material claim. A real citation can still be irrelevant, stale or contradicted by another authoritative record. Evaluate the claim-source relation, not only whether the link resolves.
Choose thresholds on development data and preserve an untouched evaluation set matched to deployment. If threshold selection follows inspection of test errors, the test is no longer an independent final check. Repeated tuning against one fixed benchmark can also overfit its peculiarities. Keep a versioned decision record so a favorable result cannot silently migrate to a changed model, prompt or source collection.
Work from this record
In a fictional 1,000-case evaluation, 100 truly need escalation. A policy produces 80 true positives, 90 false positives, 20 false negatives and 810 true negatives. Sensitivity is 80%; precision is 80/170 = 47.06%; accuracy is 89%. If a false negative costs 50 units and a false positive costs 2, error cost is 20×50+90×2 = 1,180. A second policy produces 90 true positives, 180 false positives, 10 false negatives and 720 true negatives. Its accuracy falls to 81%, but error cost falls to 860. The preferred policy depends on a defended loss model and capacity to process the additional alerts.
Independent transfer
Raise false-positive cost to 10 while retaining false-negative cost 50. Compare the two policies. Then explain why the comparison may still fail if human escalation capacity is only 200 cases per period.
Compare the reasoning after your attempt
The first costs 20×50+90×10 = 1,900; the second 10×50+180×10 = 2,300, so the ranking reverses. The policies generate 170 and 270 alerts. A 200-case review limit makes the second policy operationally infeasible without a queuing or prioritization plan; nominal classification cost omits delay and overflow.
Continue in the course reader
COURSE UNIT 3
Data lineage, temporal access and a permission boundary that survives retrieval
Map each field to its origin, permitted purpose, transformations and recipients. This lineage is more than a diagram of database tables: copied free text can contain information absent from the structured schema. A customer-service summary may include another person's contact details, a private attachment or an obsolete account state. Minimizing named columns does not remove those disclosures.
Authentication and authorization have different jobs. The server must establish identity through its trusted mechanism, then determine which objects and actions that identity may access. A tenant identifier typed by the caller is an untrusted request parameter. Derive the actual scope from verified identity and apply it to retrieval, record detail, exports and any tool action. An access check in a user interface does not protect a directly callable backend endpoint.
Retrieval introduces a context-disclosure boundary. Enforce document permissions before text enters model context, including quoted passages and cached summaries. Filtering an answer after generation cannot undo an earlier disclosure to a model or its logging path. Search similarity and access permission are independent: the best textual match can be forbidden. Metadata filters need tests that include a high-scoring unauthorized document, not just benign records that happen to belong to the caller.
Time is part of authorization and truth. A user may lose access, a document can be revoked, and an older policy may remain in an index. Specify the decision's effective time, document validity period and freshness check. Cache keys must include the relevant identity/scope and content version; otherwise an answer prepared for one caller or old policy can be reused in the wrong context. Retention and contractual obligations depend on the actual setting, so do not treat this fictional architecture as a legal compliance certificate.
Treat retrieved instructions as untrusted content. A document saying to send data elsewhere is evidence of what the document says, not authority to override the workflow. The application, not the generated text, decides which tools exist, which arguments are valid and who can authorize an action. A useful adversarial test places a malicious instruction next to relevant facts and checks both that factual retrieval remains useful and that the instruction gains no authority.
Work from this record
At time 12:00, client A can read documents A1 and A2. B1 belongs to client B and has the highest similarity score. A1 expired at 11:00; A2 is current but contradicts an older cached summary. The permitted current context contains A2 only. B1 is excluded by authorization and A1 by validity. The cached summary must not override current evidence merely because it is fast to return. If the caller requests historical analysis as of 10:00, that is a different explicitly scoped query whose permitted historical records must still be authorized.
Independent transfer
Design tests for a user whose access to A2 is revoked after a summary is cached. Include the cache key or invalidation behavior, an export endpoint and an adversarial instruction embedded in A2.
Compare the reasoning after your attempt
After revocation, retrieval and export must deny the record and the cached summary cannot be reused under the old permission assumption. Key or invalidate caches by relevant scope/version and recheck access at use. The embedded instruction is never a permission grant; an external-action test should show no tool call or disclosure. State where revocation propagation latency remains and how the workflow handles it.
Continue in the course reader
COURSE UNIT 4
Human review as a service process and a transaction
A human-in-the-loop design is an operating process with finite capacity and imperfect detection. Name what the reviewer sees, the decision they can change and the time available. Requiring a person to approve an opaque recommendation in a few seconds can produce a ceremonial control. Give the reviewer the authoritative evidence, meaningful alternatives and a feasible way to abstain or escalate.
Reviewer detection and model error can be dependent. If both rely on the same misleading source or arithmetic shortcut, multiplying their average error rates as if independent understates joint failure. Automation can also change reviewer behavior through fatigue and deference. Test detection on representative errors, including plausible-looking errors, under realistic workloads. Review speed measured on correct easy examples does not establish exception capacity.
The review queue needs its own stability and service-level analysis. Let eligible tasks arrive at λ per hour, fraction a require review and each review take s hours on average. Review demand is λas reviewer-hours per hour. With k reviewers, nominal utilization is λas/k before breaks, variability and other responsibilities. Utilization below one is not a guarantee of acceptable waits, but utilization above one shows the proposed steady workload is infeasible without backlog growth, abandonment or reduced review.
Executing an approved action introduces a transaction boundary. The reviewer should approve an exact object version and validated arguments, not a mutable display that can change after approval. The backend rechecks identity, authorization, amount bounds and version before executing. Use an operation ID for safe retry and reconcile an ambiguous timeout before generating a second action. An approval for one account or amount must not authorize different contents under the same identifier.
Recovery must cover external effects. Rolling back a prompt does not reverse a payment already sent or restore a notice already delivered. Define what can be reversed, who handles exceptions and how affected records are reconciled. Preserve the minimum evidence necessary to establish what was proposed, approved and executed, while keeping sensitive data out of unnecessary logs.
Work from this record
A fictional queue receives 60 tasks/hour; 30% need review and each review averages 4 minutes. Review demand is 60×0.30×4/60 = 1.2 reviewer-hours/hour. One reviewer would be at 120% nominal utilization, so the proposal cannot sustain the stated workload. Two reviewers would have 60% average utilization each under a balanced allocation, before other duties and variability. If model errors occur on 10% of tasks and review catches 80% of those specific errors in the relevant workflow, the residual error fraction is 0.10×0.20 = 2%; that conditional detection assumption must be measured, not inferred from an unrelated reviewer accuracy score.
Independent transfer
If the review fraction rises to 50% and the average review takes 5 minutes, calculate demand and utilization with two reviewers. Explain what an amount-version mismatch after approval must do.
Compare the reasoning after your attempt
Demand is 60×0.50×5/60 = 2.5 reviewer-hours/hour; two reviewers have 125% nominal utilization, so backlog cannot remain stable under the stated conditions. A changed amount or object version must invalidate the old approval or require reapproval under the application policy; the system must not silently execute changed contents.
Continue in the course reader
COURSE UNIT 5
A paired experiment, total cost and a predeclared decision
An AI pilot compares complete workflows, not isolated response times. Define the eligible task mix, quality rubric, outcome window and unit of assignment. If each staff member uses both systems, account for order and learning effects. If teams receive one system each, the team can be the assignment unit; individual tasks do not automatically create independent treatment replications. The analysis must respect the design.
Pairing can improve precision when comparable tasks share difficulty, but it can also leak answers. Having one person solve the same task manually and then with AI makes the second attempt easier because the person already knows the problem. Use randomized order, matched tasks or another justified design, and record the remaining limitation. An identical test fixture is useful for software comparison but not proof that a human crossover experiment has no carryover.
Total cost includes review, correction, exceptions, integration, training, maintenance and exit. Distinguish fixed implementation from recurring cost and separate observed cash outlays from the opportunity value of time. Discounting can matter for long horizons; a simple payback calculation ignores later flows and the cost of capital. A break-even calculation should state which uncertain parameters drive it.
Predeclare the decision and balancing outcomes. A system can improve mean time while increasing severe errors or burdening a subgroup. If the rollout requires zero observed unauthorized disclosures, that is a release criterion for the tested fixture, not a population guarantee of zero risk. A small no-error sample still leaves uncertainty about rare events. For independent Bernoulli trials, observing zero failures in n trials gives a one-sided upper bound 1−α^(1/n) at confidence 1−α; derive it by setting the probability of zero failures, (1−p)^n, equal to α.
A pilot's purpose is to change a later decision using evidence. If the result is unfavorable, do not redefine eligibility or thresholds after seeing it and still call the evaluation confirmatory. Keep exploratory revisions separate, freeze a new candidate and test it on fresh cases. Compare the strongest feasible non-AI alternative before scaling.
Work from this record
In a fictional test of 60 independent cases, no severe failures occur. A one-sided 95% upper bound under the Bernoulli model is 1−0.05^(1/60), about 4.87%, not zero. At n=300 with zero failures it is about 0.994%. These are model-based bounds; dependence or selective easy cases can invalidate the interpretation. Separately, if monthly net benefit before setup is 700 and setup is 4,000, twelve-month undiscounted net is 4,400. A one-month success does not establish that the monthly benefit will remain constant.
Independent transfer
Find the minimum whole number of independent zero-failure trials needed for a one-sided 95% upper bound at most 1%. State why this does not establish safety for a different task population or model version.
Compare the reasoning after your attempt
Require 1−0.05^(1/n) ≤ 0.01, so n ≥ ln(0.05)/ln(0.99) ≈ 298.07. The minimum integer is 299. The bound depends on the model, independence and the evaluated population; a changed task mix, system version or shared error source needs renewed evidence.
Continue in the course reader
COURSE UNIT 6
Versioned governance, change attribution and a usable stop rule
Governance assigns decision rights and evidence obligations across the system lifecycle. Record the intended use, permitted population, model and prompt versions, source collection, access policy, tool scope and evaluation result. A passing result applies to that configuration and scope. Changing the retrieval corpus or allowed action can materially change behavior even when the model name remains the same.
Monitor outcomes tied to the original objective. Response latency, token consumption and uptime measure technical behavior, not supported factual accuracy or net business value. Retain denominators: severe errors per eligible task, unsupported claims per answered task, abstentions per eligible task and review delay per escalated case. If eligibility changes, a stable percentage can conceal a different population. Report volume and composition alongside rates.
Distribution shift, concept change and software defects require different responses. A new product mix can change inputs; a new definition of the business outcome can change the target; a broken access filter is an implementation failure. The same decline in a headline score can arise from any of them. Use versioned fixtures, event traces and deployment timing to test competing explanations. Do not attribute every change to model drift merely because an AI component is present.
A stop rule specifies a signal, an accountable responder, a permitted containment action and a recovery condition. For example, a verified cross-client disclosure can immediately suspend the affected retrieval path and trigger an access investigation. That policy is different from waiting for a monthly average to deteriorate. Nonsevere changes may call for a planned comparison with adequate volume instead of reacting to every random fluctuation. Select a monitoring method suited to consequence and statistical behavior.
Incident recovery needs both containment and reconciliation. Identify affected outputs, correct stored state, notify the responsible operational owner through the established process, and retest the failure path before reopening it. A rollback can restore code while leaving wrong external actions unreversed. Preserve a bounded audit record and an explicit list of what cannot be undone. The goal is a controllable service whose claims can be checked, not a dashboard that continues to show green after its underlying task has changed.
Work from this record
A fictional service answers 900 of 1,000 eligible tasks with 9 material errors: coverage 90%, answered-task error rate 1%, and errors per eligible task 0.9%. After an update it answers 450 of 1,000 with 3 errors: coverage 45%, answered-task error rate 0.667%, and errors per eligible task 0.3%. Reporting only the lower error rate hides the loss of coverage and the enlarged review queue. If those 550 abstentions require four minutes each, review demand is 2,200 minutes, or 36.667 hours, before resolving exceptions.
Independent transfer
Propose an acceptance decision when the new version must maintain at least 80% coverage and no verified unauthorized disclosures on the fixed test fixture. Explain why meeting those gates would still not certify every future deployment.
Compare the reasoning after your attempt
The new version fails the stipulated coverage gate at 45%, even if it has no observed unauthorized disclosure. Investigate why it abstains and evaluate a revised candidate without quietly changing the gate. Passing a fixed fixture establishes only that result for that configuration; new tasks, permissions, sources and software changes can introduce untested failures.
Continue in the course reader
Sources and reading boundary
The complete current on-site studios supply all required conceptual preparation. Preserved external readings are optional provenance or further reading. New formulas, fictional datasets and solutions above are original Academy teaching. The links below provide primary technical references; MIT examples are used only in the separate review to inspect instructional demands.