Linear Regression For Data Science

Linear Regression For Data Science

Linear regression is commonly used to quantify the relationship between two or more variables. It is also used to adjust for confounding.

Regression is the study of dependence — A Predictive modelling technique

  • It attempts to find the relationship between a DEPENDENT variable “Y” and an INDEPENDENT variable “X”.
  • (Note: Y should be a continuous variable while X can be categorical or continuous)
  • There are two types of regression —_ Simple Linear Regression and Multiple Linear Regression._
  • Simple linear regression will have one independent variable(predictor).
  • Multiple linear regression will have more than one independent variable (predictors).
  • In a nutshell — Linear Regression maps a continuous X to a continuous Y.


  1. To determine strength of independent variables (predictors)

— ExampleRelationship between Age & Income

2. To forecast effects

— Example: Effect on sale income for 1000$ spent on marketing

3. To forecast trends

— Example: Predicting price of bitcoin in the next 6 months



  1. Classification & Regression Capabilities:
  • Regression models predict continuous variables (Eg: Predict the temperature of a city)
  • Once it is known that the aim is to classify data — we choose Logistic Regression.
  • Linear Regression is not suitable for classification because “*the idea of fitting a straight line in case of a polynomial is a challenging task. *

2. Data Quality:

  • Each missing value removes one data point that could optimize the regression.
  • In simple linear regression, the outliers can significantly disturb the outcome. (i.e. removing outliers enhances the model greatly)

3. Computational Complexity:

  • It is not expensive computation-wise as compared to decision tree (or) clustering.

4. Comprehensible & Transparent:

  • Easy to comprehend and understand

data linear-regression data-science machine-learning towards-data-science

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Linear Regression Model for Machine Learning

An overview of the oldest supervised machine-learning algorithm, its type & shortcomings.

15 Machine Learning and Data Science Project Ideas with Datasets

Learning is a new fun in the field of Machine Learning and Data Science. In this article, we’ll be discussing 15 machine learning and data science projects.

Towards Machine Learning — Linear Regression and Polynomial Regression

I decided to write few brief articles regarding this topic, which are intended to help people new to this topic dive in the interesting world of Machine Learning. Today we go further, and tackle Linear Regression, another extremely popular and wide used technique.

Most popular Data Science and Machine Learning courses — July 2020

Most popular Data Science and Machine Learning courses — August 2020. This list was last updated in August 2020 — and will be updated regularly so as to keep it relevant

Regression(Data Science Part 6) Linear Regression with Math (6.1)

Regression(Data Science Part 6) Linear Regression with Math (6.1) ... Now, we will understand all parts and types of regression in detail.