Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
treatment effects into the get_ci_for_value function. def get_ci_for_value(df, boot_iters, confidence_level): tmp_data = [] for iter in range(boot_iters): sample_df = df.sample(df.shape[0], replace = True) val_model = smf.ols('predicted_value ~ treatment + num_family_members +