Analysis reference-result specification ======================================= StatMedAnalysis | Original downloadable worksheet | 6 November 2026 Define independent expected results before testing analysis code. How to use this worksheet Choose small synthetic cases whose answers can be obtained by hand or a genuinely independent reference implementation. State the target quantity, numerical tolerance and expected failure behavior. Include a typical case, a boundary and an invalid input. Keep expected values separate from the code under test. Save a working copy and keep the original blank version. Use public, hypothetical or aggregate information only; do not enter patient identifiers, credentials or confidential records. Keep source evidence in your approved project workspace. Mark unresolved text fields UNKNOWN or NOT REPORTED with a reason; never substitute zero for an unknown count. Project/version __________________ Prepared by role/date __________________ Working fields 1. Calculation being tested Response/evidence: _________________________________________________________ ___________________________________________________________________________ 2. Independent reference method Response/evidence: _________________________________________________________ ___________________________________________________________________________ 3. Synthetic input and expected result Response/evidence: _________________________________________________________ ___________________________________________________________________________ 4. Absolute/relative tolerance Response/evidence: _________________________________________________________ ___________________________________________________________________________ 5. Boundary case Response/evidence: _________________________________________________________ ___________________________________________________________________________ 6. Invalid-input rejection Response/evidence: _________________________________________________________ ___________________________________________________________________________ 7. Reference provenance and precision Response/evidence: _________________________________________________________ ___________________________________________________________________________ 8. Discrepancy resolution Response/evidence: _________________________________________________________ ___________________________________________________________________________ Hypothetical worked case A fictional weighted mean routine is tested on values 2 and 8 with weights 1 and 3; the expected mean is 6.5. Copying the same function into the test would not provide an independent reference. Decision rule and limitations Accept the test only when its expected result is justified independently and its tolerance is meaningful. Passing examples demonstrate those cases, not universal correctness. Decision _______________________ Remaining uncertainty ____________________ Next action ____________________ Owner / review date ______________________ Independent check and discrepancy resolution _______________________________ Official method or reporting reference checked 6 November 2026 https://docs.python.org/3/library/unittest.html This is an original planning aid, not an official checklist, validated instrument, clinical recommendation or certificate of expert approval. Apply the referenced guidance to the specific design and record any additional requirements.