Quantitative Decision Laboratory — Run, Break and Reconcile

Run the original synthetic calculations and the actual SQLite rollback, retry and concurrent-writer tests. Sixteen test groups passed in the authoring environment. Python 3.10+ and its standard library are sufficient; no account or paid service is required.

Download corrected Python laboratory

Prior edition ZIP SHA-256: b0fa870cd8d755fd21708c17da448f7a3832f8027b189bdf96cb0fc5151f3687

Edition 3 corrects SQLite connection cleanup on Windows. Each read-only connection closes explicitly before temporary files are removed; the original calculations and all sixteen test groups are retained. The visible source and current Python download are identical. The original prior-edition ZIP remains available as history.

Run it

python laboratory.py selftest
python laboratory.py demonstrate

Investigations

Investigations: 1. Change the queue's arrival rate and identify the stability boundary. 2. Re-solve the product mix after a capacity change; do not round a continuous solution as if integer-feasible. 3. Reproduce regression standard errors and alter the error structure; distinguish calculation from valid inference. 4. Change asymmetric loss and compare forecasts without future data. 5. Add period-dated events and hand-reconcile the cash metric before changing the SQL. 6. Introduce a missing rollback deliberately and show the audit-failure test detect it, then restore the code. 7. Run actual competing SQLite connections and inspect the persisted refund sum. 8. Change classification cost and review capacity; a lower error cost may be operationally infeasible. Each result depends on the assumptions developed in the linked Academy units. Passing these tests is not certification of a production system or academic equivalence.

Inspect or copy the complete Python source

Independent results to reconcile

The source includes intentional wrong-query comparisons. Do not adopt those queries as corrected implementations. Local teaching helper functions do not provide a production authentication or authorization layer.