Statistical calculations in A/Bn tests
This article documents the detailed statistical calculations used in manual A/Bn tests in Adobe Target. Definitions are provided for Conversion Rate, Confidence Interval of Conversion Rate, Lift, Confidence Interval for Lift, Confidence, and Bayesian decision metrics.
An A/B Test (Manual) activity supports two statistical methodologies, selected per activity in Goals & Settings:
-
Welch’s t-test: a frequentist methodology that reports a Confidence percentage and confidence interval, based on a fixed-sample-size hypothesis test. Used for activities with a Revenue or Engagement primary goal.
-
Bayesian: reports results as probabilities, such as Chance to Beat Control and credible intervals, computed from the full posterior distribution of each experience’s goal metric. This setting is only available for activities whose primary goal metric is Conversion.
Welch’s t-test
Mean performance
The following section explains the calculations used in the following illustration.
Conversion Rate and Revenue Per Visitor (RPV) Campaigns
The following illustration shows Conversion Rate, Confidence Interval of Conversion Rate, and the number of Conversions in a Target report. For example, the first line shows that 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%.
The conversion rate or mean, μν, for each experience ν in an experiment is defined as a ratio of the sum of the metric to the number of units assigned to that metric, Nν:
Here,
-
Yiν is the value of the metric for each unit i, that has been assigned to a given experience ν.
-
The sum over units i depends on the choice of counting methodology.
- If Visitors is used as the counting methodology, each unit is a unique visitor defined as a unique participant in the activity for the life of the activity.
- If Visits is used as the counting methodology, each unit is a unique visit defined as a unique participant in an experience during a Target session (with a unique
sessionId). When thesessionIdchanges, or the visitor reaches the conversion step, a new visit is counted. - If Activity Impressions is used as the counting methodology, each unit is a unique impression defined as each time a visitor loads any page of the activity.
Confidence Interval of Mean/Conversion Rate
The confidence interval of the conversion rate is intuitively defined as range of possible conversion rates that is consistent with the underlying data.
When running experiments, the conversion rate for a given experience is an estimate of the “true” conversion rate. To quantify the uncertainty in this estimate, Target uses a confidence interval. Target always reports a 95% confidence interval, which means that in the end, 95% of confidence intervals calculated include the true conversion rate of the experience.
A “Confidence” number is also reported next to the currently leading or winning experience. This figure is reported only until the leading experience’s Confidence reaches at least 60%. If two experiences are present in the activity, this number represents the confidence level that the experience is performing better than the other experience. If more than two experiences are present in the activity, this number represents the confidence level that the experience is performing better than the defined “Control” experience. If the “Control” experience is winning, no “Confidence” figure is reported.
A 95% confidence interval of conversion rate μν is defined as the range of values:
Where the standard error for the mean is defined as
Where an unbiased estimate of the sample standard deviation is used:
When the campaign is a conversion rate campaign (i.e., the conversion metric is binary), the standard error reduces to:
Lift
The following illustration shows Lift and Confidence Interval of Lift in a Target Report. The number represents the average of the range of the lift bounds, and the arrow reflects if the lift is positive or negative. The arrow displays in grey until the confidence passes 95%. After confidence passes the threshold, the arrow is green or red based on a positive or negative lift.
The lift between an experience ν, and the control experience ν0 is the relative “delta” in conversion rates, defined as
Where the individual conversion rates are as defined above. More simply,
Lift(Experience N) = (Performance_Experience_N - Performance_Control)/ Performance_Control
If the conversion rate of the control experience ν0 is 0, there is no lift.
Confidence Interval of Lift
The boxplot graph in the Average Lift and Confidence Interval column represents the average value and 95% Confidence Interval of Lift. The boxplot is grey when there is any overlap in the confidence interval of a given non-control experience with the confidence interval of control experience. The boxplot is green or red when the range of given experience’s confidence interval is above or below the confidence interval of control experience.
The standard error of the lift between an experience ν, and the control experience ν0 is defined as:
Then the 95% Confidence Interval of the lift is:
This calculation uses the “Delta” method, and is described in more detail in this document
Confidence
The last column shows the confidence in a Target report. The confidence of an experience is a 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. Intuitively, higher confidence means that it is less likely that the control and non-control experience have equal conversion rates.
In Target, a two-tailed Welch’s t-test is performed between the test experience and the control experience to test if the means of test and control experiences are the same. Because we usually do not know if sample sizes and variances of two groups are the same before running the experiment, and Target also allows you to have unequal percentages of traffic sent to each experience, we do not assume that the variance for each experience is equal. Thus, Welch’s t-test is chosen instead of Student’s t-test.
To perform Welch’s t-test, we first start calculating the t-statistic and the degrees of freedom, then run a two-tailed t-test to generate the p-value. Finally, we calculate the confidence based on p-value.
The t-statistic is defined to be the difference of the means of any two independent random variables, ν and ν0, divided by the standard error of the difference:
Where μv and μv0 are the means of ν and ν0 respectively, and the standard error of the difference between μv and μv0 are given by:
Where σ2v and σ2v0 are the variances of two experiences ν and ν0 respectively, and Nv and Nv0 are sample sizes for ν and ν0 respectively.
For Welch’s t-test, the degree of freedom is calculated as following:
And degree of freedom for ν and ν0 are defined as:
Then the p-value can be computed from the area in the tails of the t-distribution:
Finally, the confidence reported in Target is defined as:
Bayesian statistics
Instead of computing a p-value from an approximated distribution, a Bayesian activity’s report expresses results as probabilities, computed from the full posterior distribution of each experience’s goal metric. This makes it safe to monitor a Bayesian report continuously, since there is no statistical penalty for checking results before a fixed sample size is reached, and it can converge faster on smaller samples than Welch’s t-test.
The Bayesian methodology also lets marketers feed in a hypothesis based on their past experimentation and results for the control variant.
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. For more information about selecting a methodology, see Goals and settings.
Average Lift and Credible interval
Average lift and the credible interval together measure performance improvement and its uncertainty in a Bayesian activity. 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
Chance to Beat Control is the probability that an experience’s goal metric outperforms the Control experience, for example, “92% chance B beats A”. This 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.
Performing Calculations offline
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.
To compute these statistical quantities, download the Target Complete Confidence Calculator Excel file to input the activity’s value.
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 thesessionIdchanges 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.