Running a multivariate A/B test involves testing multiple variables simultaneously to determine which combination performs best. Let's imagine we're testing a new landing page for an e-commerce website, and we want to optimize both the headline and the call-to-action (CTA) button color.
Scenario Overview
- Objective: Increase conversion rates on a landing page.
- Variables:
- Headline: Version A ("Huge Discounts on Electronics") vs. Version B ("The Best Tech Deals of the Year")
- CTA Button Color: Version 1 (Blue) vs. Version 2 (Green)
- Metrics: Conversion rate, defined as the percentage of visitors who make a purchase.
Test Design
-
Identify combinations:
- Headline A with CTA 1
- Headline A with CTA 2
- Headline B with CTA 1
- Headline B with CTA 2
-
Split traffic: Randomly divide the incoming traffic evenly across the four combinations.
Data Collection
Suppose over a week, the results are as follows:
- Group 1 (A1): Headline A + CTA 1: 25,000 visitors, 1,000 conversions.
- Group 2 (A2): Headline A + CTA 2: 25,000 visitors, 1,100 conversions.
- Group 3 (B1): Headline B + CTA 1: 25,000 visitors, 1,050 conversions.
- Group 4 (B2): Headline B + CTA 2: 25,000 visitors, 1,200 conversions.
Calculate Conversion Rates
For each group, calculate the conversion rate:
[ CR_{A1} = \frac{1,000}{25,000} = 0.04 , (4%) ]
[ CR_{A2} = \frac{1,100}{25,000} = 0.044 , (4.4%) ]
[ CR_{B1} = \frac{1,050}{25,000} = 0.042 , (4.2%) ]
[ CR_{B2} = \frac{1,200}{25,000} = 0.048 , (4.8%) ]
Statistical Analysis
1. Hypothesis Testing
We want to determine if the differences in conversion rates are statistically significant. We'll use a chi-squared test for independence, as we're testing combinations of categorical variables.
Null Hypothesis
- ( H_0 ): There is no difference in conversion rates between the variable combinations.
Alternative Hypothesis
- ( H_a ): At least one combination has a statistically different conversion rate.
2. Chi-squared Test for Independence
First, calculate the expected frequencies for each group assuming the null hypothesis is true.
[ \text{Expected frequency (E)} = \frac{(\text{Row total} \times \text{Column total})}{\text{Grand total}} ]
Compute chi-squared (( \chi^2 )) statistic:
[ \chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} ]
where ( O_i ) is the observed frequency, and ( E_i ) is the expected frequency.
Calculate degrees of freedom:
[ \text{df} = (r-1) \times (c-1) ]
where ( r ) is the number of levels for headlines, and ( c ) is the number of levels for CTAs.
Using a chi-squared distribution table, determine the critical value at a significance level (typically 0.05) for the degrees of freedom calculated.
3. P-Value Calculation
Calculate the p-value based on the chi-squared test statistic. If the p-value is less than 0.05, we reject the null hypothesis, indicating that there is a significant difference in performance between the combinations.
Conclusion
Supposing our chi-squared test yields a p-value of 0.03, we would reject the null hypothesis, meaning that certain combinations (likely Headline B with CTA 2) significantly outperform others.
Follow-up Action
Given Headline B and CTA 2 (Green) shows the highest conversion rates, we recommend adopting this combination for the landing page.
By running this test, the business can better understand user preferences and optimize their website for higher revenue.