Gambling mathematics

Last updated

The mathematics of gambling is a collection of probability applications encountered in games of chance and can get included in game theory. From a mathematical point of view, the games of chance are experiments generating various types of aleatory events, and it is possible to calculate by using the properties of probability on a finite space of possibilities.

Contents

Experiments, events, and probability spaces

The technical processes of a game stand for experiments that generate aleatory events. Here are a few examples:

The occurrences could be defined; however, when formulating a probability problem, they must be done extremely carefully. From a mathematical point of view, the events are nothing more than subsets, and the space of events is a Boolean algebra. We find elementary and compound events, exclusive and nonexclusive events, and independent and non-independent events.

In the experiment of rolling a die:


In the experiment of rolling two dice one after another, the events obtaining "3" on the first die and obtaining "5" on the second die are independent because the occurrence of the first does not influence the occurrence of the second event, and vice versa.

In the experiment of dealing the pocket cards in Texas Hold'em Poker:

These are a few examples of gambling events whose properties of compoundness, exclusiveness, and independency are readily observable. These properties are fundamental in practical probability calculus.

Combinations

Games of chance are also good examples of combinations, permutations, and arrangements, which are met at every step: combinations of cards in a player's hand, on the table, or expected in any card game; combinations of numbers when rolling several dice once; combinations of numbers in lottery and Bingo; combinations of symbols in slots; permutations and arrangements in a race to be bet on and the like. Combinatorial calculus is an integral part of gambling probability applications. In games of chance, most of the gambling probability calculus in which we use the classical definition of probability reverts to counting combinations. The gaming events can be identified with sets, which often are sets of combinations. Thus, we can identify an event with a combination.

For example, in a five-draw poker game, the event at least one player holds a four-of-a-kind formation can be identified with the set of all combinations of (xxxxy) type, where x and y are distinct values of cards. This set has 13C(4,4)(52-4)=624 combinations. Possible combinations are (3♠ 3♣ 3♥ 3♦ J♣) or (7♠ 7♣ 7♥ 7♦ 2♣). These can be identified with elementary events that the event to be measured consists of. [1]

Mathematical principles

Law of large numbers

When random events occur a large number of times, the chance will cancel each other out so that the arithmetic mean of the results of these events is very close to its mathematical term value in a probabilistic sense. For example, when a coin is tossed, it is random which side of the coin faces up when it falls, but when it happens enough times, the number of times the coin goes up on both sides is about one-half each. This is known as the law of large numbers.

A quarter dollar Quarter Coin.jpg
A quarter dollar

Winning and losing gambling also behaves as a random event in a single person and for a short period, but in the long run, as long as the gambler has a negative rate of return, then losing is going to happen sooner or later as the game progresses. For the casino, as well as advantage players, as long as the win rate of the gambling play is positive, it is a sure win. [2]

Principle of positive rate of return

The key to determining victory or defeat is the rate of return as determined by the gambling rules and strategy. The rate of return reflects the truth and nature of gambling. The principle of designing gambling rules is usually to make the casino win rate slightly more than 50%, which is reflected in a positive rate of return that is slightly greater than zero. Gambling is not luck, but a contest of intellect, strategy, and yield. The ultimate win of long-term gambling depends on the gambler's rate of return: if the rate of return is positive, the expected return is greater than zero and one can win; if the rate of return is negative, the expected return is less than zero and one cannot win. When the negative rate of return, "long gambling will lose" the role of the law of large numbers will increasingly appear. Professional gamblers, adhering to the principle of a positive rate of return, do not gamble for a long time and will lose the gambling game, only to gamble on a sure win. They are non-gamblers. [2]

Law of small numbers bias

The law of large numbers means that when the sample is close to the overall, its probability will be close to the overall probability. The "law of small numbers bias" refers to the fact that the probability distribution of an event in a small sample is considered to be the overall distribution, thus exaggerating the representativeness of the small sample to the overall population. Another situation is the so-called "gambler's fallacy". For example, when flipping a coin, if it comes up heads 10 times in a row, one would think that the next time it comes up tails is very likely; in fact, the probability of coming up heads or tails is 0.5 each time, and it has nothing to do with how many times it has come up heads.

Ignoring the effect of sample size, believing that small and large samples have the same expected value, and replacing the correct probabilistic law of large numbers with the false psychological law of small numbers, is the cause of the great increase in people's gambling mentality. Casinos believe in the law of large numbers, and gamblers unconsciously apply the law of small numbers. The law of large numbers allows casinos to make money, and the law of small numbers allows gamblers to give money to casinos, and this is the logic of casinos' existence. [2]

