395 misconceptions, each with the myth, why it's tempting, and what's true. Lessons show the ones they address right where they come up.
Agreement
The myth
Cronbach's alpha is high, so my scale measures one thing.
Why it's tempting
Alpha is called internal consistency, which sounds like the items share one meaning.
What's true
Alpha rises with the number of items and with their average correlation, whatever the structure. Two distinct clusters can produce a high alpha. Check dimensionality with factor analysis, and remember that items can agree and still measure the wrong thing.
The two methods correlate at 0.95, so they agree and I can swap one for the other.
Why it's tempting
Correlation is the first tool you learn for "do these go together", and a high value feels like confirmation.
What's true
Correlation measures how well a straight line fits, and not whether that line is the identity. A method that reads double the other correlates perfectly and never agrees. Plot the differences, and read the bias and limits of agreement against a limit you set in advance.
Show me
GExplorable · Building a Bland–Altman plot
Why can two methods correlate highly and still disagree?
What is the correlation between the two methods?
How sure?
Method A against method B: r = 0.999
Difference against mean
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Kappa is the standard measure of agreement, so a low value reads as a verdict on the raters.
What's true
When one category dominates, chance agreement is very high, and kappa can be near zero even when the raters agree on almost everything. Look at the table and the raw agreement, and report PABAK or AC1 next to kappa to see how much comes from prevalence.
Show me
GExplorable · The kappa paradox
How can two raters agree 90% of the time and still get a low kappa?
Guess Cohen's κ for this table.
How sure?
Rater 2: yes
Rater 2: no
Rater 1: yes
87
5
Rater 1: no
5
3
Green cells: agreement. κ = (agreement − chance) / (1 − chance), with chance = 85%.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A paired t test found no difference between the two methods, so they agree.
Why it's tempting
It's the standard test for paired data, and "no significant difference" sounds like "the same".
What's true
A paired t test looks at the mean difference only. Two methods can have no average bias and still disagree widely on individuals, and a noisier method makes the test less likely to reject. Use Bland–Altman limits of agreement to see how far apart individual readings fall.
Show me
GExplorable · Building a Bland–Altman plot
Why can two methods correlate highly and still disagree?
What is the correlation between the two methods?
How sure?
Method A against method B: r = 0.999
Difference against mean
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The correlation is near zero, so these two variables are unrelated.
Why it's tempting
Correlation is the first measure of relationship anyone learns, and it's the one in the matrix.
What's true
Pearson's r only sees straight-line association. A perfect U shape can give r near zero. Plot the pair, and use a dependence measure such as Chatterjee's ξ or distance correlation when you suspect a curve.
Show me
CExplorable · Dependence the correlation misses
Can two variables be strongly related and still have a correlation near zero?
Pearson's r for this relationship will be about what?
How sure?
Relationship
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A normality test tells me whether I may use a t test.
Why it's tempting
It gives a yes-or-no answer to a question that feels like yes or no, and some software runs it automatically.
What's true
With large samples, tests flag departures too small to matter, exactly when a t test is robust. With small samples, they miss serious departures, exactly when you need to know. Look at a Q–Q plot, think about your method's robustness at this sample size, and use a test only as one clue.
Show me
AExplorable · The normality-test paradox
Why is a normality test least helpful exactly when you might rely on it?
How often does Shapiro–Wilk reject this skew at n = 1,000?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My raw data must be normally distributed before I can use a t test or regression.
Why it's tempting
Textbooks list "normality" as an assumption, and a histogram of the raw column is the easiest thing to check.
What's true
A t test relies on the sampling distribution of the mean, which is close to normal in moderate samples even when the data aren't. Regression's normality assumption concerns the residuals, not the raw outcome or predictors. Transforming a column changes what you are estimating, so do it for a reason.
Show me
AExplorable · The central limit theorem machine
Why do averages look normal even when the data do not?
Before the machine runs: which way will the histogram of the means lean?
How sure?
Population
Each mean averages n draws.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The beamformer cancels the interferer in its beam pattern, so speech recognition will improve accordingly.
Why it's tempting
The pattern shows a deep null exactly where the interferer is.
What's true
A beam pattern at one frequency, under ideal assumptions with no echo, no microphone mismatch and a still source, says little about broadband speech in a real room. Word error rate and intelligibility can't be read off it: measure them end to end.
Show me
DExplorable · Beamforming: delay-and-sum, MVDR and a misaimed beam
How can a row of microphones listen to one talker and tune out another?
With these settings, what happens to the talker's level at the output?
How sure?
Microphones in a straight row. More of them give a narrower beam and more nulls to place.
Gap between neighbors in wavelengths. Above one half, copies of the beam (grating lobes) appear.
Where the wanted talker is, in degrees from straight ahead.
Where the unwanted sound comes from.
How loud the interferer is at each microphone, relative to the sensor noise.
How loud the talker is at each microphone, relative to the sensor noise.
Beamformer
Delay-and-sum lines the microphones up toward the talker; MVDR also uses the measured covariance to cancel what it hears from elsewhere.
Covariance
Noise and interference only (known silent moments), or everything the array hears, the talker included.
How far the assumed talker direction is from the true one.
Adds this much white noise to the covariance before inverting: a robustness fix that shallows the nulls.
Orange dot: the direction the beam was told to keep at 0 dB. Gains below −60 dB are drawn at −60. Bars below zero are drawn flat; read their numbers.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My recognizer works on clean recordings, so it will work in a noisy room.
Why it's tempting
Clean test sets are the standard benchmark.
What's true
Accuracy drops with noise, echo, distance from the microphone, accents and recording hardware. Test on recordings made in the conditions you'll meet, and report results by condition.
Show me
AExplorable · Sampling bias
Does a bigger sample fix a biased way of collecting data?
If you invite ten times as many people, what happens to the gap between the survey mean and the truth?
How sure?
How much more likely high earners are to answer.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
CTC merges repeated symbols, so it can't output a doubled letter like the "ll" in "hello".
Why it's tempting
Decoding collapses repeats, and "ll" is a repeat.
What's true
CTCConnectionist temporal classification (CTC)A loss that sums over every alignment of a label sequence to audio frames, using a blank symbol and merged repeats. collapses repeats only when no blank separates them. "l, blank, l" decodes to "ll". The loss adds up every alignment of labels and blanks that decodes to the transcript, which is how it learns without per-frame labels.
Show me
DExplorable · CTC: blanks, repeats and the forward table
How does CTC score a transcript without knowing which frame holds which letter?
What is the fewest number of frames that can spell this transcript?
How sure?
Transcript
The text the frames must spell. Doubled letters (aa, bb, oo) need a blank between them.
How many frames the audio gives. CTC emits one symbol (a letter or the blank) per frame.
Probability the toy acoustic model gives the symbol it favors in each frame.
Random jitter added to the model's scores before the softmax.
Skip rule
CTC may skip a blank only between two different letters. The wrong rule also skips it between equal letters.
Likeliest single path: a ∅ ∅ ∅ a ∅ b ∅. Greedy reading (top symbol per frame, collapsed): “aab”. Probabilities in each column of the lower table add up to 1.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A lower word error rate means the transcript is more useful.
Why it's tempting
Word error rate counts every mistake, so fewer mistakes sounds better.
What's true
Word error rateWord error rateSubstitutions + deletions + insertions needed to turn the output into its closest reference, over reference words, in %. weighs every word equally: a dropped "not" or a wrong name counts the same as a missed "um". Normalization of case, punctuation and numbers also changes it. Compare systems with the same normalization and read the errors that matter for your use.
Show me
CExplorable · Same statistics, different pictures
How can datasets with identical summaries look nothing alike?
As the cloud morphs into this shape, what happens to Pearson's r?
How sure?
Target
Mean, SD and correlation are held fixed along the way.
Mean of x
SD of y
Pearson r
Spearman ρ
54.30
26.90
−0.060
−0.029
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
System A scored a higher MOS in one study than system B did in another, so A sounds better.
Why it's tempting
Both are scores on the same 1-to-5 scale.
What's true
Opinion scores depend on the listeners, instructions, anchors and the other systems in the same test. Only scores from one test, with intervals, can be compared; MUSHRA-style tests with hidden references make those comparisons steadier.
Show me
BExplorable · How wide is an effect size's interval?
How many observations does it take to pin down an effect size?
How many per group for an interval this narrow?
How sure?
Confidence
The dot is your study: d = 0.50, interval [−0.06, 1.06]. Intervals use the large-sample standard error √(2/n + d²/4n).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A random train–test split of audio clips is fine for a model meant to work on new speakers.
Why it's tempting
Each clip is a separate example.
What's true
Clips from the same speaker or recording on both sides of the split let the model recognize voices and rooms instead of learning the task, so scores won't hold for new speakers. Split by speaker, recording and source mix, as the audio contractData contract: audio waveformsSamples over time per channel: fix the sample rate, channels and level, and split by speaker, recording and source mixture. says.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My separation model's outputs line up with the sources, so I can score each output against the source in the same position.
Why it's tempting
Output 1 and source 1 sit in the same slot.
What's true
Separated outputs come in no particular order. Scoring by position can make a perfect separation look terrible. Match outputs to sources with the permutation that scores best, as permutation-invariant training and evaluation do, then report SI-SDRSI-SDR (scale-invariant signal-to-distortion ratio)How close a separated signal is to the true source in dB, ignoring its overall volume; higher is better, 0 dB means as much error as signal. per source.
Show me
DExplorable · Scoring separated sources: SI-SDR and permutation-invariant matching
How do you score a separator that returns the right voices in the wrong order?
A tone and a buzzy wave, plus a noise burst when there are three.
Output order
Separators don't know which output is which voice: here the outputs can come back rotated.
Share of the whole mix left in each output: the other sources bleeding through.
Scales every output. SI-SDR ignores the volume; SNR does not.
White noise the separator adds to each output.
Scoring
Match outputs to sources by trying every assignment (PIT), or score output k against source k.
Bars below zero are drawn flat; read their numbers. SI-SDR first rescales the source to fit the output, so the output's volume can't change it.
Mean SI-SDR as scored (dB)
17.40
Mean SI-SDR, best assignment (dB)
17.40
Mean SI-SDR, fixed order (dB)
−21.57
Mean SNR as scored (dB)
16.62
SI-SDR improvement over the mix (dB)
17.40
Puzzle: With the best assignment, find settings where SNR and SI-SDR disagree by more than 6 dB.
PIT matches source 1 → output 2, source 2 → output 1: mean SI-SDR 17.4 dB (SNR 16.6 dB); against the raw mix that is a change of 17.4 dB. Best assignment 17.4 dB against fixed order −21.6 dB.
PIT matches source 1 → output 2, source 2 → output 1: mean SI-SDR 17.4 dB (SNR 16.6 dB); against the raw mix that is a change of 17.4 dB. Best assignment 17.4 dB against fixed order −21.6 dB.
The generated speech has a small waveform error, so it sounds natural.
Why it's tempting
The output matches the recording sample by sample.
What's true
A tiny shift in phase gives a large waveform error yet sounds identical, while a small error can still sound robotic. Naturalness is a perception question: use listening tests such as MOSMean opinion score (MOS)The average of listeners' ratings, usually on a 1–5 scale; report its interval and the rater panel, not just the mean. with intervals, plus perceptual and intelligibility measures.
Show me
AExplorable · Spectrograms: window, hop, mel bands and the log floor
Why can't one spectrogram be sharp in both time and frequency?
The tones are 100 Hz apart. With this window, will they show as two lines?
How sure?
Sound
Two tones 100 Hz apart with a click halfway, a rising chirp, or a sung vowel.
Window length (samples)
Longer windows separate close frequencies but smear sounds in time. 8,000 samples per second.
Hop
How far the window moves between frames, as a share of its length.
Window shape
Hann and Hamming taper the edges; a rectangular window cuts them off and leaks energy into every bin.
Triangular filters spaced evenly on the mel scale: narrow at low pitch, wide at high pitch.
Anything quieter is drawn at the floor. A deeper floor shows faint detail and noise alike.
Show
The power spectrogram on a linear frequency axis, or the same power summed into mel bands.
Bins 62.5 Hz apart, window 16 ms, hop 4.0 ms. Orange ticks and lines mark the two tones.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Modern recognizers are very accurate on clear speech.
What's true
Sequence-to-sequence recognizers can write fluent text during silence, music or noise, repeat or drop phrases, and translate when you wanted a transcript. Listen to samples, use timestamps and confidence, and watch for invented textInvented transcript textFluent text nobody said, often on silence, music or noise ("Thank you."), or a phrase repeated until the window ends..
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
A Bayes factor of 10 means there's a 10-to-1 chance that the hypothesis is true.
Why it's tempting
Bayes factors are Bayesian, and 10-to-1 sounds like odds on the hypothesis.
What's true
A Bayes factor compares how well two hypotheses predicted the data. To get odds on the hypothesis, multiply it by your prior odds. A skeptic and a believer share the Bayes factor, and can still end up with different odds.
Show me
EExplorable · The Savage–Dickey Bayes factor
Can you read a Bayes factor off a picture of the prior and the posterior?
Do these data favor the null (θ = 0.5) over the alternative?
How sure?
Small values spread the prior out; large values pile it at 0.5.
The two dots are the densities at the null value. Posterior over prior: 0.45 / 1.00 = BF₀₁ = 0.452.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
With Bayes factors, I can stop whenever I like, and it has no consequences.
Why it's tempting
The Bayes factor's meaning doesn't depend on the stopping rule, and that's often quoted as a free pass.
What's true
Its meaning holds, but effect estimates at the stopping point tend to run high, and the chance of misleading evidence depends on your threshold and prior. Plan with a design analysis, and report the rule.
Show me
BExplorable · Optional stopping
What happens to the false-positive rate if you check the p-value as data arrive and stop when it is significant?
With this peeking schedule, what share of no-effect studies will end 'significant'?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A very wide prior is the neutral, objective choice for a Bayes factor.
Why it's tempting
For estimation, a vague prior often lets the data speak, so it seems to be the safe default for testing too.
What's true
In a test, the prior defines what the alternative predicts. A very wide prior predicts huge effects, so the alternative is penalized almost automatically, and the Bayes factor drifts toward the null. Choose a scale you can defend, and report the range across scales.
Show me
BExplorable · Lindley's paradox
Can the same p-value count as evidence for the null when the sample is huge?
With this p and this n, which hypothesis does the Bayes factor favor?
How sure?
Under H₁ the standardized effect is drawn from Normal(0, τ²).
Above the line the data favor the null; below it, the alternative. The p-value is the same all the way along the curve. BF₀₁ here: 0.67.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The effective sample size can never be larger than the number of draws.
Why it's tempting
Correlated draws carry less information than independent ones, so ESS should be smaller.
What's true
Anticorrelated draws, which Hamiltonian samplers sometimes produce, can estimate a mean better than independent ones, so ESS can exceed the draw count. Clipping it changes its meaning. ESS also differs by quantity: tail quantiles usually have far less than the mean.
Show me
EExplorable · MCMC samplers: acceptance is not mixing
Do four chains of a sampler agree about the target, and does a high acceptance rate mean they will?
Target
The distribution the chains try to sample.
How strongly the Gaussian's two coordinates move together.
Sampler
Gibbs needs each coordinate's conditional distribution; only the Gaussian has them here.
Random-walk proposal scale, or HMC's leapfrog step.
HMC only: steps of the simulated trajectory per proposal.
Draws in each of the four chains.
Chain 1, starts at (-3, -3)
Chain 2, starts at (3, 3)
Chain 3, starts at (-3, 3)
Chain 4, starts at (3, -3)
Acceptance rate
0.533
R-hat of x₁
1.029
Bulk ESS of x₁
72
ESS per draw
0.018
Puzzle: Find a sampler and step size with R-hat below 1.01 and a bulk ESS above 400.
Puzzle: Push the acceptance rate above 90% while R-hat stays above 1.05.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
A high Metropolis acceptance rate means the chain is mixing well.
Why it's tempting
Accepted proposals are progress, and rejections look like wasted work.
What's true
Tiny proposal steps are almost always accepted and barely move the chain, so it explores slowly. Mixing is about how quickly the chain forgets where it started: look at autocorrelation and effective sample sizeEffective sample size (MCMC)How many independent draws the correlated draws are worth. Bulk ESS covers the center; tail ESS covers intervals., and aim for a moderate acceptance rate.
Show me
EExplorable · MCMC samplers: acceptance is not mixing
Do four chains of a sampler agree about the target, and does a high acceptance rate mean they will?
Target
The distribution the chains try to sample.
How strongly the Gaussian's two coordinates move together.
Sampler
Gibbs needs each coordinate's conditional distribution; only the Gaussian has them here.
Random-walk proposal scale, or HMC's leapfrog step.
HMC only: steps of the simulated trajectory per proposal.
Draws in each of the four chains.
Chain 1, starts at (-3, -3)
Chain 2, starts at (3, 3)
Chain 3, starts at (-3, 3)
Chain 4, starts at (3, -3)
Acceptance rate
0.533
R-hat of x₁
1.029
Bulk ESS of x₁
72
ESS per draw
0.018
Puzzle: Find a sampler and step size with R-hat below 1.01 and a bulk ESS above 400.
Puzzle: Push the acceptance rate above 90% while R-hat stays above 1.05.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
A Laplace approximation is fine for any posterior.
Why it's tempting
It is fast, and many posteriors look roughly bell-shaped.
What's true
It fits a normal distribution at the posterior's peak. Skewed, bounded or multimodal posteriors are badly described, and the peak can sit far from where most of the probability is. Compare with sampling on the parameters you report.
Show me
EExplorable · From prior to posterior
How does evidence update what you believed, and how much does the prior matter?
What is the posterior mean?
How sure?
Dashed: prior. Second line: what the data alone say. Solid: posterior, a compromise weighted 83% toward the data.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
If importance sampling is noisy, more samples will fix it.
Why it's tempting
Monte Carlo error shrinks as the number of samples grows.
What's true
When the proposal misses where the target has its mass, a few huge weights dominate and the estimate's variance can even be infinite, so more samples barely help. Check the weights' effective sample size and their tail, and fix the proposal.
Show me
EExplorable · Importance weights and SMC
When do importance weights collapse onto a few particles, and how does tempering with resampling keep them useful?
Method
Weight once, or move from the proposal to the target in small steps, resampling as needed.
The target is a normal with this mean and SD 1 in every dimension.
The proposal is a normal centered at 0 with this spread.
Weights multiply across dimensions, so mismatch compounds.
Draws from the proposal.
SMC only: how many small steps from proposal to target.
Target (one coordinate)
Proposal
Effective sample size
64.1%
of 300 particles, from one round of weighting.
ESS share (lowest)
0.641
Largest weight
0.007
Estimate of the mean
1.011
Log evidence (truth 0)
0.044
Resampling steps
0
Puzzle: In 10 or more dimensions, keep the lowest ESS above 20% of the particles.
Puzzle: In one dimension, find a proposal that leaves plain importance sampling with an ESS under 10% of the particles.
Plain importance sampling with 300 particles in 1 dimension: the effective sample size is 64.1% of the particles, the largest weight is 0.007, the estimate of the mean is 1.01 (truth 1.00) and the log evidence is 0.04 (truth 0).
Plain importance sampling with 300 particles in 1 dimension: the effective sample size is 64.1% of the particles, the largest weight is 0.007, the estimate of the mean is 1.01 (truth 1.00) and the log evidence is 0.04 (truth 0).
None of my 1,000 replicated datasets was that extreme, so the probability is zero.
Why it's tempting
Zero out of a thousand looks like never.
What's true
A count of zero from a finite number of draws means the probability is probably small, not zero. Report an upper bound instead: with zero hits in n draws, a 95% upper bound is roughly 3 / n.
Show me
EExplorable · Do proportion intervals keep their promise?
How often does a 95% interval for a proportion really contain the truth?
How often does the textbook Wald interval cover the truth here?
How sure?
Confidence
Red: Wald. Blue: Wilson. The other: Clopper–Pearson, which never falls below the stated level and is often wider than needed. These are exact sums, not simulations.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Hamiltonian Monte Carlo reported no divergences, so the posterior is trustworthy.
Why it's tempting
Divergences are the sampler's alarm, and it stayed quiet.
What's true
Divergences flag one kind of trouble, regions the sampler can't follow. Their absence doesn't rule out missed modes, a prior that dominates or a model that doesn't fit the data. Check posterior predictions and how sensitive the answer is to the prior.
Show me
EExplorable · MCMC samplers: acceptance is not mixing
Do four chains of a sampler agree about the target, and does a high acceptance rate mean they will?
Target
The distribution the chains try to sample.
How strongly the Gaussian's two coordinates move together.
Sampler
Gibbs needs each coordinate's conditional distribution; only the Gaussian has them here.
Random-walk proposal scale, or HMC's leapfrog step.
HMC only: steps of the simulated trajectory per proposal.
Draws in each of the four chains.
Chain 1, starts at (-3, -3)
Chain 2, starts at (3, 3)
Chain 3, starts at (-3, 3)
Chain 4, starts at (3, -3)
Acceptance rate
0.533
R-hat of x₁
1.029
Bulk ESS of x₁
72
ESS per draw
0.018
Puzzle: Find a sampler and step size with R-hat below 1.01 and a bulk ESS above 400.
Puzzle: Push the acceptance rate above 90% while R-hat stays above 1.05.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
The posterior predictive check looks fine, so my model is right.
Why it's tempting
Replicated data look like the real data.
What's true
A posterior predictive checkPosterior predictive checkCompare data simulated from the fitted model with the observed data; a systematic gap shows what the model misses. uses the data twice, so it is lenient, and it only tests the statistics you chose to compare. A pass means no misfit was found in those statistics, not that the model is correct. Choose checks that target what the model could get wrong.
Show me
EExplorable · From prior to posterior
How does evidence update what you believed, and how much does the prior matter?
What is the posterior mean?
How sure?
Dashed: prior. Second line: what the data alone say. Solid: posterior, a compromise weighted 83% toward the data.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My sampler passed simulation-based calibration, so it's correct.
Why it's tempting
SBC is designed to catch broken inference algorithms.
What's true
An algorithm that ignores the data and returns draws from the prior produces perfectly uniform ranks for the parameters, so it passes. SBC only detects failures visible in the quantities you rank. Include data-dependent quantities such as the log-likelihood, and check parameter recovery too.
Show me
EExplorable · Simulation-based calibration
Does an inference algorithm give calibrated posteriors, and what can a calibration check miss?
Posterior sampler
The algorithm under test. θ ~ N(0, 1), each observation ~ N(θ, 1).
R-hat is the standard convergence diagnostic, and 1 is its ideal value.
What's true
R-hatR-hat (rank-normalized)Compares the spread between chains with the spread within them; 1.01 or less means the chains agree. near 1 is needed but not enough: every chain can miss the same mode. Use rank-normalized split R-hat with bulk and tail effective sample sizes, start chains from spread-out points, and check for divergences and other sampler warnings.
Show me
EExplorable · MCMC samplers: acceptance is not mixing
Do four chains of a sampler agree about the target, and does a high acceptance rate mean they will?
Target
The distribution the chains try to sample.
How strongly the Gaussian's two coordinates move together.
Sampler
Gibbs needs each coordinate's conditional distribution; only the Gaussian has them here.
Random-walk proposal scale, or HMC's leapfrog step.
HMC only: steps of the simulated trajectory per proposal.
Draws in each of the four chains.
Chain 1, starts at (-3, -3)
Chain 2, starts at (3, 3)
Chain 3, starts at (-3, 3)
Chain 4, starts at (3, -3)
Acceptance rate
0.533
R-hat of x₁
1.029
Bulk ESS of x₁
72
ESS per draw
0.018
Puzzle: Find a sampler and step size with R-hat below 1.01 and a bulk ESS above 400.
Puzzle: Push the acceptance rate above 90% while R-hat stays above 1.05.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
Random-walk Metropolis on the correlated Gaussian: 53% of proposals accepted, R-hat 1.029, bulk ESS 72 of 4000 draws. The four chains still disagree, so these draws don't describe the target yet. The acceptance rate alone says nothing about mixing.
Variational inference gives me the posterior, only faster.
Why it's tempting
It returns a distribution over the parameters, like MCMC.
What's true
Mean-field variational inference minimizes a KL divergence that tends to make the approximation too narrow, ignores correlations between parameters and can lock onto one mode. Compare with MCMC on a smaller problem or use diagnostics such as Pareto k before relying on its intervals.
Show me
EExplorable · Mean-field VI and the direction of the KL
What does a mean-field variational fit get wrong, and why does it miss spread rather than add it?
Target
The posterior the fit approximates.
How strongly the Gaussian's coordinates move together; mean-field can't represent it.
Where the fit's mean starts; with two modes it decides which one it finds.
Stochastic gradient steps on the ELBO.
Starting step size; it shrinks as 100 / (100 + t).
Monte Carlo draws behind each gradient estimate.
Target
VI fit, minimizing KL(q‖p)
Forward-KL optimum, KL(p‖q)
Fitted mean of x₁
−0.020
Fitted SD of x₁
0.618
Fitted SD of x₂
0.590
Share of the true spread
0.618
Puzzle: Find settings where the fit reports less than half of x₁'s true spread.
Puzzle: Make the fit land on the left mode of the two-mode target.
The fitted q has means (−0.02, 0.03) and standard deviations (0.62, 0.59). The target's true SD of x1 is 1.00, so the fit reports 62% of the real spread. On a Gaussian with correlation 0.80 the best mean-field fit has SD √(1 − ρ²) = 0.60: it is too confident, never too cautious.
The fitted q has means (−0.02, 0.03) and standard deviations (0.62, 0.59). The target's true SD of x₁ is 1.00, so the fit reports 62% of the real spread. On a Gaussian with correlation 0.80 the best mean-field fit has SD √(1 − ρ²) = 0.60: it is too confident, never too cautious.
After matching, the groups look the same, so the estimate is causal.
Why it's tempting
A balance table full of small differences looks like a randomized experiment's.
What's true
Matching can only balance what you measured. Unmeasured confounders can remain, which is why the app caps these designs at a conditional causal claim and asks for a sensitivity analysis.
Show me
DExplorable · Propensity scores and overlap
What happens to a weighted estimate when treated and untreated people barely resemble each other?
After weighting, what share of these people's information is left (effective sample ÷ n)?
How sure?
Trimming changes who the estimate is about.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The more variables I adjust for, the less biased my estimate gets.
Why it's tempting
Adjustment removes confounding, so more adjustment seems safer.
What's true
Adjusting for a collider opens a path that creates bias, and adjusting for a mediator removes part of the effect you wanted. Decide what to adjust for from a causal diagram, not from what's in the table.
Show me
DExplorable · What should you adjust for?
Does adding a variable to the model remove bias or create it?
In this graph, what will adding Z to the model do to the estimate of X's effect?
How sure?
The causal graph
Add Z to the regression of Y on X (or click Z in the graph).
Click Z to adjust for it. A square means Z is in the model. A red path is an open non-causal path between X and Y.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I used fixed effects, so confounding is taken care of.
Why it's tempting
Fixed effects remove every stable difference between units, even ones you never measured.
What's true
They only remove what stays constant within a unit. Anything that changes over time and moves both treatment and outcome still biases the estimate, and so does feedback from outcomes to later treatment. That's why these designs are capped below a quasi-experimental claim.
Target the customers my model says are most likely to buy.
Why it's tempting
A good model of who buys feels like a good model of whom to approach.
What's true
A likely buyer may buy anyway, so an offer changes nothing for them. Targeting needs the effect of the offer, not the outcome. Estimate that effect, and validate the score on randomized data with a Qini curve or a RATE.
The pre-trends test wasn't significant, so parallel trends holds.
Why it's tempting
A clean pre-period chart is the only direct evidence you have.
What's true
Parallel trends is a claim about the post-period, when the counterfactual can't be seen. A non-significant pre-trend test may only reflect low power. Treat flat leads as support, not proof, and say why the trends should stay parallel.
Show me
DExplorable · Parallel trends in difference-in-differences
What does a difference-in-differences estimate report when the two groups were already drifting apart?
With these settings, what will difference-in-differences report?
How sure?
Per period. Zero means parallel trends hold.
Treated
Control
Treated, had it followed the control group's change
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The level change has p < .05, so the interrupted time series shows an effect.
Why it's tempting
The standard errors already allow for autocorrelation, so the p-value looks trustworthy.
What's true
On short series, Newey–West standard errors are still too small. In simulations with no effect, its level tests rejected about 14–26% of the time at the 5% level at 24 periods, and 7–13% at 240. AR(1) errors by REML hold closer to 5%, but only if AR(1) describes the errors. Whichever you use, compare the size of the change with changes at placebo dates before the intervention, where nothing happened.
Lesson: Interrupted time seriesBernal et al. (2017), Interrupted time series regression · Turner et al. (2021), Evaluation of statistical methods used in the analysis of interrupted time series studies
The myth
My instrument's first stage is significant, so the instrument is fine.
Why it's tempting
A small p-value on the instrument looks like proof that it works.
What's true
Significance isn't strength: a weak instrument can still give biased 2SLS estimates with misleading intervals. Check the effective F and read Anderson–Rubin intervals. Strength also says nothing about the exclusion restriction, which you must argue from outside the data.
Show me
DExplorable · How strong is your instrument?
What goes wrong with instrumental variables when the instrument barely moves the treatment?
How often will the nominal 95% interval from two-stage least squares cover the true effect?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The Rayleigh test wasn't significant, so the directions are uniform.
Why it's tempting
Uniformity is the null hypothesis, and the test is the usual first check.
What's true
Rayleigh looks for one preferred direction. Two opposite clusters, or seven daily peaks around a weekly circle, cancel in the resultant length and leave it close to zero. Plot a rose diagram, then use Kuiper, Watson or Rao spacing, which look at the whole distribution or the gaps.
Show me
AExplorable · The mean of an angle
What is the average of 350° and 10°?
What does the ordinary arithmetic mean of these angles come to?
How sure?
Solid arrow: the circular mean, 344.3°, with length R̄ = 0.89. Dashed red: the arithmetic mean, 236.5°, which can point away from every observation.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
GEE and a logistic mixed model should give the same odds ratio, so a difference means one is wrong.
Why it's tempting
Both handle the same clustered data, and both print odds ratios for the same predictors.
What's true
They answer different questions. A mixed model's odds ratio is for one group member. GEE's describes the population average. Averaging S-shaped curves across people gives a flatter curve, so GEE's ratio sits closer to 1. The gap widens with the spread between groups, and it only vanishes in linear models.
Hausman wasn't significant, so random effects are right.
Why it's tempting
The test is taught as a decision rule between two models, so a large p-value feels like permission.
What's true
A large p-value is compatible with the assumption, and it's also what you'd see with too little within-unit variation to detect a problem. Classic Hausman also assumes homoskedastic errors. Check Mundlak's cluster-robust form, and weigh what each model costs: fixed effects stay valid either way, at some cost in precision.
The panel unit-root test rejected, so all my series are stationary.
Why it's tempting
A single pooled statistic seems to speak for the whole panel, and most reports give only that.
What's true
Most of these tests have "every unit has a unit root" as the null, so rejecting it says only that it isn't true of all of them. Half the units can still be random walks. Read the unit-by-unit table. If you need every unit to be stationary, the panel test can't show that.
Show me
DExplorable · Unit roots and spurious regression
Why do two unrelated trending series look strongly related?
How often does this regression find a "significant" link between independent series?
How sure?
φ = 1 is a random walk, which never returns to a mean.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A random intercept for each person takes care of the repeated measures.
Why it's tempting
It removes a lot of the correlation, and the residual plots often look fine.
What's true
A random intercept lets people start at different levels, while it forces everyone to share one slope. If the effect differs between people, that disagreement ends up in the residual, and the test of the effect is far too optimistic. Add a random slope for any predictor that varies within a group and whose effect could differ between groups.
The row count is the first number you see, and many formulas call it n.
What's true
Rows in a group overlap in what they tell you. Ten thousand rows from 40 classrooms are worth far less than 10,000 independent students, especially for a predictor that only varies between classrooms. The design effect, 1+(m−1)ρ, gives the size of the gap. Ignoring it gives false positives, and adding rows per cluster makes them worse.
Show me
BExplorable · When observations come in clusters
What happens to a t test when students come in classrooms and you ignore it?
There is no true effect. How often does the naive t test reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
ANCOVA adjusts for the baseline difference, so my non-randomized groups can now be compared fairly.
Why it's tempting
The adjusted means look like what would have happened if the groups had started out equal.
What's true
ANCOVA improves precision in a randomized study, where groups differ at baseline only by chance. In an observational study it fixes only the covariates you measured, relies on a straight line outside the overlap, and can introduce bias (Lord's paradox). The comparison is still an association, so state the assumptions that a causal reading needs.
Show me
BExplorable · ANCOVA and adjusted means
When does adjusting for a covariate help, and when does it remove the effect you wanted?
What will the adjusted difference be?
How sure?
The covariate was measured
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A significant ANOVA tells me which group is different.
Why it's tempting
The F test is run first, and the largest gap in the means looks like the obvious explanation.
What's true
The F test says only that the means aren't all equal. Any pattern of differences could produce it, and it can be significant when no single pair is. Use a planned post hoc procedure to compare pairs, with its adjustment, and report the intervals for those differences.
Show me
BExplorable · Splitting the variance
What is ANOVA actually comparing?
What will the F statistic be? (40 means 40 or more.)
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The main effects in my two-way ANOVA still tell me the effect of each factor, whatever the interaction shows.
Why it's tempting
ANOVA tables print a main effect for each factor, and those lines look complete on their own.
What's true
When the interaction is real, a main effect averages over different effects, and that average can be close to zero while both simple effects are large. Plot the cell means, then report simple effects at the levels that matter.
Show me
DExplorable · Interactions and simple slopes
When the effect of x depends on a moderator, where is it actually different from zero?
What is the slope of x at this moderator value?
How sure?
Centering: with a mean far from zero, the coefficient on x describes a moderator value no one has.
Where the band excludes zero, the slope of x is significant at that moderator value. Johnson–Neyman (J–N) marks the boundaries.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A significant Mann–Whitney test shows that the two groups have different medians.
Why it's tempting
It's taught as the non-parametric t test, and medians are the natural summary of skewed data.
What's true
The test asks how often a value from one group beats a value from the other. It's a test of medians only when both distributions have the same shape and differ by a shift. Groups with equal medians and different shapes can give a small p-value. Report the probability of superiority, or use Brunner–Munzel when the shapes differ.
The pooled t test rejects more often than Welch's in my simulation, so it's the more powerful, better test.
Why it's tempting
More rejections under the alternative sounds like more power.
What's true
Power only counts at the same false-positive rate. With unequal variances and unequal group sizes, the pooled test can reject true nulls far more often than 5%, so some of its extra "power" is error. Compare tests after checking their size under the null.
Show me
BExplorable · Student's t against Welch's t
When the group variances differ, which t test keeps its promised 5% error rate?
When the smaller group has the larger SD, Student's t (pooled variance) rejects a true null…
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I should test for equal variances first, then choose Student's t or Welch's t from the result.
Why it's tempting
It looks careful, since the assumption gets checked before the test that needs it.
What's true
Variance tests are unreliable in small samples and oversensitive in large ones, so they make the wrong call where it matters most. Choosing a test from a pre-test also distorts the error rate of the two-step procedure. Use Welch from the start: when variances really are equal, it costs almost nothing.
Show me
BExplorable · Student's t against Welch's t
When the group variances differ, which t test keeps its promised 5% error rate?
When the smaller group has the larger SD, Student's t (pooled variance) rejects a true null…
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
We have millions of rows, so that correlation can't be down to confounding.
Why it's tempting
Large samples do remove doubt about whether an association exists, and that certainty spills over to why it exists.
What's true
Sample size shrinks random error, and a confounder isn't random error. With more rows, a confounded association is measured more precisely, and its interval tightens around the wrong answer. Comparing the pooled and stratified views shows that the reversal in Simpson's paradox doesn't depend on n.
I controlled for age in the correlation, so confounding is no longer a problem.
Why it's tempting
A partial correlation looks like the original with the bias subtracted, and "controlled for" sounds final.
What's true
A partial correlation removes the linear part of one measured variable, and nothing else. Unmeasured confounders stay. A variable measured with error is only partly removed. If the variable sits on the causal path, or is a common effect, adjusting for it can add bias. Decide what to adjust for from a causal diagram, not from the number.
Show me
CExplorable · Partial correlation is a correlation of residuals
What does it mean to hold a third variable constant, and when does that mislead?
What will the correlation be after adjusting for the third variable?
How sure?
The third variable is
x and y: r = 0.17
After removing z: r = −0.02
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A join only adds columns, so my totals can't change.
Why it's tempting
It's how people picture a lookup, and a query with a bad join runs without an error.
What's true
A join returns one row per matching pair. If the key repeats on the side you're adding, rows multiply and every total after it is wrong. If a key has no match, an inner join drops the row. Compare row counts before and after, and check that the key is unique first.
A bandit is an A/B test that also earns more, so it's always the better choice.
Why it's tempting
Bandits lose less during the test, and every simulation shows regret going down.
What's true
Bandits optimize reward while running. They give you less precise effect estimates, since weaker arms get little traffic, and they can mislead when rewards drift or arrive late. Use them when learning the exact size of the effect doesn't matter; use an A/B test when the decision needs it.
Show me
EExplorable · The bandit race
How much does it cost to keep testing, and can you shift traffic while you learn?
Which policy will give up the fewest conversions over this many users?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
With enough care, a model can be fair on every fairness metric at once.
Why it's tempting
Each metric sounds like a reasonable requirement, so surely you can have them all.
What's true
When base rates differ between groups, calibration and equal error rates generally can't all hold. You have to decide which harm matters most in your setting, say so, and report the others alongside it.
We have millions of logged decisions, so we can evaluate any new policy offline.
Why it's tempting
With that much data, it seems there must be enough to answer any question.
What's true
Logs only show the choices the old policy sometimes made, and you need the probability it had of making each one. If it never showed an option to some users, no amount of data says how they'd respond. Log propensities, and keep some randomization.
Put the average of each input in the model and you get the average outcome.
Why it's tempting
A single-number plan is simple, and spreadsheets are built to work this way.
What's true
That only holds for linear models. With a stockout, a cap or any other limit, the plan's number is not the expected result, and it says nothing about risk. Simulate the inputs to see the range and the true average.
Show me
DExplorable · Monte Carlo risk and the flaw of averages
If you plan on average demand and average price, how wrong can the average plan be?
Compared with plugging in average demand and price, will the average simulated profit be…
How sure?
You can't sell more than you can make.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Labor's shadow price is 4, so 1,000 more hours will add 4,000 of profit.
Why it's tempting
A shadow price looks like a fixed exchange rate between a resource and profit.
What's true
A shadow price only holds while the same constraints stay binding. Add enough of one resource and another limit takes over, so the extra units are worth less or nothing. Sweep the constraint to see where the slope changes.
Show me
DExplorable · The feasible region of a linear program
Which mix of two products earns the most, and what is one more hour of labor worth?
How much would profit rise with one more hour of labor?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Drift alert! The model has got worse, and we need to retrain.
Why it's tempting
Drift and decay often arrive together, and a red alert feels like a verdict on the model.
What's true
Drift says the inputs have moved, not that predictions got worse. A shift in a feature the model barely uses may do no harm. Look at which features moved and at performance on labeled rows. And the reverse holds too: accuracy can fall with no drift at all, when the link between inputs and outcome changes.
The new version's AUC is higher than the champion's, so we should promote it.
Why it's tempting
A leaderboard sorts by score, and higher looks better.
What's true
A small gain on one test set can be noise, and two separate intervals hide what the models share. Compare them on the same rows with a paired bootstrap, against a margin you chose in advance. A version can be worth promoting when it ties, and not worth it when it edges ahead.
Show me
BExplorable · Two one-sided tests
How do you show that two things are the same, not merely that you found no difference?
What can you conclude here?
How sure?
Inconclusive: neither test rejects
Equivalent when the whole 90% interval sits inside the margins. TOST p = .068; ordinary test p = .618.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
We retrained after a bad month, and the metric recovered, so retraining fixed it.
Why it's tempting
The order of events looks like cause and effect, and the fix feels earned.
What's true
You acted because a noisy metric looked bad, and noisy metrics chosen for looking bad tend to rise anyway. The recovery is compatible with a real improvement and with regression to the mean. Compare the old and new versions on the same rows to tell them apart.
Show me
CExplorable · Regression to the mean
Why do the worst performers often improve with no treatment at all?
What does the selected group average on the second test?
How sure?
The diagonal means "same score twice". The large dot is the selected group's average: it sits below the diagonal, with no treatment.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The KS test on income gives p < .001, so income has drifted in a way that matters.
Why it's tempting
A tiny p-value feels like strong evidence of a big change.
What's true
A p-value measures evidence, and with enough rows trivial shifts reach significance. That's why the app judges large training sets by distance rather than by p-value. Read the size of the shift, and ask whether it could change a decision.
Show me
AExplorable · The normality-test paradox
Why is a normality test least helpful exactly when you might rely on it?
How often does Shapiro–Wilk reject this skew at n = 1,000?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The group and the rest differ most in age, so age explains why the group is different.
Why it's tempting
Compare lists the columns with the largest standardized difference first, which looks like a ranking of reasons.
What's true
Compare describes how two sets of rows differ. It doesn't say which difference came first or which one matters for an outcome. Columns that travel together all show large gaps, and a gap in one can be the consequence of another. Use the differences to decide what to adjust for or check next, not as a cause.
The mean tells you what a typical value looks like.
Why it's tempting
The word "average" means "typical" in everyday speech.
What's true
The mean is a balance point. In skewed data most values can lie below it, and in bimodal data almost no value may lie near it. Report the median for "typical", and the mean when totals matter. Giving both tells your reader about the shape.
Show me
AExplorable · Robust measures of the center
How many bad points does it take to drag each measure of the center away?
Which measure moves furthest from zero?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It's one number between 0.5 and 1, and it appears on every leaderboard.
What's true
The AUC measures ranking across every threshold. It says nothing about the threshold you'd use, how many alerts will be false at your prevalence, or whether the risks are right. Check PPV at your threshold, calibration, and whether acting on the model beats treating everyone or no one.
Show me
HExplorable · The ROC curve and its threshold
What does moving a threshold trade away, and what does the AUC really measure?
How often does a random positive score above a random negative?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Net benefit is about decisions, so it doesn't matter whether my risks are calibrated.
Why it's tempting
A decision curve only asks who crosses a threshold, which sounds like a question about ranking.
What's true
The threshold is a probability, so a risk of 12% has to mean 12%. If risks run too high, people you meant to leave alone cross the line, and net benefit can fall below treating everyone. Check calibration first, and read the curve only over thresholds in real use.
An NRI of 0.25 means 25% of patients were reclassified correctly.
Why it's tempting
It's a number between -2 and 2 that usually looks like a proportion, and papers often present it as one.
What's true
The NRI adds two net proportions with different denominators, so it's a share of nobody. It changes with the cut-offs, and a model with worse calibration can score higher. Report the event and non-event parts, with calibration and net benefit.
Lesson: Does a new marker add value? NRI, IDI and reportingKerr et al. (2014), Net reclassification indices for evaluating risk prediction instruments · Pepe et al. (2015), The net reclassification index: a misleading measure of prediction improvement
The myth
Observed and expected events match, so my model is well calibrated.
Why it's tempting
An O/E ratio of 1 looks like a clean pass, and it's the first number on the card.
What's true
O/E checks only the average. Risks that are too high for some people and too low for others can cancel out exactly. Check the slope and the calibration curve as well, on data the model didn't see.
Show me
HExplorable · Calibration and reliability
When a model says 80%, does the event happen 80% of the time?
If you make the model more overconfident, what happens to its AUC?
How sure?
Above 1 the model is too extreme; below 1 it hedges. At 1 it is perfectly calibrated.
Brier
ECE
Calibration slope
AUC
0.175
0.087
0.50
0.835
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The software found the optimal cut-off, so everyone should use that value.
Why it's tempting
The word "optimal" sounds like a property of the marker, and one clean number is easy to adopt.
What's true
It's optimal for one rule on one sample. Youden's J ignores costs and prevalence, and picking the best point on a noisy curve overstates its own sensitivity and specificity. Choose from what errors cost in your setting, and validate the cut-off on separate patients.
Show me
HExplorable · Rare events and the decision threshold
Why can a 98% accurate model be useless, and where should the threshold go?
A lazy model calls every case negative. What accuracy does it score?
How sure?
flagged
passed
pos
52
62
neg
312
4574
Bars are drawn to one count scale, so a rare positive class looks as rare as it is. The ROC curve barely notices the imbalance; the precision–recall curve shows it. Cheapest threshold here: 1.14; the binormal formula gives 1.35.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Choosing a cut-offLeeflang et al. (2008), Bias in sensitivity and specificity caused by data-driven selection of optimal cutoff values · Perkins & Schisterman (2006), The inconsistency of optimal cutpoints
The myth
The test is 95% sensitive, so a positive result means a 95% chance that I have the condition.
Why it's tempting
Both are conditional probabilities about the same two events, and everyday language runs them together.
What's true
Sensitivity starts from people who have the condition. A patient starts from a positive result, and that's the positive predictive value, which also depends on how common the condition is. With a rare condition, most positives from a good test are false.
Show me
HExplorable · What a positive test means
If a good test comes back positive, how likely is the disease?
A person tests positive. What is the chance they have the disease?
How sure?
Disease, test +: 19
No disease, test + (false positive): 49
Disease, test − (missed): 1
No disease, test −: 931
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The detector flagged 5% of rows, so 5% of my data is anomalous.
Why it's tempting
A count of flagged rows looks like a measurement of something in the data.
What's true
With the default share rule, the detector flags the top 5% whether or not anything is unusual. A flag says where to look. Use a score cutoff to let the count vary, compare detectors, and have someone review the rows.
Show me
AExplorable · Isolation forest: where to draw the line
Why are anomalies easy to isolate, and how many should you flag?
Cut at random until a point stands alone. On average, how many cuts does a planted anomaly take? (A normal point takes about 7.)
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
An isolation forest score of 0.8 means the row has an 80% chance of being an anomaly.
Why it's tempting
The score runs from 0 to 1 and higher means stranger, so it reads like a probability.
What's true
The score is a transformed path length, not a probability; another detector on the same rows gives a different scale. Calibrating against normal rows turns it into a p-value under "this row is normal", which still isn't the probability that the row is an anomaly. That would need the share of anomalies and labeled examples.
Show me
AExplorable · A score is not an alarm
How do you turn an anomaly score into alarms with a known false-alarm rate?
What share of new normal rows will raise an alarm (in %)?
How sure?
Alarm rule
Calibrate on
1 means new normal rows look like the calibration rows.
No alarm
Alarm
Calibration rows (dashed)
New normal rows
Planted anomalies
The cutoff comes from the calibration scores, not from the score's own scale. If calibration rows look like new normal rows, the share of normal rows past the cutoff stays near α.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The algorithm found five clusters, so my customers come in five groups.
Why it's tempting
The output is a tidy table of segments with names and sizes, and it looks like a discovery.
What's true
Clustering always returns the number of groups you ask for, even on pure noise. Before you believe a segment, check for structure with the Hopkins statistic, see whether the cluster survives resampling, and test profiles on rows the clustering never saw.
Show me
AExplorable · Step through k-means
How does k-means find clusters, and when does it find the wrong ones?
Assign each point to its nearest center, move each center to its points' mean, repeat. How many iterations until nothing changes?
How sure?
Data
Starting centers
Crosses mark the centers; dashed lines show how far each moved at this iteration.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Louvain found these communities, so that's the community structure of my network.
Why it's tempting
The algorithm returns one partition with a high modularity score, which looks definitive.
What's true
Modularity has many near-best partitions, so reruns with different seeds give different communities, and small communities can be merged because of the resolution limit. Random networks also have partitions with high modularity. Report how stable the communities are and compare with a stochastic block model.
Show me
AExplorable · Spectral clustering: cut a neighbor graph
How can clustering follow curved shapes that k-means slices straight through?
Which recovers the planted groups better on this data: k-means on the points, or k-means on the graph's eigenvectors?
How sure?
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Deep clustering finds better segments than k-means because it learns its own features.
Why it's tempting
Learned features beat hand-made ones in many deep-learning tasks.
What's true
Methods like DEC sharpen whatever partition they start from, often a k-means solution, and can collapse into a few big clusters. Results shift with the seed and the pretraining. Compare against k-means on PCA scores, with the same stability and external checks, before you trust the extra machinery.
Show me
AExplorable · Step through k-means
How does k-means find clusters, and when does it find the wrong ones?
Assign each point to its nearest center, move each center to its points' mean, repeat. How many iterations until nothing changes?
How sure?
Data
Starting centers
Crosses mark the centers; dashed lines show how far each moved at this iteration.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The dendrogram shows the true family tree of my rows.
Why it's tempting
A tree diagram looks like a discovered hierarchy, with every merge drawn at a precise height.
What's true
Agglomerative clustering always returns a tree, even for random data, and a different linkage gives a different tree. Where to cut it is your choice. Before reading groups off the tree, test whether a split is stronger than chance would give, using a test built for clusters chosen from the same data.
Show me
AExplorable · Cut a dendrogram
How do you choose clusters from a tree of merges?
Draw a horizontal line at this height across the tree. How many clusters does it cut into?
How sure?
Data
Linkage
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
An anomaly score is an alarm. Pick a cutoff on the score and that cutoff sets how many false alarms I get.
Why it's tempting
Detectors return a score per row, and a threshold on a score feels like a threshold on a probability.
What's true
A raw distance or isolation score has no fixed scale, so a cutoff doesn't tell you the false-alarm rate. Hold out rows you trust to be normal, compare each new score with them (a conformal p-value), and alert when that p-value is small. The guarantee covers new rows on average, not each subgroup, each month or one particular calibration sample.
Show me
AExplorable · A score is not an alarm
How do you turn an anomaly score into alarms with a known false-alarm rate?
What share of new normal rows will raise an alarm (in %)?
How sure?
Alarm rule
Calibrate on
1 means new normal rows look like the calibration rows.
No alarm
Alarm
Calibration rows (dashed)
New normal rows
Planted anomalies
The cutoff comes from the calibration scores, not from the score's own scale. If calibration rows look like new normal rows, the share of normal rows past the cutoff stays near α.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My Gaussian mixture has three components, so the data contain three subpopulations.
Why it's tempting
Each component has a weight, a mean and a spread, so it looks like a group of real people or things.
What's true
One skewed or heavy-tailed group can need several Gaussian components to fit, so BIC may choose more components because the shape isn't normal, not because there are more groups. Try t or skewed mixtures, merge components that overlap, and check the groups against features you didn't cluster on.
Show me
AExplorable · Gaussian mixtures by EM
How can you recover overlapping groups you never saw labeled?
The data come from three groups, this far apart. How many components will BIC choose?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My anomaly detector has a high AUROC on the test set, so it will work as an alarm.
Why it's tempting
AUROC is the standard score for detectors, and a high one means anomalies usually score higher.
What's true
AUROC ignores how rare anomalies are. When only a few rows in a thousand are anomalous, even a good ranking can produce mostly false alarms at a usable alert rate. Report precision at the alert rate you can staff, the alerts per day, and whether whole events (not single rows) get caught.
Show me
AExplorable · A score is not an alarm
How do you turn an anomaly score into alarms with a known false-alarm rate?
What share of new normal rows will raise an alarm (in %)?
How sure?
Alarm rule
Calibrate on
1 means new normal rows look like the calibration rows.
No alarm
Alarm
Calibration rows (dashed)
New normal rows
Planted anomalies
The cutoff comes from the calibration scores, not from the score's own scale. If calibration rows look like new normal rows, the share of normal rows past the cutoff stays near α.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Of two clusterings, the one with the higher silhouette is the one that finds the groups I care about.
Why it's tempting
The silhouette is one tidy number between −1 and 1, and higher looks like better, the way accuracy does.
What's true
The silhouetteSilhouette scoreHow well each point sits in its cluster compared with the nearest other cluster, from −1 to 1. rewards tight, well-separated, roughly round groups in the distance you chose. Curved, nested or uneven groups can score lower than a split that cuts them the wrong way, and points a density method sets aside as noise drop out of the score. Check against known labels where you have them (adjusted Rand index), look at the groups in the original columns, and test stability.
Show me
AExplorable · Do the clusters survive resampling?
Would the same clusters come back from a slightly different sample?
k-means always returns k clusters. Will its least stable cluster here come back in resamples (mean Jaccard above 0.75)?
How sure?
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Silhouette, Calinski–Harabasz and Davies–Bouldin all pick k = 4, so there really are four groups.
Why it's tempting
Three different formulas agreeing feels like three independent confirmations.
What's true
These indices share the same idea of a good cluster: compact and convex in your chosen distance. Their agreement isn't independent evidence, and data with no clusters at all still has a "best" k for each of them. First check whether there is cluster structure (a tendency test), then check stability and whether the groups are useful.
Show me
AExplorable · Do the clusters survive resampling?
Would the same clusters come back from a slightly different sample?
k-means always returns k clusters. Will its least stable cluster here come back in resamples (mean Jaccard above 0.75)?
How sure?
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
DBSCAN labeled these rows as noise, so they're bad data and I can drop them.
Why it's tempting
The algorithm calls them noise, and isolated points look like typos or sensor glitches.
What's true
"Noise" only means the point isn't in a dense enough region for this radius and minimum count. Rare but valid cases, a small real group and the edge of a sparse group all land there. Look at them in the original columns and ask someone who knows the data before removing any; change the settings and see which points stay isolated.
Show me
AExplorable · HDBSCAN: every radius at once
How can a density method find a tight cluster and a loose one without a single radius?
Can HDBSCAN beat the best single DBSCAN radius on this data?
How sure?
Data
Also the neighbor count behind each point's core distance.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
k-means will find my groups whatever their shape, as long as I give it the right k.
Why it's tempting
k-means is the default clustering method, and with the right k it always returns that many groups.
What's true
k-means minimizes squared distance to cluster centers, so it cuts space into convex cells of similar spread. Long, curved, nested or very unequal groups get split or merged. Gaussian mixtures with full covariances, density methods and spectral clustering make different shape assumptions; choose the one that matches your data.
Show me
AExplorable · Means, medoids and fuzzy memberships
What changes when a cluster's center must be a real point, or a point may belong to several clusters?
Far outliers can drag a cluster's center away. Which method keeps closest to the planted groups here?
How sure?
Data
Show
Near 1 is almost hard k-means; larger m gives softer memberships.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Rows my density model finds unlikely are the anomalies, and likely rows are normal.
Why it's tempting
An anomaly is something rare, and a density model measures how rare a row is.
What's true
Likelihood depends on scaling, the number of columns and features that have nothing to do with the anomaly you care about. Deep generative models are known to give unusual inputs higher likelihood than typical ones. Check a density score against labeled anomalies or real outcomes before using it as a detector.
Show me
AExplorable · Outlier detectors compared
Why do outliers hide from the z-score, and which rule finds them?
How many points will the z > 3 rule flag?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
On my t-SNE plot these two groups are far apart and this one is bigger, so that's how the data looks.
Why it's tempting
A scatter plot invites you to read position and size, as you would on any other chart.
What's true
t-SNE and UMAP keep near neighbors together, and they don't preserve the sizes of groups or the gaps between them. Change the perplexity and those can change completely. Use the map to form questions, and test them in the original columns.
Show me
AExplorable · What t-SNE and UMAP maps don't show
What can you safely read from a t-SNE or UMAP picture?
One group here may be far wider than another in the original space. In the map, that difference in size will be…
How sure?
Ten-dimensional data
Method
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A row with 0.9 membership in cluster 2 has a 90% chance of truly belonging to that group.
Why it's tempting
Soft clustering prints probabilities, and probabilities sound like the chance of being right.
What's true
A mixture's membership probability assumes the fitted mixture is the true one: the right number of components with the right shapes. When it isn't, memberships are overconfident. Fuzzy c-means memberships aren't probabilities at all; they are weights set by the fuzziness setting.
Show me
AExplorable · Gaussian mixtures by EM
How can you recover overlapping groups you never saw labeled?
The data come from three groups, this far apart. How many components will BIC choose?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Clustering finds the same groups whether or not I standardize the columns first.
Why it's tempting
Standardizing looks like a cosmetic change of units, and the rows themselves don't change.
What's true
Distance-based methods add up differences across columns, so a column measured in dollars outweighs one measured in years. Standardizing changes which rows are neighbors and so which groups form. Scaling is a decision about what "similar" means: make it on purpose and record it, as the numeric tables contractData contract: numeric tablesNumeric columns: check units, scale and missingness, and split by subject or site before fitting any transform. asks.
Show me
AExplorable · Distance depends on units
Who counts as a neighbor when one column is in years and another in dollars?
The two groups differ only in age. With these units and this scaling, which column decides who is whose neighbor?
How sure?
Income recorded in
Scaling
Distance
Odd, so a vote can't tie.
Younger group
Older group
Both axes use the same unit length, so a column with a huge range stretches the picture along its axis. Distances are measured in this picture.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My clusters come out the same on every bootstrap sample, so they are real groups.
Why it's tempting
Stability is the standard check, and a stable answer feels like a true one.
What's true
Stability is needed but not enough. k-means with k = 2 on one round blob of points cuts it the same way every time, so it is perfectly stable with no groups at all. Pair stability with a tendency test and with evidence that the groups predict or explain something you didn't cluster on.
Show me
AExplorable · Do the clusters survive resampling?
Would the same clusters come back from a slightly different sample?
k-means always returns k clusters. Will its least stable cluster here come back in resamples (mean Jaccard above 0.75)?
How sure?
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
After clustering, a t test shows the clusters differ, which confirms they're real.
Why it's tempting
A tiny p-value looks like independent proof that the groups are distinct.
What's true
The clustering chose the split to make the groups differ, so testing on the same rows is double dippingDouble dippingTesting differences between groups that were created from the same rows; the tests come out optimistic.: you get tiny p-values even when there is no structure. Use a selective test after hierarchical clustering, SigClust, or cluster one half of the data and test on the other.
Show me
AExplorable · Cut a dendrogram
How do you choose clusters from a tree of merges?
Draw a horizontal line at this height across the tree. How many clusters does it cut into?
How sure?
Data
Linkage
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The Hopkins statistic is high, so my data have clusters worth segmenting.
Why it's tempting
It is a test for cluster tendency, and it says the data aren't uniform.
What's true
The Hopkins statisticHopkins statisticCompares nearest-neighbor distances from real rows with those from random points; near 0.5 = no structure, near 1 = clumped. detects a departure from uniform scatter. Skewed columns, outliers or points along a curve depart from uniform too. It doesn't say how many groups there are or whether they matter, so treat a high value as permission to look further, not as a finding.
Show me
AExplorable · DBSCAN: choosing eps
How close is close enough for points to belong together?
How many clusters will DBSCAN find at this radius? You didn't have to tell it.
How sure?
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Removing a component lowered accuracy, which proves that component is what makes the model work.
Why it's tempting
Take it away and things get worse, so it must matter.
What's true
Removing a part also changes capacity, compute and the best settings for the rest, and other parts can compensate or interact with it. Retune after the ablation, match compute, repeat over seeds, and report interactions where two parts work together.
Show me
DExplorable · Interactions and simple slopes
When the effect of x depends on a moderator, where is it actually different from zero?
What is the slope of x at this moderator value?
How sure?
Centering: with a mean far from zero, the coefficient on x describes a moderator value no one has.
Where the band excludes zero, the slope of x is significant at that moderator value. Johnson–Neyman (J–N) marks the boundaries.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My AUC is high, so the predicted probabilities must be right.
Why it's tempting
AUC is computed from the predicted probabilities, so it feels like a check on them.
What's true
AUC depends only on the order of the scores. Stretch or squash them and it doesn't change at all, while the probabilities can be badly wrong. Check a reliability curve and a proper score such as Brier or log loss if the numbers themselves will be used.
Show me
HExplorable · Calibration and reliability
When a model says 80%, does the event happen 80% of the time?
If you make the model more overconfident, what happens to its AUC?
How sure?
Above 1 the model is too extreme; below 1 it hedges. At 1 it is perfectly calibrated.
Brier
ECE
Calibration slope
AUC
0.175
0.087
0.50
0.835
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
To handle a rare class, I should balance the data first and then split it.
Why it's tempting
Tutorials often resample first, and it seems tidy to fix the data before anything else.
What's true
Resampling before the split puts copies, or near-copies, of validation rows into training, so the score goes up for no good reason. Balanced validation rows also misstate how the model will do at the true rate. Resample inside each fold's training rows only.
Show me
HExplorable · Rare events and the decision threshold
Why can a 98% accurate model be useless, and where should the threshold go?
A lazy model calls every case negative. What accuracy does it score?
How sure?
flagged
passed
pos
52
62
neg
312
4574
Bars are drawn to one count scale, so a rare positive class looks as rare as it is. The ROC curve barely notices the imbalance; the precision–recall curve shows it. Cheapest threshold here: 1.14; the binormal formula gives 1.35.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The calibration plot hugs the diagonal, so the probabilities will be right at the new site too.
Why it's tempting
The model was checked and it was well calibrated.
What's true
Calibration is a property of a model on a population. A new site, time or subgroup can be miscalibrated even when the original plot looked perfect. Recheck calibration on data from where the model will be used, by subgroup.
Show me
HExplorable · How many bins? ECE and temperature scaling
The expected calibration error depends on how you bin. How much of a model's ECE is the bins talking, and can one temperature fix the model?
Score a perfectly calibrated model with these bins on these rows. What ECE will it get?
How sure?
The model's logits are this many times the truth's. Same model as Calibration and reliability.
Half the rows fit the temperature; the other half score every ECE.
More bins see finer miscalibration but hold fewer rows each.
Bin edges
Equal-width bins split [0, 1] evenly; equal-count bins put the same number of predictions in each.
expected calibration error 0.100after T = 2.16 0.033perfect model 0.040
Blue dots are sized by how many rows fall in the bin. Gray dots are a perfectly calibrated model on the same rows: their distance from the diagonal is pure sampling noise, and it sets a floor under any calibration error you compute with these bins.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
To compare two models, I can put a confidence interval on each accuracy and see whether they overlap.
Why it's tempting
Overlapping intervals are a familiar shortcut.
What's true
Both models are scored on the same items, so their errors are correlated, and two overlapping intervals can hide a clear, consistent difference. Compare item by item: a paired bootstrap, a paired permutation test or McNemar's test.
Show me
HExplorable · Comparing two models on the same test set
Model B scores a little worse than model A on the same examples. Is the gap real, and how sure can you be?
Which 95% interval for B − A will be narrower: resampling the examples in pairs, or resampling each model's losses separately?
How sure?
Examples both models are scored on.
How much worse B is on average, in loss units.
Hard examples are hard for both models: this shared part cancels in the paired difference.
Loss variation that differs between the two models.
Bootstrap resamples, and sign-flip permutations.
Resample
Paired resamples examples and keeps both models' losses together.
Points hug the diagonal when examples are hard or easy for both models: that shared part cancels in each example's difference, which is why the paired distribution (blue) is narrower than the unpaired one (orange). Correlation 0.93.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A 90% conformal interval covers 90% of every kind of case.
Why it's tempting
The guarantee holds for any model, with no assumptions about the distribution, so it sounds universal.
What's true
The guarantee is marginal: an average over rows like the calibration set. Easy rows may be covered more often and hard ones much less, and the promise weakens under drift. Measure coverage within the groups you care about.
It's the default in every library, and "more likely than not" sounds like a decision rule.
What's true
The right threshold depends on what each error costs. With calibrated probabilities, act above cFP/(cFP+cFN). If a miss costs nine times a false alarm, that's 0.1.
Show me
HExplorable · Rare events and the decision threshold
Why can a 98% accurate model be useless, and where should the threshold go?
A lazy model calls every case negative. What accuracy does it score?
How sure?
flagged
passed
pos
52
62
neg
312
4574
Bars are drawn to one count scale, so a rare positive class looks as rare as it is. The ROC curve barely notices the imbalance; the precision–recall curve shows it. Cheapest threshold here: 1.14; the binormal formula gives 1.35.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A two-sample test found no difference between my real and synthetic data, so they're equivalent and safe to use.
Why it's tempting
The test looked for a difference and didn't find one.
What's true
Failing to reject is not equivalence: the test may lack power, and each test looks for one kind of difference. Validating generated data takes several independent criteria: domain rules, fidelity and coverage, task utility and a separate privacy audit. Equivalence needs a margin set in advance.
Show me
BExplorable · Two one-sided tests
How do you show that two things are the same, not merely that you found no difference?
What can you conclude here?
How sure?
Inconclusive: neither test rejects
Equivalent when the whole 90% interval sits inside the margins. TOST p = .068; ordinary test p = .618.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My change improved the score by a point on one run, so it helps.
Why it's tempting
The new score is higher than the old one.
What's true
Differences between seeds can be larger than the gain. Repeat both versions over several seeds, compare them paired by seed, report the spread, and keep the runs where the change didn't help.
Show me
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
How sure?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A random 80/20 split tells me how the model will do at a new hospital.
Why it's tempting
The test rows were never used for training.
What's true
A random split mixes sites, so test rows come from hospitals the model already saw. A claim about a new site needs whole sites held out, for example leave-one-site-out, as the data contractsData contract: numeric tablesNumeric columns: check units, scale and missingness, and split by subject or site before fitting any transform. ask.
Show me
DExplorable · Cross-validation folds
Which rows should be held out so the score predicts real performance?
Each scheme has a tempting shortcut: training error, plain random folds, or the best score from a search. Will the shortcut here look better than the true error on new data?
How sure?
Scheme
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I recorded the random seed, so anyone can reproduce my run.
Why it's tempting
The seed fixes all the randomness.
What's true
A run also depends on the data version, code, package versions, hardware, thread counts and every setting. Computational reproducibilityComputational reproducibilityAnother person can rebuild the computation and result from the recorded data, code, settings and environment, not only the seed. needs all of them recorded; CodeSplash stamps each run with its method version, settings and an environment fingerprint for this reason.
Show me
AExplorable · The bootstrap urn
How can resampling your own data show how much an estimate would vary?
Draw n points with replacement. What share of the original points appears at least once?
How sure?
Statistic
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Model B beats model A with p < 0.001, so B is meaningfully better.
Why it's tempting
A very small p-value sounds like a very big win.
What's true
With thousands of test items, even a trivial difference is significant. Report the paired difference and its interval in the metric's own units, and decide in advance how big a gain would change your choice.
Show me
HExplorable · Comparing two models on the same test set
Model B scores a little worse than model A on the same examples. Is the gap real, and how sure can you be?
Which 95% interval for B − A will be narrower: resampling the examples in pairs, or resampling each model's losses separately?
How sure?
Examples both models are scored on.
How much worse B is on average, in loss units.
Hard examples are hard for both models: this shared part cancels in the paired difference.
Loss variation that differs between the two models.
Bootstrap resamples, and sign-flip permutations.
Resample
Paired resamples examples and keeps both models' losses together.
Points hug the diagonal when examples are hard or easy for both models: that shared part cancels in each example's difference, which is why the paired distribution (blue) is narrower than the unpaired one (orange). Correlation 0.93.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The model at the top of the leaderboard is the best model.
Why it's tempting
A ranked list invites you to read the order as a result, and the first row has the best number.
What's true
Scores carry noise from the folds and from the seed, and gaps inside that noise aren't evidence. Compare paired on the same folds, with a test that corrects for the overlap, and ask what gap would change your decision. Among ties, prefer the simpler model.
A classifier separates my two samples with high training accuracy, so the populations are different.
Why it's tempting
If a model can tell them apart, they must differ.
What's true
A flexible classifier can separate almost any two samples on the rows it trained on. Use accuracy on held-out rows in a classifier two-sample testClassifier two-sample testIf a classifier can tell new rows from training rows, the data has shifted; its AUC measures by how much. with a permutation null, or a kernel test such as MMD or the energy test, and report the size of the difference.
Show me
DExplorable · Grow a decision tree
How does a tree choose its splits, and when should it stop?
Training accuracy keeps rising with every split. After how many splits will accuracy on new data stop improving?
How sure?
Data
Split criterion
1x₂ ≤ 0.03120 rowsimpurity −0.254
2x₁ ≤ 1.5777 rowsimpurity −0.126
3x₂ ≤ 0.4266 rowsimpurity −0.012
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Training to minimize the loss also maximizes the metric I report.
Why it's tempting
The loss and the metric both measure how good the predictions are.
What's true
The loss is chosen to be easy to optimize, such as cross-entropy; the metric is chosen for the decision, such as recall at a threshold. They can move in different directions. Choose thresholds and models by the evaluation metricEvaluation metricA defined summary of predictions, outputs or data. A change in it needs an interval and a judgment of whether it matters. on validation data.
Show me
HExplorable · The ROC curve and its threshold
What does moving a threshold trade away, and what does the AUC really measure?
How often does a random positive score above a random negative?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My tuned model beat the baseline run with its default settings, so my method is better.
Why it's tempting
Both were trained on the same data and scored on the same test set.
What's true
The comparison gave one method many tries and the other one. Give each the same search budget and compute, report every configuration tried, and compare the best of each fairly.
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A small imbalance between the arms doesn't matter; the difference between them is still valid.
Why it's tempting
The arms are nearly equal in size, and the metric comparison still looks clean.
What's true
With thousands of users, even a small mismatch from the planned split is very unlikely to be chance. It usually means users went missing in one arm because of something the treatment did, and randomization no longer protects the comparison. Find the cause first; don't read the lift.
Show me
EExplorable · Spot the sample ratio mismatch
Your experiment should split traffic evenly. How uneven is too uneven, and why does it matter?
With this traffic and this bug, will the sample ratio check fire (p < .01)?
How sure?
A logging bug hides this share of treated users who would not convert.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I can check my A/B test every day and stop as soon as it reaches significance.
Why it's tempting
The p-value looks like a live meter, and stopping early saves traffic and feels efficient.
What's true
Every extra look is another chance for noise to cross the line. With an A/A test checked daily, the false-positive rate climbs far above 5%. Plan your looks with an alpha-spending boundary, or use always-valid p-values built for continuous monitoring.
Show me
EExplorable · Peeking at an A/A test
If you check an experiment with no effect every day, how often will it look like a winner?
With no real difference and a look every day, how often will this A/A test cross p < α at least once?
How sure?
Scrub through one experiment's life.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A concept bottleneck model's concepts explain its decisions.
Why it's tempting
The final prediction is computed only from the named concepts.
What's true
Predicted concept scores can carry extra information beyond the concept, which the final layer exploits. Intervene: set a concept to its true value and see whether the prediction changes the way the explanation says it should.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The attributions add up exactly to the change in prediction, so they're correct.
Why it's tempting
Completeness is a guarantee, and the numbers check out.
What's true
Completeness is bookkeeping: many different attributions, including misleading ones, add up to the same total. It says nothing about whether the path stays in realistic data or whether a feature matters causally. Check stability, baselines and randomization too.
Show me
DExplorable · Integrated gradients: credit along a path
A gradient says how sensitive a prediction is right here. How do you turn sensitivity into credit that adds up?
At x1 = 2 the tanh is nearly flat, so the gradient for x1 is close to 0. How much credit will integrated gradients give x1?
How sure?
Model
A fixed model with known gradients. In the saturating one, tanh flattens out for large x₁.
The row being explained.
The row being explained.
The row being explained.
Baseline
Where the path starts: the input meant to stand for 'no information'. The training mean here is (0.5, −0.3, 0.2).
Used when the baseline is Custom.
Gradients are averaged at m midpoints along the path.
The left curve is what integrated gradients walks along: the prediction as every feature moves together from the baseline to the row. Where the curve flattens, the local gradient is near zero even though the prediction has already changed a lot.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A counterfactual explanation tells the person what to change to get a different decision.
Why it's tempting
It shows the smallest change that flips the prediction.
What's true
A counterfactualCounterfactual explanationThe smallest feature changes that would move this row's prediction across its target. can suggest changes that are impossible or unwise, such as a lower age, and ignores how features affect each other, and many different counterfactuals exist. Actionable advice needs feasibility constraints and causal reasoning about what changing one thing does to the rest.
Show me
DExplorable · Decision boundary zoo
What shapes of boundary can each kind of model draw?
Which model will score highest on new data from this shape?
How sure?
Data
Model
k for neighbors, depth for trees, γ × 2 for the kernel, hidden units for the network.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The baseline in Integrated Gradients is a technical detail; any reasonable baseline tells the same story.
Why it's tempting
The method has strong theoretical guarantees whichever baseline you pick.
What's true
Integrated GradientsIntegrated GradientsEach feature's share of the change from a baseline row to this row: the gradient averaged along the straight path, times the change. explains the difference between the input and the baseline. An all-zero baseline and a typical-value baseline ask different questions and can flip a feature's contribution from positive to negative. Report the baseline and show how sensitive the ranking is to it.
Show me
DExplorable · Integrated gradients: credit along a path
A gradient says how sensitive a prediction is right here. How do you turn sensitivity into credit that adds up?
At x1 = 2 the tanh is nearly flat, so the gradient for x1 is close to 0. How much credit will integrated gradients give x1?
How sure?
Model
A fixed model with known gradients. In the saturating one, tanh flattens out for large x₁.
The row being explained.
The row being explained.
The row being explained.
Baseline
Where the path starts: the input meant to stand for 'no information'. The training mean here is (0.5, −0.3, 0.2).
Used when the baseline is Custom.
Gradients are averaged at m midpoints along the path.
The left curve is what integrated gradients walks along: the prediction as every feature moves together from the baseline to the row. Where the curve flattens, the local gradient is near zero even though the prediction has already changed a lot.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The forest's importance chart tells me which features really matter.
Why it's tempting
It comes built in, it needs no extra computing, and it gives a clean ranking.
What's true
Impurity importance is measured during training, so it favors columns with many distinct values, even pure noise. Permutation on held-out rows is more honest, though correlated columns can hide each other. None of them say what would happen if you changed a feature.
Influence scores show exactly which training rows caused a prediction.
Why it's tempting
They rank training rows by their effect on the prediction.
What's true
Influence functions and TracIn approximate the effect of removing or upweighting rows, using gradients at a few checkpoints. For deep networks the approximation can be poor. Retrain without a few top rows to check that the prediction actually moves.
Show me
DExplorable · Leverage and influence
Which single points can move a regression line, and which cannot?
Will this point change the slope a lot?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
LIME's simple model faithfully explains the prediction.
Why it's tempting
It fits the model's behavior right around the row being explained.
What's true
LIME fits a weighted line to perturbed samples that may break relationships between features and fall off the real data. Different kernel widths or seeds can change the explanation. Check the surrogate's local fit and how stable the explanation is across runs.
Show me
DExplorable · Fit the line yourself
What makes the least-squares line 'best'?
Add one point far below the trend at high x. What happens to the least-squares slope?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Activation patching found the layer that does the task.
Why it's tempting
Patching that layer restored the behavior, which looks like finding the switch.
What's true
Patching shows that a component matters for the measured behavior, on those inputs, under that intervention. Redundant or spread-out mechanisms, and the choice of corrupted inputs, change the conclusion. Report the inputs and the metric, and test other components and datasets.
Show me
DExplorable · Activation patching: which units carry the answer?
Swap one hidden unit's activation between a clean and a corrupted run. How much of the answer moves with it, and what can that miss?
Patch h1 alone, clean into corrupted. How much of the logit gap comes back?
How sure?
The clean and corrupted inputs differ only in x₁ (think: the subject of a prompt).
The corrupted run's x₁; everything else is shared.
The same in both runs, so units that read only x₂ shouldn't matter.
Patch
Clean into corrupted asks whether a unit is enough to restore the answer; corrupted into clean asks whether it is needed.
h₃ copies h₁ and the output takes whichever is larger, so either one alone carries the signal.
h₁
restores 100%
destroys 100%
h₂
restores 0%
destroys 0%
h₃
restores 0%
destroys 0%
h₄
restores 0%
destroys 0%
Each unit is shaded by the share of the clean–corrupted logit gap its patch moves in the chosen direction. "Restores" is the clean value patched into the corrupted run; "destroys" is the corrupted value patched into the clean run.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The saliency map highlights the pixels the model relies on.
Why it's tempting
The highlighted regions usually sit on the object, which looks right.
What's true
Some saliency methods draw nearly the same map for a network with random weights, so the map reflects the image more than the model. Maps also change with the baseline and noise. Run the randomization check, compare methods, and confirm with occlusion or other interventions.
Show me
DExplorable · Integrated gradients: credit along a path
A gradient says how sensitive a prediction is right here. How do you turn sensitivity into credit that adds up?
At x1 = 2 the tanh is nearly flat, so the gradient for x1 is close to 0. How much credit will integrated gradients give x1?
How sure?
Model
A fixed model with known gradients. In the saturating one, tanh flattens out for large x₁.
The row being explained.
The row being explained.
The row being explained.
Baseline
Where the path starts: the input meant to stand for 'no information'. The training mean here is (0.5, −0.3, 0.2).
Used when the baseline is Custom.
Gradients are averaged at m midpoints along the path.
The left curve is what integrated gradients walks along: the prediction as every feature moves together from the baseline to the row. Where the curve flattens, the local gradient is near zero even though the prediction has already changed a lot.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
SHAP says this feature pushes the outcome up, so changing it will change the outcome.
Why it's tempting
The chart looks like a list of causes, and the math has a rigorous pedigree.
What's true
SHAP divides up a model's prediction. It describes what the model does with the feature, not what the world does. A discount can push predicted churn up because at-risk customers were the ones offered it. To learn an effect, use an experiment or a causal design.
Show me
DExplorable · Build a Shapley value
How can a prediction be divided fairly among the features that produced it?
How much of the gap between this prediction and the baseline will go to x1?
How sure?
Model
Order features arrive
f = 3x₁x₂ + x₃
Bar heights are the size of each average credit; the note under each bar shows its credit in the one order chosen above. Orange adds to the prediction, blue subtracts.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
TCAV says the concept is significant, so the model uses that concept.
Why it's tempting
It produces a test with a p-value for each concept.
What's true
Random concepts can also look significant, and a weak concept classifier makes the direction meaningless. Compare with random-concept controls over several runs and correct for the number of concepts tested. A pass is necessary evidence, not proof.
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It's only a summary table, so it can't reveal anyone.
Why it's tempting
Summaries feel far removed from individual rows, and that's usually their purpose.
What's true
An average of one person is that person's value, and two totals that differ by one person reveal that person. Combine or suppress small cells, and check what several tables give away together.
We removed the sensitive attribute, so the model can't discriminate.
Why it's tempting
A model can't use what it can't see, or so it seems.
What's true
Other columns can carry the same information, such as postcode, employment gaps or purchases. Fairness is a property of the decisions, and not of the input list. Keep the attribute available for auditing, even if the model never uses it, and measure rates by group.
The selection ratio is above 0.8, so the decision rule is fair.
Why it's tempting
A single threshold with a legal-sounding name looks like a test you can pass.
What's true
The four-fifths rule is a screening flag from US employment guidance. A ratio above 0.8 says nothing about error rates, calibration or small-group uncertainty, and a ratio below it isn't a finding either. Report the rates and their intervals.
A membership-inference attack did no better than chance, so the model leaks nothing about its training data.
Why it's tempting
The attack tried to find training rows and failed.
What's true
One attack's failure doesn't prove privacy. Stronger attacks exist, outliers are far more exposed than average rows, and the useful measure is the attack's success at very low false-positive rates. Differential privacy gives a guarantee; an attack only gives evidence.
Show me
DExplorable · Synthetic data: fidelity against privacy
Can synthetic data look like the real thing without copying it?
A ratio near 1 means synthetic rows sit about as far from the training data as new real rows do. What will this generator's ratio be?
How sure?
How it's generated
Used by “Copy rows and add noise”.
Real (training)
Synthetic
Privacy ratio
Largest column KS × 4
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The outcome column is ground truth, so error rates by group are objective.
Why it's tempting
Outcomes are what the model is scored against, so they look like the one fixed point.
What's true
Outcomes are recorded by processes that can be biased too. Arrests are not the same as offenses. And you often only see the outcome for people who were selected, since a refused applicant never gets to repay. Ask how the outcome was measured, and for whom. This is selective labelsSelective labelsYou only observe the outcome for people who were selected, so error rates are unknown for those refused..
Lesson: Auditing decisions for fairnessLakkaraju et al. (2017), The selective labels problem, KDD · Mitchell et al. (2021), Algorithmic fairness: choices, assumptions, and definitions, Annual Review of Statistics
The myth
We removed names and emails, so the data are anonymous.
Why it's tempting
Names and emails are what identify people in everyday life.
What's true
Combinations of ordinary columns can single people out, and anyone with another table can join on them. Age, postcode and a date are often enough. Count your smallest group, coarsen what you can, and treat "de-identified" as a reduction in risk, not as its end.
Lesson: The people behind the rowsSweeney (2002), k-anonymity: a model for protecting privacy, International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems
The myth
The data are synthetic, so they can't reveal anyone.
Why it's tempting
No row in the file is a real person, and that sounds like the end of the matter.
What's true
A generator can memorize what it was trained on, so synthetic rows can sit very close to real ones. Fidelity and privacy pull against each other. Compare how close synthetic rows sit to real ones, against how close real rows sit to each other, before you share.
Show me
DExplorable · Synthetic data: fidelity against privacy
Can synthetic data look like the real thing without copying it?
A ratio near 1 means synthetic rows sit about as far from the training data as new real rows do. What will this generator's ratio be?
How sure?
How it's generated
Used by “Copy rows and add noise”.
Real (training)
Synthetic
Privacy ratio
Largest column KS × 4
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A language model needs no training, so I don't need a train and test split.
Why it's tempting
There's no fitting step, and the examples in the prompt feel like instructions rather than data.
What's true
Few-shot examples and tuned prompts are training. If they come from rows you score, or you adjust them while watching the score, the result is optimistic in the same way as any other leak. Take examples from each fold's training rows, and keep a locked test set.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The model gave me an exact number with a confident explanation, so it must have worked it out.
Why it's tempting
People who state exact figures have usually calculated them, and the prose reads like theirs would.
What's true
A language model writes what is likely to come next, and a plausible number is often likely. Unless something computed it, nothing has. CodeSplash has the model write placeholders that your engine fills, and flags any numeral that no result supports. Verified numbers still don't make the reasoning right.
I set the temperature to zero, so the model's answer is now accurate.
Why it's tempting
A setting that removes randomness sounds like one that removes error.
What's true
Temperature changes how the model picks among tokens, not what it knows. At zero, it takes its top token every time, so a wrong answer becomes a repeatable wrong answer. Check claims against a source, and keep calculations in an engine.
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
In contrastive learning, every other example in the batch is a true negative.
Why it's tempting
The loss treats them as negatives, and with random batches most of them are unrelated.
What's true
Some batch-mates share the anchor's class or content, and the loss pushes them apart anyway (false negatives). The temperature, batch makeup and augmentations all shape the learned geometry. Check what neighbors end up close and compare with methods that use no negatives.
The generator's FID improved, so its outputs are more useful.
Why it's tempting
FID is the standard score for image generators, and lower is better.
What's true
FIDFréchet inception distance (FID)Distance between Gaussians fit to real and generated images' features; lower is closer, and it depends on the feature network. compares feature statistics in one pretrained network and mixes fidelity with diversity; it also moves with the sample size and preprocessing. Usefulness needs separate evidence: precision and recall, a task trained or tested on the outputs, human review and a look at failure cases.
Show me
DExplorable · Scoring generators: FID, precision and recall
Can one number say how good generated samples are?
How will this generator's precision and recall come out?
How sure?
Generator
The real data is a ring of 8 clusters. Each generator gets something different wrong.
Feature extractor
FID and the k-NN scores compare features, not raw samples. Real FID uses a vision network; here, four simple maps.
How many real and how many generated samples are compared.
Each sample's ball reaches its k-th nearest neighbor in its own set.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A flow model gives exact likelihoods, so inputs it finds unlikely are out of distribution.
Why it's tempting
Exact likelihood sounds like the perfect measure of how typical an input is.
What's true
Flows and other likelihood models are known to give some unusual inputs, such as plain or low-detail images, higher likelihood than the training data, because likelihood is dominated by low-level statistics. Use typicality tests or detectors checked on known out-of-distribution examples.
Show me
AExplorable · Outlier detectors compared
Why do outliers hide from the z-score, and which rule finds them?
How many points will the z > 3 rule flag?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The generator's loss is going down, so the GAN's samples are getting better.
Why it's tempting
For most models a falling loss means progress.
What's true
A GAN's losses describe the current contest with the current discriminator. They swing back and forth and don't track sample quality; mode collapse can sit behind calm curves. Look at samples on a fixed set of inputs and track sample metrics such as precision and recall.
Show me
DExplorable · GAN dynamics: two players, collapse, gradient penalty
Why is GAN training unstable, and why does a GAN drop modes?
Where does training end up?
How sure?
View
Loss (two players)
Discriminator penalty
Updates
γ for R1, λ for WGAN-GP.
Generator trained by
Mode collapse view: a GAN with the best discriminator minimizes JS; reverse KL is the most mode-seeking; maximum likelihood minimizes KL(data‖model).
Modes at ±this value (mode collapse view).
Path of (θ, ψ)
Start
Equilibrium (0, 0)
Gradient field
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My autoencoder reconstructs its inputs well, so it will generate good new samples.
Why it's tempting
If the decoder can rebuild real data, it seems able to produce data like it.
What's true
Reconstruction only tests encoding and decoding inputs the model has seen. Samples drawn from the latent prior can land in regions the decoder never learned, and a plain autoencoder has no prior to sample from at all. Look at prior samples directly and score them separately from reconstructions.
Show me
DExplorable · The ELBO: reconstruction against KL
What does a VAE trade off, and when does it stop using its latent code?
The data vary strongly in one direction and weakly in another. How many latent dimensions will the VAE use?
How sure?
1 is the ELBO; above 1 is a β-VAE.
How noisy the decoder says the data are.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A higher ELBO means my VAE's approximate posterior got better.
Why it's tempting
Training maximizes the ELBO, so a higher one should mean everything improved.
What's true
The ELBOEvidence lower boundThe quantity a VAE maximizes; minus it is the loss — how badly rows are rebuilt plus how far their codes stray from the prior. is the log evidence minus the gap to the true posterior. It can rise because the decoder fits the data better while the approximate posterior stays poor. A tighter bound, a better posterior and better downstream predictions are different goals: check each one.
Show me
DExplorable · The ELBO: reconstruction against KL
What does a VAE trade off, and when does it stop using its latent code?
The data vary strongly in one direction and weakly in another. How many latent dimensions will the VAE use?
How sure?
1 is the ELBO; above 1 is a β-VAE.
How noisy the decoder says the data are.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Low reconstruction error means the representation captured what matters.
Why it's tempting
A code that rebuilds the input well must contain the input's information.
What's true
Reconstruction rewards keeping every detail, including noise, lighting and other nuisances you don't care about. Whether the code is useful is a question about a task: train a small model on it and compare with other representations on held-out data.
Show me
DExplorable · Denoising autoencoder: bottleneck and noise
What stops an autoencoder from simply copying its input?
How much of the noise added to a new curve will this autoencoder pass through?
How sure?
Units in the bottleneck; the input has 16 numbers.
Train on x + σε, still scored against the clean x.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
More sampling steps always give better diffusion samples.
Why it's tempting
More steps means smaller, more careful denoising moves.
What's true
Gains flatten after a point, and the sampler and noise schedule matter as much as the count; deterministic samplers reach similar quality in far fewer steps. Measure quality against steps for your model instead of assuming more is better.
Methods with no negative pairs, like BYOL or SimSiam, can't collapse, so I don't need to check.
Why it's tempting
The papers show they train without collapsing.
What's true
They avoid collapse only through specific parts: a stop-gradient, a predictor, a slowly updated teacher or a variance term. A bug or a setting can remove that protection. Watch how much the representation spreads, for example the share of variance in its first direction (dimensional collapseDimensional collapseA learned representation that uses only one or a few directions, so most of its coordinates repeat the same information.).
Every sample looks realistic, so the generator has learned the whole distribution.
Why it's tempting
Realism is the hard part; diversity seems to come for free.
What's true
A generator can produce a few kinds of very realistic samples and miss the rest (mode collapse). Realism is precision; covering the data is recall. Measure both, for example with precision and recall or density and coverage in a feature space.
Show me
DExplorable · Scoring generators: FID, precision and recall
Can one number say how good generated samples are?
How will this generator's precision and recall come out?
How sure?
Generator
The real data is a ring of 8 clusters. Each generator gets something different wrong.
Feature extractor
FID and the k-NN scores compare features, not raw samples. Real FID uses a vision network; here, four simple maps.
How many real and how many generated samples are compared.
Each sample's ball reaches its k-th nearest neighbor in its own set.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Self-supervised learning needs no labels, so it makes no assumptions about my task.
Why it's tempting
Without labels, it seems the model learns whatever the data contain.
What's true
The augmentations and the pretext task decide what the representation keeps and what it ignores. Random crops and color changes teach it that color doesn't matter, which is wrong if your task is judging ripeness. Choose augmentations that keep what your task needs, and test the representation on that task.
Turning classifier-free guidance up gives better images.
Why it's tempting
Higher guidance makes images match the prompt more closely.
What's true
Guidance trades diversity for prompt adherence. Past a point images become oversaturated, repetitive and distorted. Treat the guidance scale like a sampling temperature: pick it by looking at quality and variety together.
The KL term fell to nearly zero, so the posterior matches the prior and the VAE is working well.
Why it's tempting
The KL term is a penalty, and a penalty near zero sounds like a good result.
What's true
A KL near zero often means posterior collapse: the decoder ignores the latent code, so the code carries no information about the input. Check how much each latent dimension is used and whether swapping codes between inputs changes the outputs. KL annealing or a floor on the KL help.
Show me
DExplorable · The ELBO: reconstruction against KL
What does a VAE trade off, and when does it stop using its latent code?
The data vary strongly in one direction and weakly in another. How many latent dimensions will the VAE use?
How sure?
1 is the ELBO; above 1 is a β-VAE.
How noisy the decoder says the data are.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
These genotypes depart from Hardy–Weinberg proportions, so natural selection is acting on this site.
Why it's tempting
Equilibrium is taught together with evolutionary forces, so a departure sounds like evolution at work.
What's true
Genotyping error, mixed ancestry in the sample, relatives and non-random mating all produce the same departure. Many pipelines treat a strong departure in controls as a sign of a bad assay first. The test says the counts don't fit the proportions; it doesn't say why.
I fitted a normal to my data and ran the usual KS test against it, and the large p-value shows a good fit.
Why it's tempting
The KS test needs a distribution to compare with, and the fitted one is the obvious choice.
What's true
Fitting pulls the curve toward the data, so the gap is smaller than the textbook null expects and p-values come out too large. Refit on every simulated sample with a parametric bootstrap, or use a test built for the case. Even then, a large p-value is only compatible with the family.
The dip test didn't reject, so all my data come from one population.
Why it's tempting
Two populations ought to give two peaks, so one peak seems to settle it.
What's true
An equal mix of two normal groups stays unimodal until their means are more than two SDs apart. Small samples also miss real gaps. The dip test asks about the shape of the whole distribution, not about how many groups produced it, so check known subgroups directly.
Show me
AExplorable · Bins and bandwidth
How do histogram bins and smoothing bandwidth change the story the same data tell?
How many humps does the population really have?
How sure?
Bars: histogram with your bins. Line: kernel density with your bandwidth.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I found the pattern in EDA and confirmed it with a test on the same data.
Why it's tempting
The test is run correctly, and the p-value is small, so the finding feels twice supported.
What's true
A pattern you picked out because it looked striking will tend to pass a test on the same data, even if it's noise. Report it as exploratory, and confirm it on new data or a held-out sample when you can.
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Asking the assistant to get p below .05 is only asking it to find the right analysis.
Why it's tempting
Assistants are good at trying things quickly, and the right analysis might really be out there.
What's true
A search that stops at p < α inflates false positives, whoever runs it. CodeSplash's AI features read each instruction for requests like this, send nothing to the model, and suggest a plan instead. That check only sees your wording, so it's a reminder. Ask for the analysis your question needs, before you know how it comes out.
The scan found a segment where churn is twice as high, so that's how big the difference is.
Why it's tempting
The segment is real rows from your own data, and its rate was counted exactly.
What's true
The scan picked that segment because it looked the most extreme among all the ones it searched. Some of that extremeness is luck, so the same rule on new rows usually shows a smaller gap. This is the winner's curseWinner's curseSignificant estimates from small studies overstate the effect, because only large estimates clear the bar.. Judge a segment by its rate on rows the search never saw, and say how many segments were searched.
Show me
BExplorable · The winner's curse
Why do significant results from small studies overstate the effect?
Among the significant studies, how many times larger than the truth is the average reported effect?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Finding subgroups honestlyWang et al. (2007), Statistics in medicine: reporting of subgroup analyses in clinical trials, NEJM · Rothwell (2005), Subgroup analysis in randomised controlled trials, The Lancet
The myth
I explored a lot, but I'll apply Bonferroni at the end, so it's taken care of.
Why it's tempting
Corrections are the textbook answer to many tests, and applying one feels rigorous.
What's true
An adjustment fixes the tests it counts. It can't count the forks you never wrote down, or the ones you'd have tried had the data differed. It doesn't turn a search into a confirmation. Report the search as exploratory, and test what it found in new data.
Show me
BExplorable · The family-wise error rate
If you run many tests, how likely is at least one false alarm, and what does correcting cost?
Without correction, how often does this family produce at least one false alarm?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
"Drivers of churn" is only business language. Nobody takes it as a causal claim.
Why it's tempting
Everyone in the room uses the phrase, and it's shorter than "is associated with".
What's true
People act on it. If you call something a driver, someone will try to pull it, and that only works if the link is causal. With no randomization or causal design, write "associated with", and say what could explain the link instead.
My hypothesis changed after I saw the data. That's science, and writing it up as my hypothesis is fine.
Why it's tempting
Learning from data really is how science works, and a clean story is easier to read.
What's true
Changing your mind is fine. Presenting the new idea as if it came first isn't, because it hides that these data suggested it, and so can't fairly test it. Report the idea as a finding of exploration, and test it in new data. This is HARKingHARKingPresenting a hypothesis that came from the results as if it had been made in advance..
Show me
BExplorable · P(H₀ | p < .05)
When p < .05, how likely is it that there was no effect after all?
Of the results with p < .05, what share come from true nulls?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Exploring and confirmingKerr (1998), HARKing: hypothesizing after the results are known, Personality and Social Psychology Review
The myth
The interpretation check found nothing, so my sentence is honest.
Why it's tempting
A green result from a checker feels like approval.
What's true
The check matches phrases. "Boosted revenue" claims a cause and passes. It can't know your design, the tests you didn't report, or whether the size matters. A clean check means you avoided the words on its list, and the meaning is still yours to get right.
I only ran one test, so multiple testing doesn't apply to me.
Why it's tempting
Multiple testing is usually taught by counting tests, and you can count to one.
What's true
The count that matters includes what you would have run had the data looked different. If the data steered your choice of subgroup, outcome or test, the p-value's promise no longer holds, however many tests you ran. This is the garden of forking pathsGarden of forking pathsMany reasonable analysis choices made after seeing the data inflate false positives even without intent..
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
P-hacking is something dishonest people do. I'd know if I were doing it.
Why it's tempting
The word sounds like an accusation, and you know you aren't trying to deceive anyone.
What's true
It needs no intent. It only takes a series of reasonable-looking choices made after seeing results, each with a good sentence to go with it. Ask of each choice: would I have made it if the first p-value had already been below the threshold?
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Pre-registering means you can't explore the data or change your mind later.
Why it's tempting
A frozen plan sounds rigid, and real data bring surprises.
What's true
A plan doesn't forbid anything. It marks which analyses came first. Explore all you like, and label it as exploration. If the plan must change, record the change with its reason and date, so readers can judge it.
I read all the published studies, so I've seen the evidence.
Why it's tempting
Published papers are what's visible, and each one looks sound on its own.
What's true
Published results have passed through a filter, and non-significant ones often stay in the file drawerFile drawerThe results nobody sees, because they weren't significant or weren't what anyone hoped for.. So the set can be biased even if every study in it is sound. Look at registries and at small-study checks, and treat any pooled estimate as a ceiling.
Show me
BExplorable · The funnel and publication bias
What does a literature look like when non-significant studies go missing?
What effect does the published literature estimate?
How sure?
Dashed: the 95% funnel around the truth. Colored: published. Faded: hidden. The bold line is the estimate you would read in the literature.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A bootstrap with this seed excludes zero, so I'll report that run.
Why it's tempting
Every seed is equally valid, and the run is perfectly reproducible, so it can feel like a free choice.
What's true
Searching for a seed is selective reporting, like searching for a subgroup. If the answer changes with the seed, the simulation has too much Monte Carlo noise: raise the number of draws. Choose the seed once, before seeing results, and record it.
The effect reached significance even with a small sample, so it must be real and large.
Why it's tempting
It feels as if a small study has to overcome long odds, so anything it finds must be strong.
What's true
A small study can only reach significance with a large estimate, so its significant results are selected to be too large. Expect the effect to shrink on replication, and plan the next study for the smallest effect that matters. This is the winner's curseWinner's curseSignificant estimates from small studies overstate the effect, because only large estimates clear the bar..
Show me
BExplorable · The winner's curse
Why do significant results from small studies overstate the effect?
Among the significant studies, how many times larger than the truth is the average reported effect?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: The results nobody seesLoken & Gelman (2017), Measurement error and the replication crisis, Science · Button et al. (2013), Power failure, Nature Reviews Neuroscience
The myth
The effect is significant for women and not for men, so the treatment works differently by sex.
Why it's tempting
Two results side by side, one past the threshold and one not, look like two different answers.
What's true
A non-significant result in one group can mean that group had fewer rows, not a smaller effect. Whether the effects differ is its own question, answered by a test of the interaction (treatment × sex in one model) and its interval for the difference. The difference between "significant" and "not significant" is not itself significant.
Lesson: Finding subgroups honestlyGelman & Stern (2006), The difference between "significant" and "not significant" is not itself statistically significant, The American Statistician
The myth
Most of the specifications are significant, so the effect is real.
Why it's tempting
A long row of significant results looks like many studies agreeing.
What's true
Every specification reuses the same rows, so they share the same luck, and the share also depends on which ones you listed. A curve shows how a result moves with your choices. Read which choices drive it, and don't treat the share as a vote or a p-value.
Lesson: Show every road with a specification curveSimonsohn, Simmons & Nelson (2020), Specification curve analysis, Nature Human Behaviour · Steegen et al. (2016), Increasing transparency through a multiverse analysis, Perspectives on Psychological Science
The myth
This column has the strongest screen score, so it drives the outcome.
Why it's tempting
The screen ranks columns by how well each predicts the outcome, and the top of a ranked list reads like the most important cause.
What's true
A screen score measures how closely a column and the outcome move together in these rows, one column at a time. A column can score high because the outcome causes it, because a third column drives both, or because it was recorded after the outcome. Within the groups of another column the link can shrink or reverse. Write "associated with", check the pair within groups, and test a lead on a branch or on new data.
That test was only a side check, so I can leave it out of the count.
Why it's tempting
Some tests really are side checks, and removing one makes the others look better.
What's true
What matters is why you're leaving it out. A rerun under another assumption, chosen for that reason, is a sensitivity analysis. A test you drop because it pushed others over the threshold is a family chosen by its results. Decide before the results, and lock the family.
Dawid–Skene learns label quality with no gold labels, so I don't need any.
Why it's tempting
It estimates every annotator's accuracy from their agreements alone.
What's true
The model is fitted by EM and is identifiable only up to swapping the class names, under its assumptions. A few gold items anchor the classes and show whether the assumptions hold; calling the whole procedure gold-free would overstate it.
Show me
HExplorable · Annotators who disagree
When labelers disagree, can you learn who to trust without knowing the right answers?
With three spammers on the panel, will Dawid–Skene beat a plain majority vote?
How sure?
Items, each labeled once by every annotator. True classes are drawn 50/30/20%.
The careful annotator is right this often; errors spread evenly.
How often the biased annotator calls a true B a C.
Annotators who pick a label at random.
Extra annotators who copy the biased one's labels exactly.
Each grid is a confusion matrix: rows are the true class, columns the label given, numbers in percent. The left grid is how the annotator really behaves; the right one is what EM inferred without seeing the true classes.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Bradley–Terry gives every item a comparable score from whatever comparisons I have.
Why it's tempting
It turns any set of wins and losses into one score per item.
What's true
If the comparison graph splits into groups that were never compared with each other, scores across the groups aren't identifiable, and an item that won every comparison has no finite score. Check that the win graphWin graphItems as nodes, an arrow from each winner to each loser; worths are finite only if every item can reach every other along arrows. is connected before reading the ranking.
Show me
HExplorable · Strengths from paired comparisons
When judges only say which of two is better, can you still put every item on one scale?
If the two halves of the items never play each other, what can the fitted scores tell you?
How sure?
Items to rank. True strengths are evenly spaced; only differences matter.
Log-strength of the best item minus the worst. At 0 every game is a coin flip.
How many times each scheduled pair is compared.
Who plays whom
The comparison graph decides whether the scale is identified at all.
Red links are one-sided: one item won every game. Every item beats, and is beaten by, a path of others, so the estimate is finite. Scores are centered: only differences mean anything.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The more annotators agree, the more certain the label, even if some of them copied each other.
Why it's tempting
More votes for the same answer look like more evidence.
What's true
Annotator models such as Dawid–Skene assume annotators make mistakes independently given the true label. Copied or shared answers count the same evidence twice and make the estimated labels overconfident. Look for annotators who agree too often (the copied-annotator checkCopied-annotator checkFor each pair of annotators, observed agreement on shared items minus the agreement the model expects. Large excess suggests copied labels.) and down-weight them.
Show me
HExplorable · Annotators who disagree
When labelers disagree, can you learn who to trust without knowing the right answers?
With three spammers on the panel, will Dawid–Skene beat a plain majority vote?
How sure?
Items, each labeled once by every annotator. True classes are drawn 50/30/20%.
The careful annotator is right this often; errors spread evenly.
How often the biased annotator calls a true B a C.
Annotators who pick a label at random.
Extra annotators who copy the biased one's labels exactly.
Each grid is a confusion matrix: rows are the true class, columns the label given, numbers in percent. The left grid is how the annotator really behaves; the right one is what EM inferred without seeing the true classes.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A higher Elo rating means the system is better at the task.
Why it's tempting
Elo is how chess ranks players, and leaderboards use it.
What's true
Elo depends on the order of comparisons, its update size and the pool of opponents, and it comes with no interval. Fitting a Bradley–Terry model to the same comparisons gives scores with intervals. Ratings from different pools can't be compared.
Show me
HExplorable · Strengths from paired comparisons
When judges only say which of two is better, can you still put every item on one scale?
If the two halves of the items never play each other, what can the fitted scores tell you?
How sure?
Items to rank. True strengths are evenly spaced; only differences matter.
Log-strength of the best item minus the worst. At 0 every game is a coin flip.
How many times each scheduled pair is compared.
Who plays whom
The comparison graph decides whether the scale is identified at all.
Red links are one-sided: one item won every game. Every item beats, and is beaten by, a path of others, so the estimate is finite. Scores are centered: only differences mean anything.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The majority vote of my annotators is the true label.
Why it's tempting
Several independent people agreeing seems hard to argue with.
What's true
A majority vote ignores how skilled each annotator is and how hard each item is, and a shared bias wins every vote. For subjective items there may be no single right answer. Model the annotators, keep the disagreement, and check against a few carefully labeled items.
Show me
HExplorable · Annotators who disagree
When labelers disagree, can you learn who to trust without knowing the right answers?
With three spammers on the panel, will Dawid–Skene beat a plain majority vote?
How sure?
Items, each labeled once by every annotator. True classes are drawn 50/30/20%.
The careful annotator is right this often; errors spread evenly.
How often the biased annotator calls a true B a C.
Annotators who pick a label at random.
Extra annotators who copy the biased one's labels exactly.
Each grid is a confusion matrix: rows are the true class, columns the label given, numbers in percent. The left grid is how the annotator really behaves; the right one is what EM inferred without seeing the true classes.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Whether system A's answer is shown first or second doesn't affect which one people prefer.
Why it's tempting
Raters are told to judge the answers on their merits.
What's true
People and LLM judges both show position effects. Randomize and balance the order, record it with every judgment, and include it in the analysis so you can see its size.
Show me
DExplorable · What randomization balances
Does randomizing guarantee the groups match, and does it reach what you never measured?
In what share of assignments will the groups differ by more than 0.1 SD on the measured covariate?
How sure?
Who gets treated
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
On a 1-to-5 rating scale, a 4 is twice as good as a 2.
Why it's tempting
The ratings are numbers, so arithmetic seems fair.
What's true
Ratings are ordered categories: the step from 4 to 5 needn't equal the step from 1 to 2, and some raters are harsher than others. Ordinal models and many-facet Rasch models separate rater severity from item quality.
Show me
BExplorable · What ranks throw away
What changes when a test uses ranks instead of the values?
If the largest value became ten times larger, what would the Mann–Whitney p-value do?
How sure?
Test
p
t test on values
.009
Mann–Whitney
.007
t test on ranks
.005
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The model scores well on the benchmark, so it can do the task.
Why it's tempting
Benchmarks were built to measure the task.
What's true
Benchmark items may be in the training data, and a fixed test set measures that set under its format. Check for contamination, test paraphrased and newly written items, and evaluate on examples from your own use.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The contamination check found nothing, so the benchmark is clean.
Why it's tempting
The check was designed to detect test items in the training data.
What's true
Likelihood-based detectors such as Min-K% miss paraphrased, translated or partly reused items, and their thresholds trade misses for false alarms. A clean result is weak evidence. Fresh items written after the model's training cut-off are the stronger check.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Dense embeddings always retrieve better than keyword search.
Why it's tempting
Embeddings understand meaning, and keywords only match strings.
What's true
Keyword scoring such as BM25 is strong on names, codes and rare terms; dense retrieval is better on paraphrases. Combining them often wins. A teaching example where dense retrieval wins proves nothing in general: measure recall at k and nDCG on your own queries.
Show me
DExplorable · Retrieval: BM25, dense vectors and late interaction
When does matching words beat matching meanings, and how do we score a ranking?
Query
Each query has graded relevance labels for the ten documents.
Method
BM25 and TF-IDF match words; the toy dense vectors and MaxSim match themes.
Metrics look at the top k documents.
How fast repeated words stop adding score.
How much long documents are penalized.
1●○Car insurance prices rise again this year2.12
2●●How much does vehicle maintenance cost per year2.01
3○○Bayesian priors and posterior distributions explained0.00
4○○Weather forecast: heavy rain and strong wind expected tomorrow0.00
5○○A beginner's guide to the p-value and multiple testing correction0.00
6○○Baking bread at home: flour, water, yeast and salt0.00
7○○Storm warning issued as rainfall totals climb0.00
8●●Fixing an automobile engine: a mechanic explains common repairs0.00
9○○Bonferroni and Holm corrections control the familywise error rate0.00
10○○Sourdough starter tips for better loaves0.00
nDCG@3
Recall@3
nDCG@k
0.601
Recall@k
0.667
Precision@k
0.667
Reciprocal rank
1.000
Puzzle: For “car repair cost”, find a method that puts both very relevant documents in the top 3.
Puzzle: For the query “holm”, find a method with reciprocal rank 1.
BM25 for “car repair cost”: nDCG@3 0.601, recall@3 0.67, reciprocal rank 1.00. The top document is “Car insurance prices rise again this year”. The dense vectors here are a hand-made toy with four themes, not a trained encoder.
BM25 for “car repair cost”: nDCG@3 0.601, recall@3 0.67, reciprocal rank 1.00. The top document is “Car insurance prices rise again this year”. The dense vectors here are a hand-made toy with four themes, not a trained encoder.
Greedy decoding or beam search gives the model's best answer.
Why it's tempting
They pick the most probable words, and most probable sounds like best.
What's true
The most probable sequence is often short, repetitive or bland, and beam search favors short outputs unless it penalizes length. For open-ended tasks, sampling with top-p can give better answers. Decoding is part of the system: evaluate the settings you will use.
Show me
DExplorable · Decoding: greedy, beam search and sampling
How does the way we pick tokens change the sentence a language model writes?
Method
Greedy takes the likeliest token each step; beam search keeps several partial sentences; sampling draws.
Beam search only: partial sentences kept at each step.
Length normalization
Total log-probability always favors shorter sentences; normalizing by length offsets that.
GNMT only: divide by ((5 + length) / 6)^α.
Sampling only: below 1 sharpens, above 1 flattens, as in llm-sampling.
Sampling only: keep the k likeliest tokens.
Sampling only: keep the likeliest tokens until they hold this much probability.
Tokens before the search stops.
“the data fits well today </s>”
Change the sample to draw another sentence from the same settings.
Log-probability of the result
−4.239
Tokens
6
Normalized score
−4.239
Gain over greedy (log-probability)
−0.419
Puzzle: Find a sentence more likely than greedy's.
Puzzle: With beam search, make a sentence of five or more tokens win.
Sampling writes “the data fits well today </s>”: log-probability −4.239 over 6 tokens. Greedy's sentence has log-probability −3.820. The toy model's probabilities are fixed; only the way of choosing changes.
Sampling writes “the data fits well today </s>”: log-probability −4.239 over 6 tokens. Greedy's sentence has log-probability −3.820. The toy model's probabilities are fixed; only the way of choosing changes.
BLEU is the standard score, and it goes up when the output matches the reference more.
What's true
BLEU counts overlapping word sequences with one or a few references, so a correct paraphrase can score low. Small differences between systems need a paired test over sentences. Use chrF or learned metrics alongside, and human judgments for decisions that matter.
Show me
DExplorable · Overlap metrics for text: BLEU, chrF, ROUGE and pass@k
Does word overlap with a reference tell you whether generated text is right?
Which metric will rate this sentence highest on the 0–100 scale?
How sure?
Generated sentence
Scored against the reference “the cat sat on the mat near the door”.
BLEU averages the precision of 1-word up to this many words in a row. The standard is 4.
BLEU smoothing
Without smoothing one n-gram order with no match makes the whole score 0, common for short sentences.
Penalizes outputs shorter than the reference. Precision alone rewards saying less.
For pass@k: how many programs were generated for one problem.
How many of the n samples pass the tests (capped at n).
pass@k: the chance that at least one of k samples passes (capped at n).
Reference
“the cat sat on the mat near the door”
Generated
“a cat was sitting on the rug by the door”
The plug-in treats the 20 samples as if they were an endless supply; the unbiased estimate counts how many ways k of them can all fail.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The KV cache only speeds generation up; it costs nothing.
Why it's tempting
It avoids recomputing keys and values, which sounds like pure savings.
What's true
The KV cacheKV cacheKeys and values a language model keeps for every token in its context, per layer. It grows with the context window. stores keys and values for every layer and every token in the context, so its memory grows with context length, batch size and layer count. In serving, it often takes more memory than the weights. Grouped-query attention and quantized caches shrink it.
Show me
DExplorable · How much memory does a model need?
Where does a language model's memory go — weights, KV cache, optimizer state — and does it fit on this Mac?
Model
Hypothetical decoders; the first is the reference workflow's own.
Tokens held in the KV cache (and the length of the attention scores).
Sequences processed at once; the KV cache grows with it.
Weight format
Bits per stored weight; the llama.cpp types include their block scales.
KV cache format
Bytes per stored key or value.
Use
Training adds gradients and optimizer state; LoRA adds them only for the adapters.
LoRA only: rank of each adapter.
LoRA targets
LoRA only: which matrices get adapters.
Under half is “fits”, under 85% “tight”, as the app's own estimate says.
Weights: 0.31 GiB
KV cache: 0.02 GiB
Runtime overhead (10%): 0.03 GiB
Verdict: fits (2%)
This model's KV heads (grouped-query)
One KV head per query head
Parameters
168059904
Weight bytes
336119808
KV cache bytes
25165824
Trainable parameters
0
Total bytes
397414195
Share of this Mac's memory
0.023
Puzzle: Make the larger decoder fit (under half) a 16 GB Mac for inference with a 4,096-token context.
Puzzle: With LoRA training less than 1% of the parameters, find a case where the total is still more than half of full fine-tuning's.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
It applies the same rubric to every answer and never gets tired.
What's true
LLM judges tend to prefer longer answers, answers in their own style and whichever answer comes first. Swap the order, measure agreement with human judgments on a sample, and report the judge's model and prompt.
Show me
HExplorable · Strengths from paired comparisons
When judges only say which of two is better, can you still put every item on one scale?
If the two halves of the items never play each other, what can the fitted scores tell you?
How sure?
Items to rank. True strengths are evenly spaced; only differences matter.
Log-strength of the best item minus the worst. At 0 every game is a coin flip.
How many times each scheduled pair is compared.
Who plays whom
The comparison graph decides whether the scale is identified at all.
Red links are one-sided: one item won every game. Every item beats, and is beaten by, a path of others, so the estimate is finite. Scores are centered: only differences mean anything.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A model with a very long context window uses everything I put in it.
Why it's tempting
The window is large enough to hold whole documents.
What's true
Models often find information at the start and end of a long context more reliably than in the middle, and performance falls as context grows. Test retrieval of facts placed at different positions before relying on the window.
Show me
DExplorable · Attention: scores, masks and heads
Where does each word look, and what do the scaling and the masks change?
With this mask, how much of each word's attention lands on <pad>?
How sure?
How many of the positions are <pad>.
Width d
Heads
Mask
Without masks or positions the output rows shuffle the same way.
Little weight
Most weight
Masked: score set to −∞
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A model with lower perplexity gives more truthful answers.
Why it's tempting
Lower perplexity means the model predicts text better, and better prediction sounds like better knowledge.
What's true
PerplexityPerplexity (language model)exp of the average negative log probability per word: how many equally likely words the model is choosing between. measures how well a model predicts the text it is scored on, errors and all. A model can be fluent, confident and wrong. Truthfulness and task accuracy need their own tests, with answers checked against sources.
Show me
DExplorable · N-gram smoothing and perplexity
Why does a language model need to give probability to word pairs it never saw, and how much?
Sentences
A tiny training set and three held-out sentences.
Model
A unigram ignores context; a bigram conditions on the previous word.
Pseudo-count added to every possible next word; 0 is maximum likelihood.
Held-out sentences
Training sentences
Training perplexity
3.30
Held-out perplexity
5.66
Held-out tokens with probability 0
0
Unseen held-out bigrams
4
Probability of the shown pair
0.1038
Puzzle: With the bigram model, find a k that gives the lowest held-out perplexity on the sweep.
Puzzle: Make the held-out perplexity infinite.
Bigram model with k = 0.10 over 16 vocabulary entries: training perplexity 3.30, held-out perplexity 5.66. The held-out text has 4 word pairs the model never saw, and smoothing gives each of them some probability. Low training perplexity with infinite held-out perplexity is overfitting in its purest form.
Bigram model with k = 0.10 over 16 vocabulary entries: training perplexity 3.30, held-out perplexity 5.66. The held-out text has 4 word pairs the model never saw, and smoothing gives each of them some probability. Low training perplexity with infinite held-out perplexity is overfitting in its purest form.
pass@10 is the share of problems solved when I draw 10 samples once per problem.
Why it's tempting
That's what the name says.
What's true
Estimating pass@k from exactly k samples is very noisy. The standard estimator draws n samples per problem, more than k, and computes the chance that a random k of them include a correct one. Report n, k and the sampling temperature.
Show me
DExplorable · Overlap metrics for text: BLEU, chrF, ROUGE and pass@k
Does word overlap with a reference tell you whether generated text is right?
Which metric will rate this sentence highest on the 0–100 scale?
How sure?
Generated sentence
Scored against the reference “the cat sat on the mat near the door”.
BLEU averages the precision of 1-word up to this many words in a row. The standard is 4.
BLEU smoothing
Without smoothing one n-gram order with no match makes the whole score 0, common for short sentences.
Penalizes outputs shorter than the reference. Precision alone rewards saying less.
For pass@k: how many programs were generated for one problem.
How many of the n samples pass the tests (capped at n).
pass@k: the chance that at least one of k samples passes (capped at n).
Reference
“the cat sat on the mat near the door”
Generated
“a cat was sitting on the rug by the door”
The plug-in treats the 20 samples as if they were an endless supply; the unbiased estimate counts how many ways k of them can all fail.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Model A's perplexity is lower than model B's, so A is the better language model.
Why it's tempting
It's the same metric on the same text, so the numbers look comparable.
What's true
Perplexity is per token, and the two models may cut the text into different tokens. A tokenizer with longer tokens makes fewer, harder predictions. Compare bits per character or per byte on exactly the same text, or use the same tokenizer.
Show me
DExplorable · Byte-pair encoding
How does a tokenizer learn its vocabulary, and what happens to a word it has never seen?
Training text
The text the merges are learned from.
Each merge joins the most frequent adjacent pair into one new token.
Add </w> so a token knows it ends a word (“est</w>” differs from “est”).
Start from UTF-8 bytes instead of characters, so nothing is ever unknown.
Spell an unknown character as its bytes instead of <unk>.
Word to tokenize
Words not in the training text, one with a character it never saw.
“lowest” as tokens
low
est</w>
Merges, in the order learned (10)
e+s ×9
es+t ×9
est+</w> ×9
l+o ×7
lo+w ×7
e+w ×6
ew+est</w> ×6
n+ewest</w> ×6
low+</w> ×5
d+est</w> ×3
Base symbols 11 · vocabulary 21
Vocabulary size
21
Tokens in the training text
28
Tokens for the word
2
Unknown tokens
0
Characters per token
2.82
Puzzle: Merge until every word of the training text is a single token.
Puzzle: Tokenize “naïve” with no <unk>, without byte fallback.
After 10 merges the vocabulary has 21 tokens and the training text takes 28 tokens (2.82 characters per token). “lowest” becomes 2 tokens: low · est</w>.
After 10 merges the vocabulary has 21 tokens and the training text takes 28 tokens (2.82 characters per token). “lowest” becomes 2 tokens: low · est</w>.
With retrieval-augmented generation, the model only says what the documents say.
Why it's tempting
The answer is built from retrieved passages, often with citations.
What's true
The model can ignore, misread or blend passages, and retrieval can bring back the wrong ones. Cited passages don't always support the sentence that cites them. Evaluate retrieval and generation separately and check citations against the sources.
Show me
DExplorable · Retrieval: BM25, dense vectors and late interaction
When does matching words beat matching meanings, and how do we score a ranking?
Query
Each query has graded relevance labels for the ten documents.
Method
BM25 and TF-IDF match words; the toy dense vectors and MaxSim match themes.
Metrics look at the top k documents.
How fast repeated words stop adding score.
How much long documents are penalized.
1●○Car insurance prices rise again this year2.12
2●●How much does vehicle maintenance cost per year2.01
3○○Bayesian priors and posterior distributions explained0.00
4○○Weather forecast: heavy rain and strong wind expected tomorrow0.00
5○○A beginner's guide to the p-value and multiple testing correction0.00
6○○Baking bread at home: flour, water, yeast and salt0.00
7○○Storm warning issued as rainfall totals climb0.00
8●●Fixing an automobile engine: a mechanic explains common repairs0.00
9○○Bonferroni and Holm corrections control the familywise error rate0.00
10○○Sourdough starter tips for better loaves0.00
nDCG@3
Recall@3
nDCG@k
0.601
Recall@k
0.667
Precision@k
0.667
Reciprocal rank
1.000
Puzzle: For “car repair cost”, find a method that puts both very relevant documents in the top 3.
Puzzle: For the query “holm”, find a method with reciprocal rank 1.
BM25 for “car repair cost”: nDCG@3 0.601, recall@3 0.67, reciprocal rank 1.00. The top document is “Car insurance prices rise again this year”. The dense vectors here are a hand-made toy with four themes, not a trained encoder.
BM25 for “car repair cost”: nDCG@3 0.601, recall@3 0.67, reciprocal rank 1.00. The top document is “Car insurance prices rise again this year”. The dense vectors here are a hand-made toy with four themes, not a trained encoder.
The model's step-by-step explanation shows how it reached its answer.
Why it's tempting
The steps read like a person's working, and they usually lead to the answer.
What's true
The reasoning text is generated output like any other. It can be written after the fact, skip the step that mattered, or reach the right answer through wrong steps. Edit or remove steps and see whether the answer changes, and check the final answer independently.
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
The model gave the same answer five times in a row, so it's right.
Why it's tempting
Consistency is usually a sign of knowledge.
What's true
Agreement measures stability, not truth: a model can be consistently wrong, and repeated samples from one model share its blind spots. Majority voting over samples helps some tasks, but check answers against a source or known results.
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
At temperature zero, the model always gives exactly the same output.
Why it's tempting
Temperature zero means always taking the most probable token.
What's true
Batching, hardware and floating-point order can change which token is most probable when two are close, so outputs can still vary between calls or versions. And determinismDeterminismGetting the same result every time you repeat a run on the same setup. It doesn't make the design unbiased or the result general. isn't correctness: a repeatable answer can be repeatably wrong.
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
A token is a word, so a 1,000-token limit means 1,000 words.
Why it's tempting
Short English texts often have roughly one token per word.
What's true
Subword tokenizers such as BPEByte-level BPEMerges frequent pairs of UTF-8 bytes into tokens, so any text can be written without unknown tokens. split words into pieces, and the ratio depends on the language, the tokenizer and the content. Non-English text, numbers and code often take several tokens per word. Count tokens with the model's own tokenizer.
Show me
DExplorable · Byte-pair encoding
How does a tokenizer learn its vocabulary, and what happens to a word it has never seen?
Training text
The text the merges are learned from.
Each merge joins the most frequent adjacent pair into one new token.
Add </w> so a token knows it ends a word (“est</w>” differs from “est”).
Start from UTF-8 bytes instead of characters, so nothing is ever unknown.
Spell an unknown character as its bytes instead of <unk>.
Word to tokenize
Words not in the training text, one with a character it never saw.
“lowest” as tokens
low
est</w>
Merges, in the order learned (10)
e+s ×9
es+t ×9
est+</w> ×9
l+o ×7
lo+w ×7
e+w ×6
ew+est</w> ×6
n+ewest</w> ×6
low+</w> ×5
d+est</w> ×3
Base symbols 11 · vocabulary 21
Vocabulary size
21
Tokens in the training text
28
Tokens for the word
2
Unknown tokens
0
Characters per token
2.82
Puzzle: Merge until every word of the training text is a single token.
Puzzle: Tokenize “naïve” with no <unk>, without byte fallback.
After 10 merges the vocabulary has 21 tokens and the training text takes 28 tokens (2.82 characters per token). “lowest” becomes 2 tokens: low · est</w>.
After 10 merges the vocabulary has 21 tokens and the training text takes 28 tokens (2.82 characters per token). “lowest” becomes 2 tokens: low · est</w>.
Scale or impute the whole dataset first, then split it for validation.
Why it's tempting
It's one tidy step at the top of a script, and for simple scaling the score barely changes.
What's true
Anything learned from all rows lets validation rows influence training. For a mean and SD the effect is usually small. For feature selection and target encoding it can be enormous. Split first, and learn every step on training rows only, so you never have to judge how much it mattered.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
No exponentiality test rejected, so the failure rate is constant.
Why it's tempting
Thirty tests agreeing feels far stronger than one.
What's true
The tests share one sample and overlap heavily, so agreement among them is weak extra evidence. With few failures they can't see moderate departures, and data pooled across machines can pass while no machine is exponential. The result is compatible with a constant rate. Report the interval on the mean life, and consider a Weibull fit to see how far the shape could be from 1.
Show me
FExplorable · From hazard to survival
How does the moment-to-moment risk build up into a survival curve?
What share of group A is still event-free at this time?
How sure?
Below 1 risk falls with time; above 1 it rises.
Hazard: risk at each moment
Survival: still event-free
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The MTTF is 3,000 hours, so most units last about 3,000 hours.
Why it's tempting
It is a mean, and means usually sound like a typical value.
What's true
Lifetimes are skewed, so a few long survivors pull the mean far past the median. Well over half of the units can fail before the MTTF. Under an exponential model about 63% do. Use a B-life or the reliability at your mission time when a decision depends on early failures.
The best score from my tuning run is what I can expect in production.
Why it's tempting
Every trial was scored on held-out folds, so each number looks honest.
What's true
Each score may be fair alone, but picking the highest also picks the luckiest. The more trials and the fewer rows, the more the winner is inflated. Nested cross-validation or a locked test set gives the honest number, and it's usually lower.
Show me
DExplorable · Cross-validation folds
Which rows should be held out so the score predicts real performance?
Each scheme has a tempting shortcut: training error, plain random folds, or the best score from a search. Will the shortcut here look better than the true error on new data?
How sure?
Scheme
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Gradient boosting always beats a linear model on tabular data.
Why it's tempting
Boosted trees win many competitions, where teams have large tables and lots of tuning time.
What's true
On small tables with smooth, close-to-additive effects, a logistic model can match or beat boosting. The only way to know is to train both on the same folds, and read the gap against the fold-to-fold noise.
In most models, more parts means more flexibility, and boosting really can overfit with more rounds.
What's true
A forest averages independently grown trees, so its error levels off as trees are added, and more of them cost only time. Boosting is different: each tree fits what's left, so rounds are a real hyperparameter and early stopping exists.
Show me
DExplorable · Bagging and boosting
How do many weak trees combine into a strong model?
With up to 200 trees available, at how many trees will error on new data be lowest?
How sure?
Method
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The model never trains on the test set, so I can check it after every change.
Why it's tempting
Nothing in the code touches those rows during fitting, so the score feels independent of everything you do.
What's true
Every look lets noise on those rows steer your next choice. After enough looks, you've tuned to the test set without ever fitting on it, and the score drifts below the truth. Choose by cross-validation, look once at the end, and find new rows if you need another honest number.
Show me
DExplorable · Cross-validation folds
Which rows should be held out so the score predicts real performance?
Each scheme has a tempting shortcut: training error, plain random folds, or the best score from a search. Will the shortcut here look better than the true error on new data?
How sure?
Scheme
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My model has 99% accuracy on the data it was trained on, so it works.
Why it's tempting
The number comes straight from the model, on real data, and it's the first one you see.
What's true
A flexible model can memorize its training rows, noise and all. Only rows it hasn't seen can tell you how it will do on new cases. Read the training and held-out scores together: the gap between them is the evidence of overfitting.
Show me
DExplorable · Grow a decision tree
How does a tree choose its splits, and when should it stop?
Training accuracy keeps rising with every split. After how many splits will accuracy on new data stop improving?
How sure?
Data
Split criterion
1x₂ ≤ 0.03120 rowsimpurity −0.254
2x₁ ≤ 1.5777 rowsimpurity −0.126
3x₂ ≤ 0.4266 rowsimpurity −0.012
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Adam adapts its own step size, so the learning rate doesn't matter.
Why it's tempting
Adam is called adaptive, and its defaults often work on the first try.
What's true
Adam rescales each parameter's step by the size of its recent gradients, but the global learning rate still sets how far every step goes. Too large and training diverges; too small and it stalls. Warmup and decay change the result too, so tune the rate and record the schedule.
Show me
DExplorable · Optimizer race
Why do momentum, Adam and a learning-rate schedule train faster than plain gradient descent?
Which optimizer gets within 0.001 of the minimum first?
How sure?
Surface
Schedule
SGD: 0.0000
Momentum: 0.0000
Adam: 0.0001
AdamW: 0.0001
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Doubling the batch size only makes training faster; the trained model is the same.
Why it's tempting
Each batch averages gradients over rows, and a bigger average seems like the same thing, more precisely.
What's true
The batch size changes how noisy each gradient is and how many steps an epoch takes, so with the same learning rate and schedule you get a different model. Rules for scaling the learning rate with the batch are rough guides; retune when you change the batch size.
Show me
DExplorable · Optimizer race
Why do momentum, Adam and a learning-rate schedule train faster than plain gradient descent?
Which optimizer gets within 0.001 of the minimum first?
How sure?
Surface
Schedule
SGD: 0.0000
Momentum: 0.0000
Adam: 0.0001
AdamW: 0.0001
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Gradient clipping stopped my loss from exploding, so the model is fine now.
Why it's tempting
The training curve looks normal again.
What's true
Clipping caps the size of each step; it doesn't remove the cause. A learning rate that is too high, a bad initialization, a numerical bug or broken rows can all still be there. Look at gradient norms by layer, activation ranges and the data before you trust the run.
Show me
DExplorable · Gradient descent on a loss surface
Why does the learning rate decide whether training works at all?
With this learning rate and this surface, what will the path do?
How sure?
Surface
Optimizer
Orange dot: the start. Blue dot: where the path has reached. Darker shading is higher loss.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Cosine similarity and Euclidean distance pick the same nearest neighbors.
Why it's tempting
Both measure how close two vectors are.
What's true
They agree only when every vector has the same length. Otherwise Euclidean distance counts differences in length and cosine ignores them, so a long and a short vector pointing the same way are far apart for one and identical for the other. Choose by whether length means something in your data.
Show me
AExplorable · Distance depends on units
Who counts as a neighbor when one column is in years and another in dollars?
The two groups differ only in age. With these units and this scaling, which column decides who is whose neighbor?
How sure?
Income recorded in
Scaling
Distance
Odd, so a vote can't tie.
Younger group
Older group
Both axes use the same unit length, so a column with a huge range stretches the picture along its axis. Distances are measured in this picture.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The loss is going down, so my gradients must be computed correctly.
Why it's tempting
Training works by following gradients, so improvement seems to prove they're right.
What's true
A gradient with a missing term or a wrong sign in one layer can still point roughly downhill, so the loss falls, only more slowly or to a worse place. Compare your gradients with finite differences on a tiny network before you trust a hand-written backward pass.
Show me
DExplorable · Backprop, one step at a time
How does the chain rule send a loss's gradient back to every weight?
h reaches the output twice: through v·h and through the skip connection. What should its gradient be?
How sure?
Each step processes one operation, from the loss back toward the inputs.
Activation
Gradient-check step ε
Each box shows a value from the forward pass; the number under it is ∂L/∂(that value), filled in as the backward pass reaches it. A value used twice collects gradient from both uses.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Adding up probabilities or exponentials in floating point is accurate enough not to worry about.
Why it's tempting
Computers keep about sixteen significant digits, which sounds like plenty.
What's true
Exponentials overflow, very small probabilities round to zero, and multiplying many of them underflows long before the true value is zero. Work in log space and add with the log-sum-exp trick. Half precision keeps far fewer digits, so check sums and softmaxes there too.
Show me
DExplorable · Climbing the logistic likelihood
How does logistic regression find its coefficients, and what if the data separate perfectly?
Where will the likelihood peak? Estimate the slope (6 means 6 or more).
How sure?
Stronger color is more likely. The line shows Newton's steps from (0, 0). Drag the red point toward the summit. Your log-likelihood: −50.52; the maximum: −22.02.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The optimizer that drives the training loss lowest gives the best model.
Why it's tempting
Optimizers are judged by how well they minimize, and lower loss is their whole job.
What's true
Optimizers differ in where they end up, not only how low they get. A solution that fits the training rows more tightly can generalize worse. Compare optimizers on validation data, with their learning rates tuned, over several seeds.
Show me
DExplorable · Optimizer race
Why do momentum, Adam and a learning-rate schedule train faster than plain gradient descent?
Which optimizer gets within 0.001 of the minimum first?
How sure?
Surface
Schedule
SGD: 0.0000
Momentum: 0.0000
Adam: 0.0001
AdamW: 0.0001
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Weight decay and an L2 penalty are the same thing, whatever optimizer I use.
Why it's tempting
For plain gradient descent they really are the same update.
What's true
With Adam, an L2 term is divided by the same adaptive scale as the gradient, so weights with large gradients decay less than you intended. AdamW applies the decay separately from the gradient step, which is why it behaves differently. Say which one you used.
Show me
DExplorable · Optimizer race
Why do momentum, Adam and a learning-rate schedule train faster than plain gradient descent?
Which optimizer gets within 0.001 of the minimum first?
How sure?
Surface
Schedule
SGD: 0.0000
Momentum: 0.0000
Adam: 0.0001
AdamW: 0.0001
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The combined p-value is tiny, so every study found the effect.
Why it's tempting
A single small number reads like a summary of all the studies.
What's true
Most combination tests have a global null: every null hypothesis is true. Rejecting it is compatible with one strong result among many nulls. A small combined p says nothing about which studies, how many, or how large the effect is. Use a meta-analysis of effect sizes when you can.
Missing small null studies is the textbook explanation, and the plot looks exactly like that story.
What's true
Asymmetry shows that small studies differ from large ones, not why. Small trials may enrol sicker patients or use stronger doses, and heterogeneity or the choice of effect measure can create asymmetry alone. Name the competing explanations, then read the sensitivity estimates as a range.
Show me
BExplorable · The funnel and publication bias
What does a literature look like when non-significant studies go missing?
What effect does the published literature estimate?
How sure?
Dashed: the 95% funnel around the truth. Colored: published. Faded: hidden. The bold line is the estimate you would read in the literature.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It is a percentage labeled heterogeneity, so a large value sounds like a large spread.
What's true
I² is a ratio: between-study variation compared with sampling error. Very large trials have tiny sampling error, so even trivial real differences give a high I². To say how far effects actually spread, report τ on the effect's own scale, or better, the prediction interval.
Show me
BExplorable · Forest plots and heterogeneity
When studies disagree, what does a pooled effect mean?
What share of the variation between studies is real (I²)?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The fail-safe N runs into the thousands, so publication bias can't explain this result.
Why it's tempting
One large number seems to settle the worry, and it is quick to report.
What's true
Fail-safe N only asks how many studies with an average effect of exactly zero would remove significance. It ignores effect size and assumes the missing studies average zero, when selective publication usually hides studies pointing the other way. A large value doesn't tell you the pooled estimate is right.
A study reported five outcomes, so it adds five independent pieces of evidence.
Why it's tempting
The table has five rows, and pooling software accepts them without complaint.
What's true
Effects from one sample share participants and methods, so they are correlated. Treating them as independent makes the interval too narrow and gives that study too much weight. Model the clustering with a multilevel model, and add cluster-robust standard errors when the correlations are unknown.
Show me
BExplorable · When observations come in clusters
What happens to a t test when students come in classrooms and you ignore it?
There is no true effect. How often does the naive t test reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Every study in my meta-analysis was randomized, so the meta-regression slope is a causal effect.
Why it's tempting
Randomization is the gold standard, and all the input trials have it.
What's true
Patients were randomized within trials; trials were never randomized to levels of the moderator. A moderator travels with year, setting, dose and design, so the slope is an observational comparison between studies. It is compatible with a cause and with many confounders.
Dropping rows with missing values is the safe, neutral choice.
Why it's tempting
It needs no assumptions you can see, every method accepts the result, and no value has been invented.
What's true
Dropping rows assumes the rows you keep are a fair sample of all rows, which holds under MCARMissing completely at randomMissingness unrelated to any value, observed or not; complete-case analysis stays unbiased.. If gaps depend on other values or on the missing value itself, the remaining rows differ from the full sample, and your estimate can move as well as lose precision.
Little's test wasn't significant, so my data are missing completely at random.
Why it's tempting
A test gave an answer, and the answer suggests you can go ahead without further thought.
What's true
A large p-value shows this test found no difference in means between missingness patterns. It has little power with few incomplete rows, and it can miss differences in spread. No test of this kind can separate MARMissing at randomMissingness explained by observed variables; imputation that uses them can remove the bias. from MNARMissing not at randomMissingness depends on the missing values themselves (e.g. high earners skip income); needs sensitivity analysis. either, because that would need the values you don't have.
Filling gaps with the mean is fine, because it doesn't change the mean.
Why it's tempting
The mean stays put, the sample size goes up, and the analysis stops complaining.
What's true
It adds rows with no spread, so the standard deviation shrinks, standard errors fall and p-values look stronger than the data support. It also weakens correlations with other columns. Use multiple imputation for inference, and flag any single fill you keep.
A high CLIP score means the caption correctly describes the image.
Why it's tempting
CLIP was trained to match images with their captions.
What's true
CLIP-style scores reward associations between words and image content and often miss counts, negation and spatial relations: "a dog to the left of a cat" and "a cat to the left of a dog" score alike. Check hard cases against human labels before using the score as a judge.
Show me
DExplorable · A toy latent space
If every point in a latent space decodes to something, does every point decode to something real?
Decoded from your point
Nearest training curve
Distance to nearest
0.093
Peaks
1
Variance captured
0.81
Puzzle: Find a point inside the plotted range that decodes to something unlike the training data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
If the image is missing, the multimodal model will fall back on the text and do fine.
Why it's tempting
The text alone carries most of the information.
What's true
Models trained with both inputs often break when one is absent or corrupted, because they learned to rely on the combination. Decide a missing-modality policy, train with missing inputs if you'll meet them, and test with each input removed.
Show me
DExplorable · Neural network playground
How do hidden units combine straight lines into curved boundaries?
Each hidden unit can draw one straight line. How accurate will this network be on new data?
How sure?
Data
Activation
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A visual chat model describes what's actually in the image.
Why it's tempting
Its descriptions are detailed and fluent, and usually right.
What's true
It can describe objects that aren't there, pulled in by the question's wording or by things that usually appear together. Leading questions make it worse. Verify claims against the image, and evaluate on images with known contents.
Show me
DExplorable · Temperature and top-p
What do the sampling settings on a language model actually change?
With these settings, how likely is the single most likely token?
How sure?
Below 1 sharpens the distribution; above 1 flattens it.
Keep the likeliest tokens until they hold this much probability.
Zero-shot classification uses no labels from me, so it brings no training bias.
Why it's tempting
You only write the class names; the model does the rest.
What's true
The pretraining data's associations decide the answers, and small changes to the prompt wording change accuracy. Results can differ a lot between groups. Evaluate on a labeled sample from your own data, with a few prompt variants.
Show me
AExplorable · Sampling bias
Does a bigger sample fix a biased way of collecting data?
If you invite ten times as many people, what happens to the gap between the survey mean and the truth?
How sure?
How much more likely high earners are to answer.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A significant MANOVA means I can run the follow-up ANOVAs with no adjustment.
Why it's tempting
The joint test came first, and many textbooks call it a protected procedure.
What's true
Protection only holds when the joint null is true for every outcome. If one outcome truly differs, MANOVA rejects, and the rest are then tested with no control. Adjust the follow-ups, or look at the canonical dimensions.
Show me
BExplorable · The family-wise error rate
If you run many tests, how likely is at least one false alarm, and what does correcting cost?
Without correction, how often does this family produce at least one false alarm?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Each variable passes a normality test, so together they're multivariate normal.
Why it's tempting
Checking variables one at a time is easy, and the tests all pass.
What's true
Normal margins can be joined in many non-normal ways. Check a chi-square Q–Q plot of Mahalanobis distances, and read the multivariate tests as prompts rather than as a gate.
Show me
AExplorable · Build a Q–Q plot
How do skewness and heavy tails show up in a normal Q–Q plot?
Before plotting: what pattern will the points make?
How sure?
Below 1: heavier tails.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A significant PERMANOVA means the group centers differ.
Why it's tempting
It's described as an ANOVA, and ANOVA is about means.
What's true
Pseudo-F also responds to differences in spread, especially when groups are unbalanced. Read it beside PERMDISP, and look at the ordination. If both are significant, you can't attribute the result to location alone.
Show me
BExplorable · Permutation shuffler
Could a difference this large come from shuffling the labels alone?
Shuffle the labels a thousand times. How often will the shuffled difference be as large as the real one?
How sure?
Data
Statistic
+30 on the last value of the second group.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A missing attention mask only matters at the edges; the model still learns properly.
Why it's tempting
Training runs, and the loss falls fast.
What's true
Without a causal mask, a language model sees the next token while learning to predict it, so the training loss falls quickly and generation fails. Without a padding mask, padding tokens shape the attention. Check masks with a test: change a future or padded token and confirm earlier outputs don't move.
Show me
DExplorable · Attention: scores, masks and heads
Where does each word look, and what do the scaling and the masks change?
With this mask, how much of each word's attention lands on <pad>?
How sure?
How many of the positions are <pad>.
Width d
Heads
Mask
Without masks or positions the output rows shuffle the same way.
Little weight
Most weight
Masked: score set to −∞
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The attention weights show which words the model used to reach its answer.
Why it's tempting
Attention heat maps highlight words, and the word "attention" suggests focus.
What's true
Attention is one mixing step among many layers, residual connections and feed-forward blocks. Quite different attention patterns can give the same output, and heads are often redundant. To find what drives a prediction, intervene: ablate or patch activations, or use an attribution method with its sanity checks.
Show me
DExplorable · Attention: scores, masks and heads
Where does each word look, and what do the scaling and the masks change?
With this mask, how much of each word's attention lands on <pad>?
How sure?
How many of the positions are <pad>.
Width d
Heads
Mask
Without masks or positions the output rows shuffle the same way.
Little weight
Most weight
Masked: score set to −∞
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I trained with rotated copies of every image, so the model is rotation-invariant.
Why it's tempting
The model saw every orientation during training.
What's true
Augmentation encourages invarianceInvarianceAn output that stays the same when the input is transformed in a stated way, like a label under rotation. on the transformations and ranges it covered; it doesn't guarantee it, and nothing carries over to transformations you didn't use. Test it: transform held-out inputs and compare predictions. Models built to be equivariant need the same test, because preprocessing can break them.
Show me
DExplorable · Equivariance: rotate the input, check the output
Does a model's answer turn with its input, as physics says it must?
Rotate the input. Will this model's energy stay exactly the same?
How sure?
Model
Four small networks with fixed random weights. Each gives one number (an energy) and one arrow per point.
How many points (atoms, say) the model sees.
Rotate every point by this angle about the origin before asking the model again.
Move every point by (1, −0.5) after rotating.
Red bars fail the check. Differences below 10⁻¹² are rounding and show as 0.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Batch normalization behaves the same during training and prediction.
Why it's tempting
It's one layer with one set of parameters.
What's true
In training it normalizes with the current batch's mean and variance; at prediction it uses running averages collected during training. Leaving the layer in training mode, very small batches or shifted data all break it. Layer and RMS normalization don't depend on the batch.
Show me
DExplorable · Batch, layer and RMS norm
Which numbers does each normalization layer average over, and when does that bite?
With this layer in training, does example 1's output change when the rest of the batch changes?
How sure?
Layer
Mode
Batch norm uses the batch's statistics in training and running averages in evaluation.
Added to every value in evaluation: data that drifted.
Batches that built the running averages.
Above zero
Below zero
Example 1
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A CNN recognizes objects by their shape, the way people do.
Why it's tempting
Early filters look like edge detectors, and the results look like human recognition.
What's true
Image classifiers often lean on texture and background. A cow on a beach can become something else. Test with images that keep the shape but change texture or background, and with the corruptions your real images will have.
What decides a convolution's output size, and which pixels does it actually read?
Layout
1-D stack: causal layers whose dilation grows, as in a TCN.
Input
Kernel
Pixels per side (the 1-D signal is 2n long).
How far the kernel moves between outputs (2-D).
Zeros added on each side (2-D).
Gap between kernel taps; in the 1-D stack layer l uses dˡ.
The receptive field grows with every layer.
Which output cell shows the pixels it reads (2-D).
Positive
Negative
The highlighted output and the pixels it reads
Output width
8
Receptive field
5
Weights per layer
10
Input read
1.00
Sum of outputs
0.00
Puzzle: Keep the output the same size as the input with a 5 × 5 kernel and stride 1.
Puzzle: In the 1-D stack, make the last output see at least 30 steps with a kernel of 3.
A 3 × 3 kernel with padding 1, stride 1 and dilation 1 turns 8 × 8 pixels into 8 × 8. Every input pixel is read. After 2 layers one output sees 5 × 5 pixels, with 10 weights per layer whatever the image size.
A 3 × 3 kernel with padding 1, stride 1 and dilation 1 turns 8 × 8 pixels into 8 × 8. Every input pixel is read. After 2 layers one output sees 5 × 5 pixels, with 10 weights per layer whatever the image size.
Stacking more graph layers lets every node see more of the graph, so a deeper GNN is always better.
Why it's tempting
Each layer adds one more hop of neighbors.
What's true
Each layer averages a node with its neighbors, and repeated averaging makes node features look alike (oversmoothing), so deep graph networks can lose the differences you need. Compare depths on validation nodes and watch how similar node features become.
Show me
DExplorable · Message passing and oversmoothing
Why does a graph network get better with a few layers and worse with many?
Each layer averages over neighbors. At which depth (0–32) will the communities be best separated?
How sure?
Graph
Normalization
Community separation
Mean cosine distance
Energy, share of input (dashed)
Aggregating the neighbor multisets {a, b} and {a, a, b, b} (a = 1, b = 2)
Aggregator
{a, b}
{a, a, b, b}
Tells them apart
sum
3.00
6.00
yes
mean
1.50
1.50
no
max
2.00
2.00
no
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Adding more layers always makes a network more accurate.
Why it's tempting
The famous results came from ever deeper networks.
What's true
Plain deep networks can train worse than shallow ones; residual connections fix the optimization problem, not a shortage of data. Extra depth overfits small datasets, and on many tables a tuned tree ensemble still wins. Grow depth while validation improves, and stop when it doesn't.
Show me
DExplorable · Neural network playground
How do hidden units combine straight lines into curved boundaries?
Each hidden unit can draw one straight line. How accurate will this network be on new data?
How sure?
Data
Activation
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Validation loss stopped improving at this epoch, so the model has converged to the best solution.
Why it's tempting
Early stopping picks the best epoch automatically.
What's true
Early stopping picks the best epoch within the budget and settings you gave it. A different learning rate, initialization or schedule could do better, and the training loss may still be falling. Report the budget, look at both curves, and repeat with other seeds.
Show me
DExplorable · Gradient descent on a loss surface
Why does the learning rate decide whether training works at all?
With this learning rate and this surface, what will the path do?
How sure?
Surface
Optimizer
Orange dot: the start. Blue dot: where the path has reached. Darker shading is higher loss.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
An LSTM can carry information across any number of steps.
Why it's tempting
Its gates were designed to solve the memory problem of plain recurrent networks.
What's true
Gates slow the fading of gradients; they don't stop it. Training with truncated backpropagation through time also caps how far back the gradient reaches. Long-range dependencies may need attention, explicit memory or a different design; test with sequences where the needed information is far back.
Show me
DExplorable · Gradients through time: RNN, LSTM, GRU
How much of the training signal reaches the first step of a long sequence?
Compared with the last step, how big is the gradient when it reaches step 1?
How sure?
Cell
Multiplies W_hh: below 1 gradients fade faster, above 1 they can explode.
Added to the forget gate: keeps the cell's memory open early in training.
Input
Forget gate f for each unit (rows) and step (columns)
Gate near 0 (forget / take the new value)
Gate near 1 (keep)
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A network with more parameters than training rows is bound to overfit.
Why it's tempting
Classical statistics warns against more parameters than observations.
What's true
Very large networks often generalize well, helped by the implicit preferences of gradient descent, and test error can fall again past the point where the model fits every row (double descent). Parameter count is a poor measure of complexity; validation curves tell you whether a model overfits.
Show me
DExplorable · The bias–variance trade-off
Why does a more flexible model eventually predict worse?
Which polynomial degree will predict new data best?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The code runs without a shape error, so the tensors line up correctly.
Why it's tempting
Frameworks are strict about shapes and complain loudly when they don't match.
What's true
Broadcasting and reshaping accept many wrong layouts quietly: channels first versus last, batch and time swapped, a mask that broadcasts over the wrong axis. The model trains, only worse. Assert shapes, ranges and masks where data enter the model, as each data type's contract lists.
Show me
DExplorable · Shape contracts
Which tensor bugs stop with an error, and which run quietly and give wrong answers?
Bug
Each tensor carries axis names that every step checks.
input x(2, 5, 8)(batch, time, feature)ok
x @ W_qkv(2, 5, 24)(batch, time, 3·feature)ok
split into 2 heads(2, 5, 2, 4)(batch, time, head, head_dim)ok
transpose(2, 2, 5, 4)(batch, head, time, head_dim)ok
Convolution and pooling make a CNN's prediction independent of where the object is.
Why it's tempting
Convolution reuses the same filter everywhere, so position seems not to matter.
What's true
Convolution is equivariant: shift the input and the feature map shifts. Strided pooling and downsampling break even that, so a shift of a pixel or two can change the prediction, and padding lets the network sense the image border. Test small shifts directly.
What decides a convolution's output size, and which pixels does it actually read?
Layout
1-D stack: causal layers whose dilation grows, as in a TCN.
Input
Kernel
Pixels per side (the 1-D signal is 2n long).
How far the kernel moves between outputs (2-D).
Zeros added on each side (2-D).
Gap between kernel taps; in the 1-D stack layer l uses dˡ.
The receptive field grows with every layer.
Which output cell shows the pixels it reads (2-D).
Positive
Negative
The highlighted output and the pixels it reads
Output width
8
Receptive field
5
Weights per layer
10
Input read
1.00
Sum of outputs
0.00
Puzzle: Keep the output the same size as the input with a 5 × 5 kernel and stride 1.
Puzzle: In the 1-D stack, make the last output see at least 30 steps with a kernel of 3.
A 3 × 3 kernel with padding 1, stride 1 and dilation 1 turns 8 × 8 pixels into 8 × 8. Every input pixel is read. After 2 layers one output sees 5 × 5 pixels, with 10 weights per layer whatever the image size.
A 3 × 3 kernel with padding 1, stride 1 and dilation 1 turns 8 × 8 pixels into 8 × 8. Every input pixel is read. After 2 layers one output sees 5 × 5 pixels, with 10 weights per layer whatever the image size.
State-space models like Mamba make attention unnecessary for every sequence task.
Why it's tempting
They scan long sequences in linear time and match Transformers on many benchmarks.
What's true
Selective state-space models are strong on long sequences, but tasks that need exact recall of earlier tokens can favor attention, and results depend on the task and scale. Many recent models mix both. Compare them on your task, at matched compute.
Show me
DExplorable · State space models: scan, kernel, selection
How does a state space model remember, and what does making it selective change?
How much of the final output's weight sits on the marked step a quarter of the way in?
How sure?
Model
Selective: the step size depends on the input (Mamba).
State n decays at rate decay × (n + 1).
Discretization
Input (time-invariant)
Selective mode always uses noise with one marked token.
Attention over L = 64 compares 4,096 pairs; the scan does about 256 state updates.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A Transformer reads the words in order, like a recurrent network.
Why it's tempting
Language comes in order, and the model produces text one word after another.
What's true
Self-attentionSelf-attentionEach token builds its next value as a weighted mix of all tokens, with weights from how well their keys match its query. treats its inputs as a set: shuffle the tokens and the outputs shuffle the same way. Order comes only from positional encodings and from the masks. Remove them and the model can't tell "dog bites man" from "man bites dog".
Outliers are bad data, so they should be removed before analysis.
Why it's tempting
Results look cleaner without them, and many tools flag them as if they were errors.
What's true
A rule says a value is far from the rest. It can't say why. Correct real errors, keep real values, and use robust methods or report results both with and without the value. Rare events can be the most important thing in the data, and deleting them until a result looks right is a way of manufacturing findings.
Show me
AExplorable · Outlier detectors compared
Why do outliers hide from the z-score, and which rule finds them?
How many points will the z > 3 rule flag?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The test is 95% accurate, so a positive result means a 95% chance of disease.
Why it's tempting
A single accuracy figure sounds like a complete description of a test.
What's true
What a positive result means depends on how common the condition is. With 95% sensitivity and specificity and a 2% prevalence, only about 28% of positives are real. The same test, on a population where the condition is common, gives a very different answer.
Show me
HExplorable · What a positive test means
If a good test comes back positive, how likely is the disease?
A person tests positive. What is the chance they have the disease?
How sure?
Disease, test +: 19
No disease, test + (false positive): 49
Disease, test − (missed): 1
No disease, test −: 931
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I have more than 30 rows, so by the central limit theorem my data are normal.
Why it's tempting
The theorem is usually introduced in the same breath as the normal curve, and "n > 30" gets repeated as a rule.
What's true
The theorem concerns the sampling distribution of the mean, and your data keep whatever shape they have. How fast the mean becomes normal depends on skew and tails, so no one sample size works for everything. Dependent data and infinite-variance distributions fall outside it altogether.
Show me
AExplorable · The central limit theorem machine
Why do averages look normal even when the data do not?
Before the machine runs: which way will the histogram of the means lean?
How sure?
Population
Each mean averages n draws.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The data are counts, so a Poisson test is the right choice.
Why it's tempting
Poisson is the distribution everyone learns for counts, and the test is easy to run.
What's true
A Poisson count has a variance equal to its mean. Real counts usually vary more, because units differ and events cluster, and then Poisson tests reject far too often. Compare the variance with the mean, and use a quasi-Poisson or negative binomial model when it's larger.
Show me
DExplorable · Overdispersed counts
What happens to a Poisson test when counts vary more than the Poisson allows?
With no real difference, how often does the plain Poisson comparison reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Averages really do even out in the long run, so it feels as if something must be pushing them back.
What's true
Independent draws have no memory. The average settles because later draws dilute the early run, not because anything corrects it. After 520 heads in 1,000 flips, you expect 1,020 heads in 2,000: the share falls while the raw excess stays.
Show me
AExplorable · The law of large numbers
Does the average of more and more draws settle on the true mean?
After all n draws, how far from the true mean will a running average typically be?
How sure?
Population
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Measurements in nature mostly follow a normal distribution.
Why it's tempting
Heights and test scores look bell-shaped, and the normal curve dominates statistics courses.
What's true
Careful studies of real data find that most variables are skewed, bounded or heavy-tailed to some degree. The normal curve earns its place because statistics such as means become close to normal. It describes the behavior of your raw data much less often.
Show me
AExplorable · The distribution zoo
What do the common distributions look like, and when is a normal approximation good enough?
Which is larger for this distribution: the mean or the median?
How sure?
Family
μ, df, shape, α, meanlog, min, n or λ depending on the family.
σ, rate, scale, β, sdlog or width; for the binomial p = b/(b + 1).
Solid: the distribution. Dashed: a normal with the same mean and SD.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: The normal distributionMicceri (1989), The unicorn, the normal curve, and other improbable creatures, Psychological Bulletin
The myth
Most patients with the disease test positive, so most people who test positive have the disease.
Why it's tempting
The two sentences sound almost the same, and everyday speech doesn't separate them.
What's true
Pr(A∣B) and Pr(B∣A) can be far apart. Which group you restrict to changes the answer, and turning one into the other needs a base rate. The same mistake turns a p-value, Pr(data∣H0), into a claimed probability of the null, Pr(H0∣data).
Show me
AExplorable · The conditional probability tree
If a test is positive, how likely is the condition — and why is that not the test's sensitivity?
A person tests positive. What is the chance they have the condition?
How sure?
P(D | +) = 18.0 / (18.0 + 98.0) = 0.155. Reading the tree the other way round gives P(+ | D) = 0.90: the two are not the same question.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A bigger chi-square statistic means a stronger association.
Why it's tempting
Bigger numbers look like stronger evidence, and a tiny p-value feels like a large effect.
What's true
X2 grows with the sample size. Double every count, and it doubles while the percentages stay exactly the same. Use Cramér's V, an odds ratio or a risk difference to describe strength, and look at the standardized residuals to see where the table departs from independence.
Show me
EExplorable · Observed against expected
How does a chi-square test turn a table of counts into one number?
What will the p-value be for this table?
How sure?
A
B
C
Row 1
22
expected 17.4
residual 1.09
15
expected 16.0
residual −0.25
10
expected 13.6
residual −0.97
Row 2
14
expected 18.6
residual −1.06
18
expected 17.0
residual 0.24
18
expected 14.4
residual 0.94
Shading shows how far each cell sits from its expected count. Residuals above about 2 stand out.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Once I've stratified, the Mantel–Haenszel odds ratio is the answer.
Why it's tempting
It adjusts for the stratifier and gives one tidy number with an interval.
What's true
It's an average over strata, and it's a fair summary only if the strata roughly agree. At Berkeley it sits near 1 although one department differs sharply from the rest. Effects in opposite directions can cancel entirely. Check homogeneity with Breslow–Day or Woolf, knowing they have little power, and look at the stratum odds ratios.
Show me
BExplorable · Forest plots and heterogeneity
When studies disagree, what does a pooled effect mean?
What share of the variation between studies is real (I²)?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
This site had more events than that one, so its rate is higher.
Why it's tempting
Counts are what get recorded and reported, and a bigger number looks like a bigger problem.
What's true
A count means little until you divide by exposure. More patient days, more machine hours or a longer period all bring more events at the same rate. Compare events per unit of exposure, and say what the unit is.
The difference test wasn't significant, so the new option is no worse than the old one.
Why it's tempting
No significant difference sounds like no difference, and it's the result that the study hoped for.
What's true
A large p-value can come from a small study as easily as from a small effect. To claim "not worse", set a margin before the data, then show that the interval stays above it. Non-inferiority reverses the burden of proof, so a weak study can't pass by accident.
Show me
BExplorable · Two one-sided tests
How do you show that two things are the same, not merely that you found no difference?
What can you conclude here?
How sure?
Inconclusive: neither test rejects
Equivalent when the whole 90% interval sits inside the margins. TOST p = .068; ordinary test p = .618.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A chi-square test is invalid if any cell has fewer than 5 observations.
Why it's tempting
The rule of five is widely quoted, and a cell of 2 looks too small to trust.
What's true
The guide is about expected counts, not observed ones. A small observed count can be the signal itself. The usual guide asks for at least 80% of expected counts at 5 or more, with none below 1. Even then it's a warning to check: a Monte Carlo or exact p-value tells you whether the approximation mattered.
Show me
EExplorable · The expected-counts rule
Is "every expected count at least 5" the right rule for a chi-square test?
With these margins, how often does Pearson's χ² reject when there is no association?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
An odds ratio of 2 means the event is twice as likely.
Why it's tempting
Papers often write it that way, and both measures compare two groups on a ratio scale.
What's true
The two agree only when the event is rare. With a common event, the odds ratio sits further from 1 than the risk ratio does. Going from 50% to 75% has a risk ratio of 1.5 and an odds ratio of 3. Report the two proportions themselves, then the measure you chose by name.
A trend test uses only the order of the groups, so the scores I give them don't matter.
Why it's tempting
The groups are described as ordered, and equally spaced scores are the software default.
What's true
The test fits a straight line against the scores, so the spacing changes the result. On the malformation data, equal spacing and midpoints lead to different conclusions from the same table. Choose scores from what the levels mean, before seeing results, and show any sensitivity check.
I've applied the survey weights, so an ordinary chi-square test on the weighted table is fine.
Why it's tempting
Weighted percentages are correct estimates, so the test on them feels correct too.
What's true
Weights fix the estimates, not the uncertainty. Pearson's test treats every row as an independent draw, which clusters and unequal weights break, and weighted counts don't behave like counts. Give the test the weights, clusters and strata so that Rao–Scott can allow for the design.
Show me
BExplorable · When observations come in clusters
What happens to a t test when students come in classrooms and you ignore it?
There is no true effect. How often does the naive t test reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Python and R agree only when they print identical numbers.
Why it's tempting
Anything else looks like a discrepancy.
What's true
The order of floating-point sums, linear-algebra libraries and optimizer stopping rules all differ, so honest agreement is within a tolerance suited to the method (CodeSplash's parity tiersParity tiersHow closely the Python and R engines agree for a method — P0 to 10 decimals, P1 to 6, P2 statistically, P3 by design.). Identical digits can also hide a shared bug, which is why intermediate values are compared too.
Show me
DExplorable · Monte Carlo risk and the flaw of averages
If you plan on average demand and average price, how wrong can the average plan be?
Compared with plugging in average demand and price, will the average simulated profit be…
How sure?
You can't sell more than you can make.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It's the same function in Python and R, so it gives the same answer.
Why it's tempting
The names match, the documentation looks alike, and the results are often close enough not to notice.
What's true
Defaults differ. np.std divides by n and R's sd by n−1. scipy.stats.ttest_ind assumes equal variances and R's t.test doesn't. Quantiles have nine definitions. When a result needs to match, set each option yourself. CodeSplash's two engines are held to the same answer by parity tests, which standalone scripts don't get.
I set the same seed in Python and R, so their results should match.
Why it's tempting
Same seed, same randomness, it seems.
What's true
The two languages use different random-number generators, so the same seed gives different streams. Agreement comes from shared fixtures (the same saved data and splits), matching conventions such as variance denominators and class order, and comparing results within a stated tolerance.
Show me
AExplorable · The bootstrap urn
How can resampling your own data show how much an estimate would vary?
Draw n points with replacement. What share of the original points appears at least once?
How sure?
Statistic
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Units that haven't failed yet tell me nothing, so I'll analyze only the failures.
Why it's tempting
They have no failure time to put in the table.
What's true
A unit still running tells you it lasted at least that long. Dropping such units keeps mostly the early failures, which makes the product look worse than it is. Keep them in as censored, and check that they were not pulled for being at higher risk.
Show me
FExplorable · Why you cannot just drop censored patients
What goes wrong if you ignore or discard censored observations?
If you drop the censored patients, how does the median compare with the truth?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The careful way to experiment is to change one factor at a time.
Why it's tempting
Changing one thing feels clean, and any change in the result has an obvious cause.
What's true
One-factor-at-a-time can't see interactions, and it can miss the best settings when factors work together. A factorial design estimates every main effect from all the runs and shows the interactions for the same effort or less.
The process is in control because every part is within specification.
Why it's tempting
Parts passing inspection feels like the only thing that matters.
What's true
Specification limits say what customers need. Control limits say what the process does. A process can be stable and make bad parts, or be unstable and still make good parts today. Check stability on the control chart before you read capability.
The two groups' error bars overlap, so the difference isn't significant.
Why it's tempting
Overlap looks like a direct visual test, and it's quicker than finding an interval for the difference.
What's true
Two 95% confidence intervals can overlap a fair amount while the difference still has p below 0.05. It also depends on which bars they are: SD, SE and CI differ. To compare two groups, look at the interval for the difference itself.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A rainbow color scale is a neutral way to show a range of values.
Why it's tempting
It's colorful, it has many distinct steps, and it was the default in much software for years.
What's true
Its lightness goes up and down, so it creates visual boundaries where the data have none, and hides real gradients elsewhere. It also fails in grayscale and for many readers with color-vision deficiency. Use a scale whose lightness changes steadily.
Starting a bar chart's axis above zero is fine, as long as it's labeled.
Why it's tempting
It makes small differences visible, and the numbers on the axis are technically correct.
What's true
A bar encodes value by its length, and a truncated axis breaks that link: a 5% rise can look like a sixfold one. Readers respond to the bars, not to the axis labels. Use dots or lines with a focused axis, or plot the change itself.
95% of estimates from future studies will fall inside this 95% confidence interval.
Why it's tempting
It sounds like the natural meaning of the interval, and it's a useful thing to want.
What's true
The 95% is about capturing the true value. Even in ideal conditions, with equal standard errors, the next estimate lands inside your interval about 83% of the time, because your interval and the new estimate both carry error. To predict a new estimate, use a prediction interval.
Show me
BExplorable · The confidence interval bet
If you repeat the study, how often does the new mean land inside today's 95% interval?
What share of replication means will fall inside this interval?
How sure?
Confidence level
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Of two 95% confidence intervals, the one that excludes the null is the more precise.
Why it's tempting
Excluding zero feels like a sharper answer than including it.
What's true
Precision is the width, and nothing else. An interval from 5 to 35 excludes 0 and is 30 wide. An interval from −5 to 10 includes 0 and is half as wide, so it's the more precise of the two.
Show me
BExplorable · How wide is an effect size's interval?
How many observations does it take to pin down an effect size?
How many per group for an interval this narrow?
How sure?
Confidence
The dot is your study: d = 0.50, interval [−0.06, 1.06]. Intervals use the large-sample standard error √(2/n + d²/4n).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
An effect size outside the 95% confidence interval has been refuted by the data.
Why it's tempting
An interval has hard edges, so everything beyond them seems to be ruled out.
What's true
The edges come from the data, the model's assumptions and an arbitrary 95%. A value barely outside is nearly as compatible with the data as a value barely inside. A compatibility curveCompatibility curveThe p-value for every hypothesized effect size, drawn as a curve that peaks at the estimate. shows this as a smooth slope, not a wall.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The two confidence intervals overlap, so the difference between the estimates is not significant.
Why it's tempting
Overlap is easy to see at a glance, and it looks like two results that can't be told apart.
What's true
The intervals (1.04, 4.96) and (4.16, 19.84) overlap, yet a test of their difference gives p = .03. Non-overlap does imply p < .05, and overlap doesn't imply the reverse. Estimate the difference directly, with its own interval.
This 95% confidence interval has a 95% chance of containing the true effect.
Why it's tempting
The word "confidence" invites it, and it's the statement you'd most like to make.
What's true
The 95% describes how often such intervals capture the truth over many studies, if the assumptions hold. This interval either contains the true effect or doesn't. A statement about this interval needs a Bayesian credible interval and a stated prior.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
One-sided tests have a bad name, because they're often used to halve a p-value after seeing the data.
What's true
A two-sided test asks whether an effect equals one value. If your question is directional, such as "is the new drug at least as good?", a one-sided p answers it. Fix the direction before seeing the data, say why, and note it in the report, because two-sided is the default readers will assume.
Show me
BExplorable · Switching tails after seeing the data
What goes wrong if you choose a one-sided test once you know which way the data point?
How often does the "pick the tail afterwards" plan reject here?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Both get read as "it passed", so the difference looks like notation.
What's true
It's like saying that a height of 2 m and a height of at most 2 m are the same. "p = .05" is a borderline result. "p ≤ .05" lumps it together with p = .0001, and so says much less.
I rejected the hypothesis at p ≤ .05, so there is a 5% chance my finding is a false positive.
Why it's tempting
α is described as a Type I error rate, so it seems to apply to the decision you've made.
What's true
If the hypothesis is true, your rejection is wrong for certain. If it's false, your rejection is right. The 5% is a long-run rate over many tests, when the hypothesis and assumptions hold. The share of significant results that are false depends on base rates and power, and can be much higher.
Show me
BExplorable · P(H₀ | p < .05)
When p < .05, how likely is it that there was no effect after all?
Of the results with p < .05, what share come from true nulls?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A large p-value, such as p = .70, is evidence in favor of the null hypothesis.
Why it's tempting
The larger p gets, the better the null seems to fit, so a large value feels like support.
What's true
The value most compatible with the data is the estimate itself, where p = 1, and not the null. A large p often means only that the data can't separate many hypotheses, as the width of the interval shows. To support "negligible", set a margin in advance and run an equivalence testEquivalence testTests whether an effect is small enough to ignore, by rejecting effects beyond ± the SESOI..
Show me
BExplorable · Two one-sided tests
How do you show that two things are the same, not merely that you found no difference?
What can you conclude here?
How sure?
Inconclusive: neither test rejects
Equivalent when the whole 90% interval sits inside the margins. TOST p = .068; ordinary test p = .618.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A null p-value above .05 means no effect was observed, or that absence of an effect was shown.
Why it's tempting
"Not significant" is often shortened to "no effect" in everyday reports.
What's true
An effect was observed: it's the estimate, and it's rarely zero. Report it with its interval. The p-value says only that the data would not be unusual if the null and the other assumptions held.
Show me
BExplorable · How wide is an effect size's interval?
How many observations does it take to pin down an effect size?
How many per group for an interval this narrow?
How sure?
Confidence
The dot is your study: d = 0.50, interval [−0.06, 1.06]. Intervals use the large-sample standard error √(2/n + d²/4n).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
None of the studies on this question reached significance, so the overall evidence supports no effect.
Why it's tempting
Counting wins and losses is easy, and five "failures" in a row look conclusive.
What's true
Studies can each miss, and still show a clear signal together. Five independent studies with p = .10 combine, by Fisher's method, to about p = .01. Combine estimates in a meta-analysis, and never count significant results.
Show me
BExplorable · Forest plots and heterogeneity
When studies disagree, what does a pooled effect mean?
What share of the variation between studies is real (I²)?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The result wasn't statistically significant, so the effect must be small.
Why it's tempting
It's natural to assume that a real, large effect would have shown up.
What's true
In a small study, a large effect can drown in noise and still give a large p. Whether it's small is a question for the interval: if the interval includes effects that matter, the study hasn't ruled them out.
Show me
BExplorable · Power explorer
How likely is my study to detect an effect that is really there?
Guess the power: the chance this study rejects H0 if the effect is real.
How sure?
Standardized difference between the group means.
α
Alternative
Each outcome is tested at α ÷ this number.
Solid: t under H₀. Dashed: t if the effect is real. Shaded orange: power, the alternative's area inside the hatched rejection region.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The test gave p > .05, so the null hypothesis is true and should be accepted.
Why it's tempting
If a small p means rejecting, a large one seems to mean the opposite.
What's true
A large p says the data aren't unusual under this model. They aren't unusual under many other hypotheses either, and a real effect in a small study often gives p > .05. Never "accept". Show which effects remain compatible with the data, using the interval.
Show me
BExplorable · Power explorer
How likely is my study to detect an effect that is really there?
Guess the power: the chance this study rejects H0 if the effect is real.
How sure?
Standardized difference between the group means.
α
Alternative
Each outcome is tested at α ÷ this number.
Solid: t under H₀. Dashed: t if the effect is real. Shaded orange: power, the alternative's area inside the hatched rejection region.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
One study got p < .05 and the other got p > .05, so their results conflict.
Why it's tempting
One "worked" and the other "didn't", and that looks like a contradiction.
What's true
Two trials can observe exactly the same difference of 3, with p = .13 when the standard error is 2 and p = .003 when it's 1. They agree perfectly, and only their precision differs. To compare two results, estimate the difference between them and its interval.
Show me
BExplorable · Forest plots and heterogeneity
When studies disagree, what does a pooled effect mean?
What share of the variation between studies is real (I²)?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
With p = .08, there is an 8% probability that chance alone produced this association.
Why it's tempting
"Due to chance" is how p-values are often explained, and it sounds like the definition in plain words.
What's true
That reads the definition backwards. p is computed assuming that chance alone is at work, so it can't be the probability of that assumption. It describes how the data would behave if chance alone were operating. It doesn't say whether it was.
Show me
BExplorable · The p-value as an area
What exactly is a p-value a probability of?
Picture the reference curve and where the statistic falls. Will p land below α?
How sure?
Reference distribution
Used by the t and χ² references.
Alternative
If H₀ were true, a statistic at least as extreme as 1.70 would turn up 8.9% of the time: p = .089.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
p = .05 means that these data would occur only 5% of the time if the hypothesis were true.
Why it's tempting
It's a short version of the definition, and it's close enough to sound right.
What's true
p includes results more extreme than yours, not only what you saw. Any exact dataset is usually very improbable under every hypothesis. And p refers to a frequency only if all the assumptions hold, including random sampling or assignment and no selection of which results get shown.
Show me
BExplorable · The p-value as an area
What exactly is a p-value a probability of?
Picture the reference curve and where the statistic falls. Will p land below α?
How sure?
Reference distribution
Used by the t and χ² references.
Alternative
If H₀ were true, a statistic at least as extreme as 1.70 would turn up 8.9% of the time: p = .089.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The p-value is the probability that the null hypothesis is true. With p = .01 it has a 1% chance, and with p = .40 a 40% chance.
Why it's tempting
You want to know how likely your hypothesis is, and p is the one probability on the card that looks like an answer.
What's true
A p-value is computed by assuming the hypothesis and every other assumption of the test. It can't also be the probability that they're true. It says how far the data sit from what that whole model predicts. A probability for a hypothesis needs a prior and a Bayesian analysis.
Show me
BExplorable · P(H₀ | p < .05)
When p < .05, how likely is it that there was no effect after all?
Of the results with p < .05, what share come from true nulls?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
p-values are properly reported as inequalities, such as p < .02 or p > .05.
Why it's tempting
Tables in older papers and textbooks use stars and cut-offs, so it looks like the convention.
What's true
Inequalities throw information away: p = .06 and p = .70 are both "> .05", and they say different things. Report the exact value. An inequality makes sense only for very small values, such as p < .001, which is what CodeSplash prints.
Two studies got the same p-value, so their results agree.
Why it's tempting
A matching number looks like a matching result.
What's true
Estimates of 3 with standard error 1, and of 12 with standard error 4, both give p = .003, and a test of the difference between them gives p = .03. p mixes the size of an effect with the precision of the study, so equal p says little about agreement.
Show me
BExplorable · Forest plots and heterogeneity
When studies disagree, what does a pooled effect mean?
What share of the variation between studies is real (I²)?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Statistical significance is a property of the effect being studied, and tests detect it.
Why it's tempting
We say a test "found a significant effect", as if significance were out there to be found.
What's true
An effect exists or it doesn't, and it has a size. Significance is a label on a test's result: p fell below a cut-off. The same effect can be significant in a large study and not in a small one, which is why "highly significant" describes the test and not the world.
Show me
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
How sure?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The test gave p ≤ .05, so the null hypothesis is false and should be rejected.
Why it's tempting
Tests end in a decision, and textbooks teach "reject" as the conclusion to write down.
What's true
A small p flags the data as unusual under the whole model. That can come from a false null, from random error, or from another broken assumption, including the p-value having been picked for being small. "Reject" is a decision rule with a long-run error rate. It isn't a finding that the hypothesis is false.
Show me
BExplorable · Truth and decision: the four quadrants
Out of many studies, how many significant results are real?
Of the significant results, what share will be false alarms?
How sure?
Real effect, significant: 50
No effect, significant (false alarm): 45
Real effect, missed: 50
No effect, not significant: 855
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A statistically significant result means something scientifically or practically important has been found.
Why it's tempting
"Significant" means important in everyday English, and the two senses are easy to run together.
What's true
With enough data, tiny effects and small assumption violations give tiny p-values. Importance comes from the size of the effect, and from what matters in your setting. Compare the interval with the smallest effect you'd care about.
Show me
BExplorable · How wide is an effect size's interval?
How many observations does it take to pin down an effect size?
How many per group for an interval this narrow?
How sure?
Confidence
The dot is your study: d = 0.50, interval [−0.06, 1.06]. Intervals use the large-sample standard error √(2/n + d²/4n).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I got a small p-value, so the next study has a good chance of a p-value at least as small.
Why it's tempting
A small p feels like a solid fact about the world, one that should come out the same next time.
What's true
If every assumption holds, including the null, the chance of p ≤ .03 next time is 3%. If the true effect exactly equals your estimate, there's about a 50% chance that an identical study gets a larger p. The next p depends mostly on the true effect and the next study's size.
Show me
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
How sure?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
We got p = .01, so a replication will almost certainly be significant too.
Why it's tempting
A small p-value feels like a solid fact about the world, one that should come out the same next time.
What's true
p-values vary widely between exact replications, and far more than people expect. Even with a true effect, a replication's p-value depends on its power. A study with p barely under .05 has about an even chance of replicating at the same threshold, if the true effect equals the observed one.
Show me
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
How sure?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Simulate sampling variabilityCumming (2008), Replication and p intervals, Perspectives on Psychological Science · Goodman (1992), A comment on replication, p-values and evidence, Statistics in Medicine
Reading power
The myth
I accepted the null because p > .05, and power was 90%, so there is a 10% chance my finding is a false negative.
Why it's tempting
Power is taught as one minus the error rate, so it seems to give the chance you're wrong now.
What's true
If the null is false, accepting it is wrong for certain. If it's true, accepting it is right. The 10% is a long-run rate over many studies, when one particular alternative is correct. It says nothing about your one study, or about other effect sizes.
Show me
BExplorable · Truth and decision: the four quadrants
Out of many studies, how many significant results are real?
Of the significant results, what share will be false alarms?
How sure?
Real effect, significant: 50
No effect, significant (false alarm): 45
Real effect, missed: 50
No effect, not significant: 855
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The result has p > .05, and the test had 90% power at this alternative, so the data favor the null over that alternative.
Why it's tempting
A test that would probably have caught the effect, and didn't, seems to count against the effect.
What's true
An estimate of 1.8 with standard error 1 gives p ≈ .07 against zero, and the test has 90% power at 3.24. Yet the p-value against 3.24 is about .15, so the data are more compatible with the alternative than with the null. Compare compatibility, using the interval.
Show me
BExplorable · Power explorer
How likely is my study to detect an effect that is really there?
Guess the power: the chance this study rejects H0 if the effect is real.
How sure?
Standardized difference between the group means.
α
Alternative
Each outcome is tested at α ÷ this number.
Solid: t under H₀. Dashed: t if the effect is real. Shaded orange: power, the alternative's area inside the hatched rejection region.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
There is a 95% probability that the true value is in this interval.
Why it's tempting
It's the plainest English reading of "95% confidence", and it's what most people want an interval to mean.
What's true
In the frequentist framework the true value is fixed, so this interval either contains it or doesn't. The 95% is the long-run rate at which the method captures the truth, if its assumptions hold. Read one interval as the range of values compatible with the data. If you want a probability statement about the value, use a Bayesian credible interval and state a prior.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: What "95%" meansLesson: Saying the uncertainty out loudMorey et al. (2016), The fallacy of placing confidence in confidence intervals, Psychonomic Bulletin & Review · Greenland et al. (2016), Statistical tests, P values, confidence intervals, and power, European Journal of Epidemiology
The myth
The result wasn't significant because observed power was low, so the study was underpowered.
Why it's tempting
Software will compute it, and it seems to explain a disappointing result.
What's true
"Observed power" plugs the observed effect back into the power formula, so it is a one-to-one function of the p-value and adds no new information. A non-significant result always has low observed power. Judge a finished study by its interval, and plan power before the study, for an effect that matters.
Show me
BExplorable · Power explorer
How likely is my study to detect an effect that is really there?
Guess the power: the chance this study rejects H0 if the effect is real.
How sure?
Standardized difference between the group means.
α
Alternative
Each outcome is tested at α ÷ this number.
Solid: t under H₀. Dashed: t if the effect is real. Shaded orange: power, the alternative's area inside the hatched rejection region.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The standard error tells me how much my data vary.
Why it's tempting
Both are called "standard" and both measure spread, and both get drawn as error bars.
What's true
The standard deviation describes individuals. The standard error describes an estimate, across samples. With more data the standard deviation settles at the population's value while the standard error keeps falling. So small standard error bars can sit on top of widely scattered individuals.
Show me
AExplorable · Standard error against n
How much more data does it take to halve the uncertainty of a mean?
If you quadruple the sample size, the spread of sample means becomes…
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The 95% band around my regression line should contain about 95% of new data points.
Why it's tempting
The band is drawn right over the scatter, and "95%" sounds like a statement about the points.
What's true
A confidence band is about the average outcome at each x, and it narrows toward nothing as n grows. A new point also carries its own scatter around the line. That needs a prediction interval, which stops shrinking at about ±1.96s, however large your sample is.
R² is above .9, so the model is right, and I don't need to check the residuals.
Why it's tempting
R² is a single reassuring number, and it's usually the first one people look at.
What's true
R2 measures how much variance a model explains, not whether its form is right. A straight line through a clear curve can have a high R2 and systematic residuals. Trends in time give a high R2 between unrelated series. Check residual plots and a specification test, whatever R2 says.
Show me
DExplorable · Read the residuals
What does each kind of model failure look like in the residuals?
What is wrong with this regression?
How sure?
Case
Residuals against fitted
Normal Q–Q
Breusch–Pagan p
RESET p
Shapiro–Wilk p
Durbin–Watson
< .001
.995
.061
2.28
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My counts have lots of zeros, so I need a zero-inflated model.
Why it's tempting
The name matches what you see in the histogram, and a Poisson fit does underpredict zeros.
What's true
Overdispersion produces many zeros too. A negative binomial often accounts for them without a second process. Compare expected and observed zeros from a suitable count model first. Then choose a two-part model because of how a zero could arise in your data, since Vuong's test alone is a weak guide.
The coefficients barely change with overdispersion, so I can keep the Poisson results.
Why it's tempting
Poisson point estimates are often close to those from better count models, so the table looks much the same.
What's true
What changes is the uncertainty. When counts vary more than the mean, Poisson standard errors are too small, so p-values are too small and intervals too narrow. With no true difference, a Poisson comparison can reject far more than 5% of the time. Check the dispersion ratio, then use quasi-Poisson or a negative binomial model.
Show me
DExplorable · Overdispersed counts
What happens to a Poisson test when counts vary more than the Poisson allows?
With no real difference, how often does the plain Poisson comparison reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Sargan's test wasn't significant, so my instruments are valid.
Why it's tempting
It's the one test on the card about exclusion, and passing it feels like clearing the last hurdle.
What's true
The test compares instruments with each other. If they all reach the outcome by the same outside route, they can agree perfectly and all be wrong. It also has little power when instruments are weak. With one instrument per treatment, it can't run at all. Exclusion remains an argument you make from outside the data.
Show me
DExplorable · How strong is your instrument?
What goes wrong with instrumental variables when the instrument barely moves the treatment?
How often will the nominal 95% interval from two-stage least squares cover the true effect?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Stepwise selection found the important predictors, so those are the true model.
Why it's tempting
The procedure is automatic and ends with a tidy list where every p-value is small.
What's true
Stepwise uses the data to pick terms, then tests them on the same data as if they'd been chosen in advance. The surviving coefficients are too large, their intervals too narrow and their p-values too small. Run it on a resample and the list often changes. Use penalized regression for prediction, or pre-specify predictors for inference, and report any search you did.
Show me
DExplorable · Regularization paths
What happens to each coefficient as the penalty gets stronger?
Three of the eight predictors really matter. How many coefficients will be exactly zero at this penalty?
How sure?
Penalty
Blue paths are the three predictors that matter; gray are the five that don't. Below, training error (orange) and new-data error (blue).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The agent's training return is high, so the policy is good.
Why it's tempting
Return is exactly what reinforcement learning maximizes.
What's true
A high return can come from exploiting a bug in the simulator or the reward. Training return also reuses the environments the agent learned on. Evaluate on separate environments or seeds, watch what the agent does, and report the spread of returns.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
PPO beat DQN on my run, so PPO is better for this task.
Why it's tempting
Both ran on the same task with sensible settings.
What's true
Reinforcement-learning results vary widely across seeds, often more than between algorithms. Run many seeds for each, report intervals or the full distribution of returns, and tune both with the same budget.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
PPO's clipping guarantees that every update improves the policy.
Why it's tempting
Clipping keeps each update in a safe region.
What's true
Clipping limits how far one update moves the action probabilities; it's a practical safeguard, not a guarantee of improvement. Implementation details such as advantage normalization and value clipping change results. Track returns on separate evaluation episodes after each update.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
DQN's Q-values are accurate estimates of the return I'll get.
Why it's tempting
The network is trained to predict the return.
What's true
Taking the maximum over noisy estimates picks the ones that happen to be too high, so Q-learning overestimates. Double DQN reduces the bias. Compare predicted values with returns from actual rollouts.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
Adding reward bonuses to speed up learning doesn't change what the agent ends up doing.
Why it's tempting
The bonuses only nudge the agent toward the goal.
What's true
Extra rewards change the problem, and agents find ways to collect a bonus instead of reaching the goal. Only shaping built from a potential function leaves the best policy unchanged. Check the trained agent's behavior, not only its return.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
When an episode hits its time limit, I can treat it as finished, like reaching the goal.
Why it's tempting
Either way, the episode stops.
What's true
A time limit cuts the episode short; the world didn't end there. Treating it as terminal tells the agent no reward could follow, which biases its value estimates. Record time limits separately from real endings, as the trajectories contractData contract: reinforcement-learning trajectoriesSteps of state, action, reward, next state and done: separate time limits from real endings and evaluate on separate seeds. asks, and bootstrap the value at cut-offs.
Show me
DExplorable · Gridworld: Q-learning, policy gradients and PPO
How do value-based and policy-gradient learners find a good route, and what makes them fail?
Learner
Q-learning learns action values; REINFORCE and PPO adjust a policy's preferences directly.
Trips from the start until the goal, the pit or 100 steps.
How much a reward one step later is worth now.
Step size of every update.
Q-learning only: share of steps that take a random action.
PPO only: how far the policy may move from the one that collected the batch.
The AI explained my result and its numbers checked out, so its conclusions are verified too.
Why it's tempting
Every number is underlined with its source, and the text reads like a careful colleague's.
What's true
The engine computes the numbers, and the checks confirm that the model's numbers trace back to them and flag some claims the numbers can't support. None of that tests the reasoning. Whether the design allows that conclusion, and whether it matters for your decision, is still yours to judge.
The p-values in my Table 1 show that the randomization worked.
Why it's tempting
A column of large p-values looks like a clean bill of health, and journals have often printed them.
What's true
In a properly randomized trial, any baseline difference arises by chance, so these tests ask a question you already know the answer to. About 5% of rows will fall below 0.05 regardless. What matters is the size of an imbalance on something that predicts the outcome, so report the standardized differenceStandardized mean differenceA covariate's group difference in standard deviation units; below about 0.1 usually counts as balanced. and turn the tests off.
Show me
DExplorable · What randomization balances
Does randomizing guarantee the groups match, and does it reach what you never measured?
In what share of assignments will the groups differ by more than 0.1 SD on the measured covariate?
How sure?
Who gets treated
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Table 1 for readersLesson: Table 1Senn (1994), Testing for baseline balance in clinical trials, Statistics in Medicine · Moher et al. (2010), CONSORT 2010 explanation and elaboration, BMJ
The myth
Cohen's d is only small, so the effect doesn't matter.
Why it's tempting
The label comes with a famous citation, and it seems to answer the question without any further thought.
What's true
Magnitude labels are conventions: the same effect can be small under one rule set and medium under another. Cohen offered his as a fallback for when nothing better is known. In the Physicians' Health Study, aspirin's standardized effect was tiny, and that part of the trial still stopped early because the benefit was clear. Whether an effect matters depends on what the outcome is worth, so ask for a smallest effect of interestSmallest effect size of interestThe smallest effect that would matter in practice; below it, an effect is treated as negligible..
Show me
BExplorable · What Cohen's d looks like
How different are two groups whose means differ by d standard deviations?
What is the chance a randomly chosen treated person scores higher than a randomly chosen control?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Effect sizes people can pictureRosnow & Rosenthal (1989), Statistical procedures and the justification of knowledge in psychological science, American Psychologist · Funder & Ozer (2019), Evaluating effect size in psychological research, Advances in Methods and Practices in Psychological Science
The myth
The checker found nothing wrong, so my sentence is right.
Why it's tempting
A clean result from a tool feels like approval, especially when the same tool caught real mistakes a minute ago.
What's true
The interpretation lintInterpretation lintRules that flag words the numbers can't support, such as causal claims, "proves" and "almost significant". matches word patterns and can't read for meaning. "Sales were significantly higher in the large stores" passes, because "large" looks like a size. "Significant (d = 0.02), so roll it out" passes too. It also flags careful wording now and then. Treat it as a second pair of eyes that can't see the study.
Reporting more decimals makes my results more precise.
Why it's tempting
Software prints them, and rounding can feel like throwing information away or hiding something.
What's true
Precision comes from the data, not from the printout. Digits far below a tenth of the standard errorStandard errorThe typical size of the error in an estimate, the standard deviation of its sampling distribution. are noise, and they make numbers harder to compare. Keep the full value in the saved result, where nothing is lost, and round what the reader sees.
Lesson: Results tables people can readEhrenberg (1977), Rudiments of numeracy, Journal of the Royal Statistical Society A · Cole (2015), Too many digits: the presentation of numerical data, Archives of Disease in Childhood
The myth
The test was not significant, so there is no difference between the groups.
Why it's tempting
"Not significant" sounds like a finding about the world, and it's the natural opposite of "significant".
What's true
Absence of evidence is not evidence of absence. If you need to show that a difference is too small to matter, set a smallest effect size of interest first and run an equivalence testEquivalence testTests whether an effect is small enough to ignore, by rejecting effects beyond ± the SESOI.. Otherwise write "no evidence of a difference" and show the interval.
Show me
BExplorable · Two one-sided tests
How do you show that two things are the same, not merely that you found no difference?
What can you conclude here?
How sure?
Inconclusive: neither test rejects
Equivalent when the whole 90% interval sits inside the margins. TOST p = .068; ordinary test p = .618.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A small p-value proves my hypothesis, and a large one proves the null.
Why it's tempting
Tests end in a yes-or-no decision, so it feels as if something has been settled.
What's true
A p-value measures how compatible the data are with one model, under its assumptions. Neither outcome is proof. A large p-value can come from a small sample as easily as from a true null, so never write "accept the null": report the estimate and the range of values the confidence intervalConfidence intervalA range of effect values compatible with your data at the chosen confidence level. keeps compatible.
Show me
BExplorable · P(H₀ | p < .05)
When p < .05, how likely is it that there was no effect after all?
Of the results with p < .05, what share come from true nulls?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Both numbers are percentages, so subtracting them seems to give another percentage.
What's true
Subtracting gives percentage pointsPercentage pointThe unit for subtracting one percentage from another. From 20% to 25% is 5 points, which is a 25% relative rise.: 5 points. Dividing gives the relative change: 25%. Both are true and they differ, so say which you mean. "Lift" in an A/B test is normally the relative one.
My reader isn't technical, so I'll give one number and leave out the range.
Why it's tempting
Busy people ask for the bottom line, and a single number looks clean and confident.
What's true
Plain language drops the jargon, not the uncertainty. The person deciding is the one most exposed to a wrong number. Give the range in the decision's own units: "our best estimate is a modest gain, and the data are compatible with anything from a small loss to a large gain". Studies of public trust find that a stated numerical range costs little credibility.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Everyone knows what "likely" means, so I don't need a number.
Why it's tempting
Words feel natural and modest, and a number can feel like claiming to know too much.
What's true
People put very different numbers on words such as "likely", "probably" and "possible", even when they work together. A reader may hear something quite different from what you meant. Keep the word if it helps the sentence, and put the number beside it.
Lesson: Saying the uncertainty out loudBeyth-Marom (1982), How probable is probable?, Journal of Forecasting · Budescu & Wallsten (1985), Consistency in interpretation of probabilistic phrases, Organizational Behavior and Human Decision Processes
The myth
The new treatment cuts the risk in half, so it must be a big benefit.
Why it's tempting
A relative change is one memorable number, and it sounds the same whatever the starting point.
What's true
Halving a risk of 2 in 1,000 helps one person per thousand. Halving a risk of 40% helps 200. Same ratio, and a very different decision. Give the baseline and the absolute change next to any relative number, and use counts with the same denominator when you can.
Guess the risk ratio for this odds ratio and baseline risk.
How sure?
Baseline: 100 people
Event: 40
No event: 60
Exposed: 100 people
Event: 57
No event: 43
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Make your prediction to see the result.
Lesson: Risks, rates and percentage pointsGigerenzer et al. (2007), Helping doctors and patients make sense of health statistics, Psychological Science in the Public Interest
The myth
I tried a few analyses, so I'll report the one that worked and keep the report clean.
Why it's tempting
The other attempts feel like scaffolding, and leaving them out seems like a kindness to the reader.
What's true
A reader can only discount what they know about. Choosing an analysis after seeing the results makes false alarms far more common, and the winner looks stronger than it is. Say what you ran, label what's exploratory, and report results that didn't reach the threshold too. The ledgerMultiple-testing ledgerCodeSplash's record of every hypothesis test in a project, used to adjust for multiple comparisons. keeps the count for you.
Show me
BExplorable · The garden of forking paths
How often does a study with no effect find p < .05 if the analysis is chosen after seeing the data?
With these choices, how often will a study of nothing find p < .05?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Reporting that the difference is statistically significant tells the reader what they need to know.
Why it's tempting
Significance is the headline of most test output, so it looks like the answer to the question that was asked.
What's true
Readers need to know how big the difference is and how precisely you estimated it. Significance answers neither. Lead with the effect sizeEffect sizeHow large a difference or relationship is, in units you can interpret. and its interval in units people care about, then give the p-value as supporting detail.
Show me
BExplorable · How wide is an effect size's interval?
How many observations does it take to pin down an effect size?
How many per group for an interval this narrow?
How sure?
Confidence
The dot is your study: d = 0.50, interval [−0.06, 1.06]. Intervals use the large-sample standard error √(2/n + d²/4n).
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The groups differ significantly, so the treatment caused the difference.
Why it's tempting
A small p-value feels like an explanation, and everyday language treats "linked" and "because of" as the same thing.
What's true
A test asks whether the data are compatible with no association. It says nothing about why an association exists. Unless units were randomized, confounding can produce the same result, so write "is associated with" and use the Causal studio when you want a causal claim you can defend.
With p = 0.07 the result is trending toward significance, and with p = 0.0001 it is highly significant.
Why it's tempting
The p-value is a number on a scale, so it seems natural to read closeness to a threshold as momentum or strength.
What's true
A single p-value is not moving anywhere: more data could push it either way. It also doesn't measure the size of an effect, because very large samples give tiny p-values for trivial differences. Report the exact p-value next to the effect size and its interval, and skip the adjectives.
Show me
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
How sure?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Two items that sit close together in embedding space mean the same thing.
Why it's tempting
Embeddings are built so that similar things end up near each other.
What's true
Closeness reflects what the training objective rewarded. Word vectors trained on context put "hot" near "cold" because they appear in the same places. Cosine and Euclidean distance can rank neighbors differently. Check the neighbors of known pairs before you rely on distances in a new embedding.
Show me
DExplorable · A toy latent space
If every point in a latent space decodes to something, does every point decode to something real?
Decoded from your point
Nearest training curve
Distance to nearest
0.093
Peaks
1
Variance captured
0.81
Puzzle: Find a point inside the plotted range that decodes to something unlike the training data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
The first principal component is the hidden factor that drives my data.
Why it's tempting
PC1 explains the most variance and often has a neat interpretation, so it feels like a discovered cause.
What's true
A principal component is the direction of greatest variance, defined only up to its sign and changed by scaling. It mixes whatever columns vary together. Factor analysis models a hidden cause and ICA looks for independent sources, and even those don't prove a real-world entity exists. Treat components as summaries, not mechanisms.
Show me
AExplorable · Rotate to the first principal component
What direction does the first principal component point in, and why?
With this correlation, what share of the total variance will the best single direction keep?
How sure?
Solid: your direction, with each point's projection onto it. Dashed: the first principal component.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Two networks whose layers have high CKA compute the same thing.
Why it's tempting
CKA is a similarity score between representations, and high similarity sounds like the same function.
What's true
CKA compares the geometry of two sets of activations. A few high-variance directions can dominate it, and representations with similar geometry can rely on different features for their predictions. Pair it with tests of what each representation predicts and how it responds to interventions.
Show me
AExplorable · Low-rank pictures
How few rank-one layers does it take to rebuild a matrix?
How many rank-one layers will it take to keep 90% of this picture's squared size?
How sure?
Picture
Each singular value measures one rank-one layer. Keeping the largest k layers gives the best rank-k picture there is (Eckart–Young); the error is the size of the layers you drop.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My autoencoder needed five latent dimensions, so there are five real factors in the data.
Why it's tempting
The bottleneck forces the model to keep only what matters, so its size seems to measure that.
What's true
The latent size is a capacity choice: a smaller or larger code can often fit about as well, and the axes can be rotated or mixed without changing the fit. A latent dimension isn't a discovered count of causes unless extra assumptions make it identifiable.
Show me
DExplorable · A toy latent space
If every point in a latent space decodes to something, does every point decode to something real?
Decoded from your point
Nearest training curve
Distance to nearest
0.093
Peaks
1
Variance captured
0.81
Puzzle: Find a point inside the plotted range that decodes to something unlike the training data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
The training data are 150 bump curves of different centers and widths. Two coordinates capture 81% of their variance, and this point decodes to a curve with 1 peak, 0.093 from the nearest training curve. It looks like the data.
UMAP splits my data into separate islands, so those islands are the real groups and I can label them.
Why it's tempting
The islands look as distinct as countries on a map, and coloring them is one click away.
What's true
Islands depend on the neighbor count and minimum-distance settings, and the map isn't built to keep global distances or densities. Whether discovered groups mean anything is a separate question: cluster in the original or PCA space, check stability and original-column differences, then use the map to show the result.
Show me
AExplorable · Perplexity: how many neighbors count
What does t-SNE's perplexity actually change, and how can you tell whether a map kept its neighbors?
Raise the perplexity from 5 to 30. What happens to each point's bandwidth σ?
How sure?
Ten-dimensional data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
NMF recovered the true parts that make up my data.
Why it's tempting
NMF factors are nonnegative and often look like recognizable parts.
What's true
NMF solutions aren't unique: factors can be rescaled, reordered and sometimes mixed while fitting equally well. Different starts give different factors, and near-perfect recovery on a clean planted example doesn't carry over to noisy data. Report the fit, compare several starts, and check the parts against what you know.
Show me
AExplorable · NMF finds the parts
Why does a factorization that can only add find parts that look like the pieces the data were built from?
At the same rank, which reconstructs the images more closely?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
node2vec embeddings computed on the whole graph make fair features for predicting held-out links.
Why it's tempting
The embedding step has no labels, so it seems unable to leak anything.
What's true
If the held-out edges were in the graph when the walks ran, the embeddings already encode them, and link prediction looks far better than it will on new links. Remove the test edges first, then embed, and say whether the setting is transductive or inductive.
Show me
AExplorable · node2vec: walks become coordinates
How do biased random walks turn a graph's structure into node coordinates?
What share of steps (after the first) will go straight back to the node just left, in %?
How sure?
Graph
Going back costs 1/p: small p walks back often.
Moving outward costs 1/q: small q explores far, large q stays local.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It doesn't matter whether I scale the columns before PCA; the components come out the same.
Why it's tempting
PCA is a rotation of the data, and rotations don't care about units.
What's true
PCA on raw columns follows the covariance, so the columns with the largest units dominate the first components. On standardized columns it follows the correlations and gives different components. Both are legitimate questions; choose one on purpose, center first, and say which one you ran.
Show me
AExplorable · Low-rank pictures
How few rank-one layers does it take to rebuild a matrix?
How many rank-one layers will it take to keep 90% of this picture's squared size?
How sure?
Picture
Each singular value measures one rank-one layer. Keeping the largest k layers gives the best rank-k picture there is (Eckart–Young); the error is the size of the layers you drop.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
If I find the right perplexity, the t-SNE map shows the true clusters.
Why it's tempting
Each perplexity gives a different picture, so it seems one of them must be correct.
What's true
Perplexity sets the size of each point's neighborhood. Small values break the data into many clumps, even from noise; large values show broader shapes. No setting is the true one. Look at several, and check any group you see in the original columns or with a clustering method run there.
Show me
AExplorable · Perplexity: how many neighbors count
What does t-SNE's perplexity actually change, and how can you tell whether a map kept its neighbors?
Raise the perplexity from 5 to 30. What happens to each point's bandwidth σ?
How sure?
Ten-dimensional data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
LDA found ten topics, so my documents discuss ten themes.
Why it's tempting
Each topic's top words often read like a coherent theme.
What's true
The number of topics is a setting you chose. Topics also change with the seed, the vocabulary and the preprocessing, and coherence scores don't always match what people find interpretable. Rerun with several seeds, see which topics survive, and read documents that score high on each.
Show me
AExplorable · Topics by Gibbs sampling
How does LDA turn word co-occurrence into topics, one word at a time?
The corpus was written from 3 topics. How many will the sampler recover exactly (the same four top words)?
How sure?
One sweep reassigns every word's topic once.
Topic 1: team, goal, ball, coach
Topic 2: rain, cloud, sun, wind
Topic 3: salt, pepper, soup, bread
The corpus was written from three topics: weather (sun … cloud), food (bread … pepper) and sports (goal … coach). The sampler sees only which words share documents.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My map's trustworthiness score is high, so the whole picture is faithful.
Why it's tempting
The word "trustworthiness" promises exactly that.
What's true
Trustworthiness checks that a point's neighbors on the map were neighbors in the data: it catches false neighbors. It doesn't catch real neighbors that the map tore apart (continuity measures that), and neither score checks distances between groups. Report both at several neighborhood sizes.
Show me
AExplorable · What t-SNE and UMAP maps don't show
What can you safely read from a t-SNE or UMAP picture?
One group here may be far wider than another in the original space. In the map, that difference in size will be…
How sure?
Ten-dimensional data
Method
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
PC1 explains 60% of the variance, so it holds 60% of what matters for my outcome.
Why it's tempting
Variance sounds like information, and the scree plot ranks components by it.
What's true
Variance isn't relevance. A low-variance direction can carry the whole difference between two classes, and compressing to the top components throws it away. If the components feed a model, choose how many to keep by the model's validation score, not by the share of variance.
Show me
AExplorable · Rotate to the first principal component
What direction does the first principal component point in, and why?
With this correlation, what share of the total variance will the best single direction keep?
How sure?
Solid: your direction, with each point's projection onto it. Dashed: the first principal component.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The bootstrap gives me thousands of samples, so it makes up for a small dataset.
Why it's tempting
Thousands of resamples look like thousands of new data points, and the interval can look reassuringly tidy.
What's true
Every resample is drawn from the same few values, so the bootstrap can't add information. It estimates how much a statistic varies, and with a small sample that estimate is itself rough. It also inherits any bias in your sample, and it assumes rows are independent unless you resample blocks or clusters.
Show me
AExplorable · The bootstrap urn
How can resampling your own data show how much an estimate would vary?
Draw n points with replacement. What share of the original points appears at least once?
How sure?
Statistic
Data
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Adversarial training makes a model robust at no cost.
Why it's tempting
The robust model still looks accurate on ordinary test data.
What's true
It usually lowers clean accuracy somewhat and costs much more compute, and the robustness covers the kind and size of perturbation used in training. Report clean and robust accuracy together, for the threat model you declared.
Show me
DExplorable · Attacks inside an ε-ball: FGSM and PGD
How far must an input move to flip a model's answer, and does one failed attack prove the model is robust?
At the same radius, which attack leaves the model with lower accuracy?
How sure?
How far the attacker may move each input.
Ball
L∞ lets every feature move up to ε; L2 limits the total distance to ε.
Projected gradient steps; FGSM is a single full step.
Each PGD step moves this fraction of ε, then projects back into the ball.
The point whose attack path is drawn.
The point whose attack path is drawn.
The black dot is the demo point, the open circle its FGSM attack, the red line its PGD path ending at the red dot. The dashed shape is the ε-ball the attacker must stay inside. Robust accuracy only falls as fast as the attack is strong.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
High average accuracy means the model works for every group.
Why it's tempting
The average includes every row.
What's true
An average can hide a group with much worse error, especially when the model leans on a shortcut that holds for the majority. Report the worst group's accuracy next to the average; methods such as Group DROGroup DROTraining to make the worst subgroup's loss small, rather than the average, by giving struggling groups more weight. target it directly.
A randomized-smoothing certificate means the model is safe from any change of that size.
Why it's tempting
A certificate sounds like a proof of robustness.
What's true
It certifies the smoothed classifier, against L2-bounded noise within the radius, with a stated probability. Rotations, patches and other kinds of changes aren't covered, and the base classifier isn't certified at all.
Show me
DExplorable · A certificate by randomized smoothing
Can you prove that no small change flips a prediction, not just fail to find one?
Double σ. What happens to the largest radius these draws could ever certify?
How sure?
The smoothed classifier votes over Gaussian noise of this SD. Larger σ certifies larger radii but blurs the boundary.
Noisy copies used to bound the top class's probability.
Noisy copies used only to pick the guess (kept apart so the bound stays valid).
Each certificate holds with probability at least 1 − α over the draws.
The point whose certificate is drawn.
The point whose certificate is drawn.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
When a confident model disagrees with a label, the label is wrong.
Why it's tempting
Label errors are common, and the model learned from thousands of rows.
What's true
Models are confidently wrong on ambiguous, rare and unusual cases. Label-quality methods such as confident learningConfident learningFinds likely label errors by comparing each row's label with classes the model predicts above that class's average confidence. flag candidates for review; deciding needs annotation review and a policy for genuinely ambiguous items. Don't relabel automatically.
Shapes and colors show the label each row was given. Red outlines mark the rows whose label was really flipped; rings mark what confident learning flags. Rings without red are correct labels it suspects; red without a ring are flips it missed.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Removing every row flagged as a label issue will improve my model.
Why it's tempting
Cleaner data should make a better model.
What's true
Flagged rows include hard, rare and perfectly valid cases. Dropping them shifts the data toward easy examples and hides failure modes you'll meet in use. Review a sample, fix what is wrong, and compare models on a test set you didn't filter.
Shapes and colors show the label each row was given. Red outlines mark the rows whose label was really flipped; rings mark what confident learning flags. Rings without red are correct labels it suspects; red without a ring are flips it missed.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
I attacked the model and the attack failed, so the model is robust.
Why it's tempting
An attack is a direct test, and the model passed it.
What's true
A weak attack, with few steps or blocked by masked gradients, fails even on fragile models. A robustness claim needs a stated threat model, strong and adaptive attacks such as PGD with restarts, and a certificate only where one is justified.
Show me
DExplorable · Attacks inside an ε-ball: FGSM and PGD
How far must an input move to flip a model's answer, and does one failed attack prove the model is robust?
At the same radius, which attack leaves the model with lower accuracy?
How sure?
How far the attacker may move each input.
Ball
L∞ lets every feature move up to ε; L2 limits the total distance to ε.
Projected gradient steps; FGSM is a single full step.
Each PGD step moves this fraction of ε, then projects back into the ball.
The point whose attack path is drawn.
The point whose attack path is drawn.
The black dot is the demo point, the open circle its FGSM attack, the red line its PGD path ending at the red dot. The dashed shape is the ε-ball the attacker must stay inside. Robust accuracy only falls as fast as the attack is strong.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Labeling the most uncertain rows first is always the best active-learning strategy.
Why it's tempting
Uncertain rows are where the model has the most to learn.
What's true
The most uncertain rows can be near-duplicates, outliers or genuinely ambiguous. Batches need diversity too, which is what BADGEBADGEAn active learning rule that picks rows with large, varied loss gradients, so they are both uncertain and different from each other. adds, and random sampling is often a hard baseline to beat. Always evaluate on a random test set, not on the rows you chose.
Show me
DExplorable · Which rows to label next: uncertainty against BADGE
With a labeling budget, should you ask about the rows the model is least sure of, or about rows that differ from each other too?
When the pool has near-duplicates, what will a batch of the most uncertain rows be full of?
How sure?
Each of the 100 pool points appears this many times with tiny jitter, as real pools often do.
Rows sent for labeling at once, before the model is refit.
Label, refit, choose again. Every strategy starts from the same 4 labeled rows.
Moves the two class centers toward each other.
Uncertainty sampling · 5 near-duplicates in the last batch
BADGE · 0 near-duplicates in the last batch
Red rings are the last batch each strategy asked for. Uncertainty sampling piles up on copies of the same doubtful points; BADGE's batches spread out. Random (gray) is the honest baseline every acquisition strategy has to beat.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Ripley's L is above the envelope, so the points attract each other.
Why it's tempting
Clustering looks like interaction, and the envelope gives a confident yes or no.
What's true
Complete spatial randomness assumes the same intensity everywhere. Trees on good soil cluster with no attraction at all, because the soil varies. From one pattern, varying intensity and true interaction can look the same. Look at what drives the intensity before you name a mechanism.
Every site with p below 0.05 on my map is a hot spot.
Why it's tempting
Each site has its own test, and the colored map looks like a finding.
What's true
A map with a hundred sites is a hundred tests, and overlapping neighborhoods make them dependent. At 0.05 you expect about five flagged sites with no pattern at all, often side by side. Control the false discovery rate and report how many sites survive.
Show me
BExplorable · The Benjamini–Hochberg step-up
How does controlling the false discovery rate find more than Bonferroni while keeping errors in check?
How many tests will Benjamini–Hochberg reject?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Moran's I is significant, so what happens in one area spreads to its neighbors.
Why it's tempting
Neighbors resemble each other, and contagion is a vivid explanation for that.
What's true
Clustering has several sources. Neighboring areas share climate, income and history, so a smooth driver with no spillover gives the same I. The test also depends on the neighbors you chose. It tells you that like values sit together under those weights, and nothing about the mechanism.
Show me
CExplorable · Moran's I by shuffling the map
How do you know a pattern on a map is more than chance?
Look at the map. What is Moran's I?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A deep tabular model such as TabNet or FT-Transformer will beat gradient boosting on my table.
Why it's tempting
Deep learning wins on images and text, and these models were built for tables.
What's true
On many tabular benchmarks, well-tuned boosted trees match or beat deep models, and the deep models need more tuning, data and compute. Compare them with the same tuning budget and the same folds, and keep the simpler model when the gap is within noise.
Show me
DExplorable · Bagging and boosting
How do many weak trees combine into a strong model?
With up to 200 trees available, at how many trees will error on new data be lowest?
How sure?
Method
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My architecture is rotation-equivariant by design, so I don't need to test it.
Why it's tempting
Equivariance is proven mathematically for the architecture.
What's true
The proof covers the ideal layers. Preprocessing, cutoffs, coordinate frames and floating-point error can break equivarianceEquivarianceAn output that transforms in step with the input, like predicted forces rotating when the molecule rotates. in practice. Rotate test inputs and compare outputs with the rotated predictions, within a tolerance.
Show me
DExplorable · Equivariance: rotate the input, check the output
Does a model's answer turn with its input, as physics says it must?
Rotate the input. Will this model's energy stay exactly the same?
How sure?
Model
Four small networks with fixed random weights. Each gives one number (an energy) and one arrow per point.
How many points (atoms, say) the model sees.
Rotate every point by this angle about the origin before asking the model again.
Move every point by (1, −0.5) after rotating.
Red bars fail the check. Differences below 10⁻¹² are rounding and show as 0.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My probabilistic forecaster's 90% interval contains the truth 90% of the time.
Why it's tempting
The model is trained to output a full predictive distribution.
What's true
It does only if the model is well calibrated on data like yours, and many deep forecasters are overconfident. Check coverage and a proper score such as CRPS on rolling-origin backtests before trusting the intervals.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A time-series foundation model forecasts any series well without fitting, so I don't need a backtest.
Why it's tempting
It was pretrained on huge numbers of series and works zero-shot.
What's true
Zero-shot forecasters do well on series like their pretraining data. Unusual frequencies, structural breaks and strong covariates can trip them up. Backtest from rolling origins and compare with a seasonal naive forecast, as for any model.
Show me
DExplorable · The forecast fan
Why do forecast intervals widen, and how fast depends on what?
How many times wider is the interval at the horizon than one step ahead?
How sure?
Model
Interval
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The diffusion model's imputed values are the values that were missing.
Why it's tempting
The imputations look realistic and fit the surrounding data.
What's true
Imputations are draws from a model of what might have been there. Using one draw as if it were observed understates uncertainty. Use several draws and carry their spread into your analysis, as multiple imputation does.
Show me
AExplorable · The confidence-interval dance
What does it mean for an interval to be 95% confident?
Out of these studies' intervals, how many will miss the true mean?
How sure?
Confidence level
Population
Interval
The z shortcut uses 1.96 with the sample SD — fine for large n only.
0 / 100
96 of 100 contain μ · 4 miss
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A physics-informed neural network satisfies the physical equations.
Why it's tempting
The equations are built into its loss.
What's true
The physics enters as a penalty traded against the data fit, so the residuals can stay large in places, and training often struggles on stiff or multiscale problems. Evaluate the equation residuals and conserved quantities on a fine grid, not only the training points.
Show me
DExplorable · Symplectic integrators and energy drift
Why does a simulated orbit slowly gain energy, and how do some solvers avoid it?
Over this run, what will the selected integrator's energy do?
How sure?
System
A mass on a spring, or a swinging pendulum (nonlinear: wide swings take longer).
Integrator
Explicit Euler and Runge–Kutta 4 aren't symplectic; symplectic Euler and leapfrog are.
Time between solver steps. One spring period is 2π ≈ 6.28.
How many steps to run.
Starting position, released from rest.
Largest energy error: Explicit Euler 631.60% · Symplectic Euler 5.26% · Leapfrog 0.25% · Runge–Kutta 4 2.8×10⁻⁴%. Gray lines are the other three integrators; errors below 10⁻¹² are drawn at the bottom.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Symplectic methods are the ones recommended for conserving energy.
What's true
A symplectic method keeps a nearby "shadow" energy, so the true energy oscillates within a bound instead of drifting away as it does with plain Euler steps. The size of the oscillation depends on the step size. Plot the energy over a long run to see it.
Show me
DExplorable · Symplectic integrators and energy drift
Why does a simulated orbit slowly gain energy, and how do some solvers avoid it?
Over this run, what will the selected integrator's energy do?
How sure?
System
A mass on a spring, or a swinging pendulum (nonlinear: wide swings take longer).
Integrator
Explicit Euler and Runge–Kutta 4 aren't symplectic; symplectic Euler and leapfrog are.
Time between solver steps. One spring period is 2π ≈ 6.28.
How many steps to run.
Starting position, released from rest.
Largest energy error: Explicit Euler 631.60% · Symplectic Euler 5.26% · Leapfrog 0.25% · Runge–Kutta 4 2.8×10⁻⁴%. Gray lines are the other three integrators; errors below 10⁻¹² are drawn at the bottom.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
With a sample this large, it doesn't matter how the people got into it.
Why it's tempting
Large samples do shrink random error, and they make every interval look reassuringly narrow.
What's true
Sample size reduces random error only. If your method systematically misses some people, more data gives a more precise estimate of the wrong number. Compare the survey's bias with the spread of its means as the sample grows: the spread falls and the bias stays.
Show me
AExplorable · Sampling bias
Does a bigger sample fix a biased way of collecting data?
If you invite ten times as many people, what happens to the gap between the survey mean and the truth?
How sure?
How much more likely high earners are to answer.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
We randomized, so the two groups are identical, and I can skip checking them.
Why it's tempting
Randomization is the strongest tool in study design, and it is often described as "balancing the groups".
What's true
Randomization balances measured and unmeasured variables on average, across possible assignments. Any one assignment can be off, especially in a small study. Its guarantee is that the estimate has no systematic bias and that the p-value accounts for chance imbalance.
Show me
DExplorable · What randomization balances
Does randomizing guarantee the groups match, and does it reach what you never measured?
In what share of assignments will the groups differ by more than 0.1 SD on the measured covariate?
How sure?
Who gets treated
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A hazard ratio of 0.5 means treated patients live twice as long.
Why it's tempting
Halving a rate sounds like doubling a time, and it's true in the simplest textbook model.
What's true
That holds only when hazards are constant over time. A hazard ratio compares instantaneous rates, and what it does to survival times depends on the shape of the hazard. With a Weibull shape of 2, a ratio of 0.5 stretches times by about 1.4. To talk about time, report a time ratio or a difference in restricted mean survival.
Show me
FExplorable · From hazard to survival
How does the moment-to-moment risk build up into a survival curve?
What share of group A is still event-free at this time?
How sure?
Below 1 risk falls with time; above 1 it rises.
Hazard: risk at each moment
Survival: still event-free
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
If I only know an event happened between two visits, I can use the midpoint as the event time.
Why it's tempting
It turns awkward data into ordinary survival data that every tool accepts.
What's true
The midpoint treats a guess as an observation, so intervals come out too narrow. When visits are sparse or the hazard changes over an interval, the estimates are biased too. Use the Turnbull estimator or a parametric model that works with the interval itself.
Kaplan–Meier was built for censored data, so it handles any kind of censoring correctly.
Why it's tempting
Censoring is the reason the method exists, and the curve looks the same whatever made people leave.
What's true
Kaplan–Meier assumes that people who are censored have the same future risk as those still being followed. If frail patients leave early, the curve stays too high and the median too long. The data can't reveal this, so ask why people left, and run a sensitivity analysis if the reasons could relate to risk.
Show me
FExplorable · Why you cannot just drop censored patients
What goes wrong if you ignore or discard censored observations?
If you drop the censored patients, how does the median compare with the truth?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
One minus Kaplan–Meier gives my event's risk, and I can treat deaths from other causes as censored.
Why it's tempting
Censoring is the standard way to handle follow-up that stops early, and death does stop it.
What's true
Censoring pretends those people could still have the event later. They can't, so the estimate describes a world without the competing event, and it overstates the risk in the real one. Use cumulative incidence, which counts only the people who have had no event of any kind.
The proportional hazards test gave a large p-value, so the assumption holds.
Why it's tempting
The check produces a pass or a fail, and passing feels like permission to carry on.
What's true
A large p-value says the data are compatible with proportional hazards, and small studies have little power to see otherwise. Large studies have the opposite problem: they flag departures too small to matter. Read the smoothed residual plot, and ask whether any trend would change your conclusion.
Once I've seen where the curves separate, I can pick the weighted log-rank test that focuses there.
Why it's tempting
The plot shows when the groups differ, so a test aimed at that period feels better targeted.
What's true
Choosing the weight from the curves means choosing the test by its result, and the p-value no longer means what it says. Pick the weight from what you expected before seeing outcomes. If you can't say, pre-specify a combination such as max-combo, which corrects for trying several weights.
I generated 10,000 synthetic rows, so my estimate is now much more precise.
Why it's tempting
Standard errors shrink with n, and the rows look like any others.
What's true
Every synthetic row comes from a model fitted to the original rows, so it adds no information about the population. A formula will report a smaller standard error, because it assumes independent observations. Compute standard errors and p-values on the real data.
Show me
AExplorable · Standard error against n
How much more data does it take to halve the uncertainty of a mean?
If you quadruple the sample size, the spread of sample means becomes…
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The closer the synthetic table is to the real one, the better.
Why it's tempting
Fidelity comes with a score that goes up to 100%, and higher scores usually mean better work.
What's true
The most faithful generator is a copy of the table, and that has no privacy at all. Past a point, more fidelity means rows closer to real people. Aim for rows no closer than unseen real rows are, with fidelity high enough for the job you have in mind.
Show me
DExplorable · Synthetic data: fidelity against privacy
Can synthetic data look like the real thing without copying it?
A ratio near 1 means synthetic rows sit about as far from the training data as new real rows do. What will this generator's ratio be?
How sure?
How it's generated
Used by “Copy rows and add noise”.
Real (training)
Synthetic
Privacy ratio
Largest column KS × 4
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
It's synthetic data, so nobody in it is real, and it's safe to share.
Why it's tempting
No row was collected from a person, so it feels as if there's nobody left to protect.
What's true
A generator learns from real people and can give them back, sometimes as exact copies. Being synthetic is a method, not a property of the result. Measure how close the rows come to real ones, against rows the generator never saw, and remember that a clean score only covers that one kind of leak.
Show me
DExplorable · Synthetic data: fidelity against privacy
Can synthetic data look like the real thing without copying it?
A ratio near 1 means synthetic rows sit about as far from the training data as new real rows do. What will this generator's ratio be?
How sure?
How it's generated
Used by “Copy rows and add noise”.
Real (training)
Synthetic
Privacy ratio
Largest column KS × 4
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The test named a date, so the series changed on that date.
Why it's tempting
The card shows a date beside the result, and a specific date feels like a discovery.
What's true
A change-point test always names its best candidate, even on pure noise. Read the p-value first. If it supports a shift, tests can still disagree on the date, and a trend or autocorrelation can mimic one.
The residuals pass Ljung–Box, so the model will forecast well.
Why it's tempting
Clean residuals are the standard check at the end of fitting a model, and passing feels like an all-clear.
What's true
Clean residuals describe the fit to data the model has already seen. Only a backtest, on data it hasn't seen, speaks about forecasting. An overfit model can pass one and fail the other.
Show me
DExplorable · ACF and PACF signatures
Can you tell what kind of process made a series from its autocorrelations?
These settings define the process. Which signature will its ACF and PACF show?
How sure?
ACF
PACF
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A neural network or boosted model must forecast better than a naive rule.
Why it's tempting
More flexible models fit the past better, and they feel more serious.
What's true
On short or noisy series, simple rules are often hard to beat. A tiny training loss can't tell you otherwise. Compare on the same origins, include the baselines, and test whether the gap is larger than chance.
Show me
DExplorable · The forecast fan
Why do forecast intervals widen, and how fast depends on what?
How many times wider is the interval at the horizon than one step ahead?
How sure?
Model
Interval
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Two series have a correlation of 0.95, so they must move together in the long run.
Why it's tempting
A high correlation looks like strong evidence, and it's the first number anyone checks.
What's true
Unrelated random walks often correlate strongly, and longer series make this worse. A long-run link needs a stationary gap between the series, which is what cointegration tests check.
Show me
DExplorable · Unit roots and spurious regression
Why do two unrelated trending series look strongly related?
How often does this regression find a "significant" link between independent series?
How sure?
φ = 1 is a random walk, which never returns to a mean.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The ADF test didn't reject, so my series has a unit root.
Why it's tempting
The null hypothesis says "unit root", and a large p-value seems to leave it standing.
What's true
A large p-value doesn't establish the null, and unit-root tests have low power when a stationary series is persistent. Read ADF beside KPSS, whose null is stationarity. If neither rejects, the data can't separate the two.
Show me
DExplorable · Unit roots and spurious regression
Why do two unrelated trending series look strongly related?
How often does this regression find a "significant" link between independent series?
How sure?
φ = 1 is a random walk, which never returns to a mean.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A significant Granger test shows that one series causes the other.
Why it's tempting
The name says "causality", and the predictor comes first in time.
What's true
The test says that past values of one series help predict another, given what's in the model. A shared driver or a season can create that pattern with no causal effect. To claim cause, you need a design.
Ordinary k-fold cross-validation is fine for choosing a forecasting model.
Why it's tempting
It works for tabular models, and it uses the data efficiently.
What's true
Random folds let a model train on the future to predict the past, which flatters it. Use a rolling-origin backtest: fit on data up to an origin, score what comes after, then move the origin.
Show me
DExplorable · Cross-validation folds
Which rows should be held out so the score predicts real performance?
Each scheme has a tempting shortcut: training error, plain random folds, or the best score from a search. Will the shortcut here look better than the true error on new data?
How sure?
Scheme
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My returns show no autocorrelation, so there's no dependence left to model.
Why it's tempting
Ljung–Box passes on the returns, and the autocorrelation plot looks empty.
What's true
Autocorrelation only sees linear dependence in the levels. Sizes of moves can still cluster, which shows up in squared values. Check McLeod–Li or ARCH LM, and consider GARCH.
Domain-adversarial training removed the shift, so the model works on the new domain.
Why it's tempting
The features from the two domains become indistinguishable.
What's true
Aligning feature distributions doesn't align labels. If the share of each class or the link between features and labels changes, alignment can make things worse. Keep a small labeled sample from the target domain to check the gain.
Show me
AExplorable · Sampling bias
Does a bigger sample fix a biased way of collecting data?
If you invite ten times as many people, what happens to the gap between the survey mean and the truth?
How sure?
How much more likely high earners are to answer.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Differential privacy is a mathematical guarantee, and DP-SGD provides it.
What's true
The guarantee has a budget, ε and δ, and a large ε protects very little. It also covers only what the accounting covers: tuning hyperparameters or preprocessing on the private data can leak outside it. Report the budget and how it was spent, and audit with attacks.
Show me
DExplorable · Synthetic data: fidelity against privacy
Can synthetic data look like the real thing without copying it?
A ratio near 1 means synthetic rows sit about as far from the training data as new real rows do. What will this generator's ratio be?
How sure?
How it's generated
Used by “Copy rows and add noise”.
Real (training)
Synthetic
Privacy ratio
Largest column KS × 4
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My fine-tuning loss went down, so the tuned model is better.
Why it's tempting
The loss is what fine-tuning optimizes, and it improved.
What's true
The adaptation loss is measured on the adaptation data. Whether the tuned model is better needs an evaluation it never trained on, locked before tuning, plus checks that earlier abilities, calibration and cost haven't gotten worse. Report the cost of what was lost next to the gain.
Show me
DExplorable · Forgetting: fine-tuning, EWC and replay
Why does training on a new task erase an old one, and what can hold on to it?
While learning task B
What, if anything, remembers task A during the second phase.
L2 and EWC only: how hard the weights are pulled back toward task A's.
Replay only: share of each batch drawn from task A.
Gradient steps on task A, then the same number on task B.
Step size in both phases.
Task A's loss contours
Task B's loss contours
Training on A
Then on B
Task A loss after B
2.802
Task B loss
0.044
Forgetting (rise in A's loss)
2.758
Fine-tuning's forgetting
2.758
Puzzle: Keep task A's loss under 0.15 while bringing task B's under 1.0.
Puzzle: With replay, cut forgetting to under a quarter of plain fine-tuning's.
Plain fine-tuning: task A's loss goes from 0.044 to 2.802 while task B's ends at 0.044. Plain fine-tuning would forget 2.76. Task A's Fisher information is 1.35 for the first weight and 0.041 for the second: A barely cares about the second weight, so a pull that treats both weights alike also blocks what B needs.
Plain fine-tuning: task A's loss goes from 0.044 to 2.802 while task B's ends at 0.044. Plain fine-tuning would forget 2.76. Task A's Fisher information is 1.35 for the first weight and 0.041 for the second: A barely cares about the second weight, so a pull that treats both weights alike also blocks what B needs.
LoRA trains a tiny fraction of the parameters, so it needs a tiny fraction of the memory.
Why it's tempting
The trainable-parameter count drops by orders of magnitude, and memory sounds proportional to it.
What's true
The frozen base weights still have to be loaded in full, and backpropagation still stores activations for every layer, growing with batch size and sequence length. Only the gradients and optimizer state shrink. Add up weights, activations, optimizer state and caches; quantizing the base model, as QLoRA does, is what cuts the weights.
Show me
DExplorable · How much memory does a model need?
Where does a language model's memory go — weights, KV cache, optimizer state — and does it fit on this Mac?
Model
Hypothetical decoders; the first is the reference workflow's own.
Tokens held in the KV cache (and the length of the attention scores).
Sequences processed at once; the KV cache grows with it.
Weight format
Bits per stored weight; the llama.cpp types include their block scales.
KV cache format
Bytes per stored key or value.
Use
Training adds gradients and optimizer state; LoRA adds them only for the adapters.
LoRA only: rank of each adapter.
LoRA targets
LoRA only: which matrices get adapters.
Under half is “fits”, under 85% “tight”, as the app's own estimate says.
Weights: 0.31 GiB
KV cache: 0.02 GiB
Runtime overhead (10%): 0.03 GiB
Verdict: fits (2%)
This model's KV heads (grouped-query)
One KV head per query head
Parameters
168059904
Weight bytes
336119808
KV cache bytes
25165824
Trainable parameters
0
Total bytes
397414195
Share of this Mac's memory
0.023
Puzzle: Make the larger decoder fit (under half) a 16 GB Mac for inference with a 4,096-token context.
Puzzle: With LoRA training less than 1% of the parameters, find a case where the total is still more than half of full fine-tuning's.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
A 4-bit model is a quarter of the size, so it runs four times faster.
Why it's tempting
Smaller numbers mean less to move and less to compute.
What's true
QuantizationQuantizationStoring weights or activations with fewer bits. A smaller file runs faster only on hardware with kernels for that format. speeds things up only when the hardware has kernels for that format; weights are often expanded again before the math, and some layers stay in higher precision. Accuracy loss is uneven across layers and inputs. Measure speed, memory and accuracy on your own task and hardware.
Show me
DExplorable · Quantization: scale, zero point and error
What does storing weights in 8 or 4 bits cost, and why does one large weight make it worse?
Each weight becomes one of 2^bits levels.
Scheme
Symmetric centers the levels on 0; asymmetric shifts them to cover the weights' actual range.
Scale shared by
Smaller groups adapt to local ranges but store more scales.
Replace the first weight with this value (0 = no outlier).
Scale (first group)
0.5994
Mean squared error
0.03108
Largest error
0.2981
SQNR (dB)
15.60
Bytes
130
Puzzle: With an outlier of 10 or more, get SQNR above 18 dB at 4 bits.
Puzzle: Store the weights in under a quarter of fp16's bytes with SQNR above 10 dB.
4-bit symmetric quantization with one scale for all 256 weights: scale 0.5994, 11 levels used, SQNR 15.6 dB, largest error 0.298. Storage is 130 bytes, 3.9× smaller than fp16.
4-bit symmetric quantization with one scale for all 256 weights: scale 0.5994, 11 levels used, SQNR 15.6 dB, largest error 0.298. Storage is 130 bytes, 3.9× smaller than fp16.
Fine-tuning the whole model always beats training a small head on frozen features.
Why it's tempting
Updating every weight lets the model adapt as much as it needs.
What's true
With little data, full fine-tuning can overfit and erase useful pretrained features. A head on frozen features is the baseline to beat; partial fine-tuning and adapters sit in between. Compare them on held-out data with the same tuning effort.
Show me
DExplorable · The bias–variance trade-off
Why does a more flexible model eventually predict worse?
Which polynomial degree will predict new data best?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Gradient checkpointing saves the model's weights during training so I can resume later.
Why it's tempting
It has "checkpoint" in its name.
What's true
Gradient checkpointingGradient checkpointingSaving memory by recomputing some activations during the backward pass. It isn't a saved model checkpoint. saves memory by recomputing some activations during the backward pass, trading compute for memory. It writes nothing to disk. Saving weights and optimizer state so a run can resume is a training checkpoint, a separate thing.
Show me
DExplorable · How much memory does a model need?
Where does a language model's memory go — weights, KV cache, optimizer state — and does it fit on this Mac?
Model
Hypothetical decoders; the first is the reference workflow's own.
Tokens held in the KV cache (and the length of the attention scores).
Sequences processed at once; the KV cache grows with it.
Weight format
Bits per stored weight; the llama.cpp types include their block scales.
KV cache format
Bytes per stored key or value.
Use
Training adds gradients and optimizer state; LoRA adds them only for the adapters.
LoRA only: rank of each adapter.
LoRA targets
LoRA only: which matrices get adapters.
Under half is “fits”, under 85% “tight”, as the app's own estimate says.
Weights: 0.31 GiB
KV cache: 0.02 GiB
Runtime overhead (10%): 0.03 GiB
Verdict: fits (2%)
This model's KV heads (grouped-query)
One KV head per query head
Parameters
168059904
Weight bytes
336119808
KV cache bytes
25165824
Trainable parameters
0
Total bytes
397414195
Share of this Mac's memory
0.023
Puzzle: Make the larger decoder fit (under half) a 16 GB Mac for inference with a 4,096-token context.
Puzzle: With LoRA training less than 1% of the parameters, find a case where the total is still more than half of full fine-tuning's.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
Reference decoder (168M parameters): 168,059,904 parameters, 0.31 GiB of weights in fp16 and a 0.02 GiB KV cache for 2,048 tokens. Total 0.37 GiB: 2% of 16 GB, so it fits. These are logical tensor sizes, not measured memory.
LoRA leaves the base model's weights untouched, so the model can't forget what it already knew.
Why it's tempting
The original weights are frozen and can be restored by removing the adapter.
What's true
With the adapter switched on, its low-rank change alters activations everywhere, so performance on other tasks can still drop, often less than with full fine-tuning but not zero. Measure retained capability on the old tasks next to the gain on the new one, before choosing an adapter.
Show me
DExplorable · LoRA: rank, parameters and error
How much of a weight update can a low-rank adapter capture, and what does it save?
The toy 24 × 16 update ΔW is built from this many directions, plus noise.
Small changes in every direction, which no low rank captures.
ΔW ≈ BA with B 24 × r and A r × 16; the best such fit is the truncated SVD.
Layer width for counting
Trainable parameters of one square layer, full versus LoRA.
Toy update: 80 adapter numbers against 384 for the full 24 × 16 matrix. Layer of width 4,096: 16,384 against 16,777,216.
Relative error
0.414
Energy kept
0.828
LoRA parameters (one layer)
16384
Share of full fine-tuning
0.0010
Puzzle: Find the smallest rank that keeps 95% of the update's energy.
Puzzle: On the 4,096-wide layer, train less than 0.5% of the full layer's parameters.LoRA's count grows with r(d + k), not d × k. The frozen weights still sit in memory, though.
A rank-2 adapter keeps 82.8% of the update's energy (relative error 0.414). On a 4,096-wide layer it trains 16,384 numbers instead of 16,777,216 (0.10%). The update has more directions than the adapter can hold, so some of it is lost.
A rank-2 adapter keeps 82.8% of the update's energy (relative error 0.414). On a 4,096-wide layer it trains 16,384 numbers instead of 16,777,216 (0.10%). The update has more directions than the adapter can hold, so some of it is lost.
Preference tuning with RLHF or DPO makes the model's answers more truthful.
Why it's tempting
People prefer correct answers, so learning their preferences should reward correctness.
What's true
Preference tuning rewards what raters preferred, which can include confident tone, length and agreeing with the user. It can make a model more pleasant and less accurate at once. Truthfulness needs its own evaluation, with answers checked against sources.
Show me
DExplorable · Preference optimization: reward models and DPO
How do pairwise preferences turn into a policy, and what does β protect against?
Small β lets the policy move far from the reference; large β keeps it close.
Comparisons simulated from hidden true rewards with a Bradley–Terry model.
Full-batch gradient steps on the DPO loss.
Step size on the implicit reward β(θ − θ_ref), so β doesn't change the speed.
Reference policy
DPO policy
True optimum π_ref·exp(r*/β)
Reward model + optimum (dots)
KL from the reference (nats)
1.240
Expected true reward
1.802
Largest response probability
0.814
Final DPO loss
0.4230
Puzzle: Get within 0.1 of the true optimum's expected reward while staying under 1 nat from the reference.
Puzzle: Make the policy put more than 90% on a single response.
After 500 steps on 100 pairs with β = 0.50, the policy gives “Correct and helpful” 81% and sits 1.24 nats from the reference. Its expected true reward is 1.80, against 0.34 for the reference and 1.71 for the true KL-regularized optimum. In this toy, DPO's policy is exactly what a fitted Bradley–Terry reward model plus the KL-regularized optimum would give.
After 500 steps on 100 pairs with β = 0.50, the policy gives “Correct and helpful” 81% and sits 1.24 nats from the reference. Its expected true reward is 1.80, against 0.34 for the reference and 1.71 for the true KL-regularized optimum. In this toy, DPO's policy is exactly what a fitted Bradley–Terry reward model plus the KL-regularized optimum would give.
Scattered zeros only run faster with sparse kernels, which most hardware handles poorly. Removing whole channels or heads does speed things up, but costs more accuracy. Measure latency and accuracy after pruning instead of counting zeros.
Show me
DExplorable · Quantization: scale, zero point and error
What does storing weights in 8 or 4 bits cost, and why does one large weight make it worse?
Each weight becomes one of 2^bits levels.
Scheme
Symmetric centers the levels on 0; asymmetric shifts them to cover the weights' actual range.
Scale shared by
Smaller groups adapt to local ranges but store more scales.
Replace the first weight with this value (0 = no outlier).
Scale (first group)
0.5994
Mean squared error
0.03108
Largest error
0.2981
SQNR (dB)
15.60
Bytes
130
Puzzle: With an outlier of 10 or more, get SQNR above 18 dB at 4 bits.
Puzzle: Store the weights in under a quarter of fp16's bytes with SQNR above 10 dB.
4-bit symmetric quantization with one scale for all 256 weights: scale 0.5994, 11 levels used, SQNR 15.6 dB, largest error 0.298. Storage is 130 bytes, 3.9× smaller than fp16.
4-bit symmetric quantization with one scale for all 256 weights: scale 0.5994, 11 levels used, SQNR 15.6 dB, largest error 0.298. Storage is 130 bytes, 3.9× smaller than fp16.
Confident pseudo-labels are as good as real labels.
Why it's tempting
The model only keeps predictions it is very sure about.
What's true
Confident mistakes get reinforced, especially for rare classes the model already underpredicts, so the model drifts toward its own biases. Watch class balance among pseudo-labels and evaluate on labeled data the model never trained on.
Show me
HExplorable · Rare events and the decision threshold
Why can a 98% accurate model be useless, and where should the threshold go?
A lazy model calls every case negative. What accuracy does it score?
How sure?
flagged
passed
pos
52
62
neg
312
4574
Bars are drawn to one count scale, so a rare positive class looks as rare as it is. The ROC curve barely notices the imbalance; the precision–recall curve shows it. Cheapest threshold here: 1.14; the binormal formula gives 1.35.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Replay or elastic weight consolidation solves catastrophic forgetting.
Why it's tempting
Both are standard fixes, and they reduce forgetting in the papers that introduced them.
What's true
They address different mechanisms and neither guarantees no forgetting. Replay depends on what you keep and how often; EWC depends on how well its penalty estimates which weights matter. Measure every earlier task after each update, as continual learningContinual learningUpdating a model across a sequence of tasks or shifting data while trying to keep what it already does well. requires.
Show me
DExplorable · Forgetting: fine-tuning, EWC and replay
Why does training on a new task erase an old one, and what can hold on to it?
While learning task B
What, if anything, remembers task A during the second phase.
L2 and EWC only: how hard the weights are pulled back toward task A's.
Replay only: share of each batch drawn from task A.
Gradient steps on task A, then the same number on task B.
Step size in both phases.
Task A's loss contours
Task B's loss contours
Training on A
Then on B
Task A loss after B
2.802
Task B loss
0.044
Forgetting (rise in A's loss)
2.758
Fine-tuning's forgetting
2.758
Puzzle: Keep task A's loss under 0.15 while bringing task B's under 1.0.
Puzzle: With replay, cut forgetting to under a quarter of plain fine-tuning's.
Plain fine-tuning: task A's loss goes from 0.044 to 2.802 while task B's ends at 0.044. Plain fine-tuning would forget 2.76. Task A's Fisher information is 1.35 for the first weight and 0.041 for the second: A barely cares about the second weight, so a pull that treats both weights alike also blocks what B needs.
Plain fine-tuning: task A's loss goes from 0.044 to 2.802 while task B's ends at 0.044. Plain fine-tuning would forget 2.76. Task A's Fisher information is 1.35 for the first weight and 0.041 for the second: A barely cares about the second weight, so a pull that treats both weights alike also blocks what B needs.
The reward model scores answers the way people would.
Why it's tempting
It was trained on people's comparisons.
What's true
It is a learned proxy fitted to a sample of comparisons. Optimizing hard against any noisy score finds the answers it overrates, so the policy drifts into regions where the reward model is wrong. That is why RLHF keeps a penalty for moving away from the starting model, and why you check with fresh human judgments.
Show me
DExplorable · Preference optimization: reward models and DPO
How do pairwise preferences turn into a policy, and what does β protect against?
Small β lets the policy move far from the reference; large β keeps it close.
Comparisons simulated from hidden true rewards with a Bradley–Terry model.
Full-batch gradient steps on the DPO loss.
Step size on the implicit reward β(θ − θ_ref), so β doesn't change the speed.
Reference policy
DPO policy
True optimum π_ref·exp(r*/β)
Reward model + optimum (dots)
KL from the reference (nats)
1.240
Expected true reward
1.802
Largest response probability
0.814
Final DPO loss
0.4230
Puzzle: Get within 0.1 of the true optimum's expected reward while staying under 1 nat from the reference.
Puzzle: Make the policy put more than 90% on a single response.
After 500 steps on 100 pairs with β = 0.50, the policy gives “Correct and helpful” 81% and sits 1.24 nats from the reference. Its expected true reward is 1.80, against 0.34 for the reference and 1.71 for the true KL-regularized optimum. In this toy, DPO's policy is exactly what a fitted Bradley–Terry reward model plus the KL-regularized optimum would give.
After 500 steps on 100 pairs with β = 0.50, the policy gives “Correct and helpful” 81% and sits 1.24 nats from the reference. Its expected true reward is 1.80, against 0.34 for the reference and 1.71 for the true KL-regularized optimum. In this toy, DPO's policy is exactly what a fitted Bradley–Terry reward model plus the KL-regularized optimum would give.
A distilled student model is as reliable as its teacher, only smaller.
Why it's tempting
The student was trained to copy the teacher's outputs.
What's true
Students copy the teacher's mistakes and biases along with its skill, and they can lose calibration or the ability to handle rare cases. Evaluate the student on its own against held-out data, including the slices where the teacher was weak.
Show me
DExplorable · Distillation: soft targets at a temperature
What does a student learn from a teacher's probabilities that it can't learn from the label alone?
Dividing logits by T before the softmax spreads probability onto the wrong classes.
Loss = α·cross-entropy with the label + (1 − α)·T²·KL to the soft targets.
Gradient steps on the student's logits for this one example.
Step size on the student's logits.
Teacher's soft targets at T
Student after training (T = 1)
Soft-target entropy (bits)
0.932
Student: P(dog) / P(car)
18.60
KL at T after training
0.0489
Soft-target gradient with T²
0.6785
Soft-target gradient without T²
0.6785
Puzzle: At T = 4 or higher, make the student match the soft targets to within 0.001 nats of KL.
Puzzle: Find a temperature where the soft targets carry more than 1.5 bits.
At T = 1.0 the teacher's soft targets carry 0.93 bits. After 200 steps the student thinks “dog” is 18.6 times as likely as “car” (the teacher: 66.7 times). The student ranks the wrong classes as the teacher does: that ranking is what distillation passes on.
At T = 1.0 the teacher's soft targets carry 0.93 bits. After 200 steps the student thinks “dog” is 18.6 times as likely as “car” (the teacher: 66.7 times). The student ranks the wrong classes as the teacher does: that ranking is what distillation passes on.
Conformal intervals keep their 90% coverage even after the data shift.
Why it's tempting
Conformal guarantees hold without assumptions about the model.
What's true
The guarantee needs the new rows to be exchangeable with the calibration rows. After a shift, coverage can fall well below the target. Use weighted or adaptive conformal methods when you expect drift, and keep auditing coverage on new labeled data.
Show me
HExplorable · Conformal coverage: marginal, conditional and under drift
A conformal interval promises 90% coverage. Over what, exactly, and when does the promise break?
Split conformal aims at 90%. When the noise grows with |x|, what share of points with |x| > 1.5 will it cover?
How sure?
Interval
Scaled divides residuals by a fitted spread; CQR conformalizes a rough quantile band; normal theory is the t interval.
The model is fit on n rows; the interval is calibrated on n more. As in the Simulation Lab's conformal design.
The interval aims to cover 1 − α of new points.
Noise SD is 1 + this × |x|. At 0 the noise is the same everywhere.
New points get (1 + drift) times the noise the interval was calibrated on.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Conformalized quantile regression gives each row its own exact 90% interval.
Why it's tempting
CQR intervals get wider and narrower from row to row.
What's true
CQR adapts the width to the predicted spread, but its guarantee is marginal: 90% across rows like the calibration rows. Some kinds of rows can be covered less often. Check coverage by subgroup and by interval width.
Show me
HExplorable · Conformal coverage: marginal, conditional and under drift
A conformal interval promises 90% coverage. Over what, exactly, and when does the promise break?
Split conformal aims at 90%. When the noise grows with |x|, what share of points with |x| > 1.5 will it cover?
How sure?
Interval
Scaled divides residuals by a fitted spread; CQR conformalizes a rough quantile band; normal theory is the t interval.
The model is fit on n rows; the interval is calibrated on n more. As in the Simulation Lab's conformal design.
The interval aims to cover 1 − α of new points.
Noise SD is 1 + this × |x|. At 0 the noise is the same everywhere.
New points get (1 + drift) times the noise the interval was calibrated on.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The spread of my deep ensemble is a calibrated measure of uncertainty.
Why it's tempting
Members disagree more where data are scarce, which is what uncertainty should do.
What's true
Ensemble disagreement is a useful signal, not a calibrated probability. Members share the architecture, the data and their blind spots, so they can agree confidently and wrongly. Calibrate on held-out data and check interval coverage before treating the spread as uncertainty.
Show me
DExplorable · Ensembles and MC dropout: knowing what you don't know
Where the training data has a gap, does the model say it is unsure?
Where will the ensemble disagree with itself most: near the training data or in the gap?
How sure?
Models in the ensemble, and dropout masks drawn for MC dropout.
Share of features switched off in each MC dropout pass.
Noise around the true curve sin(1.5x).
Half fall in [−3, −1), half in [1, 3): none in the middle.
Members differ by
Each member draws its own random features and, with data, its own bootstrap sample.
Ensemble · SD 0.25 in the gap, 0.07 near data
MC dropout · SD 0.10 in the gap, 0.20 near data
The shaded strip is the gap with no training data. Members disagree where nothing pins them down; a band that stays thin there is overconfident, however good it looks near the data.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Double machine learning removes confounding because it uses flexible models.
Why it's tempting
Flexible models can adjust for complicated relationships.
What's true
Double machine learning adjusts flexibly for the confounders you measured. It can't fix unmeasured ones, and it still needs overlap between treated and untreated rows. Argue for the adjustment set from a causal diagram and run a sensitivity analysis.
Show me
DExplorable · Propensity scores and overlap
What happens to a weighted estimate when treated and untreated people barely resemble each other?
After weighting, what share of these people's information is left (effective sample ÷ n)?
How sure?
Trimming changes who the estimate is about.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Labeling each token on its own is as good as a CRF if the classifier is strong.
Why it's tempting
A strong classifier gets most tokens right anyway.
What's true
Independent labels can form sequences that make no sense, such as an inside-a-name tag right after an outside tag. A CRF scores whole sequences and learns which label follows which; Viterbi decoding then finds the best valid sequence.
Show me
DExplorable · Sequence labels: a CRF against one token at a time
Tagging each word on its own can produce label sequences that make no sense. What does scoring the whole sequence buy?
With the transition strength above zero, can the CRF's best path contain an I right after an O?
How sure?
How strongly the CRF scores label pairs: an I after O costs this much. At 0 the CRF is a token-by-token classifier.
Noise in each word's label scores: higher means a weaker word-level classifier.
Numbers are the CRF's marginal probability (%) of each tag; the blue line is the Viterbi path. Dashed rings are what a token-by-token classifier picks, red when it puts an I with no B before it. Outlined nodes are the gold tags.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
NOTEARS learned a DAG from my data, so that's the causal structure.
Why it's tempting
The output is a directed graph without cycles, exactly what a causal diagram looks like.
What's true
Structure learning finds a graph that fits under its assumptions, such as no hidden confounders and the right kind of relationships. Continuous methods like NOTEARS also react to how the columns are scaled, and many graphs often fit equally well. Treat a learned graph as hypotheses to test.
Show me
CExplorable · Learning a causal graph by optimization (NOTEARS)
Can a smooth penalty keep a learned graph free of cycles, and what else is the fit quietly relying on?
Standardizing a column doesn't change which variable causes which. Will it change the graph NOTEARS finds?
How sure?
Pushes weak edges to zero. Edges under 0.3 in size are dropped after fitting.
Rows drawn from the true graph X₁ → X₂ → X₃, X₁ → X₄ (all noise SD 1).
Rescale every variable to SD 1 before fitting, as many pipelines do.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My model's ECE is low, so its probabilities are reliable.
Why it's tempting
ECE is the standard calibration score, and low means small gaps.
What's true
ECEExpected calibration error (ECE)The average gap between predicted probability and observed frequency across probability bins, weighted by bin size. changes with the number and edges of the bins, averages away miscalibration in some regions and subgroups, and a model that always predicts the base rate can score well. Look at the reliability diagram and at proper scores such as the Brier score or log loss.
Show me
HExplorable · How many bins? ECE and temperature scaling
The expected calibration error depends on how you bin. How much of a model's ECE is the bins talking, and can one temperature fix the model?
Score a perfectly calibrated model with these bins on these rows. What ECE will it get?
How sure?
The model's logits are this many times the truth's. Same model as Calibration and reliability.
Half the rows fit the temperature; the other half score every ECE.
More bins see finer miscalibration but hold fewer rows each.
Bin edges
Equal-width bins split [0, 1] evenly; equal-count bins put the same number of predictions in each.
expected calibration error 0.100after T = 2.16 0.033perfect model 0.040
Blue dots are sized by how many rows fall in the bin. Gray dots are a perfectly calibrated model on the same rows: their distance from the diagonal is pure sampling noise, and it sets a floor under any calibration error you compute with these bins.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Monte Carlo dropout gives me proper Bayesian uncertainty.
Why it's tempting
It has a published derivation as approximate Bayesian inference.
What's true
The spread it gives depends heavily on the dropout rate you chose, and it often underestimates uncertainty far from the training data. Treat MC dropoutMonte Carlo dropoutKeeping dropout on when predicting and averaging many passes; the spread across passes shows how unsure the network is. as a cheap heuristic: compare with an ensemble and check calibration.
Show me
DExplorable · Ensembles and MC dropout: knowing what you don't know
Where the training data has a gap, does the model say it is unsure?
Where will the ensemble disagree with itself most: near the training data or in the gap?
How sure?
Models in the ensemble, and dropout masks drawn for MC dropout.
Share of features switched off in each MC dropout pass.
Noise around the true curve sin(1.5x).
Half fall in [−3, −1), half in [1, 3): none in the middle.
Members differ by
Each member draws its own random features and, with data, its own bootstrap sample.
Ensemble · SD 0.25 in the gap, 0.07 near data
MC dropout · SD 0.10 in the gap, 0.20 near data
The shaded strip is the gap with no training data. Members disagree where nothing pins them down; a band that stays thin there is overconfident, however good it looks near the data.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A softmax output of 0.99 means the model is 99% sure, and right 99% of the time.
Why it's tempting
The outputs add up to one and look like probabilities.
What's true
Modern networks are often overconfident, and a softmax gives confident outputs even for inputs unlike anything in training. Temperature scalingTemperature scalingDivides a model's logits by one learned number to soften or sharpen its probabilities without changing its ranking. on held-out data fixes calibration for data like the validation set; it doesn't detect new kinds of inputs.
Show me
HExplorable · How many bins? ECE and temperature scaling
The expected calibration error depends on how you bin. How much of a model's ECE is the bins talking, and can one temperature fix the model?
Score a perfectly calibrated model with these bins on these rows. What ECE will it get?
How sure?
The model's logits are this many times the truth's. Same model as Calibration and reliability.
Half the rows fit the temperature; the other half score every ECE.
More bins see finer miscalibration but hold fewer rows each.
Bin edges
Equal-width bins split [0, 1] evenly; equal-count bins put the same number of predictions in each.
expected calibration error 0.100after T = 2.16 0.033perfect model 0.040
Blue dots are sized by how many rows fall in the bin. Gray dots are a perfectly calibrated model on the same rows: their distance from the diagonal is pure sampling noise, and it sets a floor under any calibration error you compute with these bins.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Two action segmentations with the same frame accuracy are equally good.
Why it's tempting
Both label the same share of frames correctly.
What's true
Frame accuracy ignores how the labels are arranged. One model can chop an action into many short flickering pieces and still label most frames right. Segment-level scores such as segmental F1Segment F1 at an IoU thresholdPrecision and recall of whole segments: a predicted segment counts when its time IoU with a labeled one reaches the threshold. and edit score catch the difference.
Show me
DExplorable · Frames versus segments: equal accuracy, unequal segmentations
Two action segmenters get the same share of frames right. Are they equally good?
Both predictions get the same share of frames right. How will their segmental F1 compare?
How sure?
Both predictions get exactly this share of the 120 frames wrong.
Second prediction's errors
The first prediction is late at every boundary. The second scatters single wrong frames, or misses the short Lift action.
IoU for a segment hit (k)
A predicted segment matches a true one of the same action when their overlap (IoU) is at least k: F1@k.
Each frame of the second prediction takes the most common action in a window this wide. 1 means no smoothing.
Reach
Grasp
Lift
wrong frame
Segments: truth 5, late boundaries 5, second prediction 21. Both predictions have 10 wrong frames.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My videos contain 10,000 frames, so I have 10,000 independent examples.
Why it's tempting
Each frame is a separate image the model sees.
What's true
Neighboring frames are nearly identical, and every frame of a video shares its scene and people. The independent unit is the video or the person in it. Split by source video and compute uncertainty over videos, not frames.
Show me
BExplorable · When observations come in clusters
What happens to a t test when students come in classrooms and you ignore it?
There is no true effect. How often does the naive t test reject?
How sure?
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
My optical-flow model has a low endpoint error on the test clip, so it handles motion well.
Why it's tempting
Endpoint error is the standard flow score.
What's true
Endpoint error averages over pixels, and errors pile up at object boundaries and occlusions. A clip where the whole frame moves together is easy. Test with objects moving independently, rotation and occlusion, and look at where the errors are.
Show me
DExplorable · Optical flow: Lucas–Kanade, warping and endpoint error
How can a computer tell how far each part of an image moved between two frames?
With this picture and motion, what will Lucas–Kanade find?
How sure?
Picture
Many small blobs (rich texture), diagonal stripes, or two broad smooth blobs.
How far the picture moves to the right between the frames.
How far the picture moves down between the frames.
Turns the picture about its center, so the motion differs from place to place.
Scales the picture about its center: things move outward when it grows.
Lucas–Kanade assumes one motion inside a square window this many pixels around each point.
Each step warps the second frame by the current estimate and solves for the remaining motion.
Random noise added to the second frame.
Mean endpoint error 0.14 px. 4% of the windows see the pattern change in one direction only.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A low FVD means the generated videos obey physics.
Why it's tempting
FVD is the standard video-generation score, and better scores look more real.
What's true
FVD compares feature statistics from a video classifier. Objects can still pass through each other, change shape or vanish. Check physical consistency, flicker and identity over time, and review samples by eye.
Show me
DExplorable · Scoring generators: FID, precision and recall
Can one number say how good generated samples are?
How will this generator's precision and recall come out?
How sure?
Generator
The real data is a ring of 8 clusters. Each generator gets something different wrong.
Feature extractor
FID and the k-NN scores compare features, not raw samples. Real FID uses a vision network; here, four simple maps.
How many real and how many generated samples are compared.
Each sample's ball reaches its k-th nearest neighbor in its own set.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Robust PCA separates the moving objects from the background, so it finds every object in the scene.
Why it's tempting
The sparse part looks like a clean mask of the foreground.
What's true
The sparse part holds whatever changes. An object that stops moving becomes part of the low-rank background. That is a limit of what the model can tell apart, not a failure to converge. Check stationary objects separately.
Show me
AExplorable · Low-rank pictures
How few rank-one layers does it take to rebuild a matrix?
How many rank-one layers will it take to keep 90% of this picture's squared size?
How sure?
Picture
Each singular value measures one rank-one layer. Keeping the largest k layers gives the best rank-k picture there is (Eckart–Young); the error is the size of the layers you drop.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Each track ID is one object, so counting IDs counts the objects.
Why it's tempting
The tracker gives every object its own number.
What's true
When objects cross or hide behind something, trackers swap identities or start a new ID for the same object, so ID counts overstate. Association metrics such as HOTA measure this; check ID switches before counting.
Show me
AExplorable · Step through k-means
How does k-means find clusters, and when does it find the wrong ones?
Assign each point to its nearest center, move each center to its points' mean, repeat. How many iterations until nothing changes?
How sure?
Data
Starting centers
Crosses mark the centers; dashed lines show how far each moved at this iteration.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The radiance field renders convincing new views, so it has recovered the scene's 3D geometry.
Why it's tempting
Rendering a new view correctly seems to need the right 3D shape.
What's true
A radiance field can match its training views with floating blobs and wrong depth, and views near the training cameras look fine anyway. Hold out views far from the training cameras, and check depth or geometry against measurements where you have them.
Show me
DExplorable · Cross-validation folds
Which rows should be held out so the score predicts real performance?
Each scheme has a tempting shortcut: training error, plain random folds, or the best score from a search. Will the shortcut here look better than the true error on new data?
How sure?
Scheme
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Higher PSNR means the restored image looks better.
Why it's tempting
PSNR measures how close the output is to the original, pixel by pixel.
What's true
PSNR and SSIM reward pixel agreement, so a blurry average can beat a sharp image that looks right to people. GAN super-resolution can look sharper and score lower, sometimes by inventing detail. Combine perceptual metrics with human review, and check invented detail where accuracy matters.
Show me
CExplorable · Same statistics, different pictures
How can datasets with identical summaries look nothing alike?
As the cloud morphs into this shape, what happens to Pearson's r?
How sure?
Target
Mean, SD and correlation are held fixed along the way.
Mean of x
SD of y
Pearson r
Spearman ρ
54.30
26.90
−0.060
−0.029
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Features from a network pretrained on everyday photos work for any image task.
Why it's tempting
Pretrained features transfer remarkably well across many tasks.
What's true
Medical scans, satellite images and microscopy look nothing like everyday photos, and the features may encode textures that don't matter there. Resizing and normalization must also match the pretraining. Compare a linear probe with fine-tuning on your images before relying on the features.
Show me
AExplorable · Sampling bias
Does a bigger sample fix a biased way of collecting data?
If you invite ten times as many people, what happens to the gap between the survey mean and the truth?
How sure?
How much more likely high earners are to answer.
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A detector's mAP tells me how well it will find objects in my images.
Why it's tempting
mAP is the headline number every detection paper reports.
What's true
mAPCOCO average precision (AP)Area under the precision–recall curve of a detector, averaged over classes and over IoU thresholds 0.50 to 0.95. averages over classes and overlap thresholds on one benchmark's images. Small objects, rare classes and your camera, lighting and viewpoints can behave very differently. Look at AP by class and by object size on your own labeled images, and at a gallery of misses and false boxes.
Show me
DExplorable · Boxes, IoU, non-maximum suppression and average precision
How does a detector turn a cloud of overlapping guesses into one box per object, and how is it scored?
After NMS at this threshold, will every object still have at least one box?
How sure?
Scene
Three well-separated objects, two people standing close together plus one more, or four small objects.
A box is dropped when it overlaps a higher-scoring kept box by more than this IoU.
Candidates scoring below this are dropped before NMS.
IoU to count a hit
A kept box counts as a true positive when it overlaps an unmatched object by at least this much.
How far the detector's guesses wander from each true box, as a share of its size.
Numbers on the kept boxes are their scores. AP averages the best precision reachable at 101 recall levels, so a false positive ranked above a hit costs more than one ranked last.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
A depth model run on one photo tells me distances in meters.
Why it's tempting
The output is a depth map with a value for every pixel.
What's true
Most single-image depth models predict relative depth: the scale and offset are unknown without a reference such as a known object size or a calibrated camera. Errors grow with distance and in scenes unlike the training data. Fit scale and shift on known points before reading absolute distances.
Show me
DExplorable · Fit the line yourself
What makes the least-squares line 'best'?
Add one point far below the trend at high x. What happens to the least-squares slope?
How sure?
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Non-maximum suppression only removes duplicate boxes, so its threshold doesn't matter much.
Why it's tempting
It runs after the model as a cleanup step.
What's true
A high overlap threshold keeps duplicate boxes, which count as false positives; a low one deletes real neighbors in crowded scenes. Either way the threshold changes recall and AP. Tune it on validation images that look like yours.
Show me
DExplorable · Boxes, IoU, non-maximum suppression and average precision
How does a detector turn a cloud of overlapping guesses into one box per object, and how is it scored?
After NMS at this threshold, will every object still have at least one box?
How sure?
Scene
Three well-separated objects, two people standing close together plus one more, or four small objects.
A box is dropped when it overlaps a higher-scoring kept box by more than this IoU.
Candidates scoring below this are dropped before NMS.
IoU to count a hit
A kept box counts as a true positive when it overlaps an unmatched object by at least this much.
How far the detector's guesses wander from each true box, as a share of its size.
Numbers on the kept boxes are their scores. AP averages the best precision reachable at 101 recall levels, so a false positive ranked above a hit costs more than one ranked last.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
The segmentation gets 95% of pixels right, so it's good.
Why it's tempting
Most pixels are labeled correctly.
What's true
Background usually fills most of the image, so a model that misses every small structure can still get nearly all pixels right. Report IoU or Dice per class and look at boundaries and small objects.
Show me
HExplorable · Rare events and the decision threshold
Why can a 98% accurate model be useless, and where should the threshold go?
A lazy model calls every case negative. What accuracy does it score?
How sure?
flagged
passed
pos
52
62
neg
312
4574
Bars are drawn to one count scale, so a rare positive class looks as rare as it is. The ROC curve barely notices the imbalance; the precision–recall curve shows it. Cheapest threshold here: 1.14; the binormal formula gives 1.35.
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.
Cutting images into patches and splitting the patches at random into train and test is fine.
Why it's tempting
Patches are separate inputs to the model, so a random split looks like any other random split.
What's true
Patches from one image share lighting, scanner and subject, so test patches from a training image leak the answer and scores look far better than on new images. Split by image, subject, scene or site, as the images contractData contract: imagesPixel arrays with a stated layout, color space and range: group splits by subject, scene or source, never by crop or patch. says.
Show me
DExplorable · Leakage detective
Why does a model that scores brilliantly in testing fail on real data?
Read the pipeline on the left. Will its cross-validation score overstate real-world accuracy by more than 6 points?
How sure?
The pipeline
Simulating…
Commit your prediction above to see the result
Make your prediction first; the figure appears when you commit.