Skip to content

Instantly share code, notes, and snippets.

@eustin
Created May 15, 2023 22:57
Show Gist options
  • Save eustin/1e2e159dae99f0835cb7d84390abfed6 to your computer and use it in GitHub Desktop.
Save eustin/1e2e159dae99f0835cb7d84390abfed6 to your computer and use it in GitHub Desktop.
stat_sig_random_18
sampling_specialness_result = (sampled_diffs >= observed_diff_in_rates).sum() / sampled_diffs.shape[0]
print(f"sampled 'specialness' result: {sampling_specialness_result:.2%}")
#> sampled 'specialness' result: 3.41%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment