Menu

1 / 2

Why Splitting Your Data Into Two Subgroups and Comparing p-Values Is a Statistical Bug

DEV Community: datascience·Nylah Reynard·11 days ago
#qPDJadID
#devtodatascience#science#devto#dev#subgroup
Long article (1576 words) — no AI summary yet.
Reading 0:00
15s threshold

A pull request in our experimentation pipeline landed on my desk last week with a celebratory note: "Feature rollout is a massive success on mobile, but ineffective on desktop."

The author had sliced our A/B test logs into two cohorts. In Subgroup A (mobile), conversion lift showed p = 0.0183. In Subgroup B (desktop), lift showed p = 0.2143. Based on that contrast, the team proposed shipping exclusively to mobile while routing desktop resources toward a redesign.

When I checked the underlying estimates, the data told a very different story. Subgroup A had an effect estimate of 0.4800 with SE = 0.2000. Subgroup B had an effect estimate of 0.2500 with SE = 0.2000. Running a formal interaction test yielded z = 0.8132 and p = 0.4161.

There was zero evidence of any difference between platforms.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.