A/Bn测试中的统计计算 statistical-calculations

在此页上:​了解Adobe Target如何使用Welch的t检验和贝叶斯方法计算手动A/Bn测试的转化率、提升度和置信度。

本文记录了Adobe Target中手动A/Bn测试中使用的详细统计计算。 它提供了​转化率、转化率的置信区间、提升度、提升度的置信区间、置信度​以及​ 贝叶斯 ​决策度量的定义。

统计方法

A/B测试(手动)活动支持两种统计方法,您可以在目标和设置中为每个活动选择这两种统计方法:

方法
详细信息
可用性
韦尔奇的t检验
一种频率方法,它基于固定样本大小的假设检验报告​ 置信度 ​百分比和置信区间。
用于具有​ 收入 ​或​ 参与 ​主要目标的活动。
贝叶斯
一种将结果报告为概率的方法,例如​ 打败控制的机会 ​和根据每个体验的目标量度的完整后验分布计算的可信间隔。
仅适用于主要目标量度为​ 转化 ​的活动。

韦尔奇t检验 welchs-t-test

以下各节将说明报表各列后面的计算,如下图所示。

显示A/B测试活动的转化率、平均提升度和置信区间以及置信度的目标报告。 🔗

转化率和每位访客带来的收入(RPV)

下图显示了Target报表中的​转化率、转化率的置信区间​和​转化数。 例如,第一行显示,对于体验A,转化率​为25.81%,置信区间​为±7.7%,记录了32次转化。 考虑到有124位访客查看了体验,这相当于32/124 = 25.81%。

{width="25%"}

实验中每个体验​ ν ​的转化率,即​平均值,μν,定义为量度总和与分配给该量度的单位数的比率​Nν:

{width="125px"}

在此公式中:

  • Yiν​是分配给给定体验​ ν ​的每个单位​ i ​的度量值。

  • 单位​ i ​的总和取决于计数方法的选择:

    • 如果将​ 访客 ​用作计数方法,则每个单位都是独特访客,定义为活动生命周期内的独特参与者。
    • 如果将​ 访问次数 ​用作计数方法,则每个单位都是唯一的访问,其定义为Target会话期间某个体验中的唯一参与者(具有唯一的sessionId)。 当sessionId发生更改或访客完成转化步骤时,即会计为新访问。
    • 如果将​ 活动展示次数 ​用作计数方法,则每个单位都是一个唯一的展示次数,定义为每次访客加载活动的任何页面时。

平均值的置信区间(转化率)

转化率的置信区间是与基础数据一致的可能转化率的范围。

运行试验时,体验的转化率是“真”转化率的​估计。 为了量化此估计中的不确定性,Target使用置信区间。 Target始终报告95%的置信区间,这意味着最终,95%的置信区间计算中包含体验的真实转化率。

转化率​ μν ​的95%置信区间定义为值的范围:

{width="30%"}

均值的标准误差定义为:

{width="75px"}

使用样本标准差的无偏估计:

{width="200px"}

如果促销活动是转化率促销活动(即,转化量度为二进制时),标准错误将减少为:

{width="150px"}

提升度

下图显示了Target报表中的​ 提升 ​和提升​ 的 ​置信区间。 数字表示提升度范围的平均值,箭头则反映提升度是正还是负。 箭头以灰色显示,直到置信度超过95%。 置信度超过此阈值后,箭头将变为绿色或红色,具体取决于提升度为正或负。

{width="35%"}

体验​ ν ​和控制体验​ ν0 ​之间的提升是转化率的相对“增量”,定义为:

{width="15%"}

个别兑换率定义见上文。 更简单地说:

Lift(Experience N) = (Performance_Experience_N - Performance_Control)/ Performance_Control

如果控制体验​ ν0 ​的转化率为0,则没有提升。

Confidence Interval of Lift

平均提升度和置信区间​列中的箱形图表示提升度的平均值和95% 置信区间。 当非控制体验的置信区间与控制体验的置信区间重叠时,箱形图呈灰色。 当体验的置信区间高于或低于控制体验的置信区间时,箱形图呈绿色或红色。

体验​ ν ​和控制体验​ ν0 ​之间提升度的标准误差定义为:

metric-mean {width="35%"}

提升的95%置信区间为:

{width="40%"}

此计算使用“Delta”方法,本文档🔗中对此方法的描述更详细。

置信度

