Created
March 28, 2018 10:41
-
-
Save axs/f20ba36135c57e2ec294ab5106bfaad0 to your computer and use it in GitHub Desktop.
percentile_to_probability
This file contains 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
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