Paper
HIGH LATENCY LIFE
FILE: NOTES.LOG / IS-THE-37-EVER-GOING-TO-SHOW-UP-IN-BARI.TXT 06/07

Is the 37 ever going to show up in Bari?

TRANSMITTED: 2026-11-28

In April 1994, Daniel Corriveau and his family won three consecutive games of electronic keno at the Casino de Montréal. Corriveau, a computer analyst, had been studying past results on a 286. The casino suspended the game and called the police. A few weeks later the family received over 620,000 Canadian dollars, including interest. I particularly like the including interest part. Contemporary account of the Montréal case

How do you predict a random draw? If each draw is fair and independent, you can’t. Because, well, it’s random, so.. by definition. But if it’s pseudorandom, then it gets more interesting, especially when they reboot the machine. According to accounts published at the time, its pseudorandom number generator would start again from the same point, using the same seed. A sequence that looked perfectly unremarkable the first time through became rather more useful the second time, particularly to someone who’d kept the numbers.

Anyway, back to Bari. In Italy we call Lotto numbers that haven’t appeared for a while on a particular wheel ritardatari, the same word we use for people who are late. I like the implication that the 37 was expected in Bari on Tuesday and by now owes somebody an explanation. I went and checked. It came out in Bari on 13 September 2005, skipped the next 142 draws, and finally showed up again on 12 August 2006.

As it happens, three students from the University of Salento walked into a tobacconist’s in my hometown to ask about exactly this. The tobacconist suggested they try the numbers that kept turning up. The students told reporters they’d used “machine learning” to look through two years of draws. In March 2025 the local news reported two wins, about €4,500 the first time and another €43,000 across several tickets the second time. What I’d love to see is the list of numbers they’d have picked for the next hundred draws. That’s something I could compare with chance. The students and the tobacconist in la Repubblica

Because this kind of news and discussion topic come back at me periodically in my life, finding myself every time explaining that there is no way of beating a random system, I got triggered. And, even if I know that there is no pseudorandom generation here, they actually have white balls with the number on top for the extraction, I told myself why not? Why can’t a man dream even if this goes against his principles? There is still the possibility that we are living in a simulation, right? Plus, if it works I could retire early. I had 98,712 regional draws going back to 1871 and a computer I was apparently quite happy to keep busy for days. Could knowing what had already come out on a wheel help me pick five numbers for its next draw?

So I started looking for any statistically significant pattern. My favourite moment in this project was when I believed I found something. When I compared pairs of wheels drawn on the same day. About a quarter of the time they had at least one number in common. My code expected 5.56%. For a brief and enjoyable moment, the Italian Lotto appeared to have some explaining to do. Ca va sans dire, my code was wrong.

Here’s where the 5.56% came from. Say I write down 37 before the Rome draw. Rome draws five distinct numbers out of 90. What’s the chance my 37 is among them? Every number has the same chance of taking one of those five places.

P(37)= 590≈5.56%

Perfectly good answer. Now suppose I have the five numbers drawn in Bari and I’ll count any one of them as a match. The easiest thing to count is a complete miss. Rome would have to draw all five of its numbers from the 85 that Bari didn’t draw. In the fraction below, the top counts the ways to choose five from those 85, and the bottom counts all the ways to choose five from 90. The fraction is the chance of missing all five. Subtract it from one and we have the chance of at least one match, assuming independent fair wheels.

P(match)=1− (855) (905) ≈25.37%

One pair of wheels in four. That still sounds high to me, and I’ve just done the calculation. It’s the same trick my intuition falls for with birthdays. Put 23 people in a room and there are already 253 pairs of people who could share a birthday. Assuming 365 equally likely birthdays and independent birthdays across people, the chance that at least one pair matches is 50.73%. I tend to picture someone sharing my birthday.

Across 414,661 pairs of wheels, the actual overlap was 25.24%. So the first bug I found was mine and I just felt dumb, sad, and also relieved that everything still makes sense.

Some results took a little more explaining. Across the ten wheels I’d expect each number to come up about 5,484 times. The 81 came up 5,728 times and the 36 came up 5,265. Looking at all 90 counts together, I’d expect a spread at least that uneven in about two out of a hundred runs of a fair lottery this long (p ≈ 0.0195). I’d have found that quite persuasive if it had been the only question I’d asked.

I’d also looked for streaks of high or low first balls on each wheel, and compared the first ball with the one drawn on the same wheel one draw later, two draws later, all the way up to fifty. The strongest correlation turned up in Rome, 25 draws apart. Why 25? Well, I’d tried the other 49 too. Across ten wheels that made 500 comparisons, plus ten streak tests and the one about the counts. After allowing for all 511 tests, even Rome’s result came in at p ≈ 0.13, above the 0.05 threshold. The historical checks and how I calculated them

For the prediction test I tried four rules on 3,883 later wheel-draws. Pick the five most frequent numbers from the previous 250 draws on that wheel, pick the five least frequent, pick the five that had been absent longest, or just play the previous five again. The frequent numbers did best. They got at least one match 1,015 times, against about 985 expected by chance. And since I tried four rules and just told you about the winner, thirty extra hits is well within the variation you’d expect.

So, did any of this help me predict the next draw? No. Corriveau got a cheque. I got a much better appreciation for how often Bari and Rome can agree on something. I’m linking the source and the data. If you embark in any of this, get super rich, and the code/data somehow helped you, feel free to send a generous donation.

The code, the draws and the full results are on GitHub.

← back to NOTES.LOG

-------- 8< -------- CUT HERE -------- 8< --------