O'Reilly logo

Mastering Python for Data Science by Samir Madhavan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiple regression

Multiple linear regression occurs when more than one independent variable is used to predict a dependent variable:

Multiple regression

Where, Y is the dependent variable, a is the intercept, b1 and b2 are the coefficients, and x1 and x2 are the independent variables

Also, note that squaring the dependent variable still makes it linear, but if the coefficient is squared, then it is nonlinear.

To build the multiple linear regression model, we'll utilize the NBA's basketball data to predict the average points scored per game

The following are the column descriptions of the data:

  • height: This refers to the height in feet
  • weight: This refers to the weight ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required