Subject
Statistics & Probability
Samples, distributions, intervals and error — the arithmetic of uncertainty.
Tutorials
- Base Rates and Survivorship: Two Reasons a Convincing Story Can Mislead You
Rare events produce mostly false alarms even from a good screen, and studying only the winners hides what the losers did too. Both are failures to ask: how common is this, and who is missing?
- Correlation vs. Causation in Practice: Four Questions Before You Believe a Pattern
Products with feature X sell more. Does X cause the sales? Four questions (reverse direction, a third factor, chance and selection) and a design that can answer them.
- Try Enough Rules and One Will Work: Multiple Comparisons and Backtest Overfitting
Test twenty rules on the same history and the best one will look impressive even if all twenty are noise. How big the effect is, how to count your attempts, and how to correct for them.
- Are Your Probabilities Honest? A Practical Guide to Calibration and the Brier Score
Saying 70% is a promise: about seven in ten such calls should come true. How to check that promise with a table, a chart and one number, using twenty forecasts.
- Top-N Lists Are Not the Market: Sampling Frames, Rank and Sales
A list of the 100 best sellers describes the best sellers. It is a selected sample whose members were chosen by the very thing you may want to measure. What it can and cannot tell you.
- Missing Is Not Zero: Five Kinds of Empty and What to Do with Each
An empty cell can mean not observed, not applicable, not yet available, a failed parse or a true zero. Treating them alike corrupts averages, totals and joins. How to keep them apart.
Glossary terms
- Attrition Bias
Bias that arises when units drop out of a study for reasons related to what is measured, so the units that remain no longer represent the original group.
- Base Rate
How common something is in the whole relevant population, before looking at any specific evidence.
- Baseline
A simple method, such as repeating the last value, against which a new method is compared. A result means something only relative to it.
- Bootstrap
Estimating how much a statistic would vary from sample to sample by resampling the observed data, with replacement, many times.
- Brier Score
The average squared difference between forecast probabilities and what happened. Lower is better; always saying 50% scores 0.25.
- Calibration
Events forecast at p% happen about p% of the time. Calibration is separate from accuracy: an overconfident forecaster is not calibrated.
- Cohen's Kappa
How much two raters agree beyond what chance alone would produce: 1 is perfect, 0 is no better than chance.
- Cohort Analysis
Grouping items or people by a shared starting point, such as the month they first appeared, and following each group over time.
- Concept Drift
A change over time in the relationship between inputs and the outcome, so that a model or rule that once worked slowly stops working.
- Confidence Interval (CI)
A range calculated from a sample that expresses how precisely a quantity has been estimated. A 95% interval comes from a procedure that captures the true value in 95% of repetitions.
- Confounding
A third factor that influences both the supposed cause and the outcome, creating or hiding an association between them.
- Correlation vs. Causation
Correlation means two quantities move together; causation means changing one would change the other. Data alone cannot tell which, or whether a third factor drives both.
- Cosine Similarity
How closely two vectors point in the same direction, as the cosine of the angle between them. It ignores length.
- Cross-validation
Estimating how well a method will do on new data by repeatedly leaving part of the data out, training on the rest, and rotating.
- Data Leakage
Information that would not exist at prediction time finds its way into the data used to build or evaluate a model, so results look better than they can ever be in use.
- Effect Size
How big a difference or relationship is in practical terms, as opposed to whether it can be detected statistically.
- Fixed-point and Floating-point Numbers
Floating-point numbers are fast but cannot hold many decimal fractions exactly; money and other exact quantities are better stored as whole numbers of a small unit.
- Herfindahl–Hirschman Index (HHI)
A measure of market concentration: the sum of the squared market shares, in percent, of all sellers. It rises sharply when a few sellers dominate.
- Holdout Set
Data set aside before any building begins and used once, at the end, to estimate performance on unseen data.
- Long Tail
The many niche items that each sell little but together make up a large share of sales, typical of markets where shelf space costs almost nothing.
- Median and Mean
The mean is the sum divided by the count; the median is the middle value. Extreme values pull the mean but not the median.
- Missing Data
Values that should exist but were not recorded. Why they are missing decides whether ignoring them is harmless or biases the result.
- Moving Average
Replacing each point of a series with the average of the points around it, to smooth short-term noise. A longer window smooths more but reacts later.
- Multiple Comparisons Problem
The more tests, rules or variants you try on the same data, the more likely some look significant by chance. The number of tries has to be counted.
- Outlier
An observation far from the rest. It may be an error, a rare but real event, or a sign of two kinds of things mixed together; look before deleting.
- Overfitting
When a model learns the noise in its training data instead of the real pattern, and so fails on new data.
- P-value
How surprising the data would be if the null hypothesis were true. It is not the probability that the hypothesis is true.
- Panel Data
Observations of the same units, such as products, firms or people, repeated over time, so change can be studied within each unit.
- Percent vs. Percentage Points
A percentage point is the difference between two percentages; a percent change is that difference relative to the starting value.
- Percentile
The value below which a given percentage of observations fall. The 50th percentile is the median; the 90th marks the value that 90% do not exceed.
- Population and Sample
The population is everything you want to know about; the sample is the part you observed. Statistics asks what the second says about the first.
- Power-law Distribution
A distribution in which a few items are enormous and a long tail of items are tiny; the average is a poor summary of such data.
- Price Elasticity of Demand
How strongly the quantity bought responds to a price change: the percentage change in quantity divided by the percentage change in price.
- Ratings and Reviews
A rating is a score a customer gives; a review is the written text. The average score reflects the people who chose to rate, not all buyers.
- Regression to the Mean
Extreme measurements tend to be followed by less extreme ones, because part of any extreme value is chance. The worst look improved and the best look worse without any cause.
- Sales Rank
A marketplace's ordering of products within a category by recent sales. It is relative, changes constantly, and is not a count of units sold.
- Sampling Frame
The list or source a sample is actually drawn from. Whatever the frame leaves out cannot appear in the sample, however large the sample is.
- Seasonality
A regular pattern that repeats at a fixed period, such as higher sales every December. Without separating it, a normal seasonal rise is mistaken for growth.
- Selection Bias
The units in your data differ systematically from the group you want to describe, because of how they were chosen or kept. Results hold for the selected group only.
- Simpson's Paradox
A trend that appears in every subgroup can reverse or vanish when the groups are combined, because group sizes differ and the grouping is linked to both choice and outcome.
- Standard Deviation
How far values typically lie from their average, in the units of the data. Small means tightly clustered; large means spread out.
- Survivorship Bias
A selection error from studying only what survived a process and ignoring what dropped out along the way.
- Time Series
Observations of one quantity recorded in time order. Neighbouring values are related and order matters, so time series need methods that respect time.
- Z-score
How many standard deviations a value lies above or below the average of its group. It puts different measures on one scale.