Streaming Analytics with kdb+: Detecting card counters in Blackjack

17 May 2017 | , , , , , , , ,
Share on:

With the growth and acceleration of the Internet of Things (IoT), data collection is increasingly being performed by sensors and smart devices. Consuming and analyzing the massive amounts of data transmitted from sensing devices is considered the next Big Data challenge.

A key problem in processing large quantities of data in real-time is the detection of event patterns, and this is why streaming analytics, also known as Event Stream Processing (ESP), is becoming a mainstream solution in IoT.

Kx engineers Caolan Rafferty and Krishan Subherwal recently wrote a technical paper that highlights the use case of kdb+ with ESP.

Caolan and Krishan write:

There are a number of measures used to protect casinos against card counters. These countermeasures constrain the card counters that may be playing in the casino at any given time but heavily tax the casino’s efficiency, costing the casino industry millions of dollars every year. Examples of these countermeasures are shuffling more frequently, reducing the number of hands played, and not permitting mid-game entry.

The purpose of this paper is to highlight a use case of kdb+ with ESPs to detect card counters in the game of Blackjack in real-time. kdb+ offers an unrivalled performance advantage when it comes to capturing, analyzing and storing massive amounts of data in a very short space of time, making it the data-storage technology of choice for many financial institutions across the globe, and more recently other industries such as telecommunications and pharma.

To read the rest of their white paper, which includes kdb+ coding examples, please follow the link to the left.

© 2018 Kx Systems
Kx® and kdb+ are registered trademarks of Kx Systems, Inc., a subsidiary of First Derivatives plc.


Head of Products, Solutions and Innovation at Kx on Product Design and the Vision for the Future

16 Mar 2018 | , , ,

As the SVP of Products, Solutions and Innovation at Kx Systems, James Corcoran is part of a new chapter in software development at Kx. Since joining Kx parent First Derivatives as a financial engineer in 2009, James has worked around the world building enterprise systems at top global investment banks before moving to the Kx product team in London. James sat down with us recently to discuss his perspective on product design and our technology strategy for the future.

Kx featured on 2018 IoT Landscape Map

7 Mar 2018 | , ,

First Mark Capital’s Matt Turck has been talking about the growth of both the Big Data and the Internet of Things ecosystems for several years in his blog and elsewhere. An outgrowth of this interest has been graphic “maps” of both the Big Data landscape and the Internet of Things landscape that portray all of the significant players in those markets in a particular year. Subsequent versions of Matt’s maps, which are published annually, show the speed of change of IoT technologies and approaches, especially for managing and analyzing large datasets generated by IoT devices. 

Kdb+ Utilities: Essential utility for identifying performance problems

28 Feb 2018 | ,

If you are a kdb+/q developer, you will find the utilities created by Kx Managing Director and Senior Solution Architect Leslie Goldsmith to be a valuable resource. The “Kdb+ Utilities” series of blog posts gives a quick introduction to the utilities, available at Leslie Goldsmith’s GitHub. In this third part of the series we look at Leslie’s qprof, which allows a programmer to drill down into q functions or applications to inspect performance and CPU usage in a fine-grained fashion.