Probability Calculator
Enter the number of successful outcomes versus the total pool space to calculate probability and exact statistical odds.
Probability of an Event
How many times the event can occur.
The size of the entire pool of possibilities.
Probability of Event P(A)
33.33%
0.333333
Inverse Probability P(A')
66.67%
Chance of NOT occurring
Odds For Event
2 : 4
Successes vs Failures
Probability Calculator: Classical Axioms, Bayes' Theorem, Permutations & Combinations
Probability is the mathematical quantification of uncertainty, randomness, and likelihood. Formalized by Kolmogorov's axioms in 1933, every probabilistic model maps a sample space (Ω) of possible outcomes onto a real number interval between 0 (strictly impossible) and 1 (mathematically certain). In machine learning, quantitative finance, clinical diagnostic screening, and statistical thermodynamics, probability provides the mathematical framework for decision-making under incomplete information. The Calculay Probability Calculator evaluates single-event, joint, conditional, and combinatoric odds across discrete sample spaces.
The Core Formulations: Joint, Union & Bayes' Rule
Probability that Event A OR Event B occurs:
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)For mutually exclusive events, P(A ∩ B) = 0.
Probability that Event A AND Event B occur:
Independent: P(A ∩ B) = P(A) × P(B)Dependent: P(A ∩ B) = P(A) × P(B | A)P(A | B) = [ P(B | A) × P(A) ] ÷ P(B)Where P(A|B) is the posterior probability, P(B|A) is the likelihood, P(A) is the prior probability, and P(B) is the marginal evidence.
Combinatorics: Permutations vs. Combinations
| Counting Protocol | Formula | Does Order Matter? | Real-World Application |
|---|---|---|---|
| Permutation (nPr) | n! ÷ ( n - r )! | YES (Order Matters) | PIN codes, sprint race podium finishes (1st, 2nd, 3rd) |
| Combination (nCr) | n! ÷ [ r!( n - r )! ] | NO (Order Irrelevant) | Lottery numbers, poker hands, committee member selection |
Step-by-Step Worked Example: The Medical Screening Paradox
Scenario: A rare medical disease has a population prevalence of 1% (P(D) = 0.01). A diagnostic blood test has a 95% sensitivity (P(T^+|D) = 0.95) and a 5% false positive rate (P(T^+|≠g D) = 0.05). If a random patient tests positive, what is the actual probability they have the disease?
- True Positive Rate: P(T^+ ∩ D) = P(T^+|D) × P(D) = 0.95 × 0.01 = 0.0095
- False Positive Rate: P(T^+ ∩ ≠g D) = P(T^+|≠g D) × P(≠g D) = 0.05 × 0.99 = 0.0495
- Total Probability of Positive Test P(T^+): 0.0095 + 0.0495 = 0.0590 (5.9%)
- Bayesian Posterior P(D|T^+): 0.0095 ÷ 0.0590 = 0.1610 (16.1%)
Despite a 95% accurate test, there is only a 16.1% chance the patient actually has the disease, demonstrating the overwhelming power of low base-rate priors.
Cognitive Fallacies: Gambler's Fallacy vs. Law of Large Numbers
A widespread human cognitive error is the Gambler's Fallacy—the belief that if a fair coin lands on Heads five times consecutively, Tails is “due” to happen next. In mathematically independent trials, coin flips have no memory; the probability of the 6th flip landing on Heads remains strictly 0.50 (50%).
In contrast, the Law of Large Numbers (LLN) proves that as the total number of independent trials (n) approaches infinity, the observed empirical sample average will converge with mathematical certainty to the theoretical expected value (E[X]).