Signal Lab · worked investigation

Why was retail revenue higher on 20 September 2011?

Historical invoice totals from a UK online retailer show +£81,948.30 in net revenue above the weekday median. This retrospective alert identifies an unusual day. The aggregates cannot establish a cause or confirm fraud.

Rebuild the comparison

  1. Subtract credits from gross sales. £109,612.03 − £325.82 = £109,286.21 recorded net revenue.
  2. Sort the 12 observed Tuesday net totals in the preceding twelve weeks. The middle two were £26,623.20 and £28,052.62. Their mean is the weekday baseline of £27,337.91.
  3. Subtract the baseline from recorded net revenue. £109,286.21 − £27,337.91 = +£81,948.30.

Where the difference came from

Each contribution is a country’s net sales on the alert date minus its share of the weekday baseline. The United Kingdom contributed +£88,018.005 of the deviation, the Netherlands −£6,249.355, and the remaining countries +£179.650 combined. These signed contributions sum to +£81,948.30. Three decimal places preserve half-pennies in the baseline allocation.

Source data from Daqing Chen, Online Retail II, UCI Machine Learning Repository. The public export contains aggregate values for this calculation.

Verify the released figures

Alert c646f48c31360b392784.weekday-1.median.net.2011-09-20
Compressed snapshot SHA-256 f0c524a49402dccaf945915c074d6871e6425dc516cfb2987f3368c55aac26e1

For an independent, offline calculation, save the release manifest, compressed snapshot and Python verifier in one directory. Run this command with Python 3.

python3 verify.py manifest.json assessments-f0c524a49402dcca.json.gz

The original published snapshot files are pinned to portfolio revision 0fc79d9 for replay after a release change.

Explore the Revenue workspace