# A/B Test Sonuçları ve Deney Takip Sistemi: Peeking'in Bedeli 2,18 Kat

> ASOS'un 78 deneyinin 99 treatment kolu ve 396 metrik serisi üzerinde tek standart yöntemle analiz: peeking anlamlı sonuç oranını 2,18 kat şişiriyor, erken duruşların %54,2'si sonunda anlamsız; güven dizisi aynı sonucu medyan %77,2 daha kısa sürede veriyor.

Kaynak: https://ozgurnurettinozturk.com/ab-test-sonuclari-ve-deney-takip-sistemi | Bu sayfanin HTML surumu ayni adrestedir ve Ingilizce cevirisini de icerir.

---
# A/B Test Sonuçları ve Deney Takip Sistemi: Peeking'in Bedeli 2,18 Kat

Bir A/B testinde en pahalı hata yanlış sonuca varmak değil, *sonuca erken
varmaktır*. Bu projede ASOS'un yayımladığı **78 deneyin 99 treatment kolunu ve 396 metrik
serisini** tek bir standart yöntemle analiz ettim — ve peeking'in bedelini varsayımla değil,
**aynı deneylerin kendi verisiyle** ölçtüm.

**2,18×**Peeking'in yanlış pozitifi şişirme katsayısı

**%54,2**Erken duruşların sonunda anlamsız çıkanı

**%77,2**Güven dizisiyle medyan süre tasarrufu

**8 / 99**Aksiyon alınabilir karar çıkan kol

## Veri ve kapsam

