Skip to content

Instantly share code, notes, and snippets.

@axs
Created March 28, 2018 10:41
Show Gist options
  • Save axs/f20ba36135c57e2ec294ab5106bfaad0 to your computer and use it in GitHub Desktop.
Save axs/f20ba36135c57e2ec294ab5106bfaad0 to your computer and use it in GitHub Desktop.
percentile_to_probability
def percentile_to_probability (hits, percentile):
""" hits 190
percentile .99
desc: given a 99 percentile what is the probability of seeing it in 190 attempts
"""
return (1-(percentile**hits)) * 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment