Science Software: Statistics, Probability, Odds, Combinatorial Mathematics, Algorithms.

How to Calculate Probability, Odds with Formulae, Algorithms, Software for
Lotto, Lottery, Gambling, Horse Racing, Powerball, Mega Millions, Euromillions

By Ion Saliu,
Founder of Probability Theory of Life

Calculate odds probability lotto lottery roulette formulae, algorithm.

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 n over total cases N, or calculated by the formula:

p = -----

A simple example of sets and favorable elements: there are 10 balls in a jar; 5 of the 10 balls are red; what is the probability to extract one red ball from the jar? There 5 favorable cases in a total of 10 elements; the probability is 5/10 = 1/2 = 0.5.

  • The easiest case is coin tossing. What is the probability of heads in one coin toss: 1 / 2 = 0.5.

  • The probability can be also understood as expected number of successes in one trial. That formulation makes it easier to understand why probability can never be higher than 1: No event can have more than one success in one try... elementary!

    There are the tricksters, you know them. "What if I toss a coin 4 times? Is the probability to get heads equal to 2?" "NOT! The probability is still one in two; but the expected number of successes is 2." But that number of successes is illusory. Lately, the Fundamental Formula of Gambling (FFG) and Ion Saliu Paradox of N Trials undeniably prove differently. The degree of certainty (DC) is 95% that heads will appear at least once within 4 trials (coin tosses). Only probability or odds is no longer sufficient — the degree of certainty is a must-have parameter.

    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: e.g. 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 = 1/2 = 0.5.

    Pay Membership, Download Software: Lottery, Gambling, Roulette, Sports, Powerball, Mega Millions.

    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 around 8% 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 in horse racing 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 regarding the probabilities or the favorable odds. 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.

    C(n, k) = --------------
                      k! (n – k)!

    C(n, k) = -------------------------------------

    n! represents the factorial and is calculated as 1*2*3*4*...*n. For example, the lotto 6/49 game has a total of [49 * 48 * 47 * 46 * 45 * 44] / [1 * 2 * 3 * 4 * 5 * 6] = 13,983,816 combinations.

    Axiomatic one, I wrote software to do all the calculations, accurately and freely: ODDS (super seeded) by OddsCalc.
    Odds Calc 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 lotto jackpot case.
    Odds Calc 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.

    Ion Saliu's Theory of Probability Book founded on valuable mathematical discoveries applied to odds calculations. Read Ion Saliu's first book in print: Probability Theory, Live!
    ~ Founded on valuable mathematical discoveries with a wide range of scientific applications, including the organic connection between probability theory and calculation of odds, probability — everything lottery considered.

    How to calculate probability, odds for lotto, lottery, roulette with Super Formula.

    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.

    Calculate probability, odds with accurate software for all formulas.

    Home | Search | New Writings | Software | Odds, Generator | Contents | Forums | Sitemap

    The software and formulae to calculate the probability or odds for lottery, lotto, Powerball, Mega Millions, gambling.