Complete Linear Regression Analysis in Python

Linear Regression in Python| Simple Regression, Multiple Regression, Ridge Regression, Lasso and subset selection also

4.61 (1260 reviews)
Data Science
7.5 hours
Jan 2022
last update
regular price

What you will learn

Learn how to solve real life problem using the Linear Regression technique

Preliminary analysis of data using Univariate and Bivariate analysis before running Linear regression

Predict future outcomes basis past data by implementing Simplest Machine Learning algorithm

Understand how to interpret the result of Linear Regression model and translate them into actionable insight

Understanding of basics of statistics and concepts of Machine Learning

Indepth knowledge of data collection and data preprocessing for Machine Learning Linear Regression problem

Learn advanced variations of OLS method of Linear Regression

Course contains a end-to-end DIY project to implement your learnings from the lectures

How to convert business problem into a Machine learning Linear Regression problem

Basic statistics using Numpy library in Python

Data representation using Seaborn library in Python

Linear Regression technique of Machine Learning using Scikit Learn and Statsmodel libraries of Python


You're looking for a complete Linear Regression course that teaches you everything you need to create a Linear Regression model in Python, right?

You've found the right Linear Regression course!

After completing this course you will be able to:

  • Identify the business problem which can be solved using linear regression technique of Machine Learning.

  • Create a linear regression model in Python and analyze its result.

  • Confidently practice, discuss and understand Machine Learning concepts

A Verifiable Certificate of Completion is presented to all students who undertake this Machine learning basics course.

How this course will help you?

If you are a business manager or an executive, or a student who wants to learn and apply machine learning in Real world problems of business, this course will give you a solid base for that by teaching you the most popular technique of machine learning, which is Linear Regression

Why should you choose this course?

This course covers all the steps that one should take while solving a business problem through linear regression.

Most courses only focus on teaching how to run the analysis but we believe that what happens before and after running analysis is even more important i.e. before running analysis it is very important that you have the right data and do some pre-processing on it. And after running analysis, you should be able to judge how good your model is and interpret the results to actually be able to help your business.

What makes us qualified to teach you?

The course is taught by Abhishek and Pukhraj. As managers in Global Analytics Consulting firm, we have helped businesses solve their business problem using machine learning techniques and we have used our experience to include the practical aspects of data analysis in this course

We are also the creators of some of the most popular online courses - with over 150,000 enrollments and thousands of 5-star reviews like these ones:

This is very good, i love the fact the all explanation given can be understood by a layman - Joshua

Thank you Author for this wonderful course. You are the best and this course is worth any price. - Daisy

Our Promise

Teaching our students is our job and we are committed to it. If you have any questions about the course content, practice sheet or anything related to any topic, you can always post a question in the course or send us a direct message.

Download Practice files, take Quizzes, and complete Assignments

With each lecture, there are class notes attached for you to follow along. You can also take quizzes to check your understanding of concepts. Each section contains a practice assignment for you to practically implement your learning.

What is covered in this course?

This course teaches you all the steps of creating a Linear Regression model, which is the most popular Machine Learning model, to solve business problems.

Below are the course contents of this course on Linear Regression:

  • Section 1 - Basics of Statistics

    This section is divided into five different lectures starting from types of data then types of statistics

    then graphical representations to describe the data and then a lecture on measures of center like mean

    median and mode and lastly measures of dispersion like range and standard deviation

  • Section 2 - Python basic

    This section gets you started with Python.

    This section will help you set up the python and Jupyter environment on your system and it'll teach

    you how to perform some basic operations in Python. We will understand the importance of different libraries such as Numpy, Pandas & Seaborn.

  • Section 3 - Introduction to Machine Learning

    In this section we will learn - What does Machine Learning mean. What are the meanings or different terms associated with machine learning? You will see some examples so that you understand what machine learning actually is. It also contains steps involved in building a machine learning model, not just linear models, any machine learning model.

  • Section 4 - Data Preprocessing

    In this section you will learn what actions you need to take a step by step to get the data and then prepare it for the analysis these steps are very important.

    We start with understanding the importance of business knowledge then we will see how to do data exploration. We learn how to do uni-variate analysis and bi-variate analysis then we cover topics like outlier treatment, missing value imputation, variable transformation and correlation.

  • Section 5 - Regression Model

    This section starts with simple linear regression and then covers multiple linear regression.

    We have covered the basic theory behind each concept without getting too mathematical about it so that you understand where the concept is coming from and how it is important. But even if you don't understand it,  it will be okay as long as you learn how to run and interpret the result as taught in the practical lectures.

    We also look at how to quantify models accuracy, what is the meaning of F statistic, how categorical variables in the independent variables dataset are interpreted in the results, what are other variations to the ordinary least squared method and how do we finally interpret the result to find out the answer to a business problem.

By the end of this course, your confidence in creating a regression model in Python will soar. You'll have a thorough understanding of how to use regression modelling to create predictive models and solve business problems.

Go ahead and click the enroll button, and I'll see you in lesson 1!


Start-Tech Academy


Below is a list of popular FAQs of students who want to start their Machine learning journey-

