AAmit’s LibraryLEARN · PRACTISE · REFLECT
Amit’s Library

From protected records to accountable interpretation

Allow two hours. Prerequisites: introductory Python, proportions and the four readings. All records and messages are invented. No real accounts, employee records or external services are accessed.

Security: asset → purpose → access → failure → recovery

Support can read a complaint and add a response. Production can read an approved proof. Finance can review an adjustment. Unknown roles and actions are denied. Submit an asset/purpose table, permission matrix and recovery plan. The function is a role-rule fixture, not authentication, deployed security, backup recovery or legal compliance.

Data: source → contract → validation → transformation → reconciliation

Five rows contain three valid unique orders, a repeated accepted ID and a negative amount. Accepted amounts 100,200,50 sum 350;three accepted plus two rejected reconciles to five supplied. Rejections retain position and reason. A previously rejected ID can later be accepted with a valid amount because only accepted IDs enter the seen set. Explain this rule before extending it to real corrections or retries.

Submit the contract, validation trace and managerial interpretation. The pure function copies accepted rows and writes nothing. It has no durable batch orchestration, deep copying of nested objects or claim that every plausible wrong value will be detected.

Visualisation: question → measure → encoding → context → action

Inspect the labelled zero-baseline chart and exact table. Orders rise from 100 to 120,or 20%. Then compare department clarification rates 40/200=20%versus 10/20=50%. Explain how the larger count and higher rate describe different groups. Do not infer cause or rank real staff from the example.

Invented orders by period, zero baselinePeriod one 100 orders,period two 110,period three 120. Y axis runs from 0 to 150;exact values also appear in the table.0150Orders (invented)100110120Period 1Period 2Period 3
Invented series; values and units are disclosed. No causal explanation is implied.
Exact teaching values
PeriodOrders
1100
2110
3120

NLP: task → baseline → data → evaluation → oversight

The rule flags messages containing clarification or explain. Four selected cases yieldTP 2,FP 1,FN 0,TN 1;precision 2/3,recall 1,accuracy 3/4. “No clarification needed” exposes a negation false positive. These are development examples chosen for instruction, not independently sampled test evidence. Submit the trace, error critique and a proposal for independent evaluation. No model is trained.

Run and test

Save data_intelligence.py and tests together.

python3 data_intelligence.py
python3 -m unittest data_intelligence_test.py

Predict outputs before running. Check unknown roles, missing/invalid identifiers, booleans as amounts, duplicate accepted IDs, empty evaluation sets and invalid labels. Zero denominators return no metric instead of claiming perfect performance.

Portfolio and question-word review

Submit four artefacts: access plan, reconciled data report, chart explanation and language-baseline evaluation. Who owns decisions; whom errors affect; whose definitions apply; what is accepted; where checks occur; when records are valid; why the measure fits; which alternative remains; how correction works? Include communication between support, operations, finance, IT and management, customer effort and employee workload.

Readings

Free primary further reading

Links inspected 4 October 2026. These selected resources do not establish formal credit, exhaustive coverage or complete production readiness.