CommencerCommencer gratuitement

Randomization effects

Random assignment plays a critical role in A/B testing. Imagine you are a Data Scientist setting up an experiment to test the effects of different checkout page designs on business metrics.

You will explore sampling a percentage of users to simulate random enrollment of traffic into the experiment and check the distributions of certain attributes across randomly assigned users in each group. This allows you to verify the ability to generalize to the general traffic population, and isolate the impact of the one variable we are changing across groups: the check out page design.

checkout DataFrame is loaded for you. Assume every row in the DataFrame corresponds to a unique user visiting the respective checkout_page along with their actions and additional attributes.

Cet exercice fait partie du cours

A/B Testing in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Determine the normalized distribution of browser counts
checkout['browser'].____(normalize = ____)
Modifier et exécuter le code