The me you do not know.

My photo
Valley of the (porn) Dolls, California, United States
Ponderings of an underachiever, A perfectionist. A lazy bum. Obsessive Maniac. Aspiring saint. Sinner. Closet socialist. Unapologetic Capitalist. Nationalist with Colonial Mentality. Catholic. Liberation Theologist. Frustrated rock star. Old Dog. Middle-aged young boy.

Thursday, February 3, 2011

I should have paid more attention to Algorithm class

Reverse Engineering Lottery Scratch Tickets For Profit


Jonah Lehrer has a fantastically entertaining article in Wired about cracking scratch card lottery tickets. It kicks off with a story about Mohan Srivastava, a statistician in Toronto who quickly realized that the scratch tickets couldn't actually be random, even if they try to give off that impression. Since the lotteries want to control how often people win, the numbers have be chosen by a careful algorithm -- and if that's the case, there's almost always ways to reverse engineer the algorithm. With the first game he tried it on, Srivastava was able to increase his odds to the point that he could pick a "winning" card 90% of the time. He ended up alerting the Ontario Lottery and Gaming Corporation -- though, he admits that he did so not for moral reasons, but because he quickly calculated that he probably wouldn't make that much money just by gaming the system:
His next thought was utterly predictable: "I remember thinking, I'm gonna be rich! I'm gonna plunder the lottery!" he says. However, these grandiose dreams soon gave way to more practical concerns. "Once I worked out how much money I could make if this was my full-time job, I got a lot less excited," Srivastava says. "I'd have to travel from store to store and spend 45 seconds cracking each card. I estimated that I could expect to make about $600 a day. That's not bad. But to be honest, I make more as a consultant, and I find consulting to be a lot more interesting than scratch lottery tickets."

Instead of secretly plundering the game, he decided to go to the Ontario Lottery and Gaming Corporation. Srivastava thought its top officials might want to know about his discovery. Who knows, maybe they'd even hire him to give them statistical advice. "People often assume that I must be some extremely moral person because I didn't take advantage of the lottery," he says. "I can assure you that that's not the case. I'd simply done the math and concluded that beating the game wasn't worth my time."
At first the Ontario Lottery ignored him. Apparently, lots of crackpots claim to have beaten the lottery, but haven't. So, instead, he sent a guy on the Ontario Lottery security team a package of unscratched cards, and sorted them into piles he thought were winners and losers. Apparently, he was pretty accurate, because they called him quickly after that and then pulled the game. 

Of course, as often happens in these situations, the Lottery insisted that this was just a one-off error, and the rest of their games were secure. Srivastava correctly noted that was unlikely, as the chances that the ticket he'd randomly been given was the only one with a flaw seemed remote. And, even if he didn't think it was worth his time to game the system, that's not true for others. In fact, Srivastava notes that there are ways to profitably game the system:

I then ask Srivastava how a criminal organization might plunder the lottery. He lays out a surprisingly practical plan for what he would do: "At first glance, the whole problem with plundering is one of scale," he says. "I probably couldn't sort enough tickets while standing at the counter of the mini-mart. So I'd probably want to invent some sort of scanning device that could quickly sort the tickets for me." Of course, Srivastava might look a little suspicious if he started bringing a scanner and his laptop into corner stores. But that may not be an insurmountable problem. "Lots of people buy lottery tickets in bulk to give away as prizes for contests," he says. He asked several Toronto retailers if they would object to him buying tickets and then exchanging the unused, unscratched tickets. "Everybody said that would be totally fine. Nobody was even a tiny bit suspicious," he says. "Why not? Because they all assumed the games are unbreakable. So what I would try to do is buy up lots of tickets, run them through my scanning machine, and then try to return the unscratched losers. Of course, you could also just find a retailer willing to cooperate or take a bribe. That might be easier." The scam would involve getting access to opened but unsold books of tickets. A potential plunderer would need to sort through these tickets and selectively pick the winners. The losers would be sold to unwitting customers--or returned to the lottery after the game was taken off the market.
Lehrer then goes on to point out that there is statistical evidence that, at the very least, suggests that some gaming of the system has been done in various places.
Consider a series of reports by the Massachusetts state auditor. The reports describe a long list of troubling findings, such as the fact that one person cashed in 1,588 winning tickets between 2002 and 2004 for a grand total of $2.84 million. (The report does not provide the name of the lucky winner.) A 1999 audit found that another person cashed in 149 tickets worth $237,000, while the top 10 multiple-prize winners had won 842 times for a total of $1.8 million. Since only six out of every 100,000 tickets yield a prize between $1,000 and $5,000, the auditor dryly observed that these "fortunate" players would have needed to buy "hundreds of thousands to millions of tickets." (The report also noted that the auditor's team found that full and partial ticket books were being abandoned at lottery headquarters in plastic bags.)
Then there's the example of a woman in Texas, Joan Ginther, who has apparently won more than $1 million from the Texas lottery four separate times. There are also some indications that organized crime groups have regularly used such lottery tickets as a way to launder money -- and if they can crack the code, that makes the laundering process a lot more profitable. 

Finally, the article notes that the Lottery industry around the world seems to more or less be in denial about the whole thing, frequently insisting that the new games are perfectly secure, and not even being all that aware of previous cracks and problems. The whole thing is well worth reading.

No comments:

Post a Comment