What Is Probability? Mathematical Definition & Kolmogorov Axioms
Probability measures how likely an event is to happen on a bounded numerical scale from 0 (strict impossibility) to 1 (absolute certainty), or equivalently from 0% to 100%. When a finite sample space contains n equally likely, mutually exclusive elementary outcomes and an event E occurs in k of those outcomes, Laplace's classical ratio defines the event probability cleanly:
Complement Probability: P(E') = 1 − P(E) = (n − k) ÷ n
Odds in Favor vs. Against: Odds For = k : (n − k) | Odds Against = (n − k) : k
At Least One Hit (m tries): P(>=1 hit in m) = 1 − (1 − P(E))^m
Modern probability theory rests on three axioms established by Andrey Kolmogorov in 1933: every event has non-negative probability (P(E) >= 0), the entire sample space carries probability P(S) = 1, and for any disjoint (mutually exclusive) events, the probability that one or another occurs equals the exact sum of their individual probabilities. From those three rules arise complements, conditional updating, joint distributions, and discrete trial models used across statistics, finance, reliability engineering, machine learning, and medicine.
Probability vs. Odds: Why 1 : 12 Odds Differ From 1/13 Probability
One of the most frequent errors in betting, risk communication, and medical statistics is treating odds and probability as interchangeable. Whereas probability divides favorable outcomes by all possible outcomes (k / n), odds in favor compare favorable outcomes strictly against unfavorable outcomes (k : (n − k)).
In a fair 52-card deck, there are 4 Aces and 48 non-Ace cards. Therefore, the probability of drawing an Ace is 4 / 52 = 1 / 13 = 7.6923%, while the odds in favor are 4 : 48 = 1 : 12 (one winning outcome for every twelve losing outcomes), and the odds against are 12 : 1. You can convert back and forth instantaneously with two identities:
Odds (a : b) Back to Probability: P(E) = a ÷ (a + b)
| Common Ratio | Probability P(E) |
Percent | Odds in Favor | Complement P(E') |
|---|---|---|---|---|
| 1 / 6 (Single Die Face) | 0.1667 | 16.67% | 1 : 5 | 83.33% |
| 1 / 4 (Card Suit) | 0.2500 | 25.00% | 1 : 3 | 75.00% |
| 1 / 2 (Fair Coin Heads) | 0.5000 | 50.00% | 1 : 1 (Even) | 50.00% |
| 4 / 52 (Deck Ace) | 0.0769 | 7.69% | 1 : 12 | 92.31% |
Two-Event Rules: Intersection (AND), Union (OR), XOR & Neither
When evaluating two separate independent events A and B, Mode 2 of our Probability Calculator partitions the sample space into four mutually exclusive regions summing cleanly to 1.00 (100%): Both occur (A ∩ B), Only A occurs (A B), Only B occurs (B A), and Neither occurs (A' ∩ B').
Either Occurs (Union / OR): P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Exactly One (Exclusive OR / XOR): P(A ⊕ B) = P(A) + P(B) − 2×P(A ∩ B)
Neither Occurs (De Morgan's Law): P(A' ∩ B') = (1 − P(A)) × (1 − P(B)) = 1 − P(A ∪ B)
Why must you subtract P(A ∩ B) when calculating P(A ∪ B)? Imagine two sensors detecting anomalies with P(A) = 0.50 and P(B) = 0.30 independently. Simply adding 0.50 + 0.30 = 0.80 double-counts the overlapping outcomes where both sensors fire simultaneously (0.50 × 0.30 = 0.15). Subtracting that overlap once recovers the exact union probability: 0.50 + 0.30 − 0.15 = 0.65 (65%). Only when two events are mutually exclusive (cannot happen together, meaning P(A ∩ B) = 0) does P(A ∪ B) reduce to direct addition P(A) + P(B).
Bayes' Theorem & Conditional Probability Updating
Real-world decisions rarely happen in isolation: new test results, lab evidence, or user actions force us to update an initial prior probability P(A) into a revised posterior probability P(A | B). Using Mode 3 (Bayes Theorem P(A | B)), you supply three standard quantities:
- Prior Probability
P(A): How common condition or hypothesisAis across the baseline population before observing evidenceB. - Sensitivity / True Positive Rate
P(B | A): Probability that evidenceBtriggers positive when hypothesisAis genuinely true. - False Positive Rate
P(B | A'): Probability that evidenceBtriggers positive even when hypothesisAis false (1 − Specificity).
Law of Total Probability P(B): P(B) = P(B | A)×P(A) + P(B | A')×(1 − P(A))
Positive Likelihood Ratio: LR+ = Sensitivity ÷ False Positive Rate = P(B | A) ÷ P(B | A')
Medical screening illustrates why human intuition frequently misfires without Bayes' rule: even with a highly accurate 95% sensitive test and a modest 5% false-positive rate, screening a rare condition present in only 1% of people produces far more false alarms among the 99% healthy majority than true positives among the 1% affected group.
Exact Binomial Distribution: Successes Across Fixed Independent Trials
Whenever you run a fixed integer number of n identical independent Yes/No trials, each succeeding with constant probability p, the discrete count of total successes X follows the Binomial Distribution B(n, p). Mode 4 computes the exact probability mass function alongside both lower and upper cumulative tails using overflow-safe log-factorials for any n up to 1,000:
Binomial Coefficient: C(n, k) = n! ÷ [ k! × (n − k)! ]
Cumulative At Most k: P(X <= k) = Sum for i = 0..k of P(X = i)
Mean & Std. Deviation: μ = n × p | σ = √[ n × p × (1 − p) ]
2 Worked Examples
Example 1: Single Event Odds, Repeat Draws & Binomial Quality Check
Part A (Card Deck & Repeat Draws): Suppose you draw one card uniformly at random from a standard 52-card deck, note it, and shuffle it back in before drawing again. What is the probability of drawing an Ace on a single try, the odds in favor, and the chance of drawing at least one Ace across 10 independent draws?
- Single-draw probability: There are
k = 4Aces amongn = 52cards, givingP(Ace) = 4 ÷ 52 = 1/13 = 0.076923(7.6923%). - Complement & Odds: Probability of missing an Ace is
P(Non-Ace) = 48 ÷ 52 = 12/13(92.3077%). Simplifying4 : 48by GCD4yields Odds in Favor =1 : 12and Odds Against =12 : 1. - 10 independent draws: Instead of summing 1 through 10 hit combinations directly, use the complement rule: probability of missing all 10 times is
(12/13)^10 = 0.449137. Subtracting from1yieldsP(>=1 Ace) = 1 − 0.449137 = 0.550863(55.09%).
Part B (Exact Binomial Test): Toss a fair coin n = 10 times (p = 0.50) and find the chance of landing exactly k = 3 Heads: C(10, 3) = 120, so P(X = 3) = 120 × 0.5^3 × 0.5^7 = 120 ÷ 1024 = 0.117188 (11.72%), while cumulative P(X <= 3) = 17.19% and expected mean equals 10 × 0.5 = 5.0 Heads.
Example 2: Bayes' Theorem Disease Screening & Two-Server Uptime
Part A (Medical Screening Paradox in Mode 3): A diagnostic test has 95% sensitivity (P(+ | Condition) = 0.95) and a 5% false-positive rate (P(+ | Healthy) = 0.05). If a condition affects 1% of the screened population (P(Condition) = 0.01), what is the probability a patient who tests positive actually has the condition?
- True Positive share of population:
0.95 × 0.01 = 0.0095(95people per 10,000 tested). - False Positive share of population:
0.05 × 0.99 = 0.0495(495healthy people per 10,000 tested). - Marginal Evidence & Posterior: Total positives
P(+) = 0.0095 + 0.0495 = 0.0590(5.90%). Dividing true positives by total positives givesP(Condition | +) = 0.0095 ÷ 0.0590 = 16.1017%! Even though the test is 95% accurate per individual case, 83.9% of positive screens are false positives because healthy patients outnumber affected patients 99 to 1.
Part B (Two Independent Events in Mode 2): If two redundant backups fail independently with daily outage risks P(A) = 0.50 (50%) and P(B) = 0.30 (30%), both fail together with probability 0.50 × 0.30 = 15.0%, at least one fails with probability 0.50 + 0.30 − 0.15 = 65.0%, and both survive cleanly with probability 0.50 × 0.70 = 35.0%.
Probability Formulas in Excel, Google Sheets & Python
Replicate exact binomial probabilities, combinations, and Bayes calculations in spreadsheets or Python scripts:
Excel / Sheets Cumulative <= k: =BINOM.DIST(k, n, p, TRUE)
Excel Combinations C(n, k): =COMBIN(n, k)
Python (SciPy Binomial PMF & CDF): scipy.stats.binom.pmf(k, n, p) | binom.cdf(k, n, p)
Python (Standard Library math): math.comb(n, k) * (p**k) * ((1 - p)**(n - k))
5 Common Probability Mistakes to Avoid
- Confusing Mutually Exclusive With Independent: Disjoint events (
P(A ∩ B) = 0) are actually strongly dependent whenever both have positive probability: knowingAoccurred makesBimpossible (P(B | A) = 0 ≠ P(B)). - Adding Probabilities Without Subtracting Overlap: Computing "at least one of A or B" as
P(A) + P(B)double-counts joint occurrencesP(A ∩ B)and can even yield impossible totals above 100%. - Falling for the Gambler's Fallacy: For independent trials such as fair coin flips or roulette spins, five tails in a row does not raise the probability of heads on flip six above
50%. - Transposing Conditional Probabilities (
P(A | B) ≠ P(B | A)): Equating test sensitivityP(Positive | Sick) = 95%with predictive certaintyP(Sick | Positive)ignores base-rate prevalenceP(Sick). - Conflating Odds With Probability: An event quoted at
1 : 3odds against implies1win out of1 + 3 = 4total trials (25%probability), not1/3 = 33.3%.
Related Probability, Normal & Inference Calculators
Combine probability analysis with statistical inference and distribution solvers inside our Math & Statistics hub:
- Z-Score Calculator: compute continuous Normal distribution left-tail, right-tail, and central p-value probabilities.
- Confidence Interval Calculator: build Student's
tand Wilson Score proportion uncertainty intervals from sample data. - Sample Size Calculator: determine survey sample sizes
nbeforehand for target Confidence Levels and Margins of Error. - Standard Deviation Calculator & Variance Calculator: quantify empirical spread alongside theoretical expectations.
Learn how we validate log-factorial binomial precision and Bayes numerical stability across browsers in our Editorial & Mathematical Accuracy Policy.
Frequently Asked Questions
What is the basic formula for probability?
For equally likely outcomes, P(E) = Favorable Outcomes (k) / Total Possible Outcomes (n). Probability always lies between 0 (impossible) and 1 (certain), or 0% and 100%.
What is the difference between probability and odds?
Probability compares favorable outcomes to ALL outcomes: k / n. Odds in favor compare favorable outcomes to UNFAVORABLE outcomes: k : (n - k). For example, 4 Aces in 52 cards gives 1/13 probability (7.69%) vs. 1 : 12 odds in favor.
How do I find P(A and B) vs. P(A or B)?
For independent events, multiply for AND: P(A and B) = P(A) * P(B). For OR (at least one occurs), add and subtract the overlap: P(A or B) = P(A) + P(B) - P(A and B).
How does Bayes Theorem work in simple terms?
Bayes Theorem updates a prior probability P(A) after observing new evidence B using P(A|B) = [P(B|A) * P(A)] / P(B), where P(B) combines both True Positives and False Positives across the population.
When should I use the Binomial Probability formula?
Use the Binomial distribution P(X = k) = C(n, k) * p^k * (1 - p)^(n - k) whenever you run a fixed number n of independent yes/no trials, each having identical success probability p.
How do I calculate the probability of at least one success in m tries?
Use the complement shortcut: find the chance every trial fails, (1 - p)^m, and subtract from 1. Thus P(at least 1 hit in m tries) = 1 - (1 - p)^m.
Mathematical References & Standards
- Wikipedia: Probability: Kolmogorov Axioms, Classical Rules & Interpretations (Foundational axioms and sample-space ratios defining event likelihood)
- Wikipedia: Conditional Probability: Multiplication Rule & Independence (Formal conditioning notation P(A|B) and independence criteria)
- Wikipedia: Bayes' Theorem: Prior-to-Posterior Updating & Medical Testing (Derivation and base-rate examples showing true vs. false positive ratios)
- Wikipedia: Binomial Distribution: Exact PMF, Cumulative CDF & Moments (Discrete fixed-trial count model and variance identities np(1 - p))
- NIST Engineering Statistics Handbook: Section 1.3.6.6.18: Binomial Distribution Reference (Federal statistical reference covering discrete binomial probabilities and plots)