TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Help me Hack the Lottery or, the worst $90 investment ever

78 pointsby stephensikesabout 13 years ago

18 comments

nullfluxabout 13 years ago
You're making the (probably) false assumption that your lottery is as broken as the Ontario one.<p>I question your detachment if you are calling gambling an "investment" at all. If you want to win at probability games, look at what any professional gambler does and stick your money down only when you can prove or reasonably expect to see a positive expected value given your odds. That's how basic strategy in blackjack and most of poker math works.<p>Also, I assumed ticket generation for the simple games was something brute-force-ish akin to:<p>1. Create your winning tickets. Fill in the rest of the numbers with things that won't cause duplicate wins on the same ticket pseudorandomly.<p>2. Make a random ticket. Check to make sure the ticket is not solved. If the ticket doesn't solve, add it to the stack of tickets.<p>Randomly shuffle all tickets. Print to rolls and cut. You could probably even get away with duplicate random "losing" tickets if you had enough of them because most people likely won't end up with the same losing ticket.
评论 #3748040 未加载
Tichyabout 13 years ago
I don't think it is a given that every lottery can be hacked.<p>I would also like to recommend this PG essay: <a href="http://paulgraham.com/wealth.html" rel="nofollow">http://paulgraham.com/wealth.html</a>
评论 #3748225 未加载
评论 #3749488 未加载
PaulHouleabout 13 years ago
My sister-in-law found a winning bet for the New York Lottery.<p>There was a special promotion at the racino she goes to -- you could take your loser scratch tickets in a certain game to the casino, they'd put them in a big jar, and then whoever won the drawing got a trip to Las Vegas.<p>She saw there weren't many tickets in the jar, so she bought about $150 of these scratch tickets (she won $80 back so these only cost her $70) and submitted them. Her mom did about half as many.<p>A few days later her mom gets a phone call and she won a trip to Las Vegas worth $2000. Then she goes there and does some tricks with her loyalty card and now she's on an $800 junket.<p>I worked it out with decision theory and found that they had played the raffle almost optimally -- it blew my mind since I figured anyone who messed with scratch tickets and video slots would have to be completely impervious to probability theory.<p>Raffles, in generally, are good for people who play to win. My family regularly wins multiple prizes when they have raffles at the school because we're smart enough not to put tickets in for the Battleship game all the boys want or the hula-hoop all the girls want.<p>There's always some prize which is cooler than the muggles think that it is, and I'll walk home with it.<p>Now, you never see books about "how to win at raffles" because unlike Poker and Stock Trading, there's no motivation to suck in players who are just a little bit worse than you.
shocksabout 13 years ago
<a href="http://www.wired.com/wiredscience/2011/07/broken-lotteries/" rel="nofollow">http://www.wired.com/wiredscience/2011/07/broken-lotteries/</a><p>Here's a great article on lotteries, particularly Cash Winfall. CWF was a particularly broken lottery. In a certain season it was possible to purchase enough tickets (say, $100,000 worth) to (almost) guarantee a profit.<p><a href="https://en.wikipedia.org/wiki/Massachusetts_Lottery#Cash_Winfall" rel="nofollow">https://en.wikipedia.org/wiki/Massachusetts_Lottery#Cash_Win...</a>
评论 #3748074 未加载
评论 #3748073 未加载
nooopabout 13 years ago
In france some lotteries are broken since forever [1], "everybody" knows it, and nobody cares. Friends of bar tenants gets the gains. "La française des jeux" get the overall gains. The general public is generally fucked more than it should.<p>[1] tickets are not random but comes in batch with nearly constant amount of various outcomes: the seller, who you tipically ask for your gain, can take note of what happened in each batch and predict if its remaining part is worth being buyed by a friend. Very easy.
starfoxabout 13 years ago
People who design these games think about security. Sometimes (rarely) exploits get unnoticed and go into production.<p>I'm confused about why we are supposed to believe that there is anything exploitable about this particular card?
评论 #3748137 未加载
评论 #3749413 未加载
jamesuabout 13 years ago
I know of only one guaranteed way to win from a lottery: don't play it.
评论 #3747918 未加载
评论 #3748261 未加载
pronabout 13 years ago
There's another story you have to read: <i>The luckiest woman on earth: Three ways to win the lottery</i> (<a href="http://harpers.org/archive/2011/08/0083561" rel="nofollow">http://harpers.org/archive/2011/08/0083561</a>). It's for subscribers only, but it's far more interesting than the Jonah Lehrer piece. It's about a woman who's won the lottery (scratch tickets) 3 or 4 times, winning millions each time.<p>It's been a while since I read it, but as far as I recall, one of the hypotheses about her good fortune (other than luck and some form of inside information) is that she had analyzed how winning tickets are distributed among batches (by cracking the pseudorandom number generator), and tracking which stores are likely to get packages containing winning tickets by the shipping routes.
评论 #3747995 未加载
评论 #3747990 未加载
joshmlewisabout 13 years ago
Well, there's definitely some that aren't perfect. But how many and which? That's for guys like you to find out.<p>There are professional "cashers" that have figured out how to hack a small percentile of games in MA. They take advantage of a few things, but if you have $100k you are guaranteed to make a profit. Source: <a href="http://www.wired.com/wiredscience/2011/07/broken-lotteries/" rel="nofollow">http://www.wired.com/wiredscience/2011/07/broken-lotteries/</a><p>Now this guy is a trained statistician from MIT and Stanford and has put math behind it. He figured out the tic tac toe game. Source: <a href="http://www.wired.com/magazine/2011/01/ff_lottery/all/1" rel="nofollow">http://www.wired.com/magazine/2011/01/ff_lottery/all/1</a><p>So as you can see all games aren't entirely fool proof. Good luck!
评论 #3748147 未加载
mikecaneabout 13 years ago
You don't want theoretical help. You want real-world help. Hang out at the counter where tickets are sold. You're bound to encounter someone who asks what serial numbers the tickets end in. Take that guy out for a drink and find out what he knows, how he knows it, and if it ever worked for him. I've seen several people ask about the ticket serial numbers and not buy, but scratch-offs aren't my thing, so I didn't bother to pursue it. But there's clearly knowledge out there that people have about this. [typo edit]<p>Also edited to add: Even ask the dealer. He might know something -- although it'd probably be against the rules for him to say anything, even what he's seen. But maybe he can point you to customers who know.
评论 #3747870 未加载
Rhapsoabout 13 years ago
I think you need to look up the regulatory bodies for lotteries. They care a lot about this type of stuff, and making sure there is not statistically predictable pattern (essentially the sample size required to find the pattern would be larger then the number of tickets printed). If you do find a pattern, a lot of people will get into trouble because it was their job to make sure that was not one.
flashingledsabout 13 years ago
I confess to trying this myself after reading the Srivastava story. If you step back from the fact that it's a lottery, there's plenty of money involved, "what are you a gambling idiot?" etc it's actually a really fun problem to tackle. I picked out a similar style of ticket and for $20 I kept myself entertained doing analysis and testing hypotheses for the better part of a weekend. Sadly I was defeated on this occasion having found no obvious weaknesses. The main thing I learned from it all was that while a single scratch ticket is fun and exciting, 5 or more get very boring very fast. I was groaning every time a 'free ticket' showed up.<p>(Also: in Australia you usually see the next 4 tickets on the roll behind a clear display, so if you ended up with a good trick, even if it required running a script on your smartphone, you could have fun with it)
noalabout 13 years ago
Interesting read; I was playing with similar thoughts over my lunch break a couple of days ago.<p>The base of my sample program [implemented in ruby] was based (in theory) of Proportional Betting "The Martingale" - <a href="http://www.bjmath.com/bjmath/progress/prog1.htm" rel="nofollow">http://www.bjmath.com/bjmath/progress/prog1.htm</a><p>The game I picked was "Casino War" [ <a href="http://wizardofodds.com/games/casino-war/" rel="nofollow">http://wizardofodds.com/games/casino-war/</a> ], as it was very quick to implement in a few lines of code. I selected the base rules as played in Garden City Casino [Bay Area] (50c drop per every $100), and came up with the following:<p>Game/House Rules: - 6 deck of cards. - Played until 1/2 is gone. - 50c drop for every $100 [Example: $200 bet costs $1, $300 $1.5.]<p>Betting Rules:<p>- Base Bet is always 1% of current wallet, at starting point - $10. - If the proportional bet can not be covered by wallet, the round is surrendered and the player waits until re-shuffle. [Example: Lost up to $500, next bet is $1000, wallet has $700, game ends/waits and the player accepts a loss of $300.] - Bets are doubled on loss as defined in the Proportional betting link.<p>Here's my data, though I believe something is wrong due to its results:<p>- I ran the initial program, as is, expecting the player to play one round every day for 10 years. - Losses and earnings were added together. - The average win % went to 58.4%. - The average cash win [the times the player didn't go bankrupt] was $1590. - Max loss [consecutive] cash $2980. [Bankroll covered over multiple sessions]<p>* A key point here is the average cash win. It was highly consistent and never below 1500.<p>I then added a factor that stated in the software:<p>- If winnings are at $1500, the player stops, takes the winnings and waits for a re-shuffle.<p>* Win percentage went up to 64.8% !<p>If anyone is interested, I'd be happy to share/pastebin the code or similar. Overall, due to the percentages I'm assuming something is wrong with my assumptions/gameplay, but so far an interesting experiment.<p>[Edited for clarity on betting strategy]
评论 #3748029 未加载
K2habout 13 years ago
Googling gave me <a href="http://www.scratchoffcodes.com/" rel="nofollow">http://www.scratchoffcodes.com/</a> I have no idea how legit it is. Never played, but it would be cool to figure out if there was a system.
评论 #3747852 未加载
16sabout 13 years ago
Many states publish historical winning numbers from various lottos. No need to buy tickets to do statistical analysis on winning numbers.
stfuabout 13 years ago
Hope you get some traction with that project. Would love to see some math wizards look into that.
insidiusabout 13 years ago
Your sample size is ridiculously small. Also, the fact that lottery companies are well and alive contradicts the very theory.
评论 #3748754 未加载
robwgibbonsabout 13 years ago
100 is not a sample set. It is a joke.