Four business × computing case fixtures
Allow 60–90 minutes after the four readings. Basic arithmetic and introductory Python are prerequisites. All values are invented. This is a local teaching program, with no external packages or service credentials.
Download and run
Save matrix_cases.py and its tests in one folder.
python3 matrix_cases.py python3 -m unittest matrix_cases_test.py
Predict the outputs
- Ten orders at contribution 200 and eight at 250 both yield 2,000. Explain why equal contribution does not settle strategy.
- Delivery counts 90/100 and 96/120 give 90% and 80%: −10 percentage points and relative change −1/9. Explain why counts and rates tell different stories.
- R1/O1, repeated R1/O1 and R2/O2 yield two accepted events. Reusing R1/O2 is a conflict. The register is in memory, single-process and unauthenticated; restarting loses the state.
- Nine completed, two stopped and one unsure give a 75% observed completion proportion. Comprehension and meaningful approval still need investigation.
Explore boundaries
Try negative counts, a zero denominator, more completions than eligible cases, missing identifiers and a conflicting retry. Negative per-order contribution is allowed: a business can lose money on a job. Explain each rule. Fraction outputs preserve exact arithmetic; they are not probability estimates derived from real customer evidence.
Submit a portfolio
For each case, include predicted output, actual output, one invalid case, a managerial interpretation and an omitted factor. Connect departments, customer experience, human authority and improvement evidence. The fixtures do not implement a database, chart, production service or user interface. They test bounded parts of the reasoning.