Stats.Micro
Free micro-lessons to learn probability and statistics with live simulations in your browser: Law of Large Numbers, Bayes, distributions, Central Limit Theorem, confidence intervals, bootstrap and regression. JavaScript is required to run the simulations.
Basic probability
Chance, expected value and spread: the three ideas everything else is built on.
Compound probability
Combining events: sets, counting and conditional probability.
Distributions
Families of random variables, discrete and continuous.
Frequentist inference
From a sample to the population: sampling distributions, intervals and the bootstrap.
Bayesian inference
Updating beliefs with data: priors, posteriors and Bayes factors.
Regression
Relationships between two variables: least squares and correlation.
- Law of Large Numbers
- Expected value
- Variance and spread
- Sets and Venn diagrams
- Counting: permutations and combinations
- Conditional probability and Bayes
- Discrete distributions
- Continuous distributions
- Sampling distribution and the CLT
- Confidence intervals
- The bootstrap
- Prior and posterior: Beta-Binomial
- Bayes factors
- Least squares regression
- Correlation
Glossary
- Base rate (prevalence)
- How common a condition is in the population before any test; it is the prior in Bayes' theorem.
- Bayes factor
- The ratio of the likelihoods of the evidence under two hypotheses; it converts prior odds into posterior odds.
- Bayes' theorem
- The rule that reverses a conditional probability, combining the evidence with the base rate.
- Bernoulli distribution
- A single trial with two outcomes: success (1) with probability p, failure (0) otherwise.
- Beta distribution
- A distribution on [0, 1] with shape parameters α and β, often used for an unknown probability.
- Binomial distribution
- The number of successes in n independent trials, each with success probability p.
- Bootstrap
- Estimating uncertainty by resampling the observed data with replacement many times.
- CDF (cumulative distribution function)
- The probability that the variable is at most x: F(x) = P(X ≤ x).
- Central Limit Theorem
- For large n, the sample mean is approximately normal, whatever the shape of the population.
- Combination
- An unordered selection of r items out of n: order does not matter.
- Complement
- Aᶜ: the event that A does not happen.
- Conditional probability
- P(A | B): the probability of A given that B has happened.
- Confidence interval
- A range built by a method that captures the true parameter in a set share of repetitions, such as 95%.
- Correlation (Pearson's r)
- A measure from −1 to +1 of the strength and direction of a linear relationship. It does not prove causation.
- Event
- A set of possible outcomes of a random experiment, such as “the die shows an even number”.
- Expected value
- The probability-weighted average of the outcomes; the long-run average of a random variable.
- Exponential distribution
- A model for waiting times between independent events occurring at rate λ.
- Factorial
- n! is the product of all integers from 1 to n: the number of ways to order n distinct items.
- False positive
- A positive result for someone who does not have the condition. Its rate is P(+ | healthy).
- Geometric distribution
- The number of trials until the first success.
- Inclusion–exclusion
- The rule for the probability of a union that subtracts the overlap counted twice.
- Intersection
- A ∩ B: the event that A and B both happen.
- Law of Large Numbers
- As the number of trials grows, the observed proportion or average gets closer to the true probability or expected value.
- Least squares (OLS)
- The method that chooses the line minimizing the sum of squared residuals.
- Likelihood
- How probable the observed data are under a given hypothesis or parameter value.
- Margin of error
- The ± part of a confidence interval: critical value times standard error.
- Mutually exclusive events
- Events that cannot happen together, so P(A ∩ B) = 0.
- Normal distribution
- The symmetric bell curve defined by its mean μ and standard deviation σ.
- Odds
- The ratio between the probability that something happens and the probability that it does not.
- Outlier
- A value far from the rest of the data. It strongly affects the mean, the variance and least squares fits.
- PMF (probability mass function)
- For a discrete variable, the probability of each exact value: P(X = k).
- Permutation
- An ordered selection of r items out of n: order matters.
- Poisson distribution
- The number of events in a fixed interval when they occur independently at an average rate λ.
- Posterior
- The updated distribution after combining the prior with the data.
- Prior
- The probability distribution expressing beliefs about a parameter before seeing the data.
- Probability
- A number between 0 and 1 that measures how likely an event is: 0 is impossible, 1 is certain.
- Probability density (PDF)
- For a continuous variable, the curve whose area over an interval gives the probability of that interval.
- Random variable
- A numerical result of a random process, such as the face of a die or the number of heads in 10 flips.
- Residual
- The vertical distance between an observed point and the regression line: y − ŷ.
- R² (coefficient of determination)
- The share of the variance of y explained by the regression line; for a simple line it equals r².
- SSE (sum of squared errors)
- The sum of squared residuals; least squares makes it as small as possible.
- Sample mean
- The average of the observed values in a sample; it estimates the population mean μ.
- Sampling distribution
- The distribution of a statistic, such as the mean, over many samples of the same size.
- Sensitivity
- The share of people with the condition who test positive: P(+ | sick).
- Standard deviation
- The square root of the variance, in the same units as the data.
- Standard error
- The standard deviation of a statistic across samples; for the mean it is σ/√n.
- Union
- A ∪ B: the event that A or B (or both) happens.
- Variance
- The average of the squared distances from the mean; it measures spread.