Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
= smf.logit('retention ~ num_family_members', data = pop_df)\ .fit(disp = 0) tmp_pop_df = pop_df.copy() tmp_pop_df['predicted_retention_proba'] = base_ret_model.predict() Then, we got a random sample equal to the size and split it into a control and test group. sample_df =