Skip to content

Can reinforcement learning beat a PCSO lotto draw?

Reinforcement learning taught computers to beat top players at Go and to play video games from the screen alone. So it's fair to ask: can a reinforcement learning agent learn to beat a lottery draw? This article answers that question with the PCSO results we track, from Jan 2, 2015 to Dec 26, 2025.

The short answer is no. The agent isn't too weak. A lottery gives it nothing to learn.

By ZALEL LABS · Published · Updated

A small robot arm stacking colored blocks

How reinforcement learning works

Reinforcement learning trains an agent by trial and error. Nobody tells the agent the right move. It tries an action, gets a score called a reward, and adjusts. Four ideas carry the whole method:

  • State: what the agent sees right now, such as the pixels on a game screen.
  • Action: what it chooses to do, such as move left.
  • Reward: a number that says how well that action turned out.
  • Policy: the agent's rule for picking actions. Training changes the policy so the agent earns more reward over time.

Deep reinforcement learning adds a neural network. The network turns raw input, like a screen image, into an estimate of which action pays off. That's what lets the agent work without rules written by hand.

What it has achieved

  • 2013: DeepMind's DQN learned Atari games such as Breakout from the screen pixels and the score.
  • 2016: AlphaGo beat Lee Sedol, one of the world's top Go players, 4 games to 1.
  • 2017: AlphaZero taught itself chess, shogi, and Go by playing against itself, then beat leading programs in each.
  • 2019: OpenAI Five beat the reigning world champion team at Dota 2.

Every one of these games has rules that link actions to outcomes. A good move in Go raises the chance of winning, and over many games the agent can measure that. A lottery has no such link.

Why the reward is pure noise in a lottery

Picture an agent that picks 6 numbers before each draw. Its reward goes up when its pick lands close to the draw. Our own DRL model uses a reward like this. It scores matched numbers and how far the pick sits from the drawn numbers.

When draws are independent, no pick is more likely to match than any other. Two picks with the same odds earn different rewards only because of luck. The agent still updates its policy after every reward. So it ends up chasing past luck.

In Go, a lucky win and a skilled win look different over thousands of games. In a lottery, they look the same, because there's no skill to find. More training doesn't help. It only fits the agent more tightly to noise in past draws.

Our Markov chain check shows the independence directly. In all five PCSO games, a draw shares numbers with the draw before it about as often as chance predicts.

What any model is up against

These are the exact chances for one line of 6 numbers in each game. We work them out from the number of balls. They're the same for every line, whoever or whatever picks it.

Chance that one line matches 3, 4, 5, or 6 numbers, per PCSO game
GameMatch 3Match 4Match 5Match 6
6/42Lotto 6/421 in 371 in 5551 in 24,2861 in 5,245,786
6/45Mega Lotto 6/451 in 451 in 7331 in 34,8081 in 8,145,060
6/49Super Lotto 6/491 in 571 in 1,0321 in 54,2011 in 13,983,816
6/55Grand Lotto 6/551 in 791 in 1,6431 in 98,6041 in 28,989,675
6/58Ultra Lotto 6/581 in 921 in 2,0351 in 129,7291 in 40,475,358

A model that had learned something real would beat these numbers over time. Here's a test of a popular "learned" pattern: play the 6 numbers drawn most often in the last 50 draws.

We ran it on 7,831 draws across five games. In 6/49, those hot six matched 0.72 numbers per draw on average, and a random line matches 0.73. No game showed a gap bigger than 0.02.

What our DRL model is for

BayanWin runs a DRL agent next to our other models. We treat it as an experiment and a teaching tool, not a forecaster.

  • An experiment. It shows what a learning agent does when its reward carries no signal. Its picks shift as it reacts to recent luck.
  • A teaching tool. You can see state, action, and reward at work on real PCSO data. Then compare its pick with the other models in the council panel on the home page.
  • A reality check. Its picks face the same odds as any line in the table above.

We don't claim the DRL model improves your odds. A 6/58 line chosen by the agent has a 1 in 40,475,358 chance at the jackpot, like any other line.

Common questions

Does more training make the agent better at the lottery?

No. Training helps when rewards follow from actions. In a lottery they follow from luck, so more training fits the agent to old noise.

How is DRL different from the other BayanWin models?

Our XGBoost and decision tree models learn from a fixed slice of past draws. The DRL agent also updates from the reward each new draw gives it. That makes it adaptive, but adapting to noise doesn't make it accurate.

Where does reinforcement learning work well?

It works where actions change outcomes and the reward reflects that. Games, robot control, and tuning systems like data center cooling are examples.

Disclaimer: This article is for education only. BayanWin isn't affiliated with PCSO. Draws are random, and past results don't predict future ones. Play only what you can afford to lose. Read our responsible play guide.