Casino advantage

The casino advantage is the advantage that the casino has over the gamblers for each type of gambling game in the casino.

Take the coin toss for example, the chances of heads and tails are equal, 50% each, if a player bets $10 on the coin landing heads up and they win, the casino pays them $10. If they lose, all the $10 is lost to the casino, in this case, the casino advantage is zero (the casino is certainly not stupid enough to open this game); but if they win, the casino only pays them $9, if they lose, all the $10 is lost to the casino. The average payout is (+$9−$10)/2 = −$0.50. The casino advantage in this case is $0.50 / $10 = 5%.

In any kind of game in a casino, the casino has a certain advantage over the gamblers, and only in this way can the casino ensure that it will continue to open in the long run. The casino advantage varies greatly from game to game, with some games having a low casino advantage and others having a high casino advantage. People who gamble a lot try not to play games with a high casino advantage. [2] [3]

Expectation and strategy

Games of chance are not merely pure applications of probability calculus and gaming situations are not just isolated events whose numerical probability is well established through mathematical methods; they are also games whose progress is influenced by human action. In gambling, the human element has a striking character. The player is not only interested in the mathematical probability of the various gaming events, but he or she has expectations from the games while a major interaction exists. To obtain favorable results from this interaction, gamblers take into account all possible information, including statistics, to build gaming strategies. [4] [1] You can easily pick a strategy that is conformable to your interests as a player by checking out the list in the next section. As can be seen, we have explained the basics of each method a gambler can test. [5]

Even though the randomness inherent in games of chance would seem to ensure their fairness (at least with respect to the players around a table—shuffling a deck or spinning a wheel do not favor any player except if they are fraudulent), gamblers search and wait for irregularities in this randomness that will allow them to win. It has been mathematically proved that, in ideal conditions of randomness, and with negative expectation, no long-run regular winning is possible for players of games of chance. Most gamblers accept this premise, but still work on strategies to make them win either in the short term or over the long run. [6]

House advantage or edge

Casino games provide a predictable long-term advantage to the casino, or "house" while offering the player the possibility of a large short-term payout. Some casino games have a skill element, where the player makes decisions; such games are called "random with a tactical element." While it is possible through skillful play to minimize the house advantage, a player rarely has sufficient skill to eliminate his inherent long-term disadvantage (the house edge or house vigorish) in a casino game. The common belief is that such a skill set would involve years of training, extraordinary memory, and numeracy, and/or acute visual or even aural observation, as in the case of wheel clocking in Roulette. For more examples see advantage gambling.

The player's disadvantage is a result of the casino not paying winning wagers according to the game's "true odds", which are the payouts that would be expected considering the odds of a wager either winning or losing. For example, if a game is played by wagering on the number that would result from the roll of one die, true odds would be 5 times the amount wagered since there is a 1/6 probability of any single number appearing. However, the casino may only pay 4 times the amount wagered for a winning wager.

The house edge (HE) or vigorish is defined as the casino profit expressed as a percentage of the player's original bet. In games such as Blackjack or Spanish 21, the final bet may be several times the original bet, if the player doubles or splits.

Example: In American Roulette, there are two zeroes and 36 non-zero numbers (18 red and 18 black). If a player bets $1 on red, his chance of winning $1 is therefore 18/38 and his chance of losing $1 (or winning -$1) is 20/38.

The player's expected value, EV = (18/38 x 1) + (20/38 x -1) = 18/38 - 20/38 = -2/38 = -5.26%. Therefore, the house edge is 5.26%. After 10 rounds, play $1 per round, and the average house profit will be 10 x $1 x 5.26% = $0.53. Of course, the casino can't win exactly 53 cents; this figure is the average casino profit from each player if it had millions of players each betting 10 rounds at $1 per round.

The house edge of casino games varies greatly with the game. Keno can have house edges up to 25% and slot machines can have up to 15%, while most Australian Pontoon games have house edges between 0.3% and 0.4%.

The calculation of the Roulette house edge was a trivial exercise; for other games, this is not usually the case. Combinatorial analysis and/or computer simulation are necessary to complete the task.

In games that have a skill element, such as Blackjack or Spanish 21, the house edge is defined as the house advantage from optimal play (without the use of advanced techniques such as card counting or shuffle tracking), on the first hand of the shoe (the container that holds the cards). The set of the optimal plays for all possible hands is known as "basic strategy" and is highly dependent on the specific rules, and even the number of decks used. Good Blackjack and Spanish 21 games have to house edges below 0.5%.

