cd /news/machine-learning/is-my-improvement-real-when-a-differ… · home › topics › machine-learning › article
[ARTICLE · art-181583] src=pub.towardsai.net ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Is My Improvement Real? When a Difference Is More Than Chance

An interactive A/B testing tool from Jarroba's free AI course shows that a 12% versus 14% conversion difference between two page versions is not statistically significant at 1,000 visits per version, with a p-value of 0.18 and a 95% confidence interval of −0.95 to +4.96 points, but becomes significant when the same percentages are tested with 2,500 visits per version, where the p-value drops to 0.036 and the interval runs from +0.13 to +3.87. The tool's "Peeking early" tab simulates an A/A test in which both versions are identical and someone checks results 10 times, stopping at the first p-value below 0.05, and reports a real false positive rate of 19.0%. The lesson matters for anyone comparing model or prompt changes: with too little data, a real-looking lift can be indistinguishable from chance.

recommendation

Size your A/B test before trusting a lift: the same 2-point difference was noise at 1,000 visits per arm (p=0.18) and significant at 2,500 (p=0.036), and peeking 10 times pushed false positives to 19.0%.

more in playbook: Evals and testing for LLM apps
by read6 min views3 publishedDec 4, 2026

Note: Although this article can be read independently, it is part of a comprehensive interactive course — the table of contents for which can be found at https://jarroba.com/en/ai-course/**—where the entire course is available for free.

You change something (the text on a button, the instructions you give a model, the whole model) and the number you care about goes up. Has it really improved, or was it chance? It depends on how much data you have. And the worst thing is to push the data until it says what you already thought.

To see why the question matters, imagine an online shop with a product page. Out of every 100 people who visit it, about 12 buy. But each visitor decides on their own, so 1000 visits do not always give exactly 120 purchases: sometimes more come out and sometimes fewer, just as flipping a coin 1000 times does not always give 500 heads. Now run a thought experiment: show half of the visits the page as it is and the other half an exact copy, with nothing changed. In the picture below, with 1000 visits each, the original sells 128 and the copy 110; in the next round (which could be the next day, with other people), 113 against 134. Neither of those differences is real, because the two pages are the same.

Open the tool. In the Analyse tab there is an example experiment: a version A of a page, seen by 1000 people, of whom 120 bought (12%), and a version B, the same page with something changed (for example, the text of the buy button), with 1000 visits and 140 purchases (14%). The tool calls the purchases conversions: what counts as a success in each visit. B looks better, but the tool, surprisingly, tells us: “These data don’t show any difference”.

Change the four numbers so that there is two and a half times more data, with the same percentages: A with 2500 visitors and 300 conversions, B with 2500 and 350 ( link with that data). It is still 12% against 14%. Now the tool says “B converts better than A”.

The number that decides is the p-value (the probability of seeing a difference like this by pure chance, if A and B were the same; explained in detail below): 0.18 with 1000 visits and 0.036 with 2500.

Go to the Peeking early tab. It simulates an experiment in which A and B are identical (the “true lift of B” is at 0; the tool calls this an A/A test, because B is really another A) and in which someone looks at the result 10 times while the data arrive, stopping as soon as it comes out “significant” (with a p-value below 0.05, the usual bar for believing a difference). Read the first line: “Real false positive rate: 19.0 %” (a false positive is declaring a winner that does not exist). Almost one experiment in five declares a winner between two identical things.

The tool decides with the p-value: the probability of seeing a difference like this if there were none. With 1000 visits per version, the p-value is 0.18: a difference of 2 points between two identical versions would come up by chance almost once in every five times. The usual practice is not to believe it until it drops below 0.05, and with 2500 visits it drops to 0.036.

Below, the tool gives a confidence interval (95% CI), the range in which the true difference probably lies. With 1000 visits it runs from −0.95 to +4.96 points: it includes zero, so B could be slightly worse, the same or much better. With 2500 it runs from +0.13 to +3.87: it no longer includes zero. This is what the article on minimal statistics explains: with more data, the error gets smaller, and the same difference goes from being indistinguishable from noise to not being so.

Note what the tool said with 1000 visits: “These data don’t show any difference”. It did not say “there is no difference”. With 1000 visits per version, this experiment would detect a real improvement of 2 points only about one time in four. The tab calculates this before you start: to detect a move from 12% to 14% with a power of 80% (getting it right eight times out of ten if the improvement exists) you need 4,436 visitors per version. To see it, set the “minimum lift” to 16.67%, which is what 2 points are on top of 12, or open it already set. The general idea is in the Power tab of the Hypothesis testing tool: two overlapping bells, one for “no effect” and another for “there is an effect”, and the more data, the less they overlap.

You might think that looking at the results every day does no harm, as long as you only stop once it is significant. That is exactly what does harm. Each time you look, the noise gets another chance to cross the 0.05 line, and it only has to cross it once for you to stop. With a single look at the end, the false positive rate is the promised 5%. With 10 looks, 19%; with 50, 32%. Evan Miller explained it in 2010 in an article, with this rule: looking is fine, as long as you do not stop the experiment before it ends ( How Not To Run an A/B Test).

Pushing the data until something comes out significant has a name, , and it does not have to be done on purpose (Data dredging, on Wikipedia). There are two honest ways out: decide the size before starting (the tab) or use rules designed for looking several times, which demand more at each look. In the Peeking early tab there are two: one by Pocock, a medical statistician who proposed it in 1977 for clinical trials (Pocock boundary, on Wikipedia), and one by O’Brien and Fleming. With either of them, the false positive rate goes back to around 5%.

In AI exactly the same thing happens. If you compare two versions of some instructions, or two models, with a handful of test questions, and repeat until one “wins”, you have done p-hacking under another name (measuring a model well has its own article: A benchmark for AI).

And even if you do not repeat, size rules. With instructions A that get 35 of 50 questions right (70%) and instructions B that get 38 (76%), A/B Test says nothing is shown: p-value 0.50. The same difference with 1000 questions is already taken as shown: p-value 0.0025. Here “visitors” are questions and “conversions” are correct answers.

Originally published at https://jarroba.com on November 30, 2026.

Is My Improvement Real? When a Difference Is More Than Chance was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

── more in #machine-learning 4 stories · sorted by recency
── more on @jarroba 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/is-my-improvement-re…] indexed:0 read:6min 2026-12-04 · —