# Computer Perfect Play in Baccarat

In this post I am going to examine the edge possible in baccarat if the player is using computer-perfect play. Card counting systems work on the theory that by keeping track of the relative density of groups of cards, the player can identify situations when the remainder of the shoe gives an edge over the house. In baccarat, card counting attempts to identify when either the Player bet or Banker bet is player-advantageous. But, in order for a card counting system to work in the first place, there must be actual situations when the player actually has the edge.

If an edge is going to occur, the situation will most likely occur late in the shoe. The opportunities will be proportional to a certain number of unseen cards. In this study, I investigated situations where the number of unseen cards varied from 18 to 50 at the time of the wager. Beyond 50 cards, there were effectively no instances of a player edge over the house on either the Player or Banker wager. Likewise, most casinos use dealing procedures that do not afford players an opportunity to make a wager with fewer than 18 unseen cards left in the shoe.

- Fix a number of unseen cards. I ran simulations for 18, 26, 34, 42 and 50 unseen cards.
- Create a fresh shoe.
- Deal out the shoe until the appropriate number of unseen cards is left.
- Determine the exact edge of the remaining shoe by combinatorial analysis.
- Record the exact edge in a log file.
- Go to step 2.

After repeating steps 2 through 6 for one hundred thousand (100,000) baccarat shoes, I imported the information into Excel. I then plotted the distribution of the house edge for both the Player and Banker bets. I did this for 18, 26, 34, 42 and 50 unseen cards, so altogether I ran five simulations.

Here is the distribution for 50 unseen cards:

In reading this table, the horizontal axis is the house edge. A negative number represents the house having the edge. A positive value represents the player having the edge: the portion to the right of the vertical line corresponds to the player having the edge over the house. The vertical axis corresponds to the frequency that a particular edge occurs. Going up the vertical axis corresponds to outcomes that are more likely.

Note that the red Player curve reaches a maximum value at -0.0124 (-1.24%), corresponding to the house edge for the Player bet. Likewise, the blue Banker curve reaches a maximum at -0.0106 (-1.06%), corresponding to the house edge for the Banker bet.

There are two geometric features about this curve I want to point out. These correspond to the average edge when the Banker/Player bet is favorable and the frequency of the opportunity. These are the two numbers that allow the total potential income to be computed.

First, if you consider the portion under each curve to the right of zero, then the “center of gravity” of each curve corresponds to the average edge. The area under the blue curve to the right of zero has “center of gravity” at 0.00243. This corresponds to an average edge over the house of 0.243% if a Banker wager is made every time it is player-favorable with 50 unseen cards. The area under the red curve in the box has “center of gravity” at 0.00169. This corresponds to an average edge over the house of 0.169% if a Player wager is made every time it is player-favorable with 50 unseen cards.

Second, the total area under each curve in its entirety is exactly 1. The fraction under the curve to the right of zero corresponds to the frequency of a player-favorable wager. The area under the blue curve to the right of zero is 0.00401. It follows that a player-favorable wager on the Banker bet occurs 0.401% of the time with 50 unseen cards. The area under the red curve to the right of zero is 0.00328. It follows that a player-favorable wager on the Player bet occurs 0.328% of the time with 50 unseen cards.

In summary. With 50 unseen cards:

- The Banker bet will be player-favorable on 0.401% of the shoes. When the player has an edge making the Banker bet, his average edge is 0.243%.
- The Player bet will be player-favorable on 0.328% of the shoes. When the player has an edge making the Player bet, his average edge is 0.169%.

The following images give the four more distributions, for 18, 26, 34 and 42 unseen cards.

The following tables summarize the distributions above:

Each round, the player will have an opportunity to make a baccarat wager with 4-to-6 fewer unseen cards than the previous round. Using the data above, I was able to plot the total possible units that could be won per shoe using computer perfect play, based on the number of unseen cards at the start of the final round of the shoe. The following chart gives this information:

In particular, with the final round occurring with 18 unseen cards and with computer perfect play:

- The profit per shoe for the Player bet is at most 0.000705 units.
- The profit per shoe for the Banker bet is at most 0.000871 units.

No card counting system can exceed these practical limits. To put this in dollars and cents, suppose that an AP is using a card counting system to try and beat baccarat. This hypothetical player never wagers unless he has the edge over the house. When he has the edge on the Banker bet, he wagers $1000 on it. Whenever he has the edge on the Player bet, he wagers $1000 on it. Then:

- The profit per shoe for the Player bet is at most 70.5 cents per shoe.
- The profit per shoe for the Banker bet is at most 87.1 cents per shoe.
- The profit per shoe for making both Player and Banker bets is at most $1.58 per shoe.

Maybe he’s the world’s most perfect card counter. Or perhaps he is using a computer. Or maybe he is just psychic. It doesn’t matter. Just assume this player somehow knows exactly when he has the edge over the house and whenever he does, he bets $1000. The practical limitations on the earning potential for this player are profound — $1.58 per shoe for a wager size of $1000.

In other words, baccarat cannot realistically be beaten by computer perfect play. It follows that if baccarat is being beaten by a player, then he is using nefarious methods.