Online slot games often have a published return to player (RTP) percentage that determines the theoretical house edge. Some software developers choose to publish the RTP of their slot games while others do not. Despite the set-theoretical RTP, almost any outcome is possible in the short term. [2]

Standard deviation

The luck factor in a casino game is quantified using standard deviation (SD). The standard deviation of a simple game like Roulette can be simply calculated because of the binomial distribution of successes (assuming a result of 1 unit for a win, and 0 units for a loss). For the binomial distribution, SD is equal to , where is the number of rounds played, is the probability of winning, and is the probability of losing. Furthermore, if we flat bet at 10 units per round instead of 1 unit, the range of possible outcomes increases 10 fold. Therefore, SD for Roulette even-money bet is equal to , where is the flat bet per round, is the number of rounds, , and .

After enough large number of rounds the theoretical distribution of the total win converges to the normal distribution, giving a good possibility to forecast the possible win or loss. For example, after 100 rounds at $1 per round, the standard deviation of the win (equally of the loss) will be . After 100 rounds, the expected loss will be .

The 3 sigma range is six times the standard deviation: three above the mean, and three below. Therefore, after 100 rounds betting $1 per round, the result will very probably be somewhere between and , i.e., between -$34 and $24. There is still a ca. 1 to 400 chance that the result will be not in this range, i.e. either the win will exceed $24, or the loss will exceed $34.

The standard deviation for the even-money Roulette bet is one of the lowest out of all casinos games. Most games, particularly slots, have extremely high standard deviations. As the size of the potential payouts increase, so does the standard deviation.

Unfortunately, the above considerations for small numbers of rounds are incorrect, because the distribution is far from normal. Moreover, the results of more volatile games usually converge to the normal distribution much more slowly, therefore much more huge number of rounds are required for that.

