Skip to Content
Python: Advanced Predictive Analytics
book

Python: Advanced Predictive Analytics

by Ashish Kumar, Joseph Babcock
December 2017
Beginner to intermediate
660 pages
15h 31m
English
Packt Publishing
Content preview from Python: Advanced Predictive Analytics

Handling other issues in linear regression

So far in this chapter, we have learnt:

  • How to implement a linear regression model using two methods
  • How to measure the efficiency of the model using model parameters

However, there are other issues that need to be taken care of while dealing with data sources of different types. Let's go through them one by one. We will be using a different (simulated) dataset to illustrate these issues. Let's import it and have a look at it:

import pandas as pd
df=pd.read_csv('E:/Personal/Learning/Predictive Modeling Book/Book Datasets/Linear Regression/Ecom Expense.csv')
df.head()

We should get the following output:

Handling other issues in linear regression

Fig. 5.17: ...

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.
Start your free trial

You might also like

Mastering Predictive Analytics with Python

Mastering Predictive Analytics with Python

Joseph Babcock

Publisher Resources

ISBN: 9781788992367Supplemental Content