Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
YStrano
GitHub Repository: YStrano/DataScience_GA
Path: blob/master/april_18/lessons/lesson-05/code/starter-code/starter-code-5.ipynb
1905 views
Kernel: Python 2

Probability, Odds, and Odds ratios

Probability: the number of ways that an event can occur divided by the total number of possible outcomes.

The probability of drawing a red card from a standard deck of cards is 26/52 (50 percent). The probability of drawing a club from that deck is 13/52 (25 percent)

What's the probability of getting heads in a fair coin flip?

The odds for an event is the ratio of the number of ways the event can occur compared to the number of ways it does not occur.

For example, using the same events as above, the odds for: drawing a red card from a standard deck of cards is 1:1; and drawing a club from that deck is 1:3.

What's the odds of a fair coin flip?

Suppose that 18 out of 20 patients in an experiment lost weight while using diet A, while 16 out of 20 lost weight using diet B.

What's the probability of weight loss with diet A? What's the odds?

What's the probablity of weight loss with diet B? What's the odds?

What's the odds ratio?