设定在线 A/B 实验的持续时间
Setting the duration of online A/B experiments
AI总结:
本文针对在线 A/B 实验持续时间难以确定的问题,基于混合效应模型提出同时依赖样本量 N 与持续时间 T 的置信区间宽度公式,并用 UTC 刻画时间相关性及 YouTube 实验验证。
摘要:
在设计在线 A/B 实验时,关键在于选择合适的样本量和持续时间,以确保处理效应的置信区间(CI)具有恰当宽度,从而以足够的统计功效检测具有实际意义的效应,同时不浪费资源。尽管样本量与 CI 宽度之间的关系已被充分理解,但实验持续时间对 CI 宽度的影响仍不够清晰。本文给出了一个基于比率处理效应估计量的 CI 宽度解析公式,将其表示为样本量(N)和持续时间(T)二者的函数。该公式由包含两个方差成分的混合效应模型推导而来。其中一个成分称为时间方差:当同一用户在不同日期被保留在同一实验分组中时,该方差会随时间持续存在。相比之下,其余误差方差成分会随着 T 增大而衰减至零。我们推导的公式引入了一个关键参数,称为用户特定时间相关性(UTC),用于量化两个方差成分的相对大小,并可从历史实验中估计。UTC 越高,表示 CI 宽度随时间衰减越慢。另一方面,当 UTC 为 0 时——例如用户在不同日期随机进出实验——CI 宽度以标准参数化的 1/T 速率衰减。我们还研究了获取实验中用户的实验前阶段数据如何影响 CI 宽度的衰减。结果表明,我们的公式能够紧密解释 YouTube 真实 A/B 实验中的 CI 宽度。
英文摘要:
In designing an online A/B experiment, it is crucial to select a sample size and duration that ensure the resulting confidence interval (CI) for the treatment effect is the right width to detect an effect of meaningful magnitude with sufficient statistical power without wasting resources. While the relationship between sample size and CI width is well understood, the effect of experiment duration on CI width remains less clear. This paper provides an analytical formula for the width of a CI based on a ratio treatment effect estimator as a function of both sample size (N) and duration (T). The formula is derived from a mixed effects model with two variance components. One component, referred to as the temporal variance, persists over time for experiments where the same users are kept in the same experiment arm across different days. The remaining error variance component, by contrast, decays to zero as T gets large. The formula we derive introduces a key parameter that we call the user-specific temporal correlation (UTC), which quantifies the relative sizes of the two variance components and can be estimated from historical experiments. Higher UTC indicates a slower decay in CI width over time. On the other hand, when the UTC is 0 -- as for experiments where users shuffle in and out of the experiment across days -- the CI width decays at the standard parametric 1/T rate. We also study how access to pre-period data for the users in the experiment affects the CI width decay. We show our formula closely explains CI widths on real A/B experiments at YouTube.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。