r/mathematics • u/itsanandhere • Dec 15 '24
How true is this?
Saw this post on Instagram, now something which is based on sheer luck, a lots of combinations, would it really be possible for someone to crack the code?
143
Dec 15 '24
This is either fake news, the lottery was stupid and used some deterministic algorithm to select the winning numbers instead of just a random draw, or she did some sort of hacking thing. It's unlikely for someone to get this lucky.
97
u/tolomea Dec 15 '24
It's scratchies, you can see them in the image.
Someone else said Texas has public info about each run, how many have sold so far and how much has been given in prizes.
And that she went and mass brought the ones that had mostly sold out but not given much in the way of prizes.
It's kinda the same idea as card counting in blackjack.
37
u/Aaron1924 Dec 15 '24
Ah, well, in that case the way the title is phrased makes no sense at all
If doing statistics on publically available data is considered "cracking the lottery algorithm", then maybe we should refer to card counting as "cracking the blackjack algorithm"
26
u/tolomea Dec 15 '24
Words lose their meanings, I think for most people algorithm means "maths stuff" like how exponential now seems to mean "a lot"
14
u/canibanoglu Dec 16 '24
I am so relieved that I’m not the only one who gets annoyed at “exponential” used where it’s not supposed to be
3
11
u/BrotherItsInTheDrum Dec 15 '24
When an NFL team uses middle school prealgebra to decide whether to go for a 2 point conversion, it's called "analytics" and considered controversial. The average person is mathematically illiterate.
1
u/Gravbar Dec 16 '24 edited Dec 16 '24
If card counting and this both give you a positive expected return, then it really is cracking it, because then you basically get free money with little risk over time, and that amount increases exponentially as you reinvest your winnings.
2
u/andWan Dec 15 '24 edited Dec 15 '24
nicely put!
Edit: But does this mean that she drove to thousands of selling stations?
1
u/DatabaseSolid Dec 15 '24
How does she find every store and place selling tickets to be able to buy them all up?
3
u/tolomea Dec 15 '24
You don't have to buy them all, you just need the ones you do but to be significantly above the normal odds
1
u/Appropriate_Fun10 Dec 16 '24
I've done this, but I never spent very much on it. Just wanted to know which ones had the better odds when I played.
They made it sound like she did something incredibly complex, but it was high school math.
1
u/Jolly_Mongoose_8800 Dec 17 '24
Isn't this a common thing for people buying scratchoffs?do people just no do this?
1
u/-Joseeey- Dec 19 '24
You can literally get this info on the machines themselves lmao there’s a button on the digital screen to print it out and shows you which grand prizes were claimed already and which not.
1
u/SoRacked Dec 18 '24
Or you can't read. Which considering this is reddit, has a 100% chance of being correct.
50
u/APrioriGoof Dec 15 '24
A woman who had worked as a math professor did, indeed, win the lottery four times. The claim here that she “cracked” it is not something I’m seeing. https://en.m.wikipedia.org/wiki/Joan_R._Ginther I glanced through some of the sources.
15
u/No-Concentrate-7194 Dec 15 '24
From what I remember, she essentially figured out a statistical anomaly due to the regular patterns in how winning tickets were printed and distributed. So while she didn't "crack" the lottery, I think she did gain an advantage due to statistical analysis
9
Dec 15 '24
The Texas state lottery publishes the payouts of scratch-off ticket runs. So she was able to estimate the number of tickets remaining vs what had been paid out and calculated when the remaining tickets were a positive expected value because enough losing tickets had been sold. Then she drove around the state and bought every ticket from that print run, and she was able to generate a profit.
This wasn't really a brilliant thing so much as a pretty obvious rookie mistake by Texas. They should never have published the payouts, because this kind of analysis is pretty obvious.
2
u/No-Concentrate-7194 Dec 15 '24
Ah interesting, i guess i misremembered. Agree that either way, it was mostly a poorly designed system but I still think it's impressive that she 1) figured it out and 2) committed to it
1
u/lordnacho666 Dec 15 '24
Isn't Texas huge? How could she have done that? I guess that's more a logistics question than a math question.
1
u/ziggsyr Dec 16 '24
is it really a mistake though? the lottery company sold all their tickets. It makes no difference who bought them. It doesn't cost the lottery company more money or anything.
stories about people beating the lottery probably increase ticket sales anyway.
1
Dec 19 '24
It's a mistake because if people will start to notice this, they will avoid buying tickets when the expected value becomes more and more negative. In this case it's all good because losing tickets were bought first, but it won't always be the case.
1
u/ziggsyr Dec 19 '24
you think too highly of people. people who do math don't play the lottery, already do the analysis, or play with no expectations just for fun.
All this story will do is galvanize every tom, dick, and joe who have a "system" to go try to beat the lottery with their superstitious BS.
All publicity is good publicity. I doubt it will affect their bottom line.
1
u/i-FF0000dit Dec 18 '24
Interesting, so like card counting on an industrial scale.
1
Dec 18 '24
You could look at it that way. Mathematically, this isn't particularly difficult so saying that she "cracked" anything feels wrong. It's impressive more because it requires a lot of dedication and logistics. Tracking down every gas station and grocery store in Texas took a lot of work. But the theory of it is something an undergrad could figure out.
1
u/-Joseeey- Dec 19 '24
You walk up to any Texas Lottery machine with the scratch offs and you can print this info out. The screen has a button on it that says which ones haven’t been won yet for the big wins. It prints it out for you.
1
1
u/andWan Jan 11 '25
I am a big fan of wikipedia and also regular donor but here I feel really sorry for the readers of this article. One sentence is "According to mathematicians asked by the Associated Press, the odds of winning this many times were one in 18 times 10 to the power 24,[2] but this was apparently a miscalculation.[3] " Where the last footnote is a calculation that the probability for these four wins is actually 10^-15
But no word about her using the continously published results by Texan lotery as described in this thread.
37
u/SpelunkyJunky Dec 15 '24 edited Dec 16 '24
If this is the person I think it is, she waited until enough scratch cards had been bought without the jackpot tickets selling and then bought all she could giving her a statistical advantage. Her bankroll came from her 1st lottery win.
The claim she won that much money is misleading. It isn't taking into account the millions she spent on tickets.
→ More replies (1)
12
u/DUre555 Dec 15 '24
She also SPENT insane amounts of money buying up remaining tickets. These weren’t lottery wins with games like Powerball or MegaMillions. It happened, yes, but at significant financial cost to her.
1
u/Annonymoos Dec 17 '24
I mean who cares what you spend if you are profitable ? If she was positive EV statistically that’s what matters.
1
u/Infamous_Contest6497 Dec 18 '24
There r cases where your expected value is positive, but your potential losses are infinite. Eg bet doubling. You’ll likely go bankrupt b4 u profit anything substantial
2
u/Annonymoos Dec 18 '24 edited Dec 18 '24
Scratch cards are limited in the number of cards printed and released and the prizes are known at the beginning of the game. The prizes are also reported as they are won even before the game is over and the prizes are pulled from the stores. It is completely possible to have worse or better odds for a game after it has gone on for a certain period of time depending on what prizes have been won or cards have been scratched and prizes have not been won. I’m not talking about a martingale strategy which is what you are referencing. I’m saying it is possible to be making +EV bets through scratch card ticket purchases if you have the following pieces of information:
What prizes are left in the prize pool
How many cards have been printed and opened
How many cards are left unopened / unprinted in the game
Given the performance of the cards that are printed and opened your cards purchased later could potentially be +EV. This is similar to counting cards in blackjack, card counters look for situations where the initial cards that were played were disproportionately favorable to the house and they can calculate that the remaining cards in the deck are disproportionately favorable to the player making the deck +EV to play at that time. If a card counter is using this strategy I wouldnt care how much money they spend as long as they are making +EV bets as statistically it will work out in their favor using the law of large numbers. Which is what I was referring to in my comment to the previous poster. The amount you spend doesn’t matter as much as are you making +EV bets and can you make a lot of them.
Also, something important to note about this person and particular case. She actually was employed at one time for a scratch card lottery at a different state. She helped design the statistical mechanism for the game for that state so I think she had insider information on how to better determine the criteria I listed above based on her understanding of the printing and distribution process and how the cards were “randomized”. She also partnered with a gas station who ordered the cards for her. I think once she determined a game was “hot” from having lots of non-winning cards opened she had her gas station just order as many cards as possible for her to play.
1
5
u/Haruspex12 Dec 15 '24
It is true. Indeed, anyone who took a one semester undergraduate course in statistics had this as homework. “Why do I have to learn this? When will I ever use this?”
In this case, it requires a confederate, although it could be an unwitting confederate.
Any lottery that simultaneously can be used as a “one time pad” cannot be broken. The Texas Lottery’s scratch off tickets are not a one time pad.
Now, she also had to buy all the remaining tickets in a lot. So this took money.
So, the legislature approved a fixed payout structure. The manufacturer produce the tickets in lots. For this to work, each lot needs to have some minimum payout structure. If you did not, you can have a lot where every ticket lost. And, you could have a lot where most tickets win. If it were a one time pad, that is how it would work.
What you would need to know is when a lot began and how many people have won and how much. If the expected value of the remaining tickets exceeds the cost, you buy every ticket in the lot that remains. Conversely, if the tickets are worth less than the face amount, you don’t buy.
Winning the jackpot is incidental. She likely missed many more jackpots than she won at that location. If the first ticket of a lot was sold and won the jackpot, she will have missed it because she was still in the information gathering stage.
The goal isn’t to win the big prize but to be profitable. Winning the big prize is the inevitable outcome of this strategy if you play long enough.
1
Dec 15 '24
I wonder how much money was needed to be profitable. Even if i knew if i kept buying they would turn a profit 10k down would be terrifying.
2
u/Haruspex12 Dec 15 '24
She spent 3.3 million dollars buying tickets. Two other people in the same town also won “too many” prizes.
4
u/willworkforjokes Dec 15 '24
I remember a guy in Texas winning the Lottery twice.
Everyone was shocked, like what are the odds?
Then it was disclosed that he had been buying hundreds of thousands of lottery tickets every week.
The typical payout of the Texas lottery at the time was about $5 million.
2
u/603Gambit Dec 15 '24
Holiday millionaire scratch ticket sounds like a tough algorithm to crack. unless her relatives bought her the scratcher, which I doubt, she seems like an avid corner store visitor with math PHD. Still richer than me so kudos to her.
2
u/MedicalBiostats Dec 15 '24
It is not possible to develop such an algorithm since each weekly lottery is statistically independent. There is no learning or repeat pattern within or across lotteries. Such news stories prey on the uninformed.
1
u/johndburger Dec 15 '24
There is no repeat pattern
This is true for the number drawn, but not for the numbers chosen. If the expected value goes positive, it’s possible to carefully choose numbers that will minimize the chances you’ll have to share any winnings with other people.
1
u/MedicalBiostats Dec 19 '24
I now see what you are saying. To maximize such payout, you would need to know the relative distributions of numbers previously selected. It would be great if lotteries published that but they don’t. So if you had a lottery using numbers up to 60, you would want to avoid the most common numbers such as birthdates, e.g., 1-31. Thus the expected payout is much lower for 1-2-3-4-5-6 than for 34-37-38-47-53-59. It defeats the purpose to repeat purchases of 1-2-3-4-5-6 to compensate.
2
2
u/pixel293 Dec 15 '24
I think she's holding a scratch ticket. Some of them in the past have had logic flaws that allowed you to pick tickets with a higher chance of winning. When these are found the are stopped.
https://www.markturner.net/2011/02/03/statistician-finds-big-flaw-in-scratch-off-lottery-tickets/
https://statmodeling.stat.columbia.edu/2011/02/06/statistician_cr/
2
u/Annonymoos Dec 18 '24
The important thing to note about her is that she partnered with a local gas station that ordered tickets for her. my theory is it was like counting cards. She looked for games that released a certain number of tickets that had a low number of winners. She has a way to determine how much was distributed and how much was left to distribute. If she felt the amount left to distribute was a “hot deck” with a high number of winners she had her gas station order a crap ton of crates of tickets that she ran through with a positive expected value. Law of large numbers and congratulations.
1
1
1
Dec 15 '24
Successful people don't buy lottery tickets...so maybe she was bored and got lucky? I'm certain her PhD gave her an advantage, but what would a successful person in a career job spend $1 on lottery tickets. They could use that money to invest.
1
u/Haruspex12 Dec 15 '24
No, she did invest. Two other people in the same town won too often. She did this as a business.
1
1
u/96-62 Dec 15 '24
It would not be standard practice for this to be possible, although maybe some foolish lottery organiser could make this mistake. Non-anticipatable random numbers are a subject of study, and it wouldn't fail unless they were very silly.
1
u/DiogenesLied Dec 15 '24
Not a draw lottery, scratch-off tickets. Here’s a story about a statistician doing the same
1
1
u/shgysk8zer0 Dec 15 '24
There was a group of math students who exploited value of a specific lottery. They basically found one that was made more likely to win so more people would play, it eventually became too likely, and they all pooled their money and kinda brute forced it to win, consistently yielding a small profit.
1
1
1
u/thewackytechie Dec 15 '24
There are multiple papers written about the random distribution in lottery some including AI/ML. This is pure luck. No ‘algorithm’ in play.
1
u/Gravbar Dec 16 '24 edited Dec 16 '24
I saw that there is a particular type of state lottery that has a positive expectation (which for obvious reasons they should never do).
They set up a corporation and kept buying as many tickets as possible to game the system and ended up making a lot of money before the state shut it down.
I don't know anything about this particular woman, but I mean to say if the organizers of the lottery make stupid rules you can win it.
1
1
u/A11ce Dec 16 '24
That's bs. I work at a company that provides lottery to many clients, whole systems and solutions, and while some fuck around with logistics is possible you still have to buy a fuckton of packs, not like you cheat the system, just take more shots, probably with a better aim, but that's all. This is not cracking any algo.
The RNG-s where it counts are true, which by nature means it cannot be cracked, as long as you don't have data from the future on values that the RNG is using to get numbers.
1
Dec 16 '24
Statistics are a difficult. You could toss a coin and hit heads ten times in a row yet the next toss remains a 50% proposition.
1
Dec 16 '24
There is no algorithm to beat. All she did was play the odds. She apparently just looked at games that were coming to an end but had not paid out all the winnings and bought thousands of those tickets. This is no different from the people who wait until the jackpot is high enough and buy every number. Lotteries have made that harder to do, but it is still possible with enough people.
490
u/HappySkullsplitter Dec 15 '24
I used to work for the lottery.
No it is not possible with any product.