Written by Ion Saliu on September 12, 2002.
There are many Internet searches on topics such as: odds, probability, calculate odds, software to calculate odds in gambling, lotto odds, lotto probability formulas, etc. Quite a few results point to my web site. The purpose of this page is to better organize the materials on probability and odds.
Probability starts with logic. There is a set of N elements. We can define a sub-set of n favorable elements, where n is less than or equal to N. Probability is defined as the rapport of the favorable cases over total cases, or calculated as:
There are the tricksters, you know them. ”What if I toss a coin 4 times? Is the probability to get heads equal to 2?” “Hell, no. The probability is still one in two; but the expected number of successes is 2.”
There are many instances when the formulation of probability is reversed and expressed as N-1 to n. This is known as the odds against: the odds against one point face in dice rolling are 5 to 1. The odds against are also expressed as N to n. Some also use the formula n in N to express the so-called favorable odds. I never use this expression, since probability is the correct expression.
It all comes down to calculating the two fundamental elements of the probability formula. I always start with calculating total elements in the set or total possible cases. Then I figure out number of favorable cases. 'Total possible cases' is self-evident sometimes; there are 2 and only 2 cases in coin tossing: heads and tails. The cube has exactly 6 faces. The favorable cases are also easy to figure out. There is one favorable case in coin tossing: either heads OR tails.
Calculating the two fundamental elements of the probability formula is very difficult sometimes. The calculations create a lot of controversy at times. The way we look at the probability or odds can get very tricky. Is it “the odds of EXACTLY n in N” or “the odds of AT LEAST n in N”? In general, there are formulas for calculating the total number of cases and number of possible cases. The binomial distribution probability formula is widely used in instances of “the odds of EXACTLY n in N”. for example, the probability of getting EXACTLY 5 heads in 10 coin tosses is 24.61% or '1 in 4.06'. How about the probability of getting AT LEAST 5 heads in 10 coin tosses? We can no longer use the binomial distribution probability formula in such an instance. Logically, the answer to that challenge is p = ½ = 0.5.
The single-zero roulette game has 37 possible cases (36 numbers, plus 0). The double-zero roulette game has 38 possible cases (36 numbers, plus 0, plus 00). The odds vary with the type of bet. For example, the even-money bet: black/red, odd/even, high/low. There are 18 red numbers and 18 black numbers. The odds are calculated as 18 / 37 = 48.65% or 18 / 38 = 47.37%. The odds are not to be confused with the house edge or house advantage.
At blackjack, the dealer has a 6% advantage because of the simultaneous bust situations. The player plays his/her hand first. As soon as the player busts, the player loses the bet immediately, before the dealer plays her hand. (Bad thing for a male player to prefer a female dealer!) This case of simultaneous bust occurs around 6 times in 100 hands. In other words, the player expects to win 47 hands, while the dealer will win 53 hands. This situation does not consider the basic strategy. The odds from the player's perspective are calculated as 47/100 (47%!) When the basic strategy kicks in, player's winning probability goes all the way to 49.5%, even higher!
There are 1000 total possible cases in pick-3 lottery, the straight bet being considered, from 0 (000, in fact) to 999. Only one 3-digit combination is drawn, therefore the winning probability is 1 / 1000 (0.001). The lottery commission says “the odds are 1 in 1000”, or "1000 to 1”.
There are 10000 total possible cases in pick-4 lottery, the straight bet being considered, from 0 (0000, in fact) to 9999. Only one 4-digit combination is drawn, therefore the winning probability is 1 / 10000 (0.0001). The lottery commission says “the odds are 1 in 10000”, or "10000 to 1”.
Calculating the odds at horseracing is also tricky. We know only statistically that the bettors pick the winner in around 45% of the races. We can also use mathematical formulae to calculate the probability or the odds for certain horseracing wagers. The probability of winning straight trifecta is '1 in N * (N-1) * N(-2)' , where N represents the number of horses in the race. For example: the odds of a straight trifecta in a 12-horse race are '1 in 12 x 11 x 10' = '1 in 1320'. The probability of boxed trifecta is 6 times better; the order of the top three finishers is not important. We can arrange 3 numbers (horses) in 3! = 1x2x3 = 6 ways regardless of order.
The lotto games are much more diverse. The diversity widens when the Powerball games are taken into account (two lotto games in one). The lottery commissions set the odds as exactly k of m. Exactly is the operative word here. I thought it was at least. I started a heated debate in 2001, in newsgroups, thinking that the lottery commissions were dead wrong in their calculations of odds. I admit it, I was wrong, but for a right reason. The odds calculated as at least k of m lead to very different values.
The most certain element in calculating the lotto odds is total possible cases. It is known as total number of combinations C(n, k). The combination formula is widely accepted, expert or not.
I wrote software to do all the calculations, accurately and freely: ODDS.EXE and OddsCalc.EXE.
OddsCalc.EXE calculates the odds of any lotto game, including Powerball, Mega Millions, Euromillions, Keno. If the game draws 6 winning numbers, the program calculates the odds from '0 of 6' to '6 of 6'. Of course, '6 of 6' represents the jackpot case.
OddsCalc.EXE calculates the lotto odds using the 'hypergeometric distribution probability'. The odds are calculated as 'k of m in n from N'. More clearly, let's suppose a lotto 6/49 game. The lottery draws 6 winning numbers. The player must play exactly 6 numbers per ticket. But the player can choose to play a pool of 10 favorite numbers. What is the probability to get '4 of 6 in 10 from 49'? The odds: '1 in 90'.
The page "Calculate Odds, Probability: Formulae, Software, Lottery, Lotto, Powerball, Mega Millions, Euromillions, Keno" gives more details on calculating the lotto odds for various prizes. The formula of hypergeometric probability distribution is the most comprehensive calculator of odds and probabilities in lottery and lotto, including Powerball, Mega Millions, Euromillions, Keno. This represents the most meaningful mathematics of calculating the odds in lottery and lotto games of any type.

Britannica: In a world of risky online searches, Britannica is the source for legitimate, trustworthy research.
Resources in Theory of Probability, Mathematics, Statistics, Combinatorics, Software.
See a comprehensive directory of the pages and materials on the subject of theory of probability, mathematics, statistics, combinatorics, plus software.
Barnes & Noble.com: Shop the Internet's Largest Bookstore for books, textbooks, and the like.