Enter the number of favorable outcomes and total possible outcomes to calculate probability as a fraction, decimal, and percentage. Also shows the odds in favor and against.
Probability is the mathematical framework for quantifying uncertainty. The simplest probability calculation is the number of favorable outcomes divided by the total number of possible outcomes — useful for fair dice, well-shuffled cards, and other discrete equiprobable situations. From this foundation, probability extends to complex scenarios involving conditional events, independent or dependent variables, and continuous distributions.
This calculator returns probability as a fraction, decimal, and percentage, plus the odds ratio (in favor and against). For an event with probability P, odds = P/(1-P). A probability of 0.3 corresponds to odds of 3:7 in favor (or about 1:2.33 against). Odds are common in betting and gambling; probabilities are standard in science and mathematics.
Probability theory underlies all of statistics, machine learning, decision theory, finance, risk analysis, and gaming. The fundamental rules: probabilities are between 0 (impossible) and 1 (certain); they sum to 1 across all possible outcomes; independent events multiply; complementary events (event A vs not-A) sum to 1. Most practical probability work involves combining these basic rules.
**Scenario:** Probability of rolling a 6 on a fair die. **Calculation:** Favorable: 1 (the 6). Total: 6 sides. P = 1/6 ≈ 0.167 = 16.7%. **Result:** Probability 1/6 = 16.7%. Odds: 1:5 in favor. To roll a 6 with at least 0.5 probability, need about 4 rolls (1 - (5/6)⁴ = 0.518).
**Scenario:** Probability of drawing an Ace from a standard 52-card deck. **Calculation:** Favorable: 4 Aces. Total: 52 cards. P = 4/52 = 1/13 ≈ 0.077 = 7.7%. **Result:** Probability of drawing an Ace: 1/13 = 7.7%. Odds against: 12:1.
**Scenario:** Factory line produces 1 defective part per 100. Sample 5 random parts; probability all are defective? **Calculation:** P(one defective) = 1/100 = 0.01. P(5 defective) = 0.01⁵ = 0.00000001%. P(at least one defective) = 1 - 0.99⁵ = 0.049 = 4.9%. **Result:** Extremely unlikely all 5 are defective (essentially zero). About 5% chance at least one is defective. Confidence in sample mostly comes from probability of getting at least one defect to indicate problems.
**Use probability calculations for:**
- **Games of chance**: dice, cards, lottery. - **Insurance**: actuarial risk calculations. - **Investment**: portfolio risk, options pricing. - **Quality control**: defect detection, sample inspection. - **Medicine**: disease probability, test interpretation. - **Engineering**: reliability, failure rates. - **Sports analytics**: outcome prediction. - **Decision-making**: choosing optimal options under uncertainty.
**Types of probability:**
| Type | Definition | |---|---| | Classical (Laplace) | Equally likely outcomes | | Frequentist | Long-run frequency | | Subjective | Personal belief | | Bayesian | Updated by evidence | | Logical | Necessary conclusion |
**Combining events:**
- **And (joint)**: multiply for independent events. - **Or (union)**: add minus joint. - **Given (conditional)**: divide joint by condition.
**Counting techniques (when calculating P):**
- **Permutations**: order matters. nPr = n!/(n-r)! - **Combinations**: order doesn't matter. nCr = n!/(r!(n-r)!) - **Multiplication principle**: independent choices multiply.
**Bayesian updating:**
Starting belief × evidence → updated belief.
Posterior = Prior × Likelihood / Evidence
Used in: - Spam filtering - Medical diagnosis - Machine learning - Forensic analysis
**Common probability problems:**
1. **Birthday paradox**: P(2 people share birthday in a group of n). - n=23: ~50% probability. - Counter-intuitive but true.
2. **Monty Hall problem**: switch doors in 3-door game show. - Switching wins with probability 2/3. - Counter-intuitive optimal strategy.
3. **Two-child problem**: probability second child is boy given first is boy. - 1/2 with simple assumptions. - Information matters.
**Probability and statistics:**
- Probability: theoretical, from models to data. - Statistics: empirical, from data to models. - Both essential and intertwined. - Probability provides foundation; statistics applies to real data.
**Cumulative probability:**
For a sequence of trials: - **No success**: (1-p)ⁿ - **At least one success**: 1 - (1-p)ⁿ - **Exactly k successes**: C(n,k) × pᵏ × (1-p)ⁿ⁻ᵏ
This is the binomial distribution.
**Expected value:**
E(X) = Σ x × P(x)
Long-run average outcome. Used in: - Gambling (always negative for player). - Insurance (positive for company). - Investment (positive in long run).
**Variance and standard deviation:**
For probability distributions, measure spread: - Var(X) = E[(X - E(X))²] - SD(X) = √Var(X)
**Probability theory key concepts:**
- **Sample space**: all possible outcomes. - **Event**: subset of sample space. - **Random variable**: function from sample space to numbers. - **Distribution**: how probability distributes across values. - **Expectation**: average value weighted by probability.
**Common misconceptions:**
❌ "Past results affect future independent events." (Gambler's fallacy.) ✓ Independent events: past doesn't affect future.
❌ "Probability of A and B is always larger." (Conjunction fallacy.) ✓ P(A and B) ≤ P(A); ≤ P(B).
❌ "Rare events can't happen to me." (Base rate neglect.) ✓ Rare events happen to someone; could be you.
❌ "0% probability means impossible." (For discrete events true; for continuous, possible but probability 0.)
**Tools:**
- **Excel**: COMBIN, PERMUT, FACT for counts. - **R**: dbinom, dnorm, etc. for distributions. - **Python (scipy.stats)**: complete probability functions. - **Manual**: pencil and paper for basic problems.
**Real-world applications:**
- **Medical testing**: positive predictive value uses Bayes' theorem. - **Spam filtering**: Bayesian classifier. - **Stock options**: Black-Scholes formula uses normal distribution. - **Reliability**: failure probability over time. - **Sports betting**: odds reflect probability assessments. - **Insurance**: premium calculation based on probability of claim. - **Drug development**: clinical trial probabilities.
Calculate the number of combinations (nCr) for choosing r items from n.
Calculate the number of permutations (nPr) for arranging r items from n.
Calculate the z-score from a value, population mean, and standard deviation.
Calculate the confidence interval for a population mean.
Calculate the p-value from a z-score or t-score for hypothesis testing.
Calculate mean, median, and mode from a dataset of up to 10 values.
Probability
0.300000
Percentage
30.00%
Odds In Favor
3:7
Odds Against
7:3
Complementary (1 - P)
0.700000