Veri seti [ASOS Digital Experiments Dataset](https://osf.io/64jsb/) (CC BY 4.0, DOI 10.17605/OSF.IO/64JSB): gerçek bir e-ticaret şirketinin 2019–2020
arasında yürüttüğü deneylerin kümülatif ölçüm kayıtları. **24.153 kümülatif ölçüm, 78 deney,
99 treatment kolu, 4 metrik, 396 seri.** Kol başına medyan 3,1 milyon kullanıcı.

**Grafik — Metrik tipi: ortalama–varyans ilişkisi:** Dört metriğin tipi veride yazmıyor; ortalama ile varyans arasındaki ilişkiden çıkarıldı.

Veri setinde **metriklerin anlamı, yönü, deneylerin hipotezi ve şirketin verdiği karar
yok.** Bu yüzden altı seçim raporun kendi analitik tercihidir, veriden okunmuş değil:

**Tercih**

### Test kurulumu

Birincil metrik = metrik 1 · α = 0,05 · güç hedefi %80 · iki yönlü Welch t-testi.

**Tercih**

### Önem ve düzeltme

Pratik eşik %1 bağıl değişim · çoklu karşılaştırmada Benjamini-Hochberg, ikinci güven seviyesi
olarak Bonferroni.

Pratik eşiğin sonuçlara duyarlılığı ayrıca gösterildi: eşik değiştikçe
“anlamlı ama önemsiz” kategorisinin büyüklüğü değişiyor, ana sonuç değişmiyor.

## Hangi deneyin sonucu okunabilir?

Bir deneyin sonucunu okumadan önce okunabilir olduğunu göstermek gerekir. Atama dengesi, eksik
olaylar, ölçüm boşlukları ve uygunluk eşikleri birlikte bakıldığında **99 kolun 16'sı en az bir
eşiği geçemiyor** — yani sonucu hiç raporlanmamalı.

**Grafik — İki SRM testinin karşılaştırması:** Naif 50/50 testi 12 kolu bozuk işaretliyor, 4'ü kasıtlı dengesiz tasarım. Oran kayması testinde gerçekten şüpheli kol 4.

Burada standart uygulamanın bir hatasını yakaladım. **Naif SRM testi** (örneklem oranı
uyumsuzluğu, 50/50 varsayımıyla) 12 kolu “bozuk” işaretliyor — ama bunların
**4'ü kasıtlı dengesiz tasarım**: paylar %3 ile %88,7 arasında değişiyor ve bu bir hata
değil, bir seçim.

Bunun yerine tasarımdan bağımsız bir **oran kayması testi** kurdum: kolun payının
kendi başlangıç oranından zaman içinde sapıp sapmadığına bakıyor. Sonuç — gerçekten şüpheli kol
**4'e düşüyor** ve bunların **3'ü naif testin hiç göremediği** kollar.
Yani standart test hem yanlış alarm üretiyor hem de gerçek sorunları kaçırıyor.

**Grafik — Zaman içinde kayma örnekleri:** Datasheet'in andığı iki kalite örneği veride görünüyor: 162a38'in 38. gündeki sıçraması ve 54a85a'nın primacy deseni.

Veri setinin yayımcıları bir datasheet ile birlikte paylaşmış ve iddialarını doğruladım:
belgenin “5 of 99 treatments” varyans eksikliği ifadesi birebir uyuşuyor. Ancak belgede
anılmayan **7 kolda varyans kısmen eksik** — bu rapora eklendi. Belgedeki iki kalite
örneği de (162a38'in 38. gündeki sıçraması, 54a85a'nın primacy deseni) veride görünüyor ve grafiğe
alındı.

## Etki büyüklüğü ve belirsizlik

**Grafik — Etki büyüklüğü ve güven aralıkları:** Her kol için etki, %95 güven aralığı ve p-değeri birlikte. Tek başına p-değeri yayımlanmadı.

Her kol için etki büyüklüğü, %95 güven aralığı ve p-değeri *birlikte* raporlandı. Tek başına
p-değeri yayımlamak, bir A/B test raporunun en yaygın kusurudur: etkinin yönünü ve büyüklüğünü
gizler, aralığın ne kadar geniş olduğunu söylemez.

## Anlamlılık ile önem aynı şey değil

**Grafik — İstatistiksel anlamlılık ve pratik önem:** 105 anlamlı sonucun 61'i %1'lik pratik eşiğin altında; 12 sonuç pratik olarak büyük ama anlamlı değil.

Kol başına medyan 3,1 milyon kullanıcıyla istatistik *her* küçük farkı yakalıyor. Sonuç:
**105 anlamlı sonucun 61'i %1'lik pratik eşiğin altında** — istatistiksel olarak gerçek,
işletme olarak önemsiz. Ters yönde de 12 sonuç var: pratik olarak büyük ama anlamlı değil, yani
deneyin gücü yetmemiş.

Bu iki kutu, bir deney programında en çok yanlış karar üretilen yerdir. Birinciye bakıp
“kazandık” demek bütçeyi hiçbir şeye harcamaktır; ikinciye bakıp “işe
yaramadı” demek gerçek bir etkiyi çöpe atmaktır.

## Çoklu karşılaştırma sonuçların üçte birini eritiyor

**Grafik — p-değeri dağılımı ve çoklu karşılaştırma:** 381 testte düzeltmesiz 105 anlamlı sonuç; Benjamini-Hochberg sonrası 68, Bonferroni sonrası 43.

381 testte düzeltmesiz **105 anlamlı sonuç** var. Ama tüm hipotezler boş olsa bile
α = 0,05 ile yaklaşık **19'u şans eseri** beklenirdi. Düzeltme yapıldığında:
Benjamini-Hochberg sonrası **68**, Bonferroni sonrası **43** kalıyor.

Yani yayımlanan “kazanan” sayısının üçte birinden fazlası, hiçbir şey yapılmasa bile
elde edilecek bir sayıdır. Bir deney programını çok sayıda metrikle ve çok sayıda kolla yürütüp her
anlamlı sonucu ayrı bir zafer olarak raporlamak, bu düzeltme olmadan sistematik olarak yanıltıcıdır.

## Peeking: bedeli bu veride ölçüldü

Raporun merkezindeki soru şu: deneye her gün bakıp ilk anlamlı sonuçta durursak ne olur? Bu
genellikle teorik bir uyarı olarak anlatılır. Burada aynı deneylerin kendi kümülatif serileriyle
**üç durdurma kuralını yan yana çalıştırdım.**

**Grafik — Üç durdurma kuralının karşılaştırması:** Sabit ufuk %28,9 · her gün bakıp ilk anlamlılıkta durmak %63,2 · güven dizisi %29,2.

Durdurma kuralı | Anlamlı seri | Oran | Süre tasarrufu (medyan) |

Sabit ufuk (doğru yöntem) | 99 / 342 | %28,9 | — |

Her gün bak, ilk p < 0,05'te dur | 216 / 342 | %63,2 | yüksek |

Asimptotik güven dizisi | 100 / 342 | %29,2 | %77,2 |

**Peeking anlamlı sonuç oranını %28,9'dan %63,2'ye çıkarıyor — 2,18 kat.** Ve bu
erken duruşların **117'si (%54,2) deney sonuna kadar beklendiğinde anlamsız**;
**3'ünde ise etkinin yönü ters**. Yani erken durup “kazandık” denen her iki
sonuçtan biri gerçekte bir şey değil.

**Grafik — Örnek deneyde peeking tuzağı:** p-değeri gün içinde eşiği geçiyor, durulsa anlamlı denecek; seri devam ettikçe eşiğin üstüne dönüyor.

Tek bir deneyde bu süreç adım adım izlenebiliyor: p-değeri gün içinde 0,05 eşiğini geçiyor,
durulsa “anlamlı” denecek, ama seri devam ettikçe eşiğin üstüne geri çıkıyor.

**Grafik — İlk anlamlılık günü dağılımı:** Erken duruşların 117'si (%54,2) deney sonuna kadar beklendiğinde anlamsız çıkıyor.

**Ama doğru araçla erken durmak meşrudur.** Howard ve arkadaşlarının (2021)
asimptotik güven dizisi, her ara noktada bakmaya *matematiksel olarak izin veren* bir yöntem.
Bu veride 100 seride (%29,2) anlamlılık buluyor — sabit ufukla neredeyse aynı — ama
**medyan %77,2 süre tasarrufuyla**. Bedeli: sonunda anlamlı çıkan 30 seriyi kaçırmak.
Yani “erken durmak yasak” değil; *yanlış yöntemle* erken durmak yasak.

## Güç ve saptanabilir en küçük etki

**Grafik — Örneklem büyüklüğü ve güç:** Kol başına medyan 3,1 milyon kullanıcı; bu ölçekte istatistik her küçük farkı yakalıyor.

**Grafik — Gözlenen etki ve saptanabilir en küçük etki:** Boş sonucun bilgilendirici olup olmadığı MDE ile ayrılıyor: 99 kolun 64'ü bilgilendirici boş sonuç.

Bir deneyin sonucu “etki yok” ise, bu iki şeyden biri demektir: gerçekten etki yoktur,
ya da deney o etkiyi görecek kadar güçlü değildir. İkisini ayırmanın yolu MDE'dir — deneyin
saptayabileceği en küçük etki.

Bu ayrımı yaptığımda **99 kolun 64'ü “bilgilendirici boş sonuç”** çıkıyor:
deneyin gücü %1'lik bir etkiyi görmeye yetiyordu ve etki yoktu. **Boş sonuç bir başarısızlık
değil** — bir fikri kapatmak için bu yeterlidir ve deney programının asıl ürünü budur.

## Karardan deney günlüğüne

**Grafik — Karar dağılımı:** Geçerlilik → güç → etki sırasıyla işleyen karar kuralının çıktısı.

Sonuçları karara çevirmek için üç aşamalı bir kural kurdum: önce **geçerlilik**
(kol okunabilir mi?), sonra **güç** (anlamlı değilse, görecek kadar güçlü müydü?), en
son **etki** (anlamlıysa, pratik eşiği geçiyor mu?). Sıra önemli — etkiye bakmadan önce
okunabilirlik sorulmazsa, bozuk bir koldan karar çıkar.

Karar | Kol | Pay |

Aksiyon alınabilir | 8 | %8,1 |

Bilgilendirici boş sonuç | 64 | %64,6 |

Okunamıyor (geçerlilik eşiği) | 16 | %16,2 |

Kararsız (güç yetersiz) | kalan kollar |

**Grafik — Deney düzeyi segmentler:** Kümülatif ölçümler kullanıldığı için segment kırılımı deney düzeyinde kaldı.

Bu dağılım bir deney programı için normaldir ve sağlıklıdır: 99 koldan 8'inde aksiyon çıkması
başarısızlık değil, deneyin ne işe yaradığının tanımıdır. Asıl sorun, 16 kolun hiç okunamıyor
olmasıdır — ve bu, analizle değil *deney kurulumuyla* çözülür.

## Sınırlar

- **Metriklerin anlamı ve yönü veride yok.** “Artış iyi mi kötü mü” bilinmediği için bütün sonuçlar yönsüz etki olarak raporlandı.

- **Şirketin gerçek kararı veride yok.** Buradaki karar kuralı benim tercihimdir; ASOS'un ne yaptığıyla karşılaştırılamaz.

- **Altı analitik seçim rapora aittir** (α, güç hedefi, pratik eşik, test türü, düzeltme yöntemi, birincil metrik) ve sonuçlar bu seçimlere bağlıdır.

- **Tek şirket, iki yıl, dört metrik.** Peeking'in 2,18 katlık bedeli bu veri setindeki ölçümdür; başka bir programda başka çıkar.

- **Kümülatif ölçümler** kullanıldı; günlük ham olaylar yok, dolayısıyla segment kırılımı deney düzeyinde kaldı.

## Dosyalar

Aynı analizin tek dosyalık rapor sürümü:
[A/B test raporu (HTML)](assets/files/deney/ab-test-sonuclari-ve-deney-takip-sistemi-raporu.html) — ~235 KB, 13 bölüm, 13 gömülü grafik, 15 tablo, çevrimdışı açılır. Deney
günlüğü düzeni, karar × güven çapraz tablosu ve pratik eşik duyarlılığı yalnızca orada.

## Sonuç

Bu çalışma bir A/B test aracı değil, bir **okuma disiplini** öneriyor. Aynı 396 seri,
iki farklı durdurma kuralıyla okunduğunda 99 ya da 216 “kazanan” üretiyor; aynı 381 test,
düzeltmesiz 105 ya da Bonferroni sonrası 43 anlamlı sonuç veriyor; aynı 105 anlamlı sonucun 61'i
işletme için önemsiz. Hiçbiri veri hatası değil — hepsi okuma tercihi.

En çok tekrarlanmaya değer bulgu da budur: **erken durmak yasak değil, yanlış yöntemle erken
durmak yasak.** Güven dizisi aynı veride neredeyse aynı sayıda kazanan buluyor ve bunu medyan
%77,2 daha kısa sürede yapıyor. Peeking'in bedeli hız değil, güvenilirliktir — ve hızı kaybetmeden
güvenilirliği korumanın yolu var.

Analiz Python 3.13, pandas, NumPy ve SciPy ile yapıldı; bütün betiklerde
rastgelelik sabitlendi. Veri seti: Liu, C. ve ark. (2021). *ASOS Digital Experiments Dataset*,
OSF, [doi.org/10.17605/OSF.IO/64JSB](https://doi.org/10.17605/OSF.IO/64JSB),
CC BY 4.0.

The most expensive mistake in an A/B test is not reaching the wrong conclusion but
*reaching a conclusion early*. In this project I analysed **99 treatment arms and 396
metric series across 78 experiments** published by ASOS using a single standard method — and
measured the cost of peeking not by assumption but **on the same experiments' own data**.

**2.18×**How much peeking inflates false positives

**54.2%**Early stops that are null by the end

**77.2%**Median time saved with a confidence sequence

**8 of 99**Arms yielding an actionable decision

## Data and scope

The dataset is the [ASOS Digital Experiments Dataset](https://osf.io/64jsb/) (CC BY 4.0, DOI 10.17605/OSF.IO/64JSB): cumulative measurement records from
experiments run by a real e-commerce company in 2019–2020. **24,153 cumulative measurements,
78 experiments, 99 treatment arms, 4 metrics, 396 series.** Median 3.1 million users per arm.

**Grafik — Metric type: the mean–variance relationship:** The type of each of the four metrics is not stated in the data; it was inferred from the mean–variance relationship.

The dataset contains **no metric meanings, no metric directions, no experiment hypotheses
and no company decisions.** Six choices are therefore the report's own analytical preference,
not something read from the data:

**Choice**

### Test setup

Primary metric = metric 1 · α = 0.05 · power target 80% · two-sided Welch t-test.

**Choice**

### Importance and correction

Practical threshold 1% relative change · Benjamini-Hochberg for multiplicity, with Bonferroni as
a second confidence level.

The sensitivity of results to the practical threshold is shown separately: as the
threshold moves, the size of the “significant but unimportant” group changes while the main
conclusion does not.

## Which experiments can be read at all?

Before reading an experiment's result you have to show it is readable. Taking assignment balance,
missing events, measurement gaps and eligibility thresholds together, **16 of the 99 arms fail at
least one threshold** — their results should never be reported.

**Grafik — Comparison of the two SRM tests:** The naive 50/50 test flags 12 arms, 4 of them deliberately unbalanced designs. The drift test leaves 4 genuinely suspicious arms.

Here I caught a flaw in standard practice. The **naive SRM test** (sample ratio
mismatch against a 50/50 assumption) flags 12 arms as broken — but **4 of those are deliberately
unbalanced designs**, with shares ranging from 3% to 88.7%. That is a choice, not a fault.

Instead I built a design-independent **share drift test**, which asks whether an arm's
share moves away from its own starting ratio over time. The result: genuinely suspicious arms drop to
**4**, and **3 of them are arms the naive test never saw**. So the standard
test both raises false alarms and misses real problems.

**Grafik — Examples of drift over time:** Both quality examples cited in the datasheet are visible in the data: the day-38 jump in 162a38 and the primacy pattern in 54a85a.

The publishers released a datasheet alongside the data and I verified its claims: the
“5 of 99 treatments” variance-missing statement matches exactly. But **7 further arms
have partially missing variance**, which the datasheet does not mention; that is added here.
Both quality examples from the datasheet (the day-38 jump in 162a38 and the primacy pattern in 54a85a)
are visible in the data and were charted.

## Effect size and uncertainty

**Grafik — Effect sizes and confidence intervals:** Effect, 95% confidence interval and p-value reported together for every arm.

For every arm the effect size, 95% confidence interval and p-value are reported
*together*. Publishing a p-value alone is the most common defect in an A/B test report: it hides
the direction and magnitude of the effect and says nothing about how wide the interval is.

## Significance is not importance

**Grafik — Statistical significance against practical importance:** 61 of 105 significant results fall below the 1% practical threshold; 12 are practically large but not significant.

With a median of 3.1 million users per arm, statistics catch *every* small difference. The
result: **61 of the 105 significant findings fall below the 1% practical threshold** —
statistically real, commercially irrelevant. In the other direction there are 12 findings that are
practically large but not significant, meaning the experiment lacked power.

These two boxes are where an experimentation programme generates the most wrong decisions. Calling
the first a win spends budget on nothing; calling the second a failure throws away a real effect.

## Multiplicity dissolves a third of the results

**Grafik — p-value distribution and multiplicity:** 105 significant results across 381 tests without correction; 68 survive Benjamini-Hochberg and 43 Bonferroni.

Across 381 tests there are **105 significant results** without correction. But even if
every hypothesis were null, about **19 would be expected by chance** at α = 0.05. After
correction: **68** survive Benjamini-Hochberg and **43** survive Bonferroni.

So more than a third of the published "winners" is a number you would obtain by doing nothing.
Running a programme across many metrics and many arms and reporting each significant result as a
separate victory is systematically misleading without this correction.

## Peeking: the cost, measured on this data

The question at the centre of the report: what happens if we look every day and stop at the first
significant result? This is usually presented as a theoretical warning. Here I ran
**three stopping rules side by side** on the experiments' own cumulative series.

**Grafik — Comparison of three stopping rules:** Fixed horizon 28.9% · daily looks stopping at first significance 63.2% · confidence sequence 29.2%.

Stopping rule | Significant series | Rate | Median time saved |

Fixed horizon (the correct method) | 99 / 342 | 28.9% | — |

Look daily, stop at first p < 0.05 | 216 / 342 | 63.2% | high |

Asymptotic confidence sequence | 100 / 342 | 29.2% | 77.2% |

**Peeking raises the significant-result rate from 28.9% to 63.2% — a factor of 2.18.**
And **117 of those early stops (54.2%) are null once the experiment runs to completion**,
while **3 have the effect pointing the opposite way**. One in every two "wins" declared by
stopping early is not a win at all.

**Grafik — The peeking trap in a single experiment:** The p-value crosses the threshold mid-run; stopping there would be called significant, but the series climbs back above it.

A single experiment makes the mechanism visible step by step: the p-value crosses 0.05 mid-run, a
stop there would be called significant, and as the series continues it climbs back above the threshold.

**Grafik — Distribution of the first day of significance:** 117 of the early stops (54.2%) are null once the experiment runs to completion.

**But stopping early with the right tool is legitimate.** The asymptotic confidence
sequence of Howard et al. (2021) is a method that *mathematically permits* looking at every
interim point. On this data it finds significance in 100 series (29.2%) — almost identical to the fixed
horizon — with a **median time saving of 77.2%**. The price is missing 30 series that turn
out significant at the end. So early stopping is not forbidden; stopping early
*with the wrong method* is.

## Power and the minimum detectable effect

**Grafik — Sample size and power:** Median 3.1 million users per arm; at that scale statistics catch every small difference.

When an experiment returns "no effect", it means one of two things: there really is no effect, or
the experiment was not powerful enough to see it. The MDE — the smallest effect the experiment could
detect — is what separates them.

**Grafik — Observed effect against minimum detectable effect:** The MDE separates informative from uninformative nulls: 64 of the 99 arms are informative nulls.

Making that distinction, **64 of the 99 arms turn out to be "informative nulls"**: the
experiment had the power to see a 1% effect and there was none. **A null result is not a
failure** — it is enough to close an idea, and it is the real product of an experimentation
programme.

## From result to experiment log

**Grafik — Decision distribution:** Output of the decision rule running validity → power → effect in order.

To turn results into decisions I built a three-stage rule: first **validity** (can the
arm be read?), then **power** (if not significant, was it powerful enough to see?), and
only then **effect** (if significant, does it clear the practical threshold?). The order
matters — without asking about readability first, a broken arm produces a decision.

Decision | Arms | Share |

Actionable | 8 | 8.1% |

Informative null | 64 | 64.6% |

Unreadable (validity threshold) | 16 | 16.2% |

Inconclusive (underpowered) | remaining arms |

**Grafik — Experiment-level segments:** Because cumulative measurements were used, segment analysis stays at experiment level.

This distribution is normal and healthy for an experimentation programme: 8 actionable results out
of 99 arms is not failure, it is the definition of what experiments do. The real problem is that 16
arms cannot be read at all — and that is fixed in *experiment setup*, not in analysis.

## Limitations

- **Metric meanings and directions are absent.** Since "is an increase good or bad" is unknown, all results are reported as undirected effects.

- **The company's actual decisions are absent.** The decision rule here is my choice and cannot be compared with what ASOS did.

- **Six analytical choices belong to the report** (α, power target, practical threshold, test type, correction method, primary metric) and the results depend on them.

- **One company, two years, four metrics.** The 2.18× cost of peeking is a measurement on this dataset; another programme would give another figure.

- **Cumulative measurements** were used; raw daily events are absent, so segment analysis stays at experiment level.

## Files

A single-file version of the same analysis:
[A/B test report (HTML)](assets/files/deney/ab-test-sonuclari-ve-deney-takip-sistemi-raporu.html) — about 235 KB, 13 sections, 13 embedded charts, 15 tables, opens offline. The
experiment log layout, the decision × confidence cross-table and the practical-threshold sensitivity
appear only there.

## Conclusion

This study proposes not an A/B testing tool but a **reading discipline**. The same 396
series produce either 99 or 216 "winners" depending on the stopping rule; the same 381 tests give 105
or 43 significant results depending on the correction; 61 of those 105 significant results do not
matter commercially. None of this is a data error — all of it is a reading choice.

The finding most worth repeating is this: **stopping early is not forbidden; stopping early
with the wrong method is.** A confidence sequence finds almost the same number of winners in the
same data and does it in a median of 77.2% less time. The cost of peeking is not speed but reliability
— and there is a way to keep reliability without losing speed.

Analysis in Python 3.13 with pandas, NumPy and SciPy; randomness is fixed in every
script. Dataset: Liu, C. et al. (2021). *ASOS Digital Experiments Dataset*, OSF,
[doi.org/10.17605/OSF.IO/64JSB](https://doi.org/10.17605/OSF.IO/64JSB),
CC BY 4.0.