Target报告的最后一列显示置信度。 当前领先或入选的体验旁边报告了​ 置信度 ​数字。 此数字仅报告到领先体验的​ 置信度 ​达到至少60%为止。 如果活动中存在两个体验,则该数字表示该体验表现优于其他体验的置信水平。 如果存在两个以上的体验,则该数字表示体验表现优于定义的“控制”体验的置信水平。 如果“控制”体验获胜,则不会报告​ 置信度 ​图。

体验的置信度是一种概率(用百分比表示),可以获得与观察到的结果一样极端的结果,因为零假设为真。 就p值而言,显示的置信度为​1 - p值。 直觉上,较高的置信度意味着控制体验和非控制体验具有相等转化率的可能性较小。

Target在测试体验和控制体验之间执行双尾​Welch的t检验,以测试两个体验的方法是否相同。 在试验运行之前,通常不知道两组样本的大小和差异是相同的,并且Target还允许您向每个体验发送不均等的流量百分比。 基于这些原因,每个体验的方差并非假设相等,而是选择韦尔奇的t检验,而不是Student的t检验。

计算分为四个步骤:

  1. 计算​ t ​统计值。 它定义为任意两个独立随机变量​ ν ​和​ ν0 ​的均值的差除以差值的标准误差:

    {width="100px"}

    这里​ μv ​和​ μv0 ​分别是​ ν ​和​ ν0 ​的均值,并给出​ μv ​和​ μv0 ​之间差值的标准误差:

    {width="150px"}

    其中,σ2v​和​ σ2v0 ​分别为两个体验​ ν ​和​ ν0 ​的变异,Nv​和​ Nv0 ​分别为样本量​ ν ​和​ν0。

  2. 计算自由度。 对于Welch的t检验,自由度计算如下:

    {width="180px"}

    ν​和​ ν0 ​的自由度定义为:

    {width="100px"}

    {width="100px"}

  3. 从​t — 分布尾部的区域计算p值:

    {width="20%"}

  4. 计算Target中报告的置信度:

    {width="20%"}

贝叶斯统计 bayesian-statistics

Bayesian​活动的报表将结果表示为概率,而不是通过近似分布计算p值,该概率是从每个体验的目标量度的完整后验分布计算的。 因此,您可以连续监视​ Bayesian ​报告,因为在达到固定样本大小之前检查结果时没有统计惩罚,并且它收敛于比​ Welch的t检验 ​更小的样本的速度更快。

Bayesian​方法还允许营销人员根据过去试验和控制变体的结果引入假设。

Bayesian​方法仅适用于主要目标指标为​ 转化 ​的活动。 具有​ 收入 ​或​ 参与 ​主要目标的活动始终使用​Welch的t检验。 有关选择方法的详细信息,请参阅目标和设置。

平均提升度和可信区间

{width="35%"}

在​ Bayesian ​活动中,平均提升度和可信区间一起衡量性能改进及其不确定性。 平均提升度是处理方法和控制之间的平均百分比变化,而可信区间定义了真实提升度以指定概率下降的范围。

击败控制项的机会

{width="35%"}

击败控制体验的机会​是体验的目标量度优于​ 控制体验 ​的概率,例如,“92%的机会B击败了A”。 这是​ Bayesian ​活动的主要决策量度:当挑战者体验的​ 击败控制项的机率 ​达到该活动的决策阈值时,该体验是替换​ 控制项 ​的候选体验。

脱机执行计算

下载的CSV报表只包含原始数据。 它不包括计算量度,例如每位访客带来的收入、提升度或用于A/B测试的置信度。

要计算这些统计量,请下载Target 完整置信度计算器 Excel文件并输入活动的值。

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: This page documents the detailed statistical calculations (Welch’s t-test and Bayesian) behind the Conversion Rate, Confidence Interval, Lift, Confidence and Chance to Beat Control metrics reported for manual A/Bn tests in Adobe Target.

Intents:

  • Understand how the Conversion Rate (mean) and its Confidence Interval are calculated for each experience.
  • Understand how Lift and the Confidence Interval of Lift are calculated against the control experience.
  • Understand how Confidence is calculated with a two-tailed Welch’s t-test.
  • Understand how the Bayesian methodology expresses results, including Average Lift, the credible interval and Chance to Beat Control.
  • Find out how to perform the calculations offline.

