Lottery mathematics
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.
Choosing 6 from 49
In a typical 6/49 game, each player chooses six distinct numbers from a range of 1–49. If the six numbers on a ticket match the numbers drawn by the lottery, the ticket holder is a jackpot winner—regardless of the order of the numbers. The probability of this happening is 1 in 13,983,816.
The chance of winning can be demonstrated as follows: The first number drawn has a 1 in 49 chance of matching. When the draw comes to the second number, there are now only 48 balls left in the bag, because the balls are drawn without replacement. So there is now a 1 in 48 chance of predicting this number.
Thus for each of the 49 ways of choosing the first number there are 48 different ways of choosing the second. This means that the probability of correctly predicting 2 numbers drawn from 49 in the correct order is calculated as 1 in 49 × 48. On drawing the third number there are only 47 ways of choosing the number; but we could have arrived at this point in any of 49 × 48 ways, so the chances of correctly predicting 3 numbers drawn from 49, again in the correct order, is 1 in 49 × 48 × 47. This continues until the sixth number has been drawn, giving the final calculation, 49 × 48 × 47 × 46 × 45 × 44, which can also be written as [math]\displaystyle{ {49!\over (49-6)!} }[/math] or 49 factorial divided by 43 factorial or FACT(49)/FACT(43) or simply PERM(49,6) .
608281864034267560872252163321295376887552831379210240000000000 / 60415263063373835637355132068513997507264512000000000 = 10068347520
This works out to 10,068,347,520, which is much bigger than the ~14 million stated above.
Perm(49,6)=10068347520 and 49 nPr 6 =10068347520.
However, the order of the 6 numbers is not significant for the payout. That is, if a ticket has the numbers 1, 2, 3, 4, 5, and 6, it wins as long as all the numbers 1 through 6 are drawn, no matter what order they come out in. Accordingly, given any combination of 6 numbers, there are 6 × 5 × 4 × 3 × 2 × 1 = 6! or 720 orders in which they can be drawn. Dividing 10,068,347,520 by 720 gives 13,983,816, also written as [math]\displaystyle{ {49!\over 6! * (49 - 6)!} }[/math], or COMBIN(49,6) or 49 nCr 6 or more generally as
- [math]\displaystyle{ {n\choose k}={n!\over k!(n-k)!} }[/math], where n is the number of alternatives and k is the number of choices. Further information is available at binomial coefficient and multinomial coefficient.
This function is called the combination function, COMBIN(n,k). For the rest of this article, we will use the notation [math]\displaystyle{ {n\choose k} }[/math]. "Combination" means the group of numbers selected, irrespective of the order in which they are drawn. A combination of numbers is usually presented in ascending order. An eventual 7th drawn number, the reserve or bonus, is presented at the end.
An alternative method of calculating the odds is to note that the probability of the first ball corresponding to one of the six chosen is 6/49; the probability of the second ball corresponding to one of the remaining five chosen is 5/48; and so on. This yields a final formula of
- [math]\displaystyle{ {n\choose k}={49\choose 6}={49\over 6} * {48\over 5} * {47\over 4} * {46\over 3} * {45\over 2} * {44\over 1} }[/math]
A 7th ball often is drawn as reserve ball, in the past only a second chance to get 5+1 numbers correct with 6 numbers played.
Odds of getting other possibilities in choosing 6 from 49
One must divide the number of combinations producing the given result by the total number of possible combinations (for example, [math]\displaystyle{ {49\choose 6} = 13,983,816 }[/math] ). The numerator equates to the number of ways to select the winning numbers multiplied by the number of ways to select the losing numbers.
For a score of n (for example, if 3 choices match three of the 6 balls drawn, then n = 3), [math]\displaystyle{ {6\choose n} }[/math] describes the odds of selecting n winning numbers from the 6 winning numbers. This means that there are 6 - n losing numbers, which are chosen from the 43 losing numbers in [math]\displaystyle{ {43\choose 6-n} }[/math] ways. The total number of combinations giving that result is, as stated above, the first number multiplied by the second. The expression is therefore [math]\displaystyle{ {6\choose n}{43\choose 6-n}\over {49\choose 6} }[/math].
This can be written in a general form for all lotteries as:
[math]\displaystyle{ {K\choose B}{N-K\choose K-B}\over {N\choose K} }[/math]
where [math]\displaystyle{ N }[/math] is the number of balls in lottery, [math]\displaystyle{ K }[/math] is the number of balls in a single ticket, and [math]\displaystyle{ B }[/math] is the number of matching balls for a winning ticket.
The generalisation of this formula is called the hypergeometric distribution.
This gives the following results:
Score | Calculation | Exact Probability | Approximate Decimal Probability | Approximate 1/Probability |
---|---|---|---|---|
0 | [math]\displaystyle{ {6\choose 0}{43\choose 6}\over {49\choose 6} }[/math] | 435,461/998,844 | 0.436 | 2.2938 |
1 | [math]\displaystyle{ {6\choose 1}{43\choose 5}\over {49\choose 6} }[/math] | 68,757/166,474 | 0.413 | 2.4212 |
2 | [math]\displaystyle{ {6\choose 2}{43\choose 4}\over {49\choose 6} }[/math] | 44,075/332,948 | 0.132 | 7.5541 |
3 | [math]\displaystyle{ {6\choose 3}{43\choose 3}\over {49\choose 6} }[/math] | 8,815/499,422 | 0.0177 | 56.66 |
4 | [math]\displaystyle{ {6\choose 4}{43\choose 2}\over {49\choose 6} }[/math] | 645/665,896 | 0.000969 | 1,032.4 |
5 | [math]\displaystyle{ {6\choose 5}{43\choose 1}\over {49\choose 6} }[/math] | 43/2,330,636 | 0.0000184 | 54,200.8 |
6 | [math]\displaystyle{ {6\choose 6}{43\choose 0}\over {49\choose 6} }[/math] | 1/13,983,816 | 0.0000000715 | 13,983,816 |
When a 7th number is drawn as bonus number then we have 49!/6!/1!/42!.=combin(49,6)*combin(49-6,1)=601304088 different possible drawing results.
Score | Calculation | Exact Probability | Approximate Decimal Probability | Approximate 1/Probability |
---|---|---|---|---|
5 + 0 | [math]\displaystyle{ {6\choose 5}{1\choose 0}{42\choose 1}\over {49\choose 6} }[/math] | 252/13983816 | 0.0000180208 | 55,491.33 |
5 + 1 | [math]\displaystyle{ {6\choose 5}{1\choose 1}{42\choose 0}\over {49\choose 6} }[/math] | 6/13983816 | 0.0000004291 | 2,330,636 |
You would expect to score 3 of 6 or better once in around 36.19 drawings. Notice that It takes a 3 if 6 wheel of 163 combinations to be sure of at least one 3/6 score.
1/p changes when several distinct combinations are played together. It mostly is about winning something, not just the jackpot.
Ensuring to win the jackpot
There is only one known way to ensure winning the jackpot. That is to buy at least one lottery ticket for every possible number combination. For example, one has to buy 13,983,816 different tickets to ensure to win the jackpot in a 6/49 game.
Lottery organizations have laws, rules and safeguards in place to prevent gamblers from executing such an operation. Further, just winning the jackpot by buying every possible combination does not guarantee to break even or make a profit.
If [math]\displaystyle{ p }[/math] is the probability to win; [math]\displaystyle{ c_t }[/math]the cost of a ticket; [math]\displaystyle{ c_l }[/math] the cost for obtaining a ticket (e.g. including the logistics); [math]\displaystyle{ c_f }[/math] one time costs for the operation (such as setting up and conducting the operation); then the jackpot [math]\displaystyle{ m_j }[/math] should contain at least
[math]\displaystyle{ m_j \ge c_f + \frac{c_t + c_l}{p} }[/math]
to have a chance to at least break even.
The above theoretical "chance to break-even" point is slightly offset by the sum [math]\displaystyle{ \sum_{i}{} m_i }[/math] of the minor wins also included in all the lottery tickets:
[math]\displaystyle{ m_j \ge c_f + \frac{c_t + c_l}{p} - \sum_{i}{} m_i }[/math]
Still, even if the above relation is satisfied, it does not guarantee to break even. The payout depends on the number of winning tickets for all the prizes [math]\displaystyle{ n_x }[/math], resulting in the relation
[math]\displaystyle{ \frac{m_j}{n_j} \ge c_f + \frac{c_t + c_l}{p} - \sum_{i}{} \frac{m_i}{n_i} }[/math]
In probably the only known successful operations[1] the threshold to execute an operation was set at three times the cost of the tickets alone for unknown reasons
[math]\displaystyle{ m_j \ge 3 \times \frac{c_t}{p} }[/math]
I.e.
[math]\displaystyle{ \frac{n_j p}{c_t} \left ( c_f + \frac{c_t + c_l}{p} - \sum_{i}{} \frac{m_i}{n_i} \right ) \ll 3 }[/math]
This does, however, not eliminate all risks to make no profit. The success of the operations still depended on a bit of luck. In addition, in one operation the logistics failed and not all combinations could be obtained. This added the risk of not even winning the jackpot at all.
Powerballs and bonus balls
Many lotteries have a Powerball (or "bonus ball"). If the powerball is drawn from a pool of numbers different from the main lottery, the odds are multiplied by the number of powerballs. For example, in the 6 from 49 lottery, given 10 powerball numbers, then the odds of getting a score of 3 and the powerball would be 1 in 56.66 × 10, or 566.6 (the probability would be divided by 10, to give an exact value of [math]\displaystyle{ \frac{8815}{4994220} }[/math]). Another example of such a game is Mega Millions, albeit with different jackpot odds.
Where more than 1 powerball is drawn from a separate pool of balls to the main lottery (for example, in the EuroMillions game), the odds of the different possible powerball matching scores are calculated using the method shown in the "other scores" section above (in other words, the powerballs are like a mini-lottery in their own right), and then multiplied by the odds of achieving the required main-lottery score.
If the powerball is drawn from the same pool of numbers as the main lottery, then, for a given target score, the number of winning combinations includes the powerball. For games based on the Canadian lottery (such as the lottery of the United Kingdom), after the 6 main balls are drawn, an extra ball is drawn from the same pool of balls, and this becomes the powerball (or "bonus ball"). An extra prize is given for matching 5 balls and the bonus ball. As described in the "other scores" section above, the number of ways one can obtain a score of 5 from a single ticket is [math]\displaystyle{ {6\choose 5}{43\choose 1} = 258 }[/math]. Since the number of remaining balls is 43, and the ticket has 1 unmatched number remaining, 1/43 of these 258 combinations will match the next ball drawn (the powerball), leaving 258/43 = 6 ways of achieving it. Therefore, the odds of getting a score of 5 and the powerball are [math]\displaystyle{ {6 \over {49\choose 6}} = {1 \over 2,330,636} }[/math].
Of the 258 combinations that match 5 of the main 6 balls, in 42/43 of them the remaining number will not match the powerball, giving odds of [math]\displaystyle{ {{258 \cdot {\frac{42}{43}}}\over {49\choose 6} } = \frac{3}{166,474} \approx 1.802 \times 10^{-5} }[/math] for obtaining a score of 5 without matching the powerball.
Using the same principle, the odds of getting a score of 2 and the powerball are [math]\displaystyle{ {6\choose 2}{43\choose 4} = 1,\!851,\!150 }[/math] for the score of 2 multiplied by the probability of one of the remaining four numbers matching the bonus ball, which is 4/43. Since [math]\displaystyle{ 1,851,150 \cdot \frac{4}{43} = 172,\!200 }[/math], the probability of obtaining the score of 2 and the bonus ball is [math]\displaystyle{ \frac{172,200}{49 \choose 6} = \frac{1025}{83237} = 1.231\% }[/math], approximate decimal odds of 1 in 81.2.
The general formula for [math]\displaystyle{ B }[/math] matching balls in a [math]\displaystyle{ N }[/math] choose [math]\displaystyle{ K }[/math] lottery with one bonus ball from the [math]\displaystyle{ N }[/math] pool of balls is:
[math]\displaystyle{ \frac {\frac{K-B}{N-K}{K\choose B}{N-K\choose K-B}} {N\choose K} }[/math]
The general formula for [math]\displaystyle{ B }[/math] matching balls in a [math]\displaystyle{ N }[/math] choose [math]\displaystyle{ K }[/math] lottery with zero bonus ball from the [math]\displaystyle{ N }[/math] pool of balls is:
[math]\displaystyle{ {N-K-K+B\over N-K}{K\choose B}{N-K\choose K-B}\over {N\choose K} }[/math]
The general formula for [math]\displaystyle{ B }[/math] matching balls in a [math]\displaystyle{ N }[/math] choose [math]\displaystyle{ K }[/math] lottery with one bonus ball from a separate pool of [math]\displaystyle{ P }[/math] balls is:
[math]\displaystyle{ {1\over P}{K\choose B}{N-K\choose K-B}\over {N\choose K} }[/math]
The general formula for [math]\displaystyle{ B }[/math] matching balls in a [math]\displaystyle{ N }[/math] choose [math]\displaystyle{ K }[/math] lottery with no bonus ball from a separate pool of [math]\displaystyle{ P }[/math] balls is:
[math]\displaystyle{ {P-1\over P}{K\choose B}{N-K\choose K-B}\over {N\choose K} }[/math]
Minimum number of tickets for a match
It is a hard (and often open) problem to calculate the minimum number of tickets one needs to purchase to guarantee that at least one of these tickets matches at least 2 numbers. In the 5-from-90 lotto, the minimum number of tickets that can guarantee a ticket with at least 2 matches is 100.[2]
Information theoretic results
As a discrete probability space, the probability of any particular lottery outcome is atomic, meaning it is greater than zero. Therefore, the probability of any event is the sum of probabilities of the outcomes of the event. This makes it easy to calculate quantities of interest from information theory. For example, the information content of any event is easy to calculate, by the formula
[math]\displaystyle{ \operatorname I(E) := - \log{\left[\Pr{\left(E\right)}\right]} = -\log{\left(P\right)}. }[/math]
In particular, the information content of outcome [math]\displaystyle{ x }[/math] of discrete random variable [math]\displaystyle{ X }[/math] is
[math]\displaystyle{ \operatorname I_X(x) := - \log{\left[p_{X}{\left(x\right)}\right]} = \log{\left(\frac{1}{p_{X}{\left(x\right)}}\right)}. }[/math]
For example, winning in the example § Choosing 6 from 49 above is a Bernoulli-distributed random variable [math]\displaystyle{ X }[/math] with a 1/13,983,816 chance of winning ("success") We write [math]\displaystyle{ X \sim \mathrm{Bernoulli}\!\left(p\right) = \mathrm{B}\!\left(1, p\right) }[/math] with [math]\displaystyle{ p = \tfrac{1}{13,983,816} }[/math] and [math]\displaystyle{ q = \tfrac{13,983,815}{13,983,816} }[/math]. The information content of winning is
[math]\displaystyle{ \operatorname{I}_X(\text{win}) = -\log_2 {p_X{(\text{win})}} = -\log_2\!{\tfrac{1}{13,983,816}} \approx 23.73725 }[/math]shannons or bits of information. (See units of information for further explanation of terminology.) The information content of losing is
[math]\displaystyle{ \begin{align} \operatorname{I}_X(\text{lose}) &= -\log_2 {p_X{(\text{lose})}} = -\log_2\!{\tfrac{13,983,815}{13,983,816}} \\ &\approx 1.0317 \times 10^{-7} \text{ shannons}. \end{align} }[/math]
The information entropy of a lottery probability distribution is also easy to calculate as the expected value of the information content.
[math]\displaystyle{ \begin{alignat}{2} \Eta(X) &= \sum_{x} {-p_{X}{\left(x\right)} \log{p_{X}{\left(x\right)}}} \ &= \sum_{x} {p_{X}{\left(x\right)} \operatorname{I}_X(x)} \\ &{\overset{\underset{\mathrm{def}}{}}{=}} \ \mathbb{E}{\left[\operatorname{I}_X (x)\right]} \end{alignat} }[/math]
Oftentimes the random variable of interest in the lottery is a Bernoulli trial. In this case, the Bernoulli entropy function may be used. Using [math]\displaystyle{ X }[/math] representing winning the 6-of-49 lottery, the Shannon entropy of 6-of-49 above is
[math]\displaystyle{ \begin{align} \Eta(X) &= -p\log(p) - q\log(q) = -\tfrac{1}{13,983,816}\log\!{\tfrac{1}{13,983,816}} - \tfrac{13,983,815}{13,983,816}\log\!{\tfrac{13,983,815}{13,983,816}} \\ & \approx 1.80065 \times 10^{-6} \text{ shannons.} \end{align} }[/math]
References
External links
- Euler's Analysis of the Genoese Lottery – Convergence (August 2010), Mathematical Association of America
- Lottery Mathematics – INFAROM Publishing
- 13,983,816 and the Lottery – YouTube video with James Clewett, Numberphile, March 2012
Original source: https://en.wikipedia.org/wiki/Lottery mathematics.
Read more |