What is Machine Learning?

Machine Learning is a field of computer science which gives the computer the ability to learn without being explicitly programmed. It is a branch of artificial intelligence based on the idea that systems can learn from data, identify patterns and make decisions with minimal human intervention.

What is the Linear regression technique of Machine learning?

Linear Regression is a simple machine learning model for regression problems, i.e., when the target variable is a real value.

Linear regression is a linear model, e.g. a model that assumes a linear relationship between the input variables (x) and the single output variable (y). More specifically, that y can be calculated from a linear combination of the input variables (x).

When there is a single input variable (x), the method is referred to as simple linear regression.

When there are multiple input variables, the method is known as multiple linear regression.

Why learn Linear regression technique of Machine learning?

There are four reasons to learn Linear regression technique of Machine learning:

1. Linear Regression is the most popular machine learning technique

2. Linear Regression has fairly good prediction accuracy

3. Linear Regression is simple to implement and easy to interpret

4. It gives you a firm base to start learning other advanced techniques of Machine Learning

How much time does it take to learn Linear regression technique of machine learning?

Linear Regression is easy but no one can determine the learning time it takes. It totally depends on you. The method we adopted to help you learn Linear regression starts from the basics and takes you to advanced level within hours. You can follow the same, but remember you can learn nothing without practicing it. Practice is the only way to remember whatever you have learnt. Therefore, we have also provided you with another data set to work on as a separate project of Linear regression.

What are the steps I should follow to be able to build a Machine Learning model?

You can divide your learning process into 4 parts:

Statistics and Probability - Implementing Machine learning techniques require basic knowledge of Statistics and probability concepts. Second section of the course covers this part.

Understanding of Machine learning - Fourth section helps you understand the terms and concepts associated with Machine learning and gives you the steps to be followed to build a machine learning model

Programming Experience - A significant part of machine learning is programming. Python and R clearly stand out to be the leaders in the recent days. Third section will help you set up the Python environment and teach you some basic operations. In later sections there is a video on how to implement each concept taught in theory lecture in Python

Understanding of Linear Regression modelling - Having a good knowledge of Linear Regression gives you a solid understanding of how machine learning works. Even though Linear regression is the simplest technique of Machine learning, it is still the most popular one with fairly good prediction ability. Fifth and sixth section cover Linear regression topic end-to-end and with each theory lecture comes a corresponding practical lecture where we actually run each query with you.

Why use Python for data Machine Learning?

Understanding Python is one of the valuable skills needed for a career in Machine Learning.

Though it hasn’t always been, Python is the programming language of choice for data science. Here’s a brief history:

    In 2016, it overtook R on Kaggle, the premier platform for data science competitions.

    In 2017, it overtook R on KDNuggets’s annual poll of data scientists’ most used tools.

    In 2018, 66% of data scientists reported using Python daily, making it the number one tool for analytics professionals.

Machine Learning experts expect this trend to continue with increasing development in the Python ecosystem. And while your journey to learn Python programming may be just beginning, it’s nice to know that employment opportunities are abundant (and growing) as well.

What is the difference between Data Mining, Machine Learning, and Deep Learning?

Put simply, machine learning and data mining use the same algorithms and techniques as data mining, except the kinds of predictions vary. While data mining discovers previously unknown patterns and knowledge, machine learning reproduces known patterns and knowledge—and further automatically applies that information to data, decision-making, and actions.

Deep learning, on the other hand, uses advanced computing power and special types of neural networks and applies them to large amounts of data to learn, understand, and identify complicated patterns. Automatic language translation and medical diagnoses are examples of deep learning.


Complete Linear Regression Analysis in Python - Screenshot_01Complete Linear Regression Analysis in Python - Screenshot_02Complete Linear Regression Analysis in Python - Screenshot_03Complete Linear Regression Analysis in Python - Screenshot_04



Welcome to the course!
Course contents
Course resources

Setting up Python and Jupyter Notebook

Installing Python and Anaconda
Opening Jupyter Notebook
Introduction to Jupyter
Arithmetic operators in Python: Python Basics
Strings in Python: Python Basics
Lists, Tuples and Directories: Python Basics
Working with Numpy Library of Python
Working with Pandas Library of Python
Working with Seaborn Library of Python

Basics of Statistics

Types of Data
Types of Statistics
Describing data Graphically
Measures of Centers
Practice Exercise 1
Measures of Dispersion
Practice Exercise 2

Introduction to Machine Learning

Introduction to Machine Learning
Building a Machine Learning Model
Introduction to Machine learning quiz

Data Preprocessing

Gathering Business Knowledge
Data Exploration
The Dataset and the Data Dictionary
Importing Data in Python
Project exercise 1
Univariate analysis and EDD
EDD in Python
Project Exercise 2
Outlier Treatment
Outlier Treatment in Python
Project Exercise 3
Missing Value Imputation
Missing Value Imputation in Python
Project Exercise 4
Seasonality in Data
Bi-variate analysis and Variable transformation
Variable transformation and deletion in Python
Project Exercise 5
Non-usable variables
Dummy variable creation: Handling qualitative data
Dummy variable creation in Python
Project Exercise 6
Correlation Analysis
Correlation Analysis in Python
Project Exercise 7

