Site icon R-bloggers

Transactions, and Pondering their Use in Casinos

[This article was first published on Byte Mining, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

A couple of weeks ago, Bradford Cross of FlightCaster posted in Measuring Measures that transactions are the next big data category. I argue that they already are, and from reading his blog post, he seems to suggest this as well but I will admit that I think I missed his point. There are some clear examples of transactions and their importance:

  1. Itemset Mining. Cross discusses this in his article. Financial transactions on sites like Amazon contain items (merchandise). Using these transactions, Amazon built a recommendation engine to recommend new items to customers on their website, and even customize deals for customers via email and on the site.
  2. Wireless Localization. Fantasyland at The Magic Kingdom in Walt Disney World was to undergo a big overhaul to provide a personalized experience on transactions through the park. An RFID chip would be included in a ticket (or some type of document) and the visitor’s information from a survey would be transmitted to the attraction’s intelligent system. Such a system would also provide Disney a wealth of information about what attractions certain audiences visit, when, how often, and even what items a visitor may purchase during the day.
  3. Website Conversion Path Optimization. A visit to a website consists of a series of lines in an Apache web log, and if done properly, these lines (called “hits”) can be mapped to an individual user (with a cookie, or some ID) and an analyst can view how visitors are navigating through the website. Then, an analyst may make a recommendation to an Engineering team to modify how visitors are ushered through the site to maximize revenue or conversions.
  4. Resource Allocation. One of the many applications of RFID technology is in location and optimization of hospital equipment and the paths they take through the hospital.

Transactions can be analyzed using several different statistical techniques.

In the past month, I have visited Nevada casinos twice: Las Vegas and Laughlin. We would like to believe that “slot” machines are random (albeit biased towards house advantage obviously) and anonymous. The fact of the matter is that your visit to a casino is simply one large transaction. The data generated from such transactions can allow casinos to skew machines even more in their favor. Note that this is just my opinion, and there could very well be Nevada state laws barring usage of such transactional data for skewing games in a casino’s favor.
Casinos provide perks for their frequent visitors and players via their “rewards program” or some other promotional program such as free meals, free rooms, free show tickets etc.. These programs issue a card with a magnetic stripe. By shopping at the resort, or dining in their restaurants, the resort keeps track of purchases and rewards points based on their value. These cards are also inserted into slot machines, and swiped at card tables, as another major way to earn points. Each time this card is inserted, the magstripe is decoded and presumably information about the player is transmitted over an internal secure network. A server listening on this network can know exactly when money is inserted into the machine by the user, how often, and how much.  Casinos could use the amount of money inserted into the machine to adjust probabilities of winning each pot to rig towards higher bets. Casinos can also use win history to globally adjust the conditional probability of winning certain pots on machines across the casino.

Next, starting some time in the early 2000s (maybe even the late 1990s) machines no longer accepted or awarded hard money; instead, they reward and accept printed cash vouchers. Each voucher has a bar code and serial number printed on it. To the layman, this may simply represent the amount of money to be awarded when cashed in, and when it expires. I suspect these tickets are used for the same purpose as the casino card. Although each voucher has a different serial number, there may be a “cookie” encoded in the bar code with some unique transaction ID number. Even without such a cookie, tracing the transaction is simple as the serial number on the inserted voucher can easily be matched to the serial number on the printed voucher at the end of the game in a database on network server. With cash vouchers, transactions begin with the insertion of hard cash, and ends when the gamer has either spent all of his money on the game and leaves, when some time period has passed, or when the user leaves the game and never uses the voucher in another machine. Some people may be correct in their habit to “cash out” and then deposit fresh money into the machine.
By using cash vouchers and casino reward cards, casino owners can track gamers throughout the casino, throughout a small time window. This information can be visualized as a graph, or a map, and they can then optimize placement of machines to maximize bets and loss, and minimize payouts.
This suggests an experiment that may require several people in the same casino:

  1. On several occasions, spend a few hours playing different slot machines with and without a rewards card and compare winnings/losses.
  2. On several occasions, spend a few hours playing different slot machines and use fresh currency at each machine. Do not use the cash vouchers in the machine. Then, compare winnings/losses.

Just some food for thought.

To leave a comment for the author, please follow the link and comment on their blog: Byte Mining.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.