Geek Culture
Published in

Geek Culture

How to calculate probability versus odds using Python

The probability that an event will occur is a fraction of times you expect to see that event in many trials. Probabilities always range between 0 and 1. The formula for calculating a probability is:-

The odds are defined as the probability that the event will occur divided by the probability that the event will not occur. The formula for calculating odds is:-

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tracyrenee

Tracyrenee

585 Followers

I have close to five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.