BaşlayınÜcretsiz başlayın

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}} $$

Bu egzersiz, kursun bir parçasıdır

Generalized Linear Models in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Compute the odds
odds = ____/(____-____)

# Print the result
print('Odds are: ', round(____,3))
Kodu Düzenle ve Çalıştır