# Can AI/ML predict a lottery win?

**URL:** <https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862>\
**Category:** Data Science\
**Tags:** ai, machine-learning\
**Created:** [12 October 2021 14:07 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862 "2021-10-12T14:07:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [12 October 2021 14:07 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/1 "2021-10-12T14:07:23Z")

</div>

Biggest jackpot ever apparently! 🙃

> **[Euromillions results: UK's biggest-ever lottery jackpot rolls over](https://www.bbc.co.uk/news/uk-58879919)**
>
> A record £184m Euromillions prize will be up for grabs again on Friday after no ticket won on Tuesday.

I don’t (usually) gamble/play the lottery, but working on a program to predict the numbers could be fun!

Although it didn’t involve any ML I actually made a Mac app once that was a [lottery number generator](https://forum.devtalk.com/t/have-you-made-or-worked-on-a-macos-app/194/2) and it actually sold pretty well on the App Store :lol:

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [12 October 2021 20:47 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/3 "2021-10-12T20:47:26Z")

</div>

If an AI can predict a lottery win then the lottery is insufficiently random. ^.^;

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [12 October 2021 21:26 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/4 "2021-10-12T21:26:06Z")

</div>

Might be interesting to predict the probability of multiple occurrences of wining numbers tho :003: I think I’ve only ever heard of the exact same numbers being selected on two occasions. I also wonder if you go by worldwide numbers what the probability might be of winning numbers being duplicated (I think many of them use machines that pick the numbers publicly made by the same companies too).

I bet there are people obsessed with numbers already on it :lol:

Edit: [https://solvve.com/can-ai-and-machine-learning-help-you-win-a-lottery](https://solvve.com/can-ai-and-machine-learning-help-you-win-a-lottery) - even if AI can’t easily predict winning numbers, it could help with identifying fairness…

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [13 October 2021 17:24 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/5 "2021-10-13T17:24:11Z")

</div>

> [@AstonJ](#):
>
> Might be interesting to predict the probability of multiple occurrences of wining numbers tho

That’s just pure statistics, nothing AI could make better unless it wasn’t actually truly random, lol.

> [@AstonJ](#):
>
> it could help with identifying fairness…

It would be thrown off by unfairness, but statistics can identify that too much more easily.

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [13 October 2021 22:13 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/6 "2021-10-13T22:13:16Z")

</div>

> [@OvermindDL1](#):
>
> That’s just pure statistics, nothing AI could make better unless it wasn’t actually truly random, lol.

I’m not sure about over there, but (IIRC) they use machines here with physical balls here, and perhaps variations in things like weight or smoothness/texture might play a part even if slight. Either way I would much prefer to let a computer try to guess the numbers than simply picking one of their ‘lucky dips’ - even if just out of curiosity and a little fun exercise :lol:

I might expand that lottery app I made one day, perhaps could be a good chance to play with Elixir’s Nx :003:

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [14 October 2021 02:26 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/7 "2021-10-14T02:26:13Z")

</div>

> [@AstonJ](#):
>
> they use machines here with physical balls here

That’s still a thing?! I haven’t seen those here since like the 90’s, lol.

Yeah that could definitely change things.

---

<div class="post-metadata">

**Author:** ![mindriot](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mindriot/32/6660_2.png) [@mindriot](https://forum.devtalk.com/u/mindriot)\
**Post date:** [14 October 2021 11:46 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/8 "2021-10-14T11:46:09Z")

</div>

It would appear that they do still use the balls in a tumbler. You can watch the draws online, here is a link for the draw in question

[![](https://img.youtube.com/vi/PwQEH9AG2Fg/maxresdefault.jpg "The National Lottery EuroMillions draw results from Tuesday 12 October 2021") ](https://www.youtube.com/watch?v=PwQEH9AG2Fg)

In terms of the physical properties of the balls, it would only really make a difference if the same set was used each time. If they use a new set each time (or change them with reasonable frequency) then you would not be able to find patterns caused by uneven wear or the likes. I guess you might find something with manufacturing quality or perhaps the weight differences by variable amounts of printing on the surface. I’d imagine even if you were able to glean some kind of advantage from this kind of analysis it would be extremely slight and quite an expensive endeavour to try get anything out of it.

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [14 October 2021 13:10 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/9 "2021-10-14T13:10:30Z")

</div>

I was just about to post the same video Toby :lol:

If the universe is a mathematical object, then perhaps it’s only a matter of time? In fact I think we are so primitive in what we know, that (if as a species we survive) in just one thousand years people will look back at us now in a similar way as we look at early humans of 200,000 years ago or even our closest relatives of a couple million - the pace of advancement is going to speed up exponentially imo.

But maybe that’s a topic for another thread 🙃

---

<div class="post-metadata">

**Author:** ![mindriot](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mindriot/32/6660_2.png) [@mindriot](https://forum.devtalk.com/u/mindriot)\
**Post date:** [14 October 2021 13:49 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/10 "2021-10-14T13:49:46Z")

</div>

That is starting to head into some deeply philosophical areas 😂 in terms of the point though, it is a reasonable one however I do think it would take more information than we are talking about here in order to model anything meaningful. There are thousands of variables at play which you won’t be able to determine by what is a fairly small set of previous numbers. Things like the temperature and humidity are changing the way those balls behave and changing how those imperfections affect their behaviour. Other things like the power source not be absolutely perfectly clean are having similar impacts on how they are being shuffled. If you can capture and model all the relevant information then it probably would be conceptually possible to figure it out, maybe one day… the main thing I’m getting at is I don’t think looking for patterns in previous results is going to get such a model, it is more like looking for patterns in previous states of the universe

---

<div class="post-metadata">

**Author:** ![Ted](https://forum.devtalk.com/user_avatar/forum.devtalk.com/ted/32/709_2.png) [@Ted](https://forum.devtalk.com/u/Ted)\
**Post date:** [18 October 2021 18:58 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/11 "2021-10-18T18:58:53Z")

</div>

> [@mindriot](#):
>
> It would appear that they do still use the balls in a tumbler

Same here in the States; well, at least with two of the largest multi-state lotteries, [Powerball](https://www.powerball.com/watch-drawing) and [Mega Millions](https://www.youtube.com/user/megamillions46/videos).

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [18 October 2021 19:01 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/12 "2021-10-18T19:01:41Z")

</div>

They look like some of the same machines as over here Ted :lol:

---

<div class="post-metadata">

**Author:** ![jcbptrk](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jcbptrk](https://forum.devtalk.com/u/jcbptrk)\
**Post date:** [3 July 2026 16:39 UTC](https://forum.devtalk.com/t/can-ai-ml-predict-a-lottery-win/24862/13 "2026-07-03T16:39:46Z")

</div>

I recently came across an interesting article about how ai evaluates **[lottery draws](https://siit.co/blog/can-ai-predict-lottery-numbers-understanding-the-role-of-ai-in-modern-lottery-analysis/54355)** worth checking out.