Glossary:

  • Conversion Rate (mean) (product-specific): for each experience, the ratio of the sum of the metric to the number of units assigned to that metric.
  • Counting methodology (product-specific): determines what each unit is in the sum. With Visitors, each unit is a unique visitor, defined as a unique participant in the activity for the life of the activity. With Visits, each unit is a unique visit, defined as a unique participant in an experience during a Target session (with a unique sessionId); a new visit is counted when the sessionId changes or the visitor reaches the conversion step. With Activity Impressions, each unit is a unique impression, defined as each time a visitor loads any page of the activity.
  • Confidence Interval of Conversion Rate: the range of possible conversion rates that is consistent with the underlying data, used to quantify the uncertainty of the conversion rate, which is an estimate of the “true” conversion rate. Target always reports a 95% confidence interval.
  • Lift: the relative “delta” in conversion rates between an experience and the control experience. If the conversion rate of the control experience is 0, there is no lift.
  • Confidence Interval of Lift: the 95% confidence interval of the lift between an experience and the control experience, shown in a boxplot with the average value in the Average Lift and Confidence Interval column, calculated with the “Delta” method.
  • Confidence: the probability (denoted as a percentage) of obtaining a result as extreme as the one that is observed, given the null hypothesis is true. In terms of p-values, the confidence displayed is 1 - p-value.
  • Welch’s t-test: a two-tailed test performed between the test experience and the control experience to test if the means of the test and control experiences are the same. It does not assume that the variance of each experience is equal.
  • Bayesian: a statistical methodology whose report expresses results as probabilities, computed from the full posterior distribution of each experience’s goal metric, instead of computing a p-value from an approximated distribution.
  • Average Lift and Credible interval (Bayesian): together measure performance improvement and its uncertainty. Average lift is the mean percentage change between a treatment and the control, while the credible interval defines the range within which the true lift falls at a specified probability.
  • Chance to Beat Control (Bayesian): the probability that an experience’s goal metric outperforms the Control experience. It is the primary decision metric for a Bayesian activity: a challenger experience is a candidate to replace Control when its Chance to Beat Control meets the activity’s decision threshold.

Guardrails:

  • The Bayesian methodology is only available for activities whose primary goal metric is Conversion. Activities with a Revenue or Engagement primary goal always use Welch’s t-test.
  • The downloaded CSV report includes only raw data and does not include calculated metrics, such as revenue per visitor, lift, or confidence used for A/B tests.

Terminology:

  • Canonical name: Welch’s t-test
  • Canonical name: Confidence Interval of Mean/Conversion Rate; “mean” = “conversion rate”
  • Acronym: RPV (Revenue Per Visitor)
  • Do not confuse: “Welch’s t-test” ≠ “Student’s t-test” (Welch’s t-test is chosen instead of Student’s t-test because the variance of each experience is not assumed to be equal)

FAQ:

  • Which statistical methodologies does an A/B Test (Manual) activity support? It supports Welch’s t-test and Bayesian, selected per activity in Goals & Settings.
  • Which methodology is used for activities with a Revenue or Engagement primary goal? Welch’s t-test is used for activities with a Revenue or Engagement primary goal.
  • What confidence level does the Confidence Interval use? Target always reports a 95% confidence interval.
  • When does the lift arrow turn green or red? The arrow displays in grey until the confidence passes 95%. After confidence passes that threshold, the arrow is green or red based on a positive or negative lift.
  • Why is it safe to monitor a Bayesian report continuously? Results are expressed as probabilities computed from the full posterior distribution, so there is no statistical penalty for checking results before a fixed sample size is reached, and the Bayesian methodology can converge faster on smaller samples than Welch’s t-test.
  • How can I perform the calculations offline? Download the Target Complete Confidence Calculator Excel file to input the activity’s value.

Examples:

  • Conversion Rate report line (Welch’s t-test): for Experience A, the Conversion Rate is 25.81% with a Confidence Interval of ±7.7% and 32 conversions were recorded; given that 124 Visitors saw the experience, this equates to 32/124 = 25.81%.
  • Chance to Beat Control (Bayesian): “92% chance B beats A”.

Related pages:

  • Selecting the statistical methodology per activity, and more information about selecting a methodology: Goals & Settings (c-activities/t-test-ab/t-test-create-ab/ab-goals-and-settings.md)
  • To download the report data as a CSV file: downloaded CSV report (c-reports/c-report-settings/downloading-data-in-csv-file.md)

Personas:

  • marketer: Can read the lift arrow, which displays in grey until the confidence passes 95%. After confidence passes that threshold, the arrow is green or red based on a positive or negative lift. Can download the Target Complete Confidence Calculator Excel file to input the activity’s value. Where: “FAQ”.

Onboarding:

  • Level: Experienced
  • First minimal step: Download the Target Complete Confidence Calculator Excel file to input the activity’s value.
recommendation-more-help
target-help-main