Skip to main content

Section 9.1 Introduction

Two chapters ago, we did a great job of creating linear regression models, which was the first time in this book that we created prediction models. With a lot of TLC, we created a y = mx + b (rhymed on purpose) so that whatever future of value of x we had, we could predict what y would be.
However, that was when we had numeric data. What happens when we do not have any numeric data? From our last chapter, we know that is where a chi-square comes in, but what if we want to still do some predicting? This is exactly where Logistic Regression comes into play.

The question we are trying to answer is:.

Can we predict if someone will default on their credit cards based on other factors about them?
Could you have predicted that there would be another chapter about making predictions...?
Using the ISLR2 package, we will be working with the Default dataset.