Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
random subset from the population equal to the sample size, randomly split these customers into control and experiment groups and add an effect equal to the effect size for the treatment group. All this logic is implemented in get_sample_for_value function below. def get_sample_for_value(pop_df,