超越正态性:针对非高斯数据的可靠A/B测试
Beyond Normality: Reliable A/B Testing with Non-Gaussian Data
AI总结:
针对非高斯数据、样本量不等导致成对$t$检验不可靠的问题,本文推导了检验有效的最小样本量公式,提出基于Edgeworth展开的校正方法,提升了真实场景下A/B测试的可靠性。
摘要:
A/B测试已成为在线市场决策的基石,指导平台推出新功能、优化定价策略以及改善用户体验。在实践中,我们通常采用成对$t$检验比较实验组和对照组的结果,以此评估给定策略的有效性。要保证结果可信,这些实验必须将第一类错误(即假阳性率)控制在合理范围内;否则,我们可能会推出有害的策略。但在实际应用中,我们发现A/B测试往往无法给出可靠的结果。当数据分布偏离正态性,或实验组与对照组的样本量存在差异时,常用的成对$t$检验就不再具备可信度。本文中,我们量化了偏态、长尾数据以及不等样本分配如何扭曲错误率,并推导了$t$检验保持有效性所需最小样本量的显式公式。我们发现,许多在线反馈指标需要数亿样本才能确保A/B测试的可靠性。因此,我们提出了一种基于Edgeworth(埃奇沃思)展开的校正方法,在可用样本量有限时能提供更准确的$p$值。在一家头部A/B测试平台上开展的离线实验,验证了我们提出的理论最小样本量阈值的实用价值,同时证明该校正方法能显著提升真实场景下A/B测试的可靠性。
英文摘要:
A/B testing has become the cornerstone of decision-making in online markets, guiding how platforms launch new features, optimize pricing strategies, and improve user experience. In practice, we typically employ the pairwise $t$-test to compare outcomes between the treatment and control groups, thereby assessing the effectiveness of a given strategy. To be trustworthy, these experiments must keep Type I error (i.e., false positive rate) under control; otherwise, we may launch harmful strategies. However, in real-world applications, we find that A/B testing often fails to deliver reliable results. When the data distribution departs from normality or when the treatment and control groups differ in sample size, the commonly used pairwise $t$-test is no longer trustworthy. In this paper, we quantify how skewed, long tailed data and unequal allocation distort error rates and derive explicit formulas for the minimum sample size required for the $t$-test to remain valid. We find that many online feedback metrics require hundreds of millions samples to ensure reliable A/B testing. Thus we introduce an Edgeworth-based correction that provides more accurate $p$-values when the available sample size is limited. Offline experiments on a leading A/B testing platform corroborate the practical value of our theoretical minimum sample size thresholds and demonstrate that the corrected method substantially improves the reliability of A/B testing in real-world conditions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。