Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
sample_df['predicted_retention_proba'] \ + effect_size * sample_df.treatment The last step is to define, based on probability, whether the customer is retained or not. We used uniform distribution (random number between 0 and 1) for that: if a random value from a uniform distribution is below