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:

Single Event Probability: P(E) = Favorable Outcomes (k) ÷ Total Outcomes (n)
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 scale diagram comparing single event P(A)=7.6923% for drawing an Ace from 52 cards against complement 92.3077%, 1:12 odds in favor, and multi-draw probability reaching 55.09% over 10 independent draws
Diagram 1: Single-event probability P(E), complement P(E'), odds in favor (1:12), and repeated-trial scaling across m independent draws.

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:

Probability to Decimal Odds Ratio: O = P(E) ÷ (1 − P(E))
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').

Both Occur (Intersection / AND): P(A ∩ B) = P(A) × P(B) [for independent events]
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).

Venn diagram of two independent events P(A)=0.50 and P(B)=0.30 showing four disjoint regions summing to 1.00: A only 0.35, intersection A and B 0.15, B only 0.15, and neither 0.35
Diagram 2: Complete Venn partition of two independent events into intersection (AND), union (OR), exclusive OR (XOR), and complement (neither).

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 hypothesis A is across the baseline population before observing evidence B.
  • Sensitivity / True Positive Rate P(B | A): Probability that evidence B triggers positive when hypothesis A is genuinely true.
  • False Positive Rate P(B | A'): Probability that evidence B triggers positive even when hypothesis A is false (1 − Specificity).
Bayes' Theorem: P(A | B) = [ P(B | A) × P(A) ] ÷ P(B)
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:

Exact Binomial PMF: P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
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) ]
Dual infographic showing Bayes Theorem 10000-person medical screening tree yielding 16.10% posterior PPV alongside a Binomial PMF bar chart for n=10, p=0.50 highlighting k=3 at 11.72%
Diagram 3: Natural-frequency Bayes screening tree (left, explaining the base-rate paradox) and Binomial PMF bar distribution for n = 10, p = 0.50 (right).

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?

  1. Single-draw probability: There are k = 4 Aces among n = 52 cards, giving P(Ace) = 4 ÷ 52 = 1/13 = 0.076923 (7.6923%).
  2. Complement & Odds: Probability of missing an Ace is P(Non-Ace) = 48 ÷ 52 = 12/13 (92.3077%). Simplifying 4 : 48 by GCD 4 yields Odds in Favor = 1 : 12 and Odds Against = 12 : 1.
  3. 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 from 1 yields P(>=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?

  1. True Positive share of population: 0.95 × 0.01 = 0.0095 (95 people per 10,000 tested).
  2. False Positive share of population: 0.05 × 0.99 = 0.0495 (495 healthy people per 10,000 tested).
  3. Marginal Evidence & Posterior: Total positives P(+) = 0.0095 + 0.0495 = 0.0590 (5.90%). Dividing true positives by total positives gives P(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 Exact Binomial: =BINOM.DIST(k, n, p, FALSE)
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

  1. Confusing Mutually Exclusive With Independent: Disjoint events (P(A ∩ B) = 0) are actually strongly dependent whenever both have positive probability: knowing A occurred makes B impossible (P(B | A) = 0 ≠ P(B)).
  2. Adding Probabilities Without Subtracting Overlap: Computing "at least one of A or B" as P(A) + P(B) double-counts joint occurrences P(A ∩ B) and can even yield impossible totals above 100%.
  3. 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%.
  4. Transposing Conditional Probabilities (P(A | B) ≠ P(B | A)): Equating test sensitivity P(Positive | Sick) = 95% with predictive certainty P(Sick | Positive) ignores base-rate prevalence P(Sick).
  5. Conflating Odds With Probability: An event quoted at 1 : 3 odds against implies 1 win out of 1 + 3 = 4 total trials (25% probability), not 1/3 = 33.3%.

Related Probability, Normal & Inference Calculators

Combine probability analysis with statistical inference and distribution solvers inside our Math & Statistics hub:

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