Linear Regression

The Problem Statement
Basic Equations and Ordinary Least Squares (OLS) method
Assessing accuracy of predicted coefficients
Assessing Model Accuracy: RSE and R squared
Simple Linear Regression in Python
Project Exercise 8
Multiple Linear Regression
The F - statistic
Interpreting results of Categorical variables
Multiple Linear Regression in Python
Project Exercise 9
Test-train split
Bias Variance trade-off
Test train split in Python
Linear models other than OLS
Subset selection techniques
Shrinkage methods: Ridge and Lasso
Ridge regression and Lasso in Python
Project Exercise 10
Final Project Exercise
Course Conclusion

Bonus Section

Bonus Lecture


April 7, 2022
what a great course! i really love it! it's a great content that everyone interested in Machine Learning need to know <3
March 12, 2022
It matches preety well. It is very clear and understandable. I can see my self going over the whole course with no problem.
March 9, 2022
It is a decent course but the presentation is lacking. During the python coding part of it, the cursor has a huge black square like shape which covers the code and is difficult to follow. Also, not all the code is in the resources. I don't know why they did not include all the code?
March 9, 2022
Many of the subtle details are missing. The theory content can be enhanced significantly specially the most important section-6. The practical experience was missing for the final project as how can you expect a learner to know how to fit things for a different dataset. The answers have not been answered. Also the lasso method was skillfully skipped. Postive sides: Easy and lament language used. Things were explained quite fine. Also the importance of concept was stressed which is duly appreciate. The hands on work was also great. Many improvements can be made. Please do it as per needed.
March 5, 2022
1- Several parts are not well explained 2- Instructors way of explanation is very boring 3- Course is not well organized 4- Indian accent is not well understandable 5- English caption is not accurate
February 12, 2022
In fact I recommend this course for anyone who wants to enter the data science's world, however I should recommend the teachers to try to speak less quickly, because sometimes I found difficult to pay attention to the video and coding at the same time, or maybe adding some subtitles on English because Udemy generates them by their own and sometimes it could be a trouble to understand what you're saying. Here is a recommendation for anyone who is going to take the course: study by yourself the formulas and try to understand the meaning of all of them, I'm a physicsist and of course, it wasn't difficult to understand the math of the course but I suppose that most of the people don't like math so that will be a problem. However, I'll be waiting for more courses of data science, in particular, something related with clustering will be fabulous! Greetings from Mexico
October 6, 2021
Way of explanation and excise is fantastic. You have well adjusted the theory and practical. both are we intermixed, Thank you for valuable course.
August 22, 2021
It is very basic and the lecturer spent too much time explaining simple context. Other than that its good
April 15, 2021
By this course so far, I have conquered the intimidating concepts of the python libraries - Numpy, Pandas and Seaborn
December 14, 2020
I learned a great deal of how to approach a DS problem with business perspective and also the maths and logics behind regression.
October 12, 2020
It is very good beginner regression course. Goodand simple explanations of math points. But in the last section Lasso, Ridge you must give more explanation, it seemed you cut short at the end.
May 16, 2020
The course is well structured for the ones who have a bit of knowledge in the domain of Pandas and Numpy and also have a good understanding of econometrics. The concepts are lucidly explained and well structured.
May 11, 2020
Its is very intersting about leanning entire forms in python to learn create the application and it is used in businees field also
April 4, 2020
yeah, the focus on interpret data was really good for me and besides using regression I found a lot about data manipulation and statistic terms
March 8, 2020
Some of the explanations are confusing. but overall, a solid introduction course to linear regression.



Complete Linear Regression Analysis in Python - Price chart


Complete Linear Regression Analysis in Python - Ratings chart

Enrollment distribution

Complete Linear Regression Analysis in Python - Distribution chart


3/31/2020100% OFF
4/30/202067% OFF
5/9/2020100% OFF
5/19/2020100% OFF
5/24/2020100% OFF
6/5/2020100% OFF
6/13/2020100% OFF
7/4/2020100% OFF
8/12/2020100% OFF
8/29/2020100% OFF
9/19/2020100% OFF
9/29/2020100% OFF
10/9/2020100% OFF
10/19/2020100% OFF
11/24/2020100% OFF
5/31/202150% OFF
7/23/2021100% OFF
12/12/2021100% OFF
12/16/2021100% OFF
12/26/2021100% OFF
1/5/2022100% OFF
1/10/2022100% OFF
2/8/2022100% OFF
2/17/2022100% OFF
3/12/2022100% OFF
3/31/2022100% OFF
4/12/2022100% OFF
4/22/2022100% OFF
5/12/2022100% OFF
5/27/2022100% OFF
5/31/2022100% OFF
6/28/2022100% OFF
7/5/2022100% OFF
7/15/2022100% OFF
8/1/2022100% OFF
8/4/2022100% OFF
udemy ID
course created date
course indexed date
course submited by