Our auto setting quietly skipped the new count default. A pre-registered rerun fixed it

On 2,200 simulated shops the fixed hint sent 2.04 false alerts per 1,000 checks instead of 4.83 and heard 38 more steps. Never using it was quieter still.

The changepoint detector has a watch for a shop's daily numbers: run it every morning on orders or revenue and it sends an alert when the level moves. Earlier today it got a new default for counts such as orders: a cost that allows for days that come in bunches, and a lower alert bar. That was tuned on one set of simulated shops and confirmed on a fresh set (the earlier post).

There was a gap. The watch has a "How eager" hint: it replays your own history under each setting and picks the most eager one that would have stayed within an alert budget. The setup we suggest for scheduled watches, --detector auto --alerts-per 1/month, uses that hint on the first run and stores the pick. For counts, the hint still chose between the old default and an eager one. So anyone following our own instructions got the old default whenever their history was quiet. The new one only reached people who named no detector at all.

The test

Before anything ran, we wrote the rule down and committed it (pre-registration). We simulated eleven kinds of shop, 200 fresh ones each: steady orders, bunched orders, a weekend dip, small counts, and six kinds of step up or down. Each series is 240 days long. The hint sees the first 120 days and picks a setting. That setting then watches the next 120 days, and we score only those. To ship, the fixed hint had to beat today's hint on false alerts (within 1 per 1,000 checks), hear more steps, and lose no single kind of shop by much.

what picks the settingfalse alerts per 1,000 checkssteps heard, of 1,200
today's hint (old default or eager)4.831,047
fixed hint (new default or eager)2.041,085
no hint, new default always0.541,057
no hint, old default always3.20736

It passed all four bars: 2.78 fewer false alerts per 1,000 checks (95% interval 2.48 to 3.08), 38 more steps heard (20 to 56). The biggest change was on very bunched orders, where the old default sent 13 false alerts per 1,000 checks and the new one about 1.

The part we did not expect to write

Look at the third row. Never using the hint, and always running the new default, sent a quarter of the hint's false alerts and heard only 28 fewer steps. On orders that don't bunch, a quiet history leaves the eager setting under budget almost every time, and the eager setting then sends about one extra false alert per 1,000 checks. We also tried putting the old default back as a middle step. It did not help. The old default is quieter than the new one on smooth counts and noisier on bunched ones, so it isn't a step up in eagerness at all.

So the fix ships, and --suggest now says plainly that for counts the plain default is a fine place to start. A state file that already stored the old pick keeps it. Delete its choice entry to pick again. Everything above is simulated.

One real shop disagrees a little

We also ran it on the one real shop we have, a UK gift wholesaler whose daily orders are public (UCI Online Retail). The new quiet setting sent 2 alerts in 300 days where the old one sent 37, which is mostly good: 35 of the old ones were the shop's closed Saturdays read as a change, week after week. But the old setting, told about the weekly cycle, also caught the one alert that mattered, the start of the Christmas build-up on 1 September 2011. The new one misses it. That fits what we already knew. Allowing for bunched days makes the watch slower to call a gradual climb. So the next round needs a slow climb in bunched orders, and then a real shop owner's orders with changes they can vouch for.

All writing · More in Tools and projects · All tools and research