As the number of rounds increases, eventually, the expected loss will exceed the standard deviation, many times over. From the formula, we can see the standard deviation is proportional to the square root of the number of rounds played, while the expected loss is proportional to the number of rounds played. As the number of rounds increases, the expected loss increases at a much faster rate. This is why it is practically impossible for a gambler to win in the long term (if they don't have an edge). It is the high ratio of short-term standard deviation to expected loss that fools gamblers into thinking that they can win.

The volatility index (VI) is defined as the standard deviation for one round, betting one unit. Therefore, the VI for the even-money American Roulette bet is .

The variance is defined as the square of the VI. Therefore, the variance of the even-money American Roulette bet is ca. 0.9972, which is low for a casino game. The variance for Blackjack is ca. 1.2, which is still low compared to the variances of electronic gaming machines (EGMs).

Additionally, the term of the volatility index based on some confidence intervals are used. Usually, it is based on the 90% confidence interval. The volatility index for the 90% confidence interval is ca. 1.645 times as the "usual" volatility index that relates to the ca. 68.27% confidence interval.

It is important for a casino to know both the house edge and volatility index for all of their games. The house edge tells them what kind of profit they will make as percentage of turnover, and the volatility index tells them how much they need in the way of cash reserves. The mathematicians and computer programmers that do this kind of work are called gaming mathematicians and gaming analysts. Casinos do not have in-house expertise in this field, so they outsource their requirements to experts in the gaming analysis field. [6]

Bingo probability

The probability of winning a game of Bingo (ignoring simultaneous winners, making wins mutually exclusive) may be calculated as:

since winning and losing are mutually exclusive. The probability of losing is the same as the probability of another player winning (for now assuming each player has only one Bingo card). With players taking part: with players and our player being designated . This is also stated (for mutually exclusive events) as .

If the probability of winning for each player is equal (as would be expected in a fair game of chance), then and thus and therefore . Simplifying yields

For the case where more than one card is bought, each card can be seen as being equivalent to the above players, having an equal chance of winning. where is the number of cards in the game and is the card we are interested in.

A player () holding cards therefore will be the winner if any of this cards win (still ignoring simultaneous wins):

A simple way for a player to increase his odds of winning is therefore to buy more cards in a game (increase ).

Simultaneous wins may occur in certain game types (such as online Bingo, where the winner is determined automatically, rather than by shouting "Bingo" for example), with the winnings being split between all simultaneous winners. The probability of our card, , winning when there is either one or more simultaneous winners is expressed by:

where is the probability of there being simultaneous winner (a function of the game type and number of players) and being the (fair) probability that is one of the winning cards. The overall expected value for the payout (1 representing the full winning pot) is therefore:

Since, for a normal bingo game, which is played until there is a winner, the probability of there being a winning card, either or or ... or , and these being mutually exclusive, it can be stated that

and therefore that

The expected outcome of the game is therefor not changed by simultaneous winners, as long as the pot is split evenly between all simultaneous winners. This has been confirmed numerically. [7]

To investigate whether it is better to play multiple cards in a single game or to play multiple games, the probability of winning is calculated for each scenario, where cards are bought.

where n is the number of players (assuming each opposing player only plays one card). The probability of losing any single game, where only a single card is played, is expressed as:

The probability of losing games is expressed as:

The probability of winning at least one game out of games is the same as the probability of not losing all games:

When , these values are equal:

but it has been shown [7] that for . The advantage of grows both as grows and decreases. It is therefore always better to play multiple games rather than multiple cards in a single game, although the advantage diminishes when there are more players in the game. [7] [8]

See also

Related Research Articles

<span class="mw-page-title-main">Casino game</span> Types of casino games

Games available in most casinos are commonly called casino games. In a casino game, the players gamble cash or casino chips on various possible random outcomes or combinations of outcomes. Casino games are also available in online casinos, where permitted by law. Casino games can also be played outside of casinos for entertainment purposes, like in parties or in school competitions, on machines that simulate gambling.

<span class="mw-page-title-main">Expected value</span> Average value of a random variable

In probability theory, the expected value is a generalization of the weighted average. Informally, the expected value is the mean of the possible values a random variable can take, weighted by the probability of those outcomes. Since it is obtained through arithmetic, the expected value sometimes may not even be included in the sample data set; it is not the value you would "expect" to get in reality.

<span class="mw-page-title-main">Gambling</span> Wagering of money on a game of chance or event with an uncertain outcome

Gambling is the wagering of something of value on a random event with the intent of winning something else of value, where instances of strategy are discounted. Gambling thus requires three elements to be present: consideration, risk (chance), and a prize. The outcome of the wager is often immediate, such as a single roll of dice, a spin of a roulette wheel, or a horse crossing the finish line, but longer time frames are also common, allowing wagers on the outcome of a future sports contest or even an entire sports season.

The gambler's fallacy, also known as the Monte Carlo fallacy or the fallacy of the maturity of chances, is the belief that, if an event has occurred less frequently than expected, it is more likely to happen again in the future. The fallacy is commonly associated with gambling, where it may be believed, for example, that the next dice roll is more than usually likely to be six because there have recently been fewer than the expected number of sixes.

<span class="mw-page-title-main">Keno</span> Game of chance

Keno is a lottery-like gambling game often played at modern casinos, and also offered as a game in some lotteries.

A poker player is drawing if they have a hand that is incomplete and needs further cards to become valuable. The hand itself is called a draw or drawing hand. For example, in seven-card stud, if four of a player's first five cards are all spades, but the hand is otherwise weak, they are drawing to a flush. In contrast, a made hand already has value and does not necessarily need to draw to win. A made starting hand with no help can lose to an inferior starting hand with a favorable draw. If an opponent has a made hand that will beat the player's draw, then the player is drawing dead; even if they make their desired hand, they will lose. Not only draws benefit from additional cards; many made hands can be improved by catching an out – and may have to in order to win.

<span class="mw-page-title-main">Roulette</span> Casino game of chance

Roulette is a casino game which was likely developed from the Italian game Biribi. In the game, a player may choose to place a bet on a single number, various groupings of numbers, the color red or black, whether the number is odd or even, or if the number is high or low.

<span class="mw-page-title-main">Russian roulette</span> Potentially lethal game of chance

Russian roulette is a potentially lethal game of chance in which a player places a single round in a revolver, spins the cylinder, places the muzzle against the head or body, and pulls the trigger. If the loaded chamber aligns with the barrel, the weapon will fire, killing or severely injuring the player.

<span class="mw-page-title-main">Texas hold 'em</span> Variation of the card game of poker

Texas hold 'em is one of the most popular variants of the card game of poker. Two cards, known as hole cards, are dealt face down to each player, and then five community cards are dealt face up in three stages. The stages consist of a series of three cards, later an additional single card, and a final card. Each player seeks the best five-card poker hand from any combination of the seven cards: the five community cards and their two hole cards. Players have betting options to check, call, raise, or fold. Rounds of betting take place before the flop is dealt and after each subsequent deal. The player who has the best hand and has not folded by the end of all betting rounds wins all of the money bet for the hand, known as the pot. In certain situations, a "split pot" or "tie" can occur when two players have hands of equivalent value. This is also called "chop the pot". Texas hold 'em is also the H game featured in HORSE and HOSE.

In probability theory, odds provide a measure of the probability of a particular outcome. Odds are commonly used in gambling and statistics. For example for an event that is 40% probable, one could say that the odds are "2 in 5","2 to 3 in favor", or "3 to 2 against".

A martingale is a class of betting strategies that originated from and were popular in 18th-century France. The simplest of these strategies was designed for a game in which the gambler wins the stake if a coin comes up heads and loses if it comes up tails. The strategy had the gambler double the bet after every loss, so that the first win would recover all previous losses plus win a profit equal to the original stake. Thus the strategy is an instantiation of the St. Petersburg paradox.

<span class="mw-page-title-main">Card counting</span> Blackjack strategy used to determine advantage in upcoming hands

Card counting is a blackjack strategy used to determine whether the player or the dealer has an advantage on the next hand. Card counters try to overcome the casino house edge by keeping a running count of high and low valued cards dealt. They generally bet more when they have an advantage and less when the dealer has an advantage. They also change playing decisions based on the composition of the deck and sometimes play in teams.

In statistics, gambler's ruin is the fact that a gambler playing a game with negative expected value will eventually go bankrupt, regardless of their betting system.

<span class="mw-page-title-main">St. Petersburg paradox</span> Paradox involving a game with repeated coin flipping

The St. Petersburg paradox or St. Petersburg lottery is a paradox involving the game of flipping a coin where the expected payoff of the lottery game is infinite but nevertheless seems to be worth only a very small amount to the participants. The St. Petersburg paradox is a situation where a naïve decision criterion that takes only the expected value into account predicts a course of action that presumably no actual person would be willing to take. Several resolutions to the paradox have been proposed, including the impossible amount of money a casino would need to continue the game indefinitely.

Vigorish is the fee charged by a bookmaker for accepting a gambler's wager. In American English, it can also refer to the interest owed a loanshark in consideration for credit. The term came to English usage via Yiddish slang which was itself a loanword from Russian.

Lottery mathematics is used to calculate probabilities of winning or losing a lottery game. It is based primarily on combinatorics, particularly the twelvefold way and combinations without replacement.

<span class="mw-page-title-main">Kelly criterion</span> Bet sizing formula for long-term growth

In probability theory, the Kelly criterion is a formula for sizing a sequence of bets by maximizing the long-term expected value of the logarithm of wealth, which is equivalent to maximizing the long-term expected geometric growth rate. John Larry Kelly Jr., a researcher at Bell Labs, described the criterion in 1956.

Gambler's conceit is the fallacy described by behavioral economist David J. Ewing, where a gambler believes they will be able to stop a risky behavior while still engaging in it. This belief frequently operates during games of chance, such as casino games. The gambler believes they will be a net winner at the game, and thus able to avoid going broke by exerting the self-control necessary to stop playing while still ahead in winnings. This is often expressed as "I'll quit when I'm ahead."

Advantage gambling, or advantage play, refers to legal methods used to gain an advantage while gambling, in contrast to cheating. The term usually refers to house-banked casino games, but can also refer to games played against other players, such as poker. Someone who practices advantage gambling is often referred to as an advantage player, or AP. Unlike cheating, which is by definition illegal, advantage play exploits innate characteristics of a particular game to give the player an advantage relative to the house or other players. While not illegal, advantage play may result in players being banned by certain casinos.

<span class="mw-page-title-main">Boule (gambling game)</span> Gambling game similar to roulette

Boule is a gambling game, similar to roulette, that dates back to the popular 19th-century game of Petits Chevaux.

References

  1. 1 2 "D'Alembert roulette system".
  2. 1 2 3 4 5 Yi, Ning (2021). "赌局中的不败法则:用数学概率讲解赌博,为什么会十赌九输!". 知乎专栏 (in Chinese). Retrieved 2023-04-20.
  3. "Casino Mathematics – Statistics and Data". Mathigon. Retrieved 2023-04-20.
  4. "Roulette". britannica.
  5. "Strategy". Sep 21, 2023.
  6. 1 2 Mingkang, Zhang (2021). "赌博行为的发展历史与其影响". 知乎专栏 (in Chinese). Retrieved 2023-04-20.
  7. 1 2 3 "Bingo Odds & Probability Of Winning".
  8. Akusobi, Chidi (2010). "Should You Bet On It? The Mathematics of Gambling – Yale Scientific Magazine". www.yalescientific.org. Retrieved 2023-04-20.

Further reading