LoslegenKostenlos loslegen

Simpson's paradox in action

Generalizing our A/B test results to different segments of the population can be of utmost importance to the business. Sometimes we want to save the cost of running other tests in different cities, by different devices, etc. Making sure that our results are consistent by subpopulations can increase our confidence to make such generalizations.

Examine the simp_balanced and simp_imbalanced datasets for Simpson's paradox to gain a good sense for how this phenomena can occur in A/B testing scenarios.

Diese Übung ist Teil des Kurses

A/B Testing in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Calculate the conversion rate per variant and then browser
imbalanced_variant_rate = simp_imbalanced.____('____')['____'].____()
imbalanced_variant_browser_rate = simp_imbalanced.____(['____','____'])['____'].____()

print(imbalanced_variant_rate)
print(imbalanced_variant_browser_rate)
Code bearbeiten und ausführen