Lab Notes

When data goes quietly wrong.

A real European Central Bank series, an explicit contract, and a monitor that tells broken data apart from unusual data.

One status. Two meanings.

ContractLoading
Statistical reviewLoading
Latest observation
—
Rows inspected
—
Checked
—

Loading the machine-readable report…

What the two lights mean

A contract failure means a declared expectation is broken: a missing field, a changed series identity, a duplicate date, a late observation. A review signal means a value is unusual and a person should look. It does not mean the value, or the publisher, is wrong.

Product version
1.0.0
Real prospective runs
2
Days replayed
7,010
Injected faults
9

Inject a known failure.

Interactive validation: pick one controlled mutation and see which layer should react, and what the result still leaves unproven.

Pipeline condition

Expected classification

PASS · CLEAR

The response satisfies the hard contract and raises no statistical review signal.

What this permits us to say
This controlled response satisfies protocol version 1.0.0.

Does the alarm cry wolf?

The review rule flags a daily move when its robust z-score reaches 6. On the real series, 9 of 7,010 replayed days cross it. A bell-curve model of returns would predict almost none. Currency returns have heavy tails, so the rule is far more active than its threshold suggests, and a stricter or looser threshold changes the count a lot.

Share of days that would be flagged at each threshold, on a logarithmic scale, observed on the real series (coloured dot) and expected if returns were normally distributed (grey dot; a grey dot at the left edge means below 1 in 10 million). The table below gives every number.
Observed on the ECB seriesExpected under a normal model
Post-hoc audit, not preregistered. 7,010 days; each day scored against the preceding 250 daily log returns.
Threshold (robust z)Days flaggedShare of daysExpected if normalSeparate episodes
31752.50%18.9136
4490.70%0.4444
5210.30%0.00419
6 (frozen rule)90.13%0.000018
810.014%01

Epistemic boundary: what this cannot tell you.

Limits are part of the result. Read them before you read the numbers above.

  • Nine out of nine is a test, not a rate. The nine faults were written by the same author as the checks that catch them, so the 100% detection is a regression test. The 95% Wilson interval of 0.70 to 1.00 reflects only nine hand-made cases.
  • A clean file cannot fail. The replay uses one current vintage of the series, so zero contract failures is the expected outcome. It cannot reveal revisions that happened between past publications, and its 7,010 prefixes overlap, so they are not independent trials.
  • The review rule is a heuristic. The excess over a normal model mixes heavy tails, volatile periods and a scale estimated from 250 points. This audit does not separate them, and a signal never proves an error.
  • One series, one publisher. The monitor cannot see the ECB's unpublished inputs, judge economic correctness, or forecast anything.
  • Not checked. Other series, other thresholds chosen in advance, and any long prospective record: the live evidence branch holds only a few runs so far.
  • Post-hoc. The alarm audit was added after the frozen v1 release and is not preregistered.

Reproduce it yourself.

The code uses only the Python standard library. The ECB snapshot used for the replay is in the repository with its checksum.

python -m unittest discover -s tests -v
python scripts/generate_threshold_audit.py

How it was built

Designed and directed by David Lindgreen. The code, tests and text were written with substantial assistance from an AI system (Claude, Anthropic). Every number above was recomputed from the code before publication, and the author is responsible for the content.