Created
May 15, 2023 22:49
-
-
Save eustin/93e3abc81b0ad8ac514140d6af4a6c4f to your computer and use it in GitHub Desktop.
stat_sig_random_9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NUM_SIMULATIONS = 10_000 | |
simulated_diffs_in_rates = [] | |
for _ in range(NUM_SIMULATIONS): | |
rng.shuffle(all_users) | |
control_conversion_rate = all_users[:NUM_CONTROL_USERS].mean() | |
variant_conversion_rate = all_users[NUM_CONTROL_USERS:].mean() | |
simulated_diffs_in_rates.append(variant_conversion_rate - control_conversion_rate) | |
simulated_diffs_in_rates = np.array(simulated_diffs_in_rates) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment