1. Learn
  2. /
  3. Courses
  4. /
  5. HarvardX Data Science Module 4 - Inference and Modeling

Exercise

Exercise 3 - Odds Ratio Calculation

It doesn't look like the grade A- polls performed significantly differently than the grade C- polls in their states.

Calculate the odds ratio to determine the magnitude of the difference in performance between these two grades of polls.

Instructions

100 XP
  • Calculate the odds that a grade C- poll predicts the correct winner. Save this result to a variable called odds_C.
  • Calculate the odds that a grade A- poll predicts the correct winner. Save this result to a variable called odds_A.
  • Calculate the odds ratio that tells us how many times larger the odds of a grade A- poll is at predicting the winner than a grade C- poll.