Probability Calculator

Calculate probability and combinations

Probability Calculator

Single Event Probability

P(Event) = Number of favorable outcomes / Total number of outcomes


Combinations Calculator

C(n, r) = n! / (r! × (n-r)!)


Permutations Calculator

P(n, r) = n! / (n-r)!

About Probability

  • Probability: A number between 0 and 1 representing the likelihood of an event (0 = impossible, 1 = certain)
  • Combinations: Number of ways to choose r items from n items where order doesn't matter
  • Permutations: Number of ways to arrange r items from n items where order matters

Understanding Probability

What is Probability?

Probability is the branch of mathematics that deals with measuring the likelihood of events occurring. It provides a numerical value between 0 and 1 (or equivalently, 0% to 100%) that describes how likely an event is to happen. A probability of 0 means the event is impossible, while a probability of 1 means it is certain.

Key terminology includes the sample space (the set of all possible outcomes), an event (a specific outcome or set of outcomes you are interested in), and a trial (a single performance of an experiment). For example, when rolling a six-sided die, the sample space is {1, 2, 3, 4, 5, 6}, and the event "rolling a 3" has a probability of 1/6.

Types of Probability

  • Theoretical (Classical) Probability: Based on reasoning and known possible outcomes. Assumes all outcomes are equally likely. Example: The probability of drawing an ace from a standard deck is 4/52 = 1/13 because there are 4 aces among 52 cards.
  • Experimental (Empirical) Probability: Based on actual observations or experiments. Calculated by dividing the number of times an event occurs by the total number of trials. Example: If you flip a coin 1,000 times and get heads 513 times, the experimental probability of heads is 513/1000 = 0.513.
  • Subjective Probability: Based on personal judgment, experience, or intuition rather than mathematical calculation. Example: A doctor estimating a 70% chance of recovery based on clinical experience. Commonly used in business forecasting and risk assessment.

Probability Rules

Addition Rule (OR)

Used when calculating the probability of either event A or event B occurring.

Mutually exclusive events: P(A or B) = P(A) + P(B)

Non-mutually exclusive events: P(A or B) = P(A) + P(B) - P(A and B)

Example: Probability of drawing a King or a Queen from a deck = 4/52 + 4/52 = 8/52 = 2/13 (mutually exclusive, since no card is both a King and a Queen).

Multiplication Rule (AND)

Used when calculating the probability of both event A and event B occurring.

Independent events: P(A and B) = P(A) x P(B)

Dependent events: P(A and B) = P(A) x P(B|A)

Example: Probability of flipping heads twice in a row = 1/2 x 1/2 = 1/4 (independent events).

Complement Rule (NOT)

The probability that an event does not occur equals 1 minus the probability that it does occur.

Formula: P(not A) = 1 - P(A)

Example: If the probability of rain is 0.3, then the probability of no rain is 1 - 0.3 = 0.7 (70%).

Combinations vs Permutations

The key difference between combinations and permutations is whether order matters:

Feature Combinations C(n,r) Permutations P(n,r)
Order Does NOT matter DOES matter
Formula n! / (r! x (n-r)!) n! / (n-r)!
Example Choosing 3 cards from a deck (hand of cards) Arranging 3 runners in 1st, 2nd, 3rd place
C(5,3) vs P(5,3) 10 combinations 60 permutations
Real-world use Lottery numbers, committee selection, poker hands PIN codes, race results, seating arrangements

Lottery example: In a 6/49 lottery, you choose 6 numbers from 49 and order does not matter. The number of combinations is C(49,6) = 13,983,816. Your chance of winning the jackpot with a single ticket is 1 in 13,983,816 (approximately 0.0000072%).

Common Probability Examples

Event Probability Odds (1 in X)
Coin flip (heads) 50% 1 in 2
Rolling a specific number on a die 16.67% 1 in 6
Drawing an Ace from a deck 7.69% 1 in 13
Drawing a Heart from a deck 25% 1 in 4
Rolling doubles with two dice 16.67% 1 in 6
Royal Flush in poker (5 cards) 0.000154% 1 in 649,740
Lottery jackpot (6/49) 0.0000072% 1 in 13,983,816

Probability in Real Life

Probability is used extensively across many fields:

  • Weather Forecasting: When a forecast says "40% chance of rain," it means that in similar atmospheric conditions, rain occurred 40% of the time. This is based on historical data and computational models analyzing temperature, humidity, and pressure patterns.
  • Insurance: Insurance companies use actuarial tables built on probability to calculate premiums. They assess the likelihood of events such as car accidents, house fires, or health issues based on demographic data, setting premiums that cover expected payouts while remaining profitable.
  • Medical Testing: Probability helps evaluate diagnostic tests through concepts like sensitivity (probability of a positive test when disease is present) and specificity (probability of a negative test when disease is absent). Understanding false positive and false negative rates is critical for proper medical decision-making.
  • Gambling and Games: Every casino game is designed around probability. The "house edge" represents the mathematical advantage the casino has. For example, in European roulette, the house edge is 2.7% because there are 37 slots but payouts are calculated as if there were 36.

Frequently Asked Questions

Q: What is the difference between odds and probability?

A: Probability expresses the likelihood of an event as a fraction of all possible outcomes (e.g., 1/6 for rolling a 3 on a die). Odds compare the number of favorable outcomes to unfavorable outcomes (e.g., 1:5 for rolling a 3, meaning 1 way to succeed vs 5 ways to fail). To convert: if odds are a:b, then probability = a/(a+b).

Q: What is the Gambler's Fallacy?

A: The Gambler's Fallacy is the mistaken belief that past random events affect future ones. For example, if a fair coin lands heads 10 times in a row, many people believe tails is "due." In reality, each flip is independent and the probability of heads remains exactly 50% regardless of previous results. The coin has no memory.

Q: Can probability be greater than 1 or less than 0?

A: No. By definition, probability must always be between 0 and 1 (inclusive). A probability of 0 means the event is impossible, and a probability of 1 means it is certain. If your calculation yields a value outside this range, there is an error in the setup. The sum of probabilities of all possible outcomes in a sample space must always equal exactly 1.

Q: When should I use combinations vs permutations?

A: Ask yourself: "Does the order of selection matter?" If you are forming a committee of 3 people from 10 candidates, use combinations -- the group {Alice, Bob, Carol} is the same regardless of selection order. If you are assigning President, Vice President, and Secretary from 10 candidates, use permutations -- Alice as President and Bob as VP is different from Bob as President and Alice as VP.