Gaming mathematics
From Wikipedia, the free encyclopedia
Gaming mathematics, also referred to as the mathematics of gambling, is a collection of probability applications encountered in games of chance and can be included in applied mathematics. From mathematical point of view, the games of chance are experiments generating various types of aleatory events, the probability of which can be calculated by using the properties of probability on a finite space of events.
Contents |
[edit] Experiments, events, probability spaces
The technical processes of a game stand for experiments that generate aleatory events. Here are few examples:
- Throwing the dice in craps is an experiment that generates events such as occurrences of certain numbers on the dice, obtaining a certain sum of the shown numbers, obtaining numbers with certain properties (less than a specific number, higher that a specific number, even, uneven, and so on). The sample space of such an experiment is {1, 2, 3, 4, 5, 6} for rolling one die or {(1, 1), (1, 2), ..., (1, 6), (2, 1), (2, 2), ..., (2, 6), ..., (6, 1), (6, 2), ..., (6, 6)} for rolling two dice. The latter is a set of ordered pairs and counts 6 x 6 = 36 elements.
The events can be identified with sets, namely parts of the sample space.
For example, the event occurrence of an even number is represented by the following set in the experiment of rolling one die: {2, 4, 6}.
- Spinning the roulette wheel is an experiment whose generated events could be the occurrence of a certain number, of a certain color or a certain property of the numbers (low, high, even, uneven, from a certain row or column, and so on). The sample space of the experiment involving spinning the roulette wheel is the set of numbers the roulette holds: {1, 2, 3, ..., 36, 0, 00} for the American roulette, or {1, 2, 3, ..., 36, 0} for the European. The event occurrence of a red number is represented by the set {1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36}. These are the numbers inscribed in red on the roulette wheel and table.
- Dealing cards in blackjack is an experiment that generates events such as the occurrence of a certain card or value as the first card dealt, obtaining a certain total of points from the first two cards dealt, exceeding 21 points from the first three cards dealt, and so on. In card games we encounter many types of experiments and categories of events. Each type of experiment has its own sample space. For example, the experiment of dealing the first card to the first player has as its sample space the set of all 52 cards (or 104, if played with two decks). The experiment of dealing the second card to the first player has as its sample space the set of all 52 cards (or 104), less the first card dealt. The experiment of dealing the first two cards to the first player has as its sample space a set of ordered pairs, namely all the 2-size arrangements of cards from the 52 (or 104). In a game with one player, the event the player is dealt a card of 10 points as the first dealt card is represented by the set of cards {10♠, 10♣, 10♥, 10♦, J♠, J♣, J♥, J♦, Q♠, Q♣, Q♥, Q♦, K♠, K♣, K♥, K♦}. The event the player is dealt a total of five points from the first two dealt cards is represented by the set of 2-size combinations of card values {(A, 4), (2, 3)}, which in fact counts 4 x 4 + 4 x 4 = 32 combinations of cards (as value and symbol).
- In 6/49 lottery, the experiment of drawing six numbers from the 49 generate events such as drawing six specific numbers, drawing five numbers from six specific numbers, drawing four numbers from six specific numbers, drawing at least one number from a certain group of numbers, etc. The sample space here is the set of all 6-size combinations of numbers from the 49.
- In draw poker, the experiment of dealing the initial five card hands generates events such as dealing at least one certain card to a specific player, dealing a pair to at least two players, dealing four identical symbols to at least one player, and so on. The sample space in this case is the set of all 5-card combinations from the 52 (or the deck used).
- Dealing two cards to a player who has discarded two cards is another experiment whose sample space is now the set of all 2-card combinations from the 52, less the cards seen by the observer who solves the probability problem. For example, if you are in play in the above situation and want to figure out some odds regarding your hand, the sample space you should consider is the set of all 2-card combinations from the 52, less the three cards you hold and less the two cards you discarded. This sample space counts the 2-size combinations from 47.
[edit] The probability model
A probability model starts from an experiment and a mathematical structure attached to that experiment, namely the space (field) of events. The event is the main unit probability theory works on. In gambling, there are many categories of events, all of which can be textually predefined. In the previous examples of gambling experiments we saw some of the events that experiments generate. They are a minute part of all possible events, which in fact is the set of all parts of the sample space. For a specific game, the various types of events can be:
– Events related to your own play or to opponents’ play;
– Events related to one person’s play or to several persons’ play;
– Immediate events or long-shot events.
Each category can be further divided into several other subcategories, depending on the game referred to. These events can be literally defined, but it must be done very carefully when framing a probability problem. From a mathematical point of view, the events are nothing more than subsets and the space of events is a Boolean algebra. Among these events, we find elementary and compound events, exclusive and nonexclusive events, and independent and non-independent events:
In the experiment of rolling a die:
– Event {3, 5} (whose literal definition is occurrence of 3 or 5) is compound because {3, 5}= {3} U {5};
– Events {1}, {2}, {3}, {4}, {5}, {6} are elementary;
– Events {3, 5} and {4} are incompatible or exclusive because their intersection is empty; that is, they cannot occur simultaneously;
– Events {1, 2, 5} and {2, 5} are nonexclusive, because their intersection is not empty;
– 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 second event is not influenced by the occurrence of the first, and vice versa.
In the experiment of dealing the pocket cards in Texas Hold’em Poker:
– The event of dealing (3♣, 3♦) to a player is an elementary event;
– The event of dealing two 3’s to a player is compound because is the union of events (3♣, 3♠), (3♣, 3♥), (3♣, 3♦), (3♠, 3♥), (3♠, 3♦) and (3♥, 3♦);
– The events player 1 is dealt a pair of kings and player 2 is dealt a pair of kings are nonexclusive (they can both occur);
– The events player 1 is dealt two connectors of hearts higher than J and player 2 is dealt two connectors of hearts higher than J are exclusive (only one can occur);
– The events player 1 is dealt (7, K) and player 2 is dealt (4, Q) are non-independent (the occurrence of the second depends on the occurrence of the first, while the same deck is in use).
These are a few examples of gambling events, whose properties of compoundness, exclusiveness and independency are easily observable. These properties are very important in practical probability calculus.
The complete mathematical model is given by the probability field attached to the experiment, which is the triple sample space—field of events—probability function. For any game of chance, the probability model is of the simplest type—the sample space is finite, the space of events is the set of parts of the sample space, implicitly finite, too, and the probability function is given by the definition of probability on a finite space of events:
[edit] 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 important 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.
[edit] 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. The predicted future gain or loss is called expectation or expected value and is the sum of the probability of each possible outcome of the experiment multiplied by its payoff (value). Thus, it represents the average amount one expects to win per bet if bets with identical odds are repeated many times. A game or situation in which the expected value for the player is zero (no net gain nor loss) is called a fair game. The attribute fair refers not to the technical process of the game, but to the chance balance house (bank)–player.
Even though the randomness inherent in games of chance is 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 always 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, 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 over the long run.
[edit] See also
[edit] Further reading
- The Mathematics of Gambling , by Edward Thorp, ISBN 0-89746-019-7 excerpts
- The Theory of Gambling and Statistical Logic, Revised Edition, by Richard Epstein, ISBN 0-12-240761-X
- The Mathematics of Games and Gambling, Second Edition, by Edward Packel, ISBN 0-88385-646-8
- Probability Guide to Gambling: The Mathematics of Dice, Slots, Roulette, Baccarat, Blackjack, Poker, Lottery and Sport Bets, by Catalin Barboianu, ISBN 973-87520-3-5 excerpts
- Luck, Logic, and White Lies: The Mathematics of Games, by Jörg Bewersdorff, ISBN 1-56881-210-8.