🔑 Key Takeaways
The most important ideas from this guide — keep these in mind as you work through each section.
Probability quantifies uncertainty. It assigns a value between 0 and 1 to all possible outcomes of a random experiment.
Statistics uses probability to make inferences. Sample data combined with probability models allows conclusions about populations.
There are four types of probability. Theoretical, experimental, subjective, and axiomatic — each used in different contexts.
The Expected Value formula E(X) = Σ[x·P(x)] gives the long-run average of any random variable — the most-searched formula on this site.
The Central Limit Theorem connects everything. It explains why normal distributions appear so often in statistical inference.
Bayes' Theorem is a powerful update rule. It lets you revise probabilities when new evidence becomes available.
Probability tells you what should happen in theory. Statistics tells you what did happen in practice — and uses that to estimate the underlying reality.
Brief History of Probability and Statistics
The story of probability and statistics spans five centuries and crosses mathematics, economics, medicine, and physics. Understanding how the field developed helps place every formula in context.
The systematic study of probability began with Gerolamo Cardano in the 1500s, who analyzed games of dice and first described what we now call the sample space. In 1654, a correspondence between Blaise Pascal and Pierre de Fermat over a gambling dispute laid the rigorous groundwork for combinatorics and expected value. Shortly after, Christiaan Huygens published the first probability textbook in 1657.
The 18th century brought two landmarks. Jakob Bernoulli proved the Law of Large Numbers, establishing that empirical frequencies converge to theoretical probabilities with enough trials. Thomas Bayes, in a paper published posthumously in 1763, introduced the theorem now bearing his name — the mathematical rule for updating belief on new evidence. Pierre-Simon Laplace then formalized much of probability theory in his 1812 treatise.
The 19th century gave birth to modern statistics. Francis Galton developed the concepts of regression toward the mean and correlation. Karl Pearson introduced the chi-square test and the Pearson correlation coefficient. Ronald Fisher in the 1920s and 1930s unified experimental design, analysis of variance (ANOVA), and maximum likelihood estimation. In 1933, Andrei Kolmogorov placed all of probability on an axiomatic foundation — the mathematical bedrock used to this day.
Branches of Statistics: Descriptive vs. Inferential
Before diving into probability, it helps to understand the two major branches of statistics that probability supports.
Descriptive statistics summarize and describe the data you actually have using measures of central tendency (mean, median, mode) and spread (variance, standard deviation, IQR). Inferential statistics use sample data and probability models to make predictions and test claims about a larger population.
| Feature | Descriptive Statistics | Inferential Statistics |
|---|---|---|
| Goal | Summarize the data you have | Draw conclusions about a population |
| Focus | Observed dataset | Sample → Population generalization |
| Typical tools | Mean, SD, IQR, charts | Hypothesis tests, confidence intervals |
| Role of probability | Minimal | Central — all inference is probabilistic |
| Output | Descriptive numbers & visuals | Decisions, estimates, p-values |
A third branch — Bayesian statistics — treats probability as a degree of belief and updates it as new data arrives. It sits between the two and is foundational to modern machine learning.
Levels of Measurement in Statistics
Before you can choose the right statistical method, you need to know what kind of data you have. Stanley Stevens (1946) identified four levels of measurement, each with different properties and permitted operations.
| Level | Properties | Example | Permitted Operations |
|---|---|---|---|
| Nominal | Categories only, no order | Blood type (A, B, AB, O), eye color | Mode, frequency counts, chi-square |
| Ordinal | Ordered categories, unequal gaps | Survey ratings (1–5 stars), education level | Median, percentiles, rank correlations |
| Interval | Equal gaps, no true zero | Temperature in °C, calendar years | Mean, SD, t-tests (but not ratios) |
| Ratio | Equal gaps + true zero | Height, weight, income, reaction time | All operations including ratios and geometric mean |
The level of measurement determines which statistical tests are valid. Applying a mean to nominal data (e.g., averaging blood types coded 1–4) produces a meaningless number — a common mistake in practice.
Key Measures in Descriptive Statistics
These are the core measures every analyst uses daily.
Mean, Median, and Mode
These three measures describe the center of a dataset.
Example: Exam scores: 65, 72, 75, 78, 80, 82, 85, 88, 90, 95 → Sum = 810 → Mean = 810/10 = 81
The median is the middle value when sorted. For 10 values: Median = (80 + 82) / 2 = 81. Add an outlier score of 200 and the mean jumps to 90.5 — but the median stays at 82. That robustness makes the median the right choice for skewed data.
The mode is the most frequent value. Shoe sizes: 7, 8, 8, 8, 9, 9, 10 → Mode = 8. Mode is the only measure that works with categorical (nominal) data.
Variance and Standard Deviation
These measure how spread out data points are from the mean.
Z-Score
Z-scores standardize data to a common scale. A z-score of 1.45 means the score of 95 is 1.45 standard deviations above average. Use the Z-table to convert any z-score to a probability.
Sampling Methods
Because studying an entire population is usually impractical, statistical inference depends on collecting a representative sample. The method of sampling determines how reliably results generalize.
| Method | How It Works | Best Used When |
|---|---|---|
| Simple Random | Every member of the population has an equal chance of selection | Population is homogeneous and a complete list exists |
| Stratified | Population split into subgroups (strata); random sample drawn from each | Subgroups differ significantly and all must be represented |
| Cluster | Population split into clusters; entire clusters selected randomly | Population is geographically dispersed; cost matters |
| Systematic | Every kth member selected from an ordered list | A complete ordered list exists and no periodic pattern overlaps k |
| Convenience | Whoever is most accessible is sampled | Exploratory research only — high bias risk |
Sample size matters as much as sampling method. Larger samples reduce sampling error and narrow confidence intervals. Use a sample size calculator to determine the minimum n needed for your study's desired margin of error.
Introduction to Probability — Definition and Types
Probability is the numerical measure of the likelihood that an event will occur. It is always a value between 0 (impossible) and 1 (certain), calculated as the ratio of favorable outcomes to total possible outcomes.
Venn Diagram Symbols and Notation
Probability problems frequently use set notation from Venn diagrams. This table covers every symbol you will encounter — see our Venn Diagrams guide for full visual examples and our Venn Diagram Maker to build your own.
| Symbol | Name | Meaning | Example |
|---|---|---|---|
| ∪ | Union | A OR B (or both) | A∪B = {1,2,3,4,5} |
| ∩ | Intersection | A AND B (both must occur) | A∩B = {3} |
| A' or Aᶜ | Complement | NOT A (everything outside A) | A' = {4,5,6} if A = {1,2,3} |
| ⊂ | Subset | All elements of A are in B | A⊂B means A is inside B |
| ∅ | Empty set | No elements; impossible event | A∩B = ∅ when A and B are mutually exclusive |
| S or Ω | Sample space | All possible outcomes | S = {1,2,3,4,5,6} for a die |
| P(A) | Probability of A | Likelihood of event A occurring | P(rolling a 6) = 1/6 |
| P(A|B) | Conditional probability | Probability of A given B has occurred | P(rain | cloudy) = 0.70 |
Type 1: Theoretical Probability
Based on mathematical reasoning assuming all outcomes are equally likely. Example: The probability of drawing an Ace from a standard deck = 4/52 = 1/13 ≈ 0.077. No experiment needed — it follows from the structure of the deck.
Type 2: Experimental (Empirical) Probability
Based on actual observed frequencies from repeated trials.
Type 3: Subjective Probability
Based on personal judgment, expert opinion, or experience. Examples: A weather forecaster says "70% chance of rain tomorrow." A surgeon estimates a "90% chance of successful recovery." These are not calculated — they are expert estimates informed by experience.
Type 4: Axiomatic Probability (Kolmogorov's Axioms)
The mathematical foundation of all probability theory. Andrei Kolmogorov (1933) defined three axioms:
- Axiom 1: P(A) ≥ 0 for any event A (probability is non-negative)
- Axiom 2: P(S) = 1 (the probability of the entire sample space is 1)
- Axiom 3: For mutually exclusive events A and B: P(A∪B) = P(A) + P(B)
All other probability rules — the addition rule, multiplication rule, Bayes' theorem — are derived from these three axioms.
Types of Events in Probability
Different event types require different calculation approaches. Misidentifying whether events are independent or dependent is one of the most common errors in applied probability.
Simple Events
A simple event has exactly one outcome. Rolling a 4 on a die is a simple event. P(rolling 4) = 1/6. There is only one way to get a 4, and it has a single, well-defined probability.
Compound Events
A compound event combines two or more simple events. Rolling an even number (2, 4, or 6) is compound. P(even) = 3/6 = 0.5. The probability of a compound event is calculated using the addition or multiplication rules depending on the relationship between the events.
Independent Events
Two events are independent when the outcome of one has no effect on the probability of the other. Each flip of a fair coin is independent: getting heads on flip 1 does not change the probability of heads on flip 2.
Test: P(A∩B) = P(A) × P(B) — if this equation holds, the events are independent.
Example: P(heads on flip 1 AND heads on flip 2) = 0.5 × 0.5 = 0.25
Dependent Events
Two events are dependent when the outcome of one changes the probability of the other. Drawing cards without replacement creates dependency.
Example: A bag has 3 blue and 2 red marbles. P(blue on draw 1) = 3/5 = 0.60. If a blue marble is removed and not replaced, P(blue on draw 2) = 2/4 = 0.50 — the probability changed because of the first outcome.
Use the formula: P(A∩B) = P(A) × P(B|A)
Mutually Exclusive Events
Two events are mutually exclusive (also called disjoint) when they cannot both occur at the same time. Rolling a 3 and rolling a 5 on a single die roll cannot both happen.
Property: P(A∩B) = 0, so P(A∪B) = P(A) + P(B)
Important distinction: Mutually exclusive events are always dependent — knowing A occurred immediately tells you B did not. Independent events are never mutually exclusive (unless one has probability 0).
Complementary Events
The complement of event A, written A' or Aᶜ, contains all outcomes NOT in A. Together A and A' cover the entire sample space.
Property: P(A) + P(A') = 1, so P(A') = 1 − P(A)
Example: P(rolling a 6) = 1/6, so P(not rolling a 6) = 1 − 1/6 = 5/6.
The complement rule is especially useful when it is easier to calculate P(A') than P(A) directly — for instance, P(at least one 6 in two rolls) = 1 − P(no 6 in two rolls) = 1 − (5/6)² ≈ 0.306.
Probability Rules and Formulas
These rules are the core toolkit for solving almost every probability problem. The table below is a printable cheat sheet — bookmark it as your probability formulas quick reference.
| Rule | Formula | When to Use |
|---|---|---|
| Complement Rule | P(A') = 1 − P(A) | When it's easier to find P(not A) |
| Addition Rule (General) | P(A∪B) = P(A) + P(B) − P(A∩B) | Any two events |
| Addition Rule (Mutually Exclusive) | P(A∪B) = P(A) + P(B) | Events that can't both happen |
| Multiplication Rule (General) | P(A∩B) = P(A) × P(B|A) | Any two events |
| Multiplication Rule (Independent) | P(A∩B) = P(A) × P(B) | Independent events only |
| Conditional Probability | P(A|B) = P(A∩B) / P(B) | Probability of A given B occurred |
| Bayes' Theorem | P(A|B) = P(B|A)·P(A) / P(B) | Updating belief with new evidence |
| Law of Total Probability | P(A) = Σ P(A|Bᵢ) × P(Bᵢ) | When A can occur via multiple scenarios |
See also: Probability Rules deep-dive | Conditional Probability | Mutually Exclusive Events
Conditional Probability
The probability of A occurring given that B has already occurred:
Worked Example: In a class of 30 students: 18 study Math (M), 12 study Science (S), 6 study both. What is P(M|S)?
P(M∩S) = 6/30 = 0.2 | P(S) = 12/30 = 0.4 → P(M|S) = 0.2 / 0.4 = 0.5
Half of Science students also study Math.
Bayes' Theorem
Bayes' Theorem lets you reverse a conditional probability — updating the probability of a hypothesis given new evidence. It underlies Bayesian statistics, spam filters, medical diagnosis, and recommendation engines.
Example 1 — Medical Diagnosis: A disease affects 1% of the population. A test has 95% sensitivity (true positive rate) and 5% false positive rate. If you test positive, what is the probability you have the disease?
- P(Disease) = 0.01 (prior)
- P(Positive | Disease) = 0.95
- P(Positive | No Disease) = 0.05
- P(Positive) = (0.95 × 0.01) + (0.05 × 0.99) = 0.0095 + 0.0495 = 0.059
- P(Disease | Positive) = 0.0095 / 0.059 ≈ 16.1%
Most people intuitively assume a 95% accurate test means ~95% chance of being sick. Bayes shows it's only ~16% because the disease is rare. This is why Bayes' Theorem is essential in medical screening — and why rare-disease tests always require confirmation.
Example 2 — Spam Filter: 30% of emails are spam. A spam filter correctly flags spam 98% of the time and incorrectly flags legitimate email 2% of the time. If an email is flagged, what is the probability it is actually spam?
- P(Spam) = 0.30 (prior)
- P(Flagged | Spam) = 0.98
- P(Flagged | Not Spam) = 0.02
- P(Flagged) = (0.98 × 0.30) + (0.02 × 0.70) = 0.294 + 0.014 = 0.308
- P(Spam | Flagged) = 0.294 / 0.308 ≈ 95.5%
With a common prior of 30% spam, the filter's high accuracy translates to 95.5% confidence when it flags — very different from the medical test case because the base rate is much higher. See: More Bayes' Theorem worked examples | Prior Probability | Posterior Probability
Probability Tree Diagrams
A probability tree diagram maps out all possible outcomes of a multi-step random experiment as branches, with each branch labeled with its probability. They make sequential probability calculations visual and systematic. See: Probability Trees guide | Probability Tree Diagram tool
Each branch probability is multiplied along the path to get the final outcome probability. All four outcomes sum to 1.00 ✓. To find P(at least one Head) = 1 − P(TT) = 1 − 0.25 = 0.75.
Random Variables and Probability Distributions
A random variable is a numerical value assigned to the outcome of a random experiment. It connects probability theory to measurable data. See: Probability Density Function | Cumulative Distribution Function
| Type | Description | Examples |
|---|---|---|
| Discrete | Countable, specific values | Number of heads in 5 flips, defective items in a batch |
| Continuous | Any value within a range | Height, temperature, time to complete a task |
Expected Value — Formula and Examples
The expected value E(X) is the long-run average outcome of a random variable — the value you would expect to get if you repeated the experiment many times. It is the most searched formula on this site. See the full guide: Expected Value | Mean vs Expected Value
Example 1 — Fair Die:
| Outcome (x) | Probability P(x) | x · P(x) |
|---|---|---|
| 1 | 1/6 | 0.167 |
| 2 | 1/6 | 0.333 |
| 3 | 1/6 | 0.500 |
| 4 | 1/6 | 0.667 |
| 5 | 1/6 | 0.833 |
| 6 | 1/6 | 1.000 |
| Total | 1.000 | E(X) = 3.5 |
Example 2 — Insurance (EV = p · b − (1−p) · c): A 40-year-old buys a $500,000 life insurance policy for $300/year. The insurer estimates P(death this year) = 0.001. Expected payout to the insurer: E(X) = 0.001 × (−499,700) + 0.999 × 300 = −499.70 + 299.70 = −$200. The insurer expects to profit $200 per policy per year on average. This is expected value at the core of actuarial science. See: Expected Value Calculator
Binomial Distribution
Models the number of successes in n independent trials, each with probability p of success. Conditions: fixed n, binary outcome (success/failure), constant p, independent trials. See: Binomial Distribution guide | Binomial Calculator
Example: P(exactly 3 heads in 5 fair coin flips): P(X=3) = C(5,3) × (0.5)³ × (0.5)² = 10 × 0.125 × 0.25 = 0.3125
Poisson Distribution
Models events occurring in a fixed time or space interval at constant average rate λ. See: Poisson Distribution | Poisson Calculator
Example: λ = 4 calls/minute. P(exactly 2 calls in one minute) = (4² × e⁻⁴) / 2! = (16 × 0.0183) / 2 = 0.1465
Normal (Gaussian) Distribution
The most important distribution in statistics. Symmetric, bell-shaped, defined by mean (μ) and standard deviation (σ). See: Normal Distribution guide | Normal Distribution Curve visualizer | Z-Table
The Empirical Rule (68-95-99.7 Rule):
| Range | % of data covered | Example (heights, μ=170cm, σ=10cm) |
|---|---|---|
| μ ± 1σ (160–180 cm) | ~68% | About 68 in 100 people |
| μ ± 2σ (150–190 cm) | ~95% | About 95 in 100 people |
| μ ± 3σ (140–200 cm) | ~99.7% | Almost everyone |
See: Empirical Rule | Normal Distribution Calculator | Empirical Rule Calculator
Other Key Distributions (Quick Reference)
| Distribution | Type | Mean | Variance | Best Used For |
|---|---|---|---|---|
| Binomial | Discrete | np | np(1−p) | Fixed trials, binary outcome |
| Poisson | Discrete | λ | λ | Events per time/space unit |
| Normal | Continuous | μ | σ² | Natural phenomena, CLT applications |
| Exponential | Continuous | 1/λ | 1/λ² | Time between Poisson events |
| Uniform | Both | (a+b)/2 | (b−a)²/12 | Equal likelihood over range |
| Geometric | Discrete | 1/p | (1−p)/p² | Trials until first success |
Inferential Statistics — Hypothesis Testing and Confidence Intervals
Inferential statistics uses probability distributions to make decisions about populations from sample data. This is where probability and statistics merge most powerfully. See: Hypothesis Testing | Inferential Statistics
What is Hypothesis Testing?
Hypothesis testing is a formal 5-step process to determine whether sample data provides enough evidence to reject a claim about a population.
- State hypotheses: H₀ (null) and H₁ (alternative)
- Choose significance level: Usually α = 0.05
- Select and compute test statistic: t, z, F, χ², etc.
- Calculate the p-value
- Decision: If p < α → reject H₀; If p ≥ α → fail to reject H₀
| Error Type | What It Means | Probability |
|---|---|---|
| Type I Error (α) | Rejecting H₀ when it is true (false positive) | Controlled by significance level α |
| Type II Error (β) | Failing to reject H₀ when it is false (false negative) | Related to statistical power (1−β) |
A result can be statistically significant (p < 0.05) without being practically meaningful. With a very large sample (e.g. n = 100,000), even a 0.001-point difference in means can yield p < 0.001. Always pair p-values with an effect size measure (Cohen's d, η², r) to assess whether the difference matters in the real world.
P-Value Explained
The p-value is the probability of observing results as extreme as your data, assuming the null hypothesis is true. A small p-value indicates the observed result is unlikely under H₀.
A p-value of 0.03 does NOT mean "there is a 3% chance the null hypothesis is true." It means "if H₀ were true, there's only a 3% chance of seeing data this extreme." The distinction matters enormously in practice.
Confidence Intervals
A confidence interval is a range of plausible values for a population parameter, calculated from sample data at a specified confidence level.
Common Statistical Tests — Quick Reference
| Test | Used When | Key Assumption |
|---|---|---|
| One-sample t-test | Compare sample mean to known value | Approximately normal data, unknown σ |
| Two-sample t-test | Compare means of two independent groups | Independent samples, approximately normal |
| Paired t-test | Compare two related measurements (pre/post) | Differences are approximately normal |
| Chi-square test | Test independence of categorical variables | Expected frequency ≥ 5 in each cell |
| ANOVA | Compare means of 3+ groups | Normal data, equal variances |
| Pearson Correlation | Measure linear relationship between two continuous variables | Linear relationship, bivariate normal |
Not sure which test to use? Try the Statistical Test Selector.
The Central Limit Theorem
The Central Limit Theorem (CLT) is arguably the most important theorem in statistics: as sample size increases, the sampling distribution of the sample mean approaches a normal distribution — regardless of the original population's shape.
In practice, n ≥ 30 is typically sufficient. This is why t-tests, z-tests, and confidence intervals work even when your data isn't perfectly normal — the sample mean will be approximately normally distributed anyway. Verify normality assumptions with the Shapiro-Wilk test.
Probability Laws and Theorems
Law of Large Numbers
The Law of Large Numbers (LLN) is one of the most fundamental theorems in probability. It states that as the number of independent trials of a random experiment increases, the sample average converges to the expected value (population mean). See the full guide: Law of Large Numbers
There are two versions: the Weak LLN (convergence in probability, proven above) and the Strong LLN (almost sure convergence, proven by Kolmogorov). In practice, the distinction rarely matters — both guarantee that larger samples produce better estimates.
Real-world examples:
- Casinos: A single roulette spin is unpredictable. Over 100,000 spins, the house edge of 5.26% on American roulette will manifest almost exactly. The LLN guarantees profitability at scale — the casino doesn't gamble; it runs a statistical operation.
- Insurance: No insurer can predict whether a specific 45-year-old will die next year. But across 500,000 policyholders, mortality rates converge to actuarial tables. The LLN transforms individual unpredictability into business predictability.
- Quality control: Sampling 5 units from a production run leaves high uncertainty. Sampling 500 units yields a defect rate estimate that closely mirrors the true population defect rate — the LLN is why sampling works in manufacturing.
After 10 consecutive coin-flip heads, the LLN does NOT mean tails is "due." The LLN describes long-run averages, not short-run corrections. Each flip remains independently 50/50. The law averages out over time by diluting early streaks with new data — not by compensating for them.
Law of Total Probability
If events B₁, B₂, ..., Bₙ form a partition of the sample space (mutually exclusive and exhaustive), then:
Permutations and Combinations
Counting methods determine the total number of possible outcomes — the denominator in any classical probability calculation. See: Permutations and Combinations | Counting Methods
| Permutations (order matters) | Combinations (order does not matter) | |
|---|---|---|
| Formula | nPr = n! / (n−r)! | nCr = n! / [r!(n−r)!] |
| Example | PIN code | Lottery ticket |
| Use when | Arranging, ordering, rankings | Selecting a group without caring about order |
Permutation worked example — PIN code: How many unique 4-digit PINs can be created from the digits 1–9 with no repetition?
9P4 = 9! / (9−4)! = 9 × 8 × 7 × 6 = 3,024 possible PINs.
Order matters here: PIN 1234 ≠ PIN 4321.
Combination worked example — Lottery: A lottery requires choosing 6 numbers from 1–49. How many possible tickets exist?
C(49,6) = 49! / [6! × 43!] = 13,983,816 possible combinations.
Order does not matter: {1,7,14,22,33,49} is the same ticket regardless of the order picked.
Use the Combination Calculator for fast computation.
Common Probability Misconceptions
Gambler's Fallacy: After 10 consecutive heads, many think tails is "due." Each flip remains 50/50 — past independent outcomes have zero influence on future ones.
Base Rate Neglect: Ignoring the prior probability of an event (see the Bayes' Theorem medical test example above). A highly accurate test can still produce mostly false positives when the condition is rare.
Hot Hand Fallacy: Believing a player on a streak is more likely to succeed next time. Research shows most streaks in sports are consistent with random chance rather than genuine momentum.
7 Real-World Applications of Statistics and Probability
Statistics and probability are not abstract — they drive decisions in virtually every field.
- 1Medicine and Clinical Trials — Hypothesis testing determines whether a new drug outperforms a placebo. Bayes' Theorem improves diagnostic accuracy. Confidence intervals define the range of effective doses. The p-value threshold α = 0.05 governs drug approval in most regulatory systems.
- 2Finance and Insurance — Actuaries use probability distributions to price insurance policies. Portfolio managers measure investment risk using standard deviation and Value at Risk (VaR). Options pricing (Black-Scholes) relies on normal distribution assumptions.
- 3Weather Forecasting — Meteorologists apply Bayesian methods to update precipitation probabilities as new atmospheric data arrives. "70% chance of rain" is subjective probability made operational.
- 4Machine Learning and AI — Naive Bayes classifiers, Gaussian mixture models, and model validation metrics (precision, recall, AUC) all depend on probability theory. Regression models are grounded in statistical inference.
- 5Sports Analytics — Win probability models update in real time using conditional probability. Correlation analysis identifies which player statistics predict team wins. Regression to the mean explains why breakout seasons are often followed by normal ones.
- 6Quality Control in Manufacturing — Statistical Process Control (SPC) uses control charts to detect drift. Six Sigma programs reduce defects to fewer than 3.4 per million using normal distribution principles.
- 7Social Sciences and Polling — Political polls use random sampling and report margins of error (confidence intervals). Chi-square tests analyze relationships in survey data. Sampling theory ensures results from 1,000 respondents can reliably represent millions.
Statistics vs. Probability — Key Differences
| Aspect | Statistics | Probability |
|---|---|---|
| Definition | Science of collecting and analyzing data | Mathematical measure of likelihood of outcomes |
| Direction of reasoning | Data → Model (inductive) | Model → Data (deductive) |
| Starting point | Observed sample data | Known probability model / sample space |
| Output | Estimates, decisions, p-values | Probabilities of specific outcomes |
| Key tools | Regression, hypothesis tests, confidence intervals | Distributions, Bayes' theorem, combinatorics |
| Example question | "What does this data tell us about the population?" | "What is the chance of rolling at least one 6?" |
Statistics and Probability Formulas — Quick Reference Sheet
Bookmark this section as your printable probability and statistics formulas cheat sheet.
Descriptive Statistics Formulas
| Measure | Formula | Notes |
|---|---|---|
| Mean | x̄ = Σxᵢ / n | Arithmetic average |
| Population Variance | σ² = Σ(xᵢ − μ)² / N | Divide by N (entire population) |
| Sample Variance | s² = Σ(xᵢ − x̄)² / (n−1) | Divide by n−1 (Bessel's correction) |
| Standard Deviation | s = √s² | Same units as data |
| Z-Score | z = (x − μ) / σ | Standard deviations from mean |
| IQR | IQR = Q3 − Q1 | Spread of middle 50%, outlier-resistant |
| Expected Value | E(X) = Σ[xᵢ × P(xᵢ)] | Long-run average of a random variable |
Probability Rules Summary
| Rule | Formula | Key Condition |
|---|---|---|
| Complement | P(A') = 1 − P(A) | Always valid |
| Addition (General) | P(A∪B) = P(A)+P(B)−P(A∩B) | Any two events |
| Addition (Exclusive) | P(A∪B) = P(A)+P(B) | A and B mutually exclusive |
| Multiplication (General) | P(A∩B) = P(A) × P(B|A) | Any two events |
| Multiplication (Independent) | P(A∩B) = P(A) × P(B) | A and B independent |
| Conditional Probability | P(A|B) = P(A∩B) / P(B) | P(B) > 0 |
| Bayes' Theorem | P(A|B) = [P(B|A)·P(A)] / P(B) | Reversing conditional probability |
| Law of Total Probability | P(A) = Σ P(A|Bᵢ) × P(Bᵢ) | Bᵢ partition the sample space |
| Permutations | nPr = n! / (n−r)! | Order matters |
| Combinations | nCr = n! / [r!(n−r)!] | Order does not matter |
Key Distributions Reference
| Distribution | PMF / PDF | Mean | Variance |
|---|---|---|---|
| Binomial | C(n,k)·pᵏ·(1−p)^(n−k) | np | np(1−p) |
| Poisson | (λᵏ·e^−λ) / k! | λ | λ |
| Normal | (1/σ√2π)·e^[−(x−μ)²/2σ²] | μ | σ² |
| Exponential | λ·e^(−λx) for x≥0 | 1/λ | 1/λ² |
| Uniform (continuous) | 1/(b−a) for a≤x≤b | (a+b)/2 | (b−a)²/12 |
Conclusion
Statistics and probability are inseparable tools for understanding uncertainty and making data-driven decisions. Probability gives you the mathematical language to describe randomness; statistics gives you the methods to learn from it.
Start with the basics — sample space, the four probability types, event types, and the core rules. Then build toward distributions, expected value, and inferential statistics. Every advanced topic in data science, machine learning, and research rests on the foundation covered in this guide. Explore deeper with Bayesian vs. Frequentist statistics or dive into Correlation vs. Causation.
Frequently Asked Questions
Probability provides the mathematical framework for quantifying uncertainty, while statistics uses that framework to draw conclusions from real data. Statistical inference — including hypothesis testing and confidence intervals — is built entirely on probabilistic foundations.
The four types are: theoretical probability (based on equally likely outcomes), experimental probability (based on observed data), subjective probability (based on judgment), and axiomatic probability (based on Kolmogorov's formal mathematical rules).
E(X) = Σ[x · P(x)] — multiply each possible outcome by its probability and sum all the products. For a fair die: E(X) = 1(1/6) + 2(1/6) + ... + 6(1/6) = 3.5. The expected value is the long-run average, not necessarily a value the variable can actually take.
Use P(A|B) = P(A∩B) / P(B), where P(B) ≠ 0. Find the joint probability of both events occurring, then divide by the probability of the given condition. Example: if P(Math and Science) = 0.2 and P(Science) = 0.4, then P(Math|Science) = 0.5.
It models many natural phenomena (heights, test scores, measurement errors) and underpins the Central Limit Theorem, making it the foundation for z-tests, t-tests, confidence intervals, and most parametric statistical methods.
Independent events don't affect each other's probabilities — coin flips are independent. Dependent events do — drawing cards without replacement is dependent because each draw changes what remains in the deck. Test for independence: P(A∩B) = P(A) × P(B). If this holds, events are independent.
With large enough sample sizes (typically n ≥ 30), the distribution of sample means becomes approximately normal, regardless of the original population's shape. This is why so many statistical tests assume normality — they are applied to sample means, which are approximately normal even when the raw data isn't.
Not always. The 0.05 threshold is a widely used convention, not a universal law. In physics and genomics, much stricter thresholds (0.001 or 0.0001) are standard. Always pair p-values with effect sizes — a p = 0.001 result with a tiny effect size may not be practically meaningful.
Normal (continuous, bell-shaped), Binomial (discrete, fixed trials with two outcomes), Poisson (discrete, events per time/space interval), Exponential (continuous, time between events), and Uniform (equal probability across a range). Each is appropriate for different data types and processes.
A population is the entire group you want to draw conclusions about (e.g., all adults in a country). A sample is a subset actually measured. Because studying an entire population is usually impractical, statistical inference uses sample data to estimate population parameters with quantified uncertainty.
Explore More
Probability Calculator
Calculate binomial, normal, and Poisson probabilities with step-by-step results.
Open Calculator →Z Table
Convert z-scores to probabilities using the standard normal distribution table.
View Z-Table →Bayes' Theorem Calculator
Enter prior probability, sensitivity, and specificity to compute posterior probability instantly.
Open Calculator →