Blogs · Statistics · A/B testing

A brief Intro to A/B Testing

A Recap of Fundamental Concept: A/B Testing

2019.12.20 · 6 min read · by Zhenlin Wang · updated 2022-08-19

Introduction

A/B testing is a type of hypothesis testing commonly used in business. It is mainly useful on for products that are mature and is suitable for fast iterative product development. The main idea is to assume a new modification is useful and take trials/experiments upon the modified product. Next, using the old version as a reference, see how significant is the improvement brought by the new modification.

Note: When we say new modification, it must be warned that the change should contain only one factor, otherwise the influence can be compounded.

11 Steps in A/B Testing

  1. First time trying something new: run an A/A testing simultaneously to check for systematic biases
  1. Define the goal and form hypothesis
  1. Identify control and treatment groups
  1. Identify KPI/metrics to measure
  1. Identify what data needs to be collected
credit: https://clevertap.com/blog/funnel-analysis.
  1. Make sure that appropriate logging is in place to collect all necessary data
  2. Determine how small of a difference can be (define significance level and thus power of the experiment)
  1. Determine what fraction of visitors should be in the treatment group (control/treatment split ratio)
  2. Run a power analysis to decie how much data is needed to collet and how long to run the test
  1. (*) For comparing ML algorithms, consider McNamer’s Test or 5x2 CV or Nonparametric Paired Test. You can find the details in this post
  2. Sanity Checks and post-experiment validation: Ensure to take a review of all the executions, subjects and objectives are as expected.

Before you run A/B testing…

1. Why should you run a A/B test?

2. When to run experiments

3. When not to run experiments

A closer look at Type I and Type II errors

1. Terminology

2. Type 1 Error

3. Type 2 Error

Toolkits

  1. Usually the test plan/create variation step can be executed with company’s own techpack, or using some popular tools
  1. For hypo testing and result analysis: online resources of excel’s A/B testing macro are widely available