MathsStatistics & Probability

Probability
calculator.

Find the chance of at least one success, of two events together, or of an outcome.

How it's worked out

Every result here comes from a handful of rules. Each one has a condition, and most wrong answers come from using a rule when its condition does not hold.

P(at least one)\displaystyle P(\text{at least one})=1−(1−p)n\displaystyle {}= 1 - (1 - p)^n

For repeated tries, pp is the chance of success on one try and nn is the number of tries. Working out "at least one" directly would mean adding up many cases, so you take the one case you can count easily, no successes at all, and subtract it from 1. This needs the tries to be independent: each try has the same chance, whatever happened before.

P(A or B)\displaystyle P(A \text{ or } B)=P(A)+P(B)−P(A and B)\displaystyle {}= P(A) + P(B) - P(A \text{ and } B)
P(A and B)\displaystyle P(A \text{ and } B)=P(A|B)P(B)\displaystyle {}= P(A \mid B)\,P(B)

For two events, the addition rule takes away the overlap so it is not counted twice. The multiplication rule says how big the overlap is. When AA and BB are independent, P(A|B)P(A \mid B) is just P(A)P(A), and you multiply the two chances.

P(A|B)\displaystyle P(A \mid B)=P(A and B)P(B)\displaystyle {}= \frac{P(A \text{ and } B)}{P(B)}

When outcomes are equally likely, such as the faces of fair dice, the chance of an event is the number of favorable outcomes over the total. The tool reduces that fraction and gives the odds too.

Worked examples

A rare drop in a game

An item drops 5% of the time, and Maya plays 20 rounds. The chance of no drop is 0.95²⁰ = 0.3585, so the chance of at least one is 0.6415, about 64%. It takes 14 rounds to reach an even chance and 59 rounds to reach 95%. The chance of exactly one drop in her 20 rounds is 0.3774.

Open this example in the tool

Two job applications

Sam rates an offer from the first company at 30% and from the second at 20%. The two hiring teams do not talk to each other, so the events are independent. Both offers come with chance 0.3 × 0.2 = 0.06. At least one offer comes with chance 0.3 + 0.2 − 0.06 = 0.44, and no offer at all with chance 0.56.

Open this example in the tool

A late bus on a rainy day

Your bus is late on 30% of days, it rains on 60% of days, and on rainy days the bus is late 40% of the time. Late and rainy together is 0.4 × 0.6 = 0.24. Now turn it around: you are standing at a stop and the bus is late. The chance it is raining is 0.24 ÷ 0.3 = 0.8. That is much higher than 0.6, because late buses happen mostly on rainy days.

Open this example in the tool

Rolling a total of 7

Two dice have 36 equally likely results, and 6 of them add up to 7. The chance is 6 out of 36, which reduces to 1 out of 6, or 0.1667. The odds are 1 : 5 in favor, and 7 is the most likely total of all.

Open this example in the tool

Reading your result

A probability of 0.6415 means that if many people each played 20 rounds, about 64% of them would get the drop. It does not promise anything for one person. About a third of players would still have nothing after 20 rounds.

The tool also gives "about 1 in N", which many people find easier to picture, and a word from the likelihood scale of the IPCC guidance note on uncertainty (Mastrandrea and others, 2010). On that scale, 66% to 100% is "likely", 33% to 66% is "about as likely as not" and 0% to 10% is "very unlikely". The bands overlap, so the tool picks the narrowest one that fits.

The number of tries needed grows fast as the chance per try shrinks. For small chances, about 0.7 divided by pp tries gives an even chance and about 3 divided by pp gives 95%:

Chance per tryTries for 50%Tries for 95%
50%15
10%729
5%1459
1%69299

A quality check shows the same thing. With a 1% defect rate, a sample of 50 parts holds at least one defect only 39% of the time, so a clean sample of 50 is weak evidence that a batch is clean.

Common mistakes

  • Adding chances of repeated tries. Three tries at 20% do not give 60%. The chance of at least one success is 0.488, because adding counts the times you succeed twice more than once.
  • Multiplying events that are not independent. Rain and a late bus go together, so 0.3 × 0.6 understates how often both happen. Use the known overlap or the chance of one given the other.
  • Mixing up P(A | B) and P(B | A). The chance of a late bus on a rainy day (0.4) is not the chance of rain when the bus is late (0.8).
  • Thinking a streak is due to end. Independent tries have no memory. After 19 rounds without the drop, round 20 is still a 5% chance.
  • Counting outcomes that are not equally likely. A total of 7 is 6 of 36 dice results, but the totals 2 to 12 are not equally likely, so "1 of 11 totals" is wrong.

Questions people ask

Independent events do not affect each other, so P(A and B) = P(A) × P(B). Mutually exclusive events cannot happen together, so P(A and B) = 0. Two events with nonzero probabilities cannot be both, because if they are exclusive then knowing one occurred tells you the other did not.

Sources

  • Ross, S. M., A First Course in Probability, 10th ed., Pearson, 2019, chapters 2 and 3 (axioms, conditional probability, independence)
  • Grinstead, C. M. and Snell, J. L., Introduction to Probability, 2nd ed., American Mathematical Society, 1997, chapter 4 (conditional probability)