Chapter 5
The Plot Thickens: Regression Models
IN THIS CHAPTER
Reviewing linear relationships between data and outcomes
Evaluating a model with the coefficient of determination
Implementing a linear regression model manually in Python
Implementing a linear regression model in scikit-learn
In the wild world of AI models, it’s tempting to pick the shiniest new offering on the market. Sometimes, of course, the latest is truly the greatest for the task at hand. This chapter covers a more humble model with a long, storied history of use: linear regression. However, you probably won’t find many practitioners who consider linear regression a true AI model. We include it in the book for a few reasons:
- Linear regression is trained by learning parameters from existing data, which fits the mold for supervised machine learning models.
- Linear regression is simple to implement, understand, and use.
- In actual analytical practice, linear regression is very popular!
In this chapter, you dive into the relationship between independent variables and outcomes and how they are modeled with the equation ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access