How Bain Luck tests itself
AI agents write most of this site's code, so we don't take its numbers on trust.
Do our probabilities come true?
Reading the live record
Does our AI reviewer spot mistakes?
Caught the hidden mistake in 9 of 9 tries so far
We hid 10 mistakes in real code changes, plus 5 harmless decoys; grey ones are not checked yet.
Are our site watchers working?
9 of 12 working
Each alarm is a program that watches the site: neutral found problems and filed them; green found its problem fixed; faint has no result on record since .
Where the numbers come from
Bain Luck doesn't make up its own odds. It reads them from betting sites and prediction markets, where people back their views with real money, and from a few sports forecasters.
Every site writes its view its own way, so we turn each one into a plain probability that anyone can read.
Spotting the same thing on different sites
The same game shows up on many sites, under slightly different names and start times. Before we can put the numbers together, we have to be sure two listings are the same thing.
For games we match on the teams, the start time and each site's own ID. When we can't be sure, we keep the two listings apart rather than risk mixing up two different games.
Prediction markets are written as free text, so we tested an AI to pair them up, on examples it had never seen.
We showed it the same 60 pairs it had never seen in three separate tries. Each time, it:
found 24 of the 25 pairs that were the same market
joined 2 or 3 pairs it should have kept apart
To decide on its own it has to keep every one of those pairs apart, because joining two different markets mixes them into one wrong number.
One number instead of many
When several sources cover the same outcome, we combine them into one probability: the one you see on each card.
Before a game, betting sites count most, then ESPN's forecast, then our own statistical model, and then, equally, the prediction markets and Major League Baseball's own forecast. During a game the prediction markets, which update fastest, count as much as the betting sites, and an older reading counts for less than a fresh one. When three or more sources cover the same outcome, no single one can decide the number on its own.
We grade every source against what really happened, below. We don't yet grade the combined number itself; it's on our list of what we haven't tested.
Do our probabilities come true?
Every market ends: the team wins or it doesn't, the bill passes or it fails. We keep every finished market and check whether the things we gave a one-in-three chance happened about one time in three, and so on up the scale. The first picture at the top of this page is that check.
Checking the code before it reaches you
AI agents write most of this site's code, so nothing goes live on trust. A change has to pass automatic tests before it ships, most changes are also read by an AI reviewer, and other AI agents and Alex, who builds Bain Luck, check the work.
We also test the testers. A test only helps if it fails when something breaks, so we break things on purpose and check that a test notices. And we hide real mistakes from the site's past in code changes, to see whether the AI reviewer spots them.
Caught 40 of 40 breakages we planted on purpose
These tests check simplified copies of the site's decisions rather than the live code, so a catch shows a test can fail, not that the site is right.
Caught the hidden mistake in 9 of 9 tries so far
Each bug is a hidden mistake and each page a harmless decoy. Green means it made the right call, red the wrong one, and grey means it has not looked yet. Every one gets 3 tries.
Watching the live site
Small programs watch the live site day and night, like smoke alarms, each looking for one kind of problem. One makes sure every game on each league's official schedule is on the site, another that every big event has its page before it starts, another that the main things a reader does, like search, still work. Whatever they find goes straight onto our work list.
A watcher that goes quiet is as bad as none, so we show what each one last reported, and count one with no public record as unknown, not fine.
9 of 12 watchers are working: their latest run is on the record and they are still reporting
- 8 found problems and filed them
- 1 re-checked a problem and found it fixed
- 3 with no result on record since
What we have not tested yet
LAST REVIEWED · NOV 10This is what we have not checked.
Known gaps, each linked to its issue: the ones an outside reviewer would ask about first.
The combined probability on each card is not graded yet. We grade the sources it is made from, not the combined number itself. #11850 · Expected
For some kinds of matching pairs there are too few never-seen examples for the AI matcher to earn permission to decide on its own. #12514 · Expected
The AI code reviewer's study is not finished, so how often it catches a hidden mistake is not known yet. #12515 · Expected
The AI that looks over the top of the Discover feed each day has not been compared with people's judgments. #587 · Not scheduled yet
Our full check of how markets are matched to events has no dated result since . #12516 · Expected
We do not yet show accuracy by how far ahead a forecast was made, such as a week or a day before the result. #12517 · Expected
Nothing measures how often a test fails by bad luck rather than a real problem. #12518 · Expected
Every number on this page says whether it is LIVE, from the LAST RUN of a test, or from a list we LAST REVIEWED by hand, and links to where it came from. Work we have not built yet says PLANNED and shows no number.
The full record: every test, every run and every source
Do market probabilities come true?
When a market gives something a one-in-three chance, does it happen about one time in three? We check every source's probabilities against what actually happened.
This is the public record of each source's probabilities, graded against outcomes. It grades the sources each card's number is made from; the combined probability itself is not graded.
Reading the live record.
See the full accuracy pageThe matcher's exam, test by test
LAST RUN · NOV 5Before the AI matcher may decide on its own, it has to pass every test below. Most are scored on pairs it has never seen. It passed 4 and failed 5, so a person still checks its work.
The pass marks were set in writing before the exam: one for each kind of pair, plus tests every kind must also pass. No wrong matches on pairs it has never seen, the same answer on every try, quotes copied word for word, and no replies cut off mid-answer.
FAILIt may not decide on its own yet, so a person still checks every match.
Passed: Finds the same market, Finds same-number pairs, Every reply readable, No cut-off replies.
Failed: Related, unrelated or can't check, No wrong matches, Says when it can't check, Same answer every try, Word-for-word quotes.
| Test | First try | Second try | Third try |
|---|---|---|---|
Finds the same marketOn pairs it has never seen, it finds every pair that is the same market, and calls no other pair the same market. Pairs it had never seen. | PASS24/250/35 | PASS24/250/35 | PASS24/250/35 |
Finds same-number pairsOn pairs it has never seen, it finds the pairs whose markets measure the same number. Pairs it had never seen. | PASS12/12 | PASS12/12 | PASS12/12 |
Related, unrelated or can't checkOn never-seen pairs that must not be combined, it gives the right one of these three answers. Pairs it had never seen. | FAIL9/14 | FAIL10/14 | FAIL9/14 |
No wrong matchesOn pairs it has never seen, it never treats two markets as one when they must stay apart. Pairs it had never seen. | FAIL2/60 | FAIL2/60 | FAIL3/60 |
Says when it can't checkWhen one side's data cannot settle a never-seen pair, it says it cannot check instead of guessing. Pairs it had never seen. | FAIL0/3 | FAIL0/3 | FAIL0/3 |
Every reply readableEvery reply comes back in the format the exam asked for. Every reply. | PASSAcross all three tries0/360 | ||
No cut-off repliesNo reply is cut off before it finishes. Every reply. | PASSAcross all three tries0/360 | ||
Same answer every tryAsked three times, it gives each pair the same answer every time. Every pair, including the ones used to tune it. | FAILAcross all three tries114/120 | ||
Word-for-word quotesEvery rule it quotes appears word for word on the side it says it came from. Every reply. | FAILAcross all three tries1/360 | ||
Every pass mark was fixed before the exam, in a written decision.
Allowed to decide on its own, kind by kind
- Same marketHELD
- Same numberHELD
- One implies the otherNOT ELIGIBLE
- Path and stepNOT ELIGIBLE
- By whenNOT ELIGIBLE
- Same decisionNOT ELIGIBLE
- GroupingNOT ELIGIBLE
- RelatedFAIL
- UnrelatedFAIL
- Can't checkFAIL
HELD: it met that kind's own pass mark, but still waits on the tests every kind must pass. NOT ELIGIBLE: too few never-seen examples of that kind to judge.
Where the matcher goes wrong
LAST RUN · NOV 5It is very good at spotting the same market on two sites, and bad at saying when it cannot tell.
For each kind of pair: how many it found, and how often it was right when it gave that answer, each with a likely range that holds the true rate nineteen times in twenty. Rare kinds get wide ranges, and the page draws them.
The never-seen pairs stay sealed: we publish these counts, never the pairs, so the next exam is still fair.
Same marketNever seen
Found24/25 (80.5–99.3%)
Right when it said so24/24 (86.2–100.0%)
Same numberNever seen
Found12/12 (75.8–100.0%)
Right when it said so12/14 (60.1–96.0%)
One implies the otherNever seen
Found3/3 (43.9–100.0%)
Right when it said so3/5 (23.1–88.2%)
Path and stepNever seen
Found0/2 (0.0–65.8%)
Right when it said so—
By whenNever seen
Found0/2 (0.0–65.8%)
Right when it said so—
Same decisionNever seen
Found1/1 (20.7–100.0%)
Right when it said so1/1 (20.7–100.0%)
GroupingNever seen
Found1/1 (20.7–100.0%)
Right when it said so1/1 (20.7–100.0%)
RelatedNever seen
Found7/7 (64.6–100.0%)
Right when it said so7/13 (29.1–76.8%)
UnrelatedNever seen
Found2/4 (15.0–85.0%)
Right when it said so2/2 (34.2–100.0%)
Can't checkNever seen
Found0/3 (0.0–56.1%)
Right when it said so—
Sibling-market card exam and its tests
Before a grouped sibling-market card proposed by the model can publish on its own, it has to pass every test below on 20 set-aside cards never used for tuning: 4 passed across 96 replies at $0.02 at published rates.
PASSAll four tests passed; verified grouped sibling-market cards publish on Discover.
Passed: Better than a single market, Same parent and clear axis, Three to six live members, Same member set across tries.
| Test | First try | Second try | Third try |
|---|---|---|---|
Better than a single marketOn set-aside cards never used for tuning, people rate the grouped card better than its strongest single market at least eighty-five percent of the time, and worse at most ten percent of the time (both 'Amazing' and 'Fine' count as better, and 'No' counts as worse). | PASSAcross all three tries20/20 (83.9–100.0%)Counting 'Amazing' and 'Fine' as better; strict 'Amazing' only: 20/20 (100.0%)The interval's low end is 83.9%, which is what 20 cards from one grader can show. | ||
Same parent and clear axisEvery member row on a set-aside card shares the stated parent event or topic, varies on the stated axis, and has no duplicate member. | PASS20/20 | PASS20/20 | PASS20/20 |
Three to six live membersEvery set-aside card has between three and six active, unsettled member markets. | PASS20/20 | PASS20/20 | PASS20/20 |
Same member set across triesAcross three separate runs, at least ninety percent of proposed cards agree on their exact member set. | PASSAcross all three tries32/32 (89.3–100.0%) | ||
May it publish on its own?
- Sibling-market cardsPASS
Exams on the record
Each exam goes on this line with its date, what it cost and whether it passed.
Each AI run names the model, how many replies it took and what it cost, worked out from usage at the published rates; an exam done by hand says so. A run that broke down counts as a result too.
- NOT ELIGIBLE
Is the feed interesting? A first measure
By hand
24 ratings by people, only 1 of them interesting: too few to measure any change to the feed against.
Receipt: Discover checklist, the first interest measure - FAIL
Checklist for the accuracy page
By hand
Alex's checklist for the accuracy page. An item turns green only with linked proof, and the checklist has not passed.
Receipt: Checklist for the accuracy page, its scoreboard - FAIL
AI matcher, first run
Claude Sonnet 5.5 · 120 replies · $0.51 at published rates
43 of its 120 replies were cut off mid-answer and counted as a no, so the run could not show how good the matcher was.
Receipt: Matcher exam brief, the first run's cost - FAIL
AI matcher exam, first run
Claude Sonnet 5.5 · 360 replies · $6.81 at published rates, including the trial run
Three tries over the same pairs, after a 10-reply trial run. It may not decide on its own yet, so a person still checks every match.
Receipt: Matcher exam results - FAIL
AI matcher exam, second run
Claude Sonnet 5.5 · 360 replies · $7.74 at published rates
A repeat of the first run, with two parts of its instructions rewritten after its never-seen results had been read, so it is not a fresh blind test. It made no wrong matches, but it called most true same-market pairs impossible to check.
Receipt: Matcher exam, second run results
Tests for the tests
How do we know a test works? We plant a bug on purpose and see whether the test catches it.
A test that misses a planted bug is broken. Here are real bugs from the site's past, planted again for the AI code reviewer; the small changes we plant in our own test cases are counted under The test library.
The AI code reviewer, tested
LAST RUN · NOV 5as of 4:36 PM PTWe planted 10 real bugs from the site's past again, with 5 healthy changes mixed in, to see whether the AI code reviewer can tell them apart.
Our own tests catch every planted bug and pass every healthy change. When these squares were recorded, the AI reviewer had not reviewed any of them, so each reads NOT RUN.
The reviews started after these squares were recorded. The full study's first result came in at , and each new result follows it on the same thread: results so far.
Tap a square to read what changed.
Planted bugs
Healthy changes
Planted bug
Field count
A field's count adds the outcomes still in play twice.
Our tests: caught it AI reviewer: NOT RUN
One more planted bug was left out: it was never fixed, so there is no healthy version of the code to plant it into. It is filed as #12096.
The test library
LAST RUN · NOV 3We keep a library of small automatic tests. Each one feeds the site a tricky example and checks the answer.
Most of these tests check a simplified copy of a decision the site makes, not the site's own code. The answer key is the exception: it runs real markets through the real matcher.
Results as recorded on on code version 54470c89fd.
110 checks in 10 families. 100 older test files came before the list of checks and are not counted in these families.
The tests' own rules81 casesRecorded run: 7 passed, 0 failed. 3 of its 5 checks have no recorded run.
That every test is on the official list, that planted bugs get caught, and that no planted change is left behind in the code. 5 checks.
Admin health pages130 or more casesRecorded run: 77 passed, 0 failed. 1 of its 10 checks has no recorded run.
That the admin health pages report what the data says, and that admin-only actions stay locked. 10 checks.
Browser checks108 casesRecorded run: 31 passed, 0 failed.
That the automated browser checks of live pages record what they find and file it. 6 checks.
When a cache fails356 casesRecorded run: 54 passed, 0 failed. 15 of its 21 checks have no recorded run.
That pages keep serving correct data when a cache is slow, empty or down. 21 checks.
The accuracy record227 casesRecorded run: 81 passed, 0 failed.
That the accuracy record counts the right outcomes and publishes only what passes its checks. 13 checks.
Cards and event pages205 casesRecorded run: 50 passed, 0 failed. 5 of its 14 checks have no recorded run.
That cards and event pages show results, sources and markets the way the record has them. 14 checks.
iPhone app matches the web29 casesRecorded run: 10 passed, 0 failed.
That the iPhone app shows what the website shows. 2 checks.
Page speed211 casesRecorded run: 16 passed, 0 failed. 10 of its 13 checks have no recorded run.
That the first card loads fast, and that what slows it down is measured correctly. 13 checks.
Discover's order18 casesRecorded run: 14 passed, 0 failed. 1 of its 2 checks has no recorded run.
That Discover puts the right card first. 2 checks.
Search384 casesRecorded run: 77 passed, 0 failed. 14 of its 24 checks have no recorded run.
That search finds the right answer, and says so plainly when it has none. 24 checks.
Answer key
The real matcher gets 666 of 709 real markets right, sending each to its correct event or to none.
It may not drop below 666: a change that lowers the count fails unless it names each market that stopped matching.
Planted changes
LAST RUN · NOV 340 of 40 caught
0 of 40 built on the site's own code
We changed one thing in each case and checked that its test noticed. None of these cases runs the site's own code: each checks a simplified model of a decision. So a catch shows the test can fail, not that the site is right.
The site watchers, one by one
LAST REVIEWED · NOV 17Each watcher is a small program that runs by itself, like a smoke alarm. It looks for one kind of problem on the live site and files it on our work list when it finds one.
An audit found a third state between working and stopped: a watcher that finds problems but cannot report them. We mark that “found problems, not reported”, and show it wherever the record says so.
Record refreshed from GitHub on . Times are Pacific, worked out in your browser from the schedule's UTC times.
Through the day
Data-quality watchdogEvery Found problems and filed them1 issue (#12833)LAST RUN · NOV 16
That every source's data keeps arriving, that settled markets get their results, that live games keep getting new readings, and that the accuracy record keeps publishing.
Its last run on record, at , found problems and filed them on our work list.
Matching checkEvery Found problems and filed them1 issue (#10523)LAST RUN · NOV 17
That real markets stay on the right events in production, and that no market or game id points at two events.
Its last run on record, at , found problems and filed them on our work list.
Its reporting had been stopped before that run: #11958.
Every night
Kickoff-time checkEvery day at Found problems and filed them1 issue (#2978)LAST RUN · NOV 16
That each game's kickoff time still matches the game its source names.
Its last run on record, at , found problems and filed them on our work list.
Reader-flow checkEvery day at Found problems and filed them3 issues (#12635 #12853 #12749)LAST RUN · NOV 16
That the main things a reader does still work: search, live games, settled results, charts and categories.
Its last run on record, at , found problems and filed them on our work list.
Its reporting had been stopped before that run: #11960.
Championship-grid checkEvery day at Found its problem fixedLAST RUN · NOV 5
Grid list checkEvery day at UNKNOWNNo result on record since
That each championship grid's saved list of teams still matches its sources.
Tournament list checkEvery day at Found problems and filed them1 issue (#12429)LAST RUN · NOV 16
That each tournament's saved list of players still matches its sources.
Its last run on record, at , found problems and filed them on our work list.
Finished-event checkEvery day at UNKNOWNNo result on record since
That a big event that just ended shows its winner, its full field and its finished chart.
Search-suggestion checkEvery day at UNKNOWNNo result on record since
That the search box's quick suggestions still agree with the data they are built from.
Work-list checkEvery day at Found problems and filed them1 issue (#1449)LAST RUN · NOV 16
That our own work list stays tidy: no duplicate alerts and no cards left unsorted.
Its last run on record, at , found problems and filed them on our work list.
Schedule checkEvery day at Found problems and filed them1 issue (#12083)LAST RUN · NOV 17
That every game on each league's official schedule exists on the site.
Its last run on record, at , found problems and filed them on our work list.
How to read this page
LIVE means fresh right now. A date means the last time we ran it. PLANNED means not built yet, so there is no number.
Results come straight from the record and are never worked out again for display. A FAIL shows as FAIL, with what it did pass listed under it. Results on never-seen examples appear as counts only.
Labels
- LIVE
- Read from the site's live data when you opened this page. The time shown is the data's own, not your visit's. If the read fails, it says so instead of showing an old number.
- LAST RUN · date
- Read from a saved record of the last run. It shows the run's date and how long ago that was; after two weeks the age turns amber.
- LAST REVIEWED · date
- A list we keep by hand. The date is the last time we went through it.
- PLANNED
- Not built yet, so it shows no number. It names what it is waiting on.
Results
- PASS
- Met the pass mark set before the run.
- FAIL
- Missed its pass mark. A FAIL shows everywhere it applies, with anything it did pass under it, never instead of it.
- HELD
- Met its own numbers, but waits on something else before it counts.
- NOT RUN
- The test exists and has no result yet.
- NOT ELIGIBLE
- Too few examples to judge.
- UNKNOWN
- The record does not say.
Technical words, in plain English
Calibration
How well probabilities match what happens: things given a one-in-three chance should happen about one time in three. This page asks whether our probabilities come true.
Traded outcomes
Resolved outcomes whose probability moved after the market opened. The accuracy page shows these by default and sets the others aside.
LLM judge
A language model asked to make a call, here whether two markets from different sites are the same market. This page calls ours the AI matcher.
Twin
Our records' name for two markets from different sites that are the same market, so their probabilities can be combined.
Gate
Our records' name for one test in an exam, with a pass mark set before the run.
License
Our records' name for permission to decide on its own: the AI matcher may make one kind of match without a person checking it. Each kind has its own pass mark, set before the exam.
Held-out set
Examples kept apart from the ones used to tune the AI matcher, so its score on them is a fair test. This page calls them never seen, and publishes results on them as counts only.
Recall
Of the pairs of one kind, the share it found. This page says “Found”.
Precision
Of the times it gave an answer, the share that was right. This page says “Right when it said so”.
Wilson interval
Where a rate probably sits when there are few examples. This page calls it the likely range: wide enough to hold the true rate nineteen times in twenty.
Usage-rated
Our records' name for a cost worked out from each reply's token usage at the provider's published rates, rather than from an invoice.
Mutation testing
Changing something on purpose to check that a test or a reviewer notices. This page calls these planted changes and planted bugs.
Case
One example a test feeds in, with the answer the test expects.
Golden set
A fixed set of real markets, each with the event it belongs to or with none, that we run through the real matcher to check it. This page calls it the answer key.
Sentinel
Our records' name for a site watcher: a program that runs on a schedule against the live site and puts what it finds on our work list.
Running red, reporting stopped
Our records' name for a watcher that keeps finding problems but cannot report them, so nobody sees them until someone looks. This page says “found problems, not reported”.
Receipt
The public record a number comes from: a pull request, a test run or a posted comment.
Where every number comes from
Every number links to where it came from.
Each link goes to a public record: a code change, a test run or a posted comment. The AI's raw replies and the never-seen answers stay private, so the next exam is fair.
- The live calibration record · live, read when the page opens · Used in “Do market probabilities come true?”
- Matcher exam, second run results · · Used in “Exams on the record”
- Matcher exam results · · Used in “The matcher's exam, test by test”, “Where the matcher goes wrong”, “Exams on the record”
- Matcher exam record, from the scoring script · · Used in “The matcher's exam, test by test”, “Where the matcher goes wrong”
- The written decision that set the exam's pass marks · · Used in “The matcher's exam, test by test”
- Matcher exam brief, the first run's cost · · Used in “Exams on the record”
- Checklist for the accuracy page · · Used in “Exams on the record”
- Discover checklist, the first interest measure · · Used in “Exams on the record”
- The test library's scoreboard record · · Used in “The test library”
- The answer key's recorded count · · Used in “The test library”
- The planted-change audit's test · · Used in “The test library”
- Reviewer study receipt · · Used in “Tests for the tests”
- Reviewer pilot, before its first review · · Used in “Tests for the tests”
- Reviewer study, the full study's first result · · Used in “Tests for the tests”
- Reviewer study, the plan: every case, three tries · · Used in “Tests for the tests”
- Reviewer study, the latest count · · Used in “Tests for the tests”
- Why one planted bug was left out · · Used in “Tests for the tests”
- The production schedule · · Used in “The site watchers, one by one”
- Audit of checks that went quiet · · Used in “The site watchers, one by one”
- Data-quality watchdog, newest run on GitHub · · Used in “The site watchers, one by one”
- Matching check, newest run on GitHub · · Used in “The site watchers, one by one”
- Kickoff-time check, newest run on GitHub · · Used in “The site watchers, one by one”
- Reader-flow check, newest run on GitHub · · Used in “The site watchers, one by one”
- Championship-grid check, newest run on GitHub · · Used in “The site watchers, one by one”
- Tournament list check, newest run on GitHub · · Used in “The site watchers, one by one”
- Big-event check, newest run on GitHub · · Used in “The site watchers, one by one”
- Work-list check, newest run on GitHub · · Used in “The site watchers, one by one”
- Schedule check, newest run on GitHub · · Used in “The site watchers, one by one”
- Reader-flow check, reporting again · · Used in “The site watchers, one by one”
- Championship-grid check, reporting again · · Used in “The site watchers, one by one”
- Matching check, why its reporting stopped · · Used in “The site watchers, one by one”
- The plan for this page, its gaps section · · Used in “What we have not tested yet”
- Accuracy audit · · Used in “Exams on the record”, “What we have not tested yet”