1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Predictive Analytics in Python

Exercise

Using different sets of variables

Adding more variables and therefore more complexity to your logistic regression model does not automatically result in more accurate models. In this exercise you can verify whether adding 3 variables to a model leads to a more accurate model.

variables_1 and variables_2 are available in your environment: you can print them to the console to explore what they look like.

Instructions

100 XP
  • Fit the logreg model using variables_2 which contains 3 additional variables compared to variables_1.
  • Make predictions for this model.
  • Calculate the AUC of this model.