# How to implement multiple linear regression Scikit learn tutorial

1. Introduction to Multiple linear regression
2. Problem Statement
3. Code walkthrough
4. Video Tutorial

1 Introduction to Multiple linear regression

1. Multiple linear regression is quite similar to simple linear regression wherein Multiple linear regression instead of the single variable we have multiple-input variables X and one output variable Y and we want to build a linear relationship between these variables.
2. In Simple linear regression (Y) = b0+b1X1
3. In multiple linear regression (Y) = b0+b1X1+b2X2+b3X3……….bnXn
4. Here the X1, X2, X3…..XN are independent variable and the output variable is called dependent

2 Problem Statement

1. Dataset consisting of 4columns R&D, administration, and marketing are independent variables and profit is our dependent variable.
2. So we need to find out profit based on the amount spent on R&D administration and marketing so

3 Code walkthrough

Imported the all necessary libraries Matplotlib which will be used for plotting the second one is pandas for reading dataset.

Imported my data set using read CSV function and initialized x and y variables with R&D, administration, marketing spend, and profit respectively