1. Учиться
  2. /
  3. Courses
  4. /
  5. Introduction to Regression with statsmodels in Python

Connected

Exercise

Odds

Odds compare the probability of something happening with the probability of it not happening. This is sometimes easier to reason about than probabilities, particularly when you want to make decisions about choices. For example, if a customer has a 20% chance of churning, it may be more intuitive to say "the chance of them not churning is four times higher than the chance of them churning".

mdl_churn_vs_relationship, explanatory_data, and prediction_data are available from the previous exercise.

Инструкции 1 / 2

undefined XP
    1
    2
  • Update prediction_data to add a column, odds, of the odds.
  • Print the first five lines of prediction_data.