Probability Calculator | Events
Calculate single event, multiple event, conditional, and complementary probabilities.
All calculations run live in your browser using standard probability axioms.
What Is the Probability Calculator | Events?
Probability quantifies uncertainty on a scale from 0 (impossible) to 1 (certain). The Kolmogorov axioms, non-negativity, normalization, and additivity, underpin all of modern probability theory. This calculator covers the five most common probability calculations encountered in statistics courses, everyday decision-making, and science.
- ›P(A), single event, the ratio of favorable outcomes to the total number of equally likely outcomes. Rolling a 3 on a fair die: P = 1/6.
- ›Complement P(A′), the probability that an event does NOT occur. P(A′) = 1 − P(A). The probability of NOT rolling a 3 is 5/6.
- ›AND / Intersection, for independent events A and B, P(A ∩ B) = P(A) × P(B). Flipping heads twice: (0.5)(0.5) = 0.25.
- ›OR / Union, the addition rule accounts for overlap: P(A ∪ B) = P(A) + P(B) − P(A ∩ B). If A and B are mutually exclusive, P(A ∩ B) = 0.
- ›Conditional P(A|B), probability of A given that B has already occurred. P(A|B) = P(A ∩ B)/P(B). Essential for Bayes' theorem and medical diagnostics.
Formula
Core Probability Formulas
P(A) = favorable outcomes / total outcomes
P(A′) = 1 − P(A) [complement rule]
P(A ∩ B) = P(A) × P(B) [independent events]
P(A ∪ B) = P(A) + P(B) − P(A ∩ B) [addition rule]
P(A|B) = P(A ∩ B) / P(B) [conditional probability]
| Notation | Meaning | Range |
|---|---|---|
| P(A) | Probability event A occurs | [0, 1] |
| P(A′) | Probability A does NOT occur | [0, 1] |
| P(A ∩ B) | Probability both A AND B occur | [0, min(P(A),P(B))] |
| P(A ∪ B) | Probability A OR B (or both) occur | [max(P(A),P(B)), 1] |
| P(A|B) | Probability of A given B has occurred | [0, 1] |
How to Use
- 1Select the calculation mode using the tabs: P(A), P(A′), P(A∩B), P(A∪B), or P(A|B).
- 2P(A): enter favorable outcomes and total outcomes. Both must be non-negative; total must be > 0.
- 3P(A′): enter the same favorable/total fields, the complement (1 − P(A)) is returned.
- 4P(A∩B): enter P(A) and P(B) as decimals (0 to 1), assumes independent events.
- 5P(A∪B): enter P(A), P(B), and P(A∩B), the general addition rule handles overlapping events.
- 6P(A|B): enter P(A∩B) and P(B) as decimals, returns the conditional probability P(A|B).
- 7Results show probability, percentage, odds ratio, complement, and a visual probability bar.
Example Calculation
Card draw from a standard 52-card deck, probability of drawing a heart OR a face card:
Medical test, conditional probability:
Probability Interpretation Guide
- ›P = 0.001 → expected once in 1,000 trials
- ›P = 0.05 → 5%, or "1 in 20" chance
- ›P = 0.5 → even odds (fair coin flip)
- ›P = 0.95 → 19:1 in favor
- ›P = 0.999 → expected to fail once in 1,000
Understanding Probability | Events
Probability in Everyday Life
Probability quantifies uncertainty, and uncertainty pervades every domain: medical diagnosis, financial risk, quality control, sports analytics, insurance pricing, and scientific inference. Understanding the five probability formulas in this calculator covers the vast majority of problems encountered in statistics courses and professional practice.
The Five Modes at a Glance
| Mode | Formula | Use when |
|---|---|---|
| P(A) | fav / total | Single event with known outcomes |
| P(A′) | 1 − P(A) | Complement / "does not occur" |
| P(A∩B) | P(A) × P(B) | Both events, independently |
| P(A∪B) | P(A)+P(B)−P(A∩B) | Either event (possibly overlapping) |
| P(A|B) | P(A∩B) / P(B) | A given B is already known |
Frequently Asked Questions
What is the difference between mutually exclusive and independent events?
These two concepts are often confused but are fundamentally different:
- ›Mutually exclusive (disjoint), A and B cannot both happen. P(A ∩ B) = 0. The addition rule simplifies to P(A ∪ B) = P(A) + P(B). Example: a single die roll is ≤3 OR ≥4, these outcomes cannot overlap.
- ›Independent, knowing A occurred gives no information about B. P(A|B) = P(A), equivalently P(A ∩ B) = P(A) × P(B). Example: flipping a coin does not affect the next flip.
- ›The key difference, mutually exclusive events are always dependent (if A happened, B definitely didn't). Independent events can (and usually do) overlap.
- ›Both at once, two events can be independent but not mutually exclusive (most common), mutually exclusive but not independent (rare), or neither (general case).
What is conditional probability and how is it used?
Conditional probability is one of the most powerful and widely used concepts in statistics:
- ›Definition, P(A|B) = P(A ∩ B) / P(B). The probability space is restricted to B having occurred, so we scale by P(B) to renormalize.
- ›Medical diagnostics, sensitivity = P(positive test | disease). Specificity = P(negative test | no disease). PPV = P(disease | positive test), requires Bayes' theorem.
- ›Bayes' theorem, P(A|B) = P(B|A) × P(A) / P(B). Lets you update a prior belief (P(A)) given new evidence (P(B|A)) to form a posterior (P(A|B)).
- ›Spam filters, P(spam | word "prize") is estimated from training data. The Naive Bayes classifier multiplies conditional probabilities across all words to classify messages.
What is the complement rule?
The complement rule is one of the most practically useful shortcuts in probability:
- ›Formula, P(A′) = 1 − P(A). Follows from the axiom that the total probability of all outcomes is 1.
- ›"At least one" problems, P(at least one success) = 1 − P(zero successes). Often the right side is a simple product of failure probabilities.
- ›Birthday problem, P(at least two people share a birthday in a room of 23) = 1 − P(all birthdays distinct) = 1 − (365×364×⋯×343)/365²³ ≈ 50.7%. Surprises almost everyone.
- ›Reliability engineering, P(system fails) = 1 − P(system works). P(system works) = product of component reliabilities for series systems.
What are odds and how do they relate to probability?
Odds and probability are two different ways to express the same underlying chance:
- ›Odds in favor, favorable : unfavorable. P = 0.25 → odds 1:3 (win once for every three losses).
- ›Odds against, unfavorable : favorable. P = 0.25 → odds against 3:1.
- ›Converting probability to odds, odds in favor = P/(1−P). P = 0.8 → odds = 4:1.
- ›Converting odds to probability, P = a/(a+b) where odds are a:b. Odds 5:2 → P = 5/7 ≈ 0.714.
- ›Sports betting, decimal odds of 2.50 mean P ≈ 1/2.50 = 40%. The bookmaker's overround (all implied probabilities sum > 100%) is the house edge.
What is the addition rule for probability?
The addition rule handles the "or" case in probability:
- ›General formula, P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Without subtracting the intersection, overlapping outcomes would be counted twice.
- ›Mutually exclusive case, if A ∩ B = ∅, then P(A ∪ B) = P(A) + P(B). Coin shows heads or tails: P(H ∪ T) = 0.5 + 0.5 = 1.
- ›Three events, P(A∪B∪C) = P(A)+P(B)+P(C) − P(A∩B) − P(A∩C) − P(B∩C) + P(A∩B∩C). The pattern is inclusion-exclusion.
- ›Venn diagram, think of A and B as overlapping circles. Addition counts the union; subtracting the intersection removes the double-counted middle region.
What is Bayes' theorem and when do I need it?
Bayes' theorem is arguably the most important formula in applied probability:
- ›Formula, P(A|B) = P(B|A) × P(A) / P(B). P(A) is the prior; P(A|B) is the posterior (updated belief after evidence B).
- ›Medical testing, P(disease|+) = P(+|disease) × P(disease) / P(+). Even with a 99% accurate test, if disease prevalence is 0.1%, most positives are false positives.
- ›Spam filtering, P(spam|words) = ∏ P(word|spam) × P(spam) / P(words). Naive Bayes assumes independence of words given class.
- ›Law of total probability, P(B) = P(B|A)P(A) + P(B|A′)P(A′). Often needed to compute the denominator in Bayes' theorem.
What does a probability of 0.05 mean in practice?
Interpreting probabilities in practical contexts requires care:
- ›Frequentist interpretation, P = 0.05 means in a long run of identical experiments, the event occurs 5% of the time. In 1,000 coin tosses, about 50 would land as "heads twice in a row".
- ›p-value in statistics, a p-value ≤ 0.05 means the observed data would occur by chance less than 5% of the time under the null hypothesis. It does NOT mean there is a 95% chance the hypothesis is false.
- ›Rare events, a 1% probability event is expected once in 100 trials. Over 100 trials, P(never occurring) = (0.99)¹⁰⁰ ≈ 36.6%, so seeing it not occur is still reasonably likely.
- ›Risk communication, "1 in 1,000 chance of side effects" = P = 0.001. In a drug prescribed to 10 million people, about 10,000 would experience side effects even with this low probability.