Probability Calculator
Select a probability type and enter probabilities as decimals (0–1).
What Is Probability?
Probability measures how likely an event is to occur, expressed as a number between 0 (impossible) and 1 (certain). A probability of 0.5 means the event is equally likely to happen or not happen.
Probabilities can also be expressed as percentages: multiply by 100. For example, P(A) = 0.25 means a 25% chance.
How It Works — Formulas
① Complement: P(not A)
The probability that event A does not happen.
P(not A) = 1 − P(A)
Example: if P(rain) = 0.3, then P(no rain) = 1 − 0.3 = 0.7
② Intersection: P(A and B) — independent events
Both A and B occur. Works when the events do not influence each other.
P(A ∩ B) = P(A) × P(B)
Example: P(heads) = 0.5, P(six) = 1/6 ⇒ P(heads and six) = 0.5 × 0.167 ≈ 0.083
③ Union: P(A or B) — mutually exclusive
Either A or B occurs; they cannot both happen at the same time.
P(A ∪ B) = P(A) + P(B)
Example: rolling a 1 or a 2 on a die: 1/6 + 1/6 = 2/6 ≈ 0.333
④ Union: P(A or B) — not mutually exclusive
Either A or B occurs; the events can overlap, so we subtract the overlap.
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
For independent events P(A ∩ B) = P(A) × P(B).
Example: P(A)=0.4, P(B)=0.5 ⇒ P(A or B) = 0.4 + 0.5 − 0.2 = 0.7
⑤ Conditional: P(A|B)
The probability that A occurs given that B has already occurred.
P(A|B) = P(A ∩ B) / P(B)
Example: P(A ∩ B)=0.12, P(B)=0.4 ⇒ P(A|B) = 0.12 / 0.4 = 0.3
Key Concepts
Sample Space & Events
The sample space S is the set of all possible outcomes. An event A is a subset of S. P(S) = 1.
Law of Total Probability
If B1, B2, … partition S, then P(A) = ∑ P(A|Bi) × P(Bi).
Bayes' Theorem
P(A|B) = P(B|A) × P(A) / P(B) — updates the probability of A given new evidence B.
References
- DeGroot, M.H. & Schervish, M.J. (2012). Probability and Statistics (4th ed.). Pearson.
- Walpole, R.E., Myers, R.H. & Myers, S.L. (2016). Probability & Statistics for Engineers and Scientists (9th ed.). Pearson.
- Ross, S.M. (2014). Introduction to Probability Models (11th ed.). Academic Press.
