HomePythonIntermediate Regression with statsmodels in Python

# Intermediate Regression with statsmodels in Python

4.4+
14 reviews
Intermediate

Learn to perform linear and logistic regression with multiple explanatory variables.

4 hours14 videos52 exercises

or

Training 2 or more people?Try DataCamp For Business

## Course Description

Linear regression and logistic regression are the two most widely used statistical models and act like master keys, unlocking the secrets hidden in datasets. In this course, you’ll build on the skills you gained in "Introduction to Regression in Python with statsmodels", as you learn about linear and logistic regression with multiple explanatory variables. Through hands-on exercises, you’ll explore the relationships between variables in real-world datasets, Taiwan house prices and customer churn modeling, and more. By the end of this course, you’ll know how to include multiple explanatory variables in a model, discover how interactions between variables affect predictions, and understand how linear and logistic regression work.

### .css-1goj2uy{margin-right:8px;}Group.css-gnv7tt{font-size:20px;font-weight:700;white-space:nowrap;}.css-12nwtlk{box-sizing:border-box;margin:0;min-width:0;color:#05192D;font-size:16px;line-height:1.5;font-size:20px;font-weight:700;white-space:nowrap;}Training 2 or more people?

Try DataCamp for BusinessFor a bespoke solution book a demo.

Go To Track
1. 1

### Parallel Slopes

Free

Extend your linear regression skills to parallel slopes regression, with one numeric and one categorical explanatory variable. This is the first step towards conquering multiple linear regression.

Play Chapter Now
Parallel slopes linear regression
50 xp
Fitting a parallel slopes linear regression
100 xp
Interpreting parallel slopes coefficients
100 xp
Visualizing each explanatory variable
100 xp
Visualizing parallel slopes
100 xp
Predicting parallel slopes
50 xp
Predicting with a parallel slopes model
100 xp
Visualizing parallel slopes model predictions
100 xp
Manually calculating predictions
100 xp
Assessing model performance
50 xp
Comparing coefficients of determination
100 xp
Comparing residual standard error
100 xp
2. 2

### Interactions

Explore the effect of interactions between explanatory variables. Considering interactions allows for more realistic models that can have better predictive power. You'll also deal with Simpson's Paradox: a non-intuitive result that arises when you have multiple explanatory variables.

3. 3

### Multiple Linear Regression

See how modeling and linear regression make it easy to work with more than two explanatory variables. Once you've mastered fitting linear regression models, you'll get to implement your own linear regression algorithm.

4. 4

### Multiple Logistic Regression

Extend your logistic regression skills to multiple explanatory variables. You’ll also learn about logistic distribution, which underpins this form of regression, before implementing your own logistic regression algorithm.

### In the following Tracks

#### Statistics Fundamentals with Python

Go To Track

datasets

Ad conversionCustomer churnTaiwan real estateFish measurement dataeBay auctions

collaborators

Maarten Van den Broeck

Senior Content Developer at DataCamp

Maarten is an aquatic ecologist and teacher by training and a data scientist by profession. He is also a certified Power BI and Tableau data analyst. After his career as a PhD researcher at KU Leuven, he wished that he had discovered DataCamp sooner. He loves to combine education and data science to develop DataCamp courses. In his spare time, he runs a symphonic orchestra.
See More

## Don’t just take our word for it

*4.4
from 14 reviews
50%
43%
7%
0%
0%
Sort by
• Ana U.
7 months

This is an excellent course. The instructor and the content of the course are extraordinary. The exercises are challenging and are created to stimulate the desire to learn more about the topic. I learned and enjoyed a great deal.

• Noel C.
9 months

The best teacher in DataCamp

• Ildar K.
10 months

i hope that this course would help to furhter career, 10x!

• Yannick D.
over 1 year

I like the process used by Datacamp to teach us each subject. The interface is really easy and effecient to use. Learning programming is fun.

• Joanna K.
over 1 year

Easy to understand, good job :)

"This is an excellent course. The instructor and the content of the course are extraordinary. The exercises are challenging and are created to stimulate the desire to learn more about the topic. I learned and enjoyed a great deal."

Ana U.

"The best teacher in DataCamp"

Noel C.

"i hope that this course would help to furhter career, 10x!"

Ildar K.