Session Ready
Exercise

Compute odds and probabilities

In this exercise you will review the concept of odds and their relationship to probabilities.

Recall the formulas from the video:

$$ \text{odds} = \frac{\text{event occurring}}{\text{event NOT occurring}} $$

and odds in terms of probabilities

$$ \text{odds} = \frac{\text{probability}}{1-\text{probability}} $$

Instructions 1/3
undefined XP
  • 1

    An athlete competes in 60 races and wins 15 times.

    • Compute and print the odds of winning.
    • 2

      An athlete competes in 60 races and wins 15 times.

      • Compute and print the probability of winning.
    • 3
      • Compute and print the odds using the computed probabilities from previous exercise.