Lably
Skip to content

A/B testing

Experiment methodology

  • 9 min read
  • 6 chapters
Example of A/B testing on a website. This file was derived from: A-B testing simple example.png :
Maxime Lorant · CC BY-SA 4.0

Related on Lably

Through Statistical hypothesis test, Statistics and Variable (mathematics)

Multivariate testing or multinomial testing is similar to A/B testing but may test more than two versions at the same time or use more controls. Simple A/B tests are not valid for observational, quasi-experimental or other non-experimental situations—commonplace with survey data, offline data, and other, more complex phenomena.

Definition

"A/B testing" is a shorthand for a simple randomized controlled experiment, in which a number of samples (e.g. A and B) of a single vector-variable are compared. A/B tests are widely considered the simplest form of controlled experiment, especially when they only involve two variants. However, by adding more variants to the test, its complexity grows.

The following example illustrates an A/B test with a single variable:

A company has a customer database of 2,000 people and launches an email campaign with a discount code in order to generate sales through its website. The company creates two versions of the email with different calls to action (the part of the copy that encourages customers to act—in the case of a sales campaign, make a purchase) and identifying promotional codes.

  • To 1,000 people, the company sends an email with the call to action stating "Offer ends this Saturday! Use code A1",
  • To the remaining 1,000 people, it sends an email with the call to action stating "Offer ends soon! Use code B1".
  • All other elements of the emails' copy and layout are identical.

The company then monitors which campaign has the higher success rate by analyzing the use of the promotional codes. The email using the code A1 has a 5% response rate (50 of the 1,000 people emailed used the code to buy a product), and the email using the code B1 has a 3% response rate (30 of the recipients used the code to buy a product). The company therefore determines that in this instance, the first call to action is more effective and will use it in future sales. A more nuanced approach would involve applying statistical testing to determine whether the differences in response rates between A1 and B1 were statistically significant (highly likely that the differences are real, repeatable and not the result of random chance).

In the previous example, the purpose of the test is to determine the more effective strategy for encouraging customers to make a purchase. If, however, the aim of the test had been to determine which email would generate a higher click-through rate (the percentage of people who actually click the link after receiving the email), the results might have been different.

For example, even though more of the customers receiving the code B1 accessed the website, because the call to action did not state the end date of the promotion, many recipients may feel no urgency to make an immediate purchase. Consequently, if the purpose of the test had been simply to determine which email would bring more traffic to the website, the email containing code B1 might well have been more successful. An A/B test should have a defined, measurable outcome, such as sales converted, clickthrough rate or registration rate.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics and probability