Calculate probabilities using basic rules, conditional probability, and Bayes' theorem
Select calculation type and enter values
Probability measures the likelihood of an event occurring, expressed as a value between 0 (impossible) and 1 (certain), or 0% to 100%.
Example: Rolling a die, P(rolling a 3) = 1/6 ≈ 0.167 or 16.7%
The probability an event doesn't occur is 1 minus the probability it does occur.
For mutually exclusive events: P(A OR B) = P(A) + P(B)
Example: Drawing a heart OR a king from a deck
For independent events: P(A AND B) = P(A) × P(B)
Example: Flipping heads AND rolling a 6
The probability of event A given that event B has occurred:
Example: Probability of rain given cloudy sky
Update probabilities based on new evidence:
Where:
Full Bayes' Formula:
| Concept | Definition |
|---|---|
| Independent Events | One event doesn't affect the other: P(A AND B) = P(A) × P(B) |
| Mutually Exclusive | Events cannot both occur: P(A AND B) = 0 |
| Exhaustive Events | Cover all possibilities: P(A₁) + P(A₂) + ... = 1 |
| Joint Probability | Both events occur: P(A AND B) |
Problem: Disease affects 1% of population. Test is 90% accurate (sensitivity). False positive rate is 5%.
Question: If you test positive, what's the probability you have the disease?
Solution: P(Disease|Positive) = (0.90 × 0.01) / [(0.90 × 0.01) + (0.05 × 0.99)] ≈ 0.154 or 15.4%
Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.
Independent events don’t affect each other (P(A∩B)=P(A)P(B)); mutually exclusive events cannot occur together (P(A∩B)=0). They are different concepts.
Conditional: P(A|B)=P(A∩B)/P(B). Bayes reverses conditioning: P(A|B)=P(B|A)P(A)/P(B), useful for updating beliefs given evidence.
Permutations count ordered arrangements; combinations count unordered selections. Use permutations when order matters, combinations when it does not.
Confusing OR with exclusive OR, assuming independence without justification, and double‑counting overlapping outcomes in unions.