This article's lead sectionmay be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article.(October 2019)
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. It can also be used to analyze coincidences that happen in lottery drawings, such as repeated numbers appearing across different draws.[1]
Probabilities of winning a lottery game
Single pool of balls
Suppose there are N unique balls (such as N = 49) to be drawn from. Suppose a subset of K balls (such as K = 6) is drawn as the winning set. The value of K also is the number of balls selected on a lottery ticket. Suppose B of the K balls from the lottery ticket are also in the winning set. Out of the possible ways (see binomial coefficient) to draw the winning set, there will ways to have B of them come from the K on the lottery ticket and ways to have K − B of them come from the set of N − K not mentioned on the lottery ticket. That is, when choosing K balls from a pool of N balls, the probability that there will be B matches between the lottery ticket and the winning set is given by
Single pool examples
The chances of getting B matches when drawing K balls from a pool of N balls.
B matches
K=6 balls from N=49
K=5 balls from N=69
0
1
2
3
4
5
6
Power balls from a separate pool of balls
Some lotteries also have one or more power balls drawn from a separate pool of balls. For example the first drawing may be for K1 = 5 balls out of N1 = 69 balls and then K2 = 1 power ball may be drawn from N2 = 26 balls. In this case, the probabilities of getting B1 matches in the first drawing and B2 matches in the power ball drawing is just the product of the individual probabilities:
and similarly for three or more pools of balls.
Separate pool examples
The chances of getting B1 matches when drawing K1 = 5 balls from a pool of N1 = 69 balls and getting B2 matches when drawing K2 = 1 power balls from a separate pool of N2 = 26 balls:
B1 + B2 matches
K1=5 balls from N1=69 and
K2=1 balls from N2=26
0 + 0
0 + 1
1 + 0
1 + 1
2 + 0
2 + 1
3 + 0
3 + 1
4 + 0
4 + 1
5 + 0
5 + 1
Bonus balls from the same pool of balls
Some lotteries have one or more bonus balls drawn from the original pool of balls after the first round of balls is drawn. In this scenario each lottery ticket indicates L balls out of N possibilities, but the drawing is for K1 balls plus K2 bonus balls. The probability that B1 balls from the first drawing match the lottery ticket and B2 balls from the bonus-ball drawing match the lottery ticket is given by
Example of balls and bonus balls from the same pool
When L = 6 of N = 49 numbers are on a lottery ticket but the winning set is K1 = 6 numbers plus K2 = 1 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
252/13983816
0.0000180208
55,491.33
5 + 1
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 that one will break even or make a profit.
If is the probability to win; the cost of a ticket; the cost for obtaining a ticket (e.g. including the logistics); one time costs for the operation (such as setting up and conducting the operation); then the jackpot should contain at least
to have a chance to at least break even.
The above theoretical "chance to break-even" point is slightly offset by the sum of the minor wins also included in all the lottery tickets:
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 , resulting in the relation
In probably the only known successful operations[2] the threshold to execute an operation was set at three times the cost of the tickets alone for unknown reasons
I.e.
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.
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), (i.e., 1 in 566.6), with the exact value of . 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 . 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 .
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 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 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 , the probability of obtaining the score of 2 and the bonus ball is , approximate decimal odds of 1 in 81.2.
The general formula for matching balls in a choose lottery with one bonus ball from the pool of balls is:
The general formula for matching balls in a choose lottery with zero bonus ball from the pool of balls is:
The general formula for matching balls in a choose lottery with one bonus ball from a separate pool of balls is:
The general formula for matching balls in a choose lottery with no bonus ball from a separate pool of balls is:
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.[3]
Coincidences involving lottery numbers
Coincidences in lottery drawings often capture our imagination and can make news headlines as they seemingly highlight patterns in what should be entirely random outcomes. For example, repeated numbers appearing across different draws may appear on the surface to be too implausible to be by pure chance. For instance, on September 6, 2009, the six numbers 4, 15, 23, 24, 35, and 42 were drawn from 49 in the Bulgarian national 6/49 lottery, and in the very next drawing on September 10th, the same six numbers were drawn again. Lottery mathematics can be used to analyze these extraordinary events.[1]
For example, winning in the example § Choosing 6 from 49 above is a Bernoulli-distributed random variable with a 1/13,983,816 chance of winning ("success") We write with and . The information content of winning is
shannons or bits of information. (See units of information for further explanation of terminology.) The information content of losing is
Oftentimes the random variable of interest in the lottery is a Bernoulli trial. In this case, the Bernoulli entropy function may be used. Using representing winning the 6-of-49 lottery, the Shannon entropy of 6-of-49 above is