The Data Science Workshop
by Anthony So, Thomas Joseph, Robert Thas John, Andrew Worsley, Dr. Samuel Asare, Ivan Liu, Tiffany Ford, Barbora stetinova, Pritesh Tiwari
2. Regression
Overview
By the end of this chapter, you will be able to identify and import the Python modules required for regression analysis; use the pandas module to load a dataset and prepare it for regression analysis; create a scatter plot of bivariate data and fit a regression line through it; use the methods available in the Python statsmodels module to fit a regression model to a dataset; explain the results of simple and multiple linear regression analysis; assess the goodness of fit of a linear regression model; and apply linear regression analysis as a tool for practical problem-solving.
This chapter is an introduction to linear regression analysis and its application to practical problem-solving in data science. You will learn ...
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