Skip to content

Instantly share code, notes, and snippets.

@frank184
Created October 13, 2017 17:17
Show Gist options
  • Save frank184/85a280abca7d03d50aebc167be55e973 to your computer and use it in GitHub Desktop.
Save frank184/85a280abca7d03d50aebc167be55e973 to your computer and use it in GitHub Desktop.
module Probabilities
def prob(event_percentage, event_frequency = 1)
event_percentage ** event_frequency
end
def inverse_prob(event_percentage, event_frequency = 1)
1 - prob(event_percentage, event_frequency)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment