SlideShare a Scribd company logo
Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn
Profit Estimation of a Company
Which companies
shall we invest?
Venture Capital firm
A Venture Capital firm is trying to understand which companies should they invest
Profit Estimation of a Company
Idea
Based on companies expenses
Predict the profit companies make
Decide companies to invest
Profit Estimation of a Company
Administration
Marketing
State
R&D
Based on
Expenditure and
Location
Company Calculate profit
Profit Estimation of a Company
For simplicity, lets consider a single variable (R&D) and find out which companies to invest in
R&D
Profit
R&D
Profit
Companies spending
more on R&D make
good profit, let’s
invest in them
Plotting profit based on R&D
expenditure
Prediction line to estimate profit
What’s in it for you?
Machine Learning Algorithms
Understanding Linear Regression
Introduction to Machine Learning
Applications of Linear Regression
Multiple Linear Regression
Use Case – Profit Estimation of Companies
Introduction to Machine Learning
Introduction to Machine Learning
Based on the amount of rainfall, how much would be the crop yield?
Crop Field Predict crop yieldBased on Rainfall
Independent and Dependent Variables
Independent variable Dependent variable
A variable whose value does not change
by the effect of other variables and is
used to manipulate the dependent
variable. It is often denoted as X.
A variable whose value change when
there is any manipulation in the values of
independent variables. It is often denoted
as Y.
Crop yield depends on the amount of
rainfall received
Rainfall – Independent variable Crop yield – Dependent variable
In our example:
Numerical and Categorical Values
Data
SalaryAge Height Gender
Dog’s
BreedColor
12345
167891
46920
12345
90984
Numerical Categorical
A
C
D
E
B
Machine Learning Algorithms
Machine Learning
Algorithms
Supervised
Unsupervised
Reinforcement
Machine Learning Algorithms
Machine Learning
Algorithms
Supervised
ClassificationRegression
Machine Learning Algorithms
Machine Learning
Algorithms
Supervised
Regression
Simple Linear
Regression
Polynomial Linear
Regression
Multiple Linear
Regression
Applications of Linear Regression
Applications of Linear Regression
Economic Growth
Used to determine the Economic Growth of a country or a state in the coming
quarter, can also be used to predict the GDP of a country
Applications of Linear Regression
Product price
Can be used to predict what would be the price of a product in the future
Applications of Linear Regression
Housing sales
To estimate the number of houses a builder would sell and at what price in the
coming months
Applications of Linear Regression
Score Prediction
To predict the number of runs a player would score in the coming matches based
on previous performance
Understanding Linear Regression
Understanding Linear Regression
Linear Regression is a statistical model used to predict the relationship between
independent and dependent variables.
Examine 2 factors
Which variables in
particular are
significant predictors
of the outcome
variables?
1
How significant is
the Regression line
to make predictions
with highest
possible accuracy
2
Regression Equation
The simplest form of a simple linear regression equation with one dependent and one independent variable is represented by:
y = m x + c*
y ---> Dependent Variable
x ---> Independent Variable
c ---> Coefficient of the line
y2 - y1
x2 – x1
m =m ---> Slope of the line
Y
X
c
m
y2
y1
x2x1
Prediction using the Regression line
Rainfall (X)
CropYield(Y)
Plotting the amount of Crop Yield based on
the amount of Rainfall
Prediction using the Regression line
Rainfall (X)
CropYield(Y)
Plotting the amount of Crop Yield based on
the amount of Rainfall
Rainfall (X)
CropYield(Y)
Prediction using the Regression line
The Red point on the Y axis is the amount of Crop
Yield you can expect for some amount of Rainfall
(X) represented by Green dot
Rainfall (X)
CropYield(Y)
Plotting the amount of Crop Yield based on
the amount of Rainfall
Rainfall (X)
CropYield(Y)
Regression Line
Intuition behind the Regression line
Lets consider a sample dataset with 5 rows and find out how to draw the regression
line
X Y
1 2
2 4
3 5
4 4
5 5
Independent
variable
Dependent variable
Plotting the data points
Intuition behind the Regression line
Calculate the mean of X and Y and plot the values
X Y
1 2
2 4
3 5
4 4
5 5
Independent
variable
Dependent variable
Plotting the mean of X and Y
Mean 3 4
Intuition behind the Regression line
Regression line should ideally pass through the mean of X and Y
X Y
1 2
2 4
3 5
4 4
5 5
Independent
variable
Dependent variable
Regression line
Mean 3 4
(3,4)
Intuition behind the Regression line
Drawing the equation of the Regression line
_
_ _
X Y (X ) (Y ) (X Y)
1 2 1 4 2
2 4 4 16 8
3 5 9 25 15
4 4 16 16 16
5 5 25 25 25
= 66
Linear equation is represented as Y = m X + c
=m =
*
Y = m X + c
= 0.6 3 + 2.2
= 4
*
2 2
= 55 = 86
*
= 15 = 20
c=
*
((n (X Y))-( (X) (Y))***
((n (X ))-( (X) )*
2 2
((5 66)-(15 20))* *
((5 55))-(225)*
=0.6
(( (Y) (X ))-( (X) (X Y)*
2
* *
((n (X ))-( (X) )*
2 2 = 2.2
Intuition behind the Regression line
Lets find out the predicted values of Y for corresponding values of X using the linear
equation where m=0.6 and c=2.2
Here the blue points represent the actual Y
values and the brown points represent the
predicted Y values. The distance between the
actual and predicted values are known as
residuals or errors. The best fit line should
have the least sum of squares of these errors
also known as
e square.
(3,4)
Y
Y=0.6 1+2.2=2.8
Y=0.6 2+2.2=3.4
Y=0.6 3+2.2=4
Y=0.6 4+2.2=4.6
Y=0.6 5+2.2=5.2
pred
*
*
*
*
*
Intuition behind the Regression line
Lets find out the predicted values of Y for corresponding values of X using the linear
equation where m=0.6 and c=2.2
(3,4)
_ _
X Y Y (Y-Y ) (Y-Y )
1 2 2.8 -0.8 0.64
2 4 3.4 0.6 0.36
3 5 4 1 1
4 4 4.6 -0.6 0.36
5 5 5.2 -0.2 0.04
= 2.4
pred pred pred
2
The sum of squared errors for this regression line is 2.4. We check this
error for each line and conclude the best fit line having the least e square
value.
Finding the Best fit line
Minimizing the Distance: There are lots of ways to minimize the distance between the line and the data points like Sum of
Squared errors, Sum of Absolute errors, Root Mean Square error etc.
We keep moving this line through the
data points to make sure the Best fit
line has the least square distance
between the data points and the
regression line
Multiple Linear Regression
Multiple Linear Regression
Simple Linear
Regression
Multiple Linear
Regression
Y = m x + c*
2 *
Y = m x + m x + m x + ………. + m x + c*1 1 * 2 3 3*2 n n*
Independent variables (IDV’s)
Dependent variable (DV) Coefficient
nm1, m2, m3…..m
Slopes
Implementation of Linear Regression
Use case implementation of Linear Regression
Let’s understand how
Multiple Linear
Regression works by
implementing it in Python
Use case implementation of Linear Regression
1000 Companies
Profit
Expenditure
Based on
Predict
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
Administration
2
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
Marketing Spend
3
Administration
2
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
State
4
Marketing Spend
3
Administration
2
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
State
4
Marketing Spend
3
Administration
2
ProfitProfit
Profit
Estimation
Use case implementation of Linear Regression
Predicting Profit of 1000 companies based on the attributes mentioned in the figure:
R&D Spend
1
State
4
Marketing Spend
3
Administration
2
ProfitProfit
Profit
Estimation
Predict Profit
Use case implementation of Linear Regression
1. Import the libraries:
Use case implementation of Linear Regression
2. Load the Dataset and extract independent and dependent variables:
Use case implementation of Linear Regression
3. Data Visualization:
Use case implementation of Linear Regression
4. Encoding Categorical Data:
5. Avoiding Dummy Variable Trap:
Use case implementation of Linear Regression
6. Splitting the data into Train and Test set:
7. Fitting Multiple Linear Regression Model to Training set:
Use case implementation of Linear Regression
8. Predicting the Test set results:
Use case implementation of Linear Regression
9. Calculating the Coefficients and Intercepts:
Use case implementation of Linear Regression
10. Evaluating the model:
R squared value of 0.91 proves the model is a good model
Use case summary
We successfully trained our model with
certain predictors and estimated the
profit of companies using linear
regression
Key Takeaways
Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn

More Related Content

What's hot (20)

Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Logistic Regression in Python | Logistic Regression Example | Machine Learnin...Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Edureka!
 
Linear regression
Linear regressionLinear regression
Linear regression
MartinHogg9
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Simplilearn
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
Knoldus Inc.
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
Knoldus Inc.
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
Venkata Reddy Konasani
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
Mohammad Junaid Khan
 
Data Science Full Course | Edureka
Data Science Full Course | EdurekaData Science Full Course | Edureka
Data Science Full Course | Edureka
Edureka!
 
supervised learning
supervised learningsupervised learning
supervised learning
Amar Tripathi
 
Bayesian Belief Network and its Applications.pptx
Bayesian Belief Network and its Applications.pptxBayesian Belief Network and its Applications.pptx
Bayesian Belief Network and its Applications.pptx
SamyakJain710491
 
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
Simplilearn
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CART
Xueping Peng
 
Statistics for data science
Statistics for data science Statistics for data science
Statistics for data science
zekeLabs Technologies
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
CloudxLab
 
Random forest
Random forestRandom forest
Random forest
Musa Hawamdah
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
Abhimanyu Dwivedi
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
Mohammad Junaid Khan
 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
Andrew Ferlitsch
 
Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Logistic Regression in Python | Logistic Regression Example | Machine Learnin...Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Logistic Regression in Python | Logistic Regression Example | Machine Learnin...
Edureka!
 
Linear regression
Linear regressionLinear regression
Linear regression
MartinHogg9
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Simplilearn
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
Knoldus Inc.
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
Knoldus Inc.
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
Mohammad Junaid Khan
 
Data Science Full Course | Edureka
Data Science Full Course | EdurekaData Science Full Course | Edureka
Data Science Full Course | Edureka
Edureka!
 
Bayesian Belief Network and its Applications.pptx
Bayesian Belief Network and its Applications.pptxBayesian Belief Network and its Applications.pptx
Bayesian Belief Network and its Applications.pptx
SamyakJain710491
 
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
Simplilearn
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CART
Xueping Peng
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
Abhimanyu Dwivedi
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
Andrew Ferlitsch
 

Similar to Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn (20)

The Suitcase Case
The Suitcase CaseThe Suitcase Case
The Suitcase Case
Anthony J. Evans
 
Regression is A statistical procedure used to find relationships among a set...
Regression is  A statistical procedure used to find relationships among a set...Regression is  A statistical procedure used to find relationships among a set...
Regression is A statistical procedure used to find relationships among a set...
RINUSATHYAN
 
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
DeepikaSanger
 
Forecasting Using the Predictive Analytics
Forecasting Using the Predictive AnalyticsForecasting Using the Predictive Analytics
Forecasting Using the Predictive Analytics
PRPrasad1
 
Rsh qam11 ch04 ge
Rsh qam11 ch04 geRsh qam11 ch04 ge
Rsh qam11 ch04 ge
Firas Husseini
 
Regression
RegressionRegression
Regression
Long Beach City College
 
Intro to econometrics
Intro to econometricsIntro to econometrics
Intro to econometrics
Gaetan Lion
 
Tbs910 regression models
Tbs910 regression modelsTbs910 regression models
Tbs910 regression models
Stephen Ong
 
15.Simple Linear Regression of case study-530 (2).ppt
15.Simple Linear Regression of case study-530 (2).ppt15.Simple Linear Regression of case study-530 (2).ppt
15.Simple Linear Regression of case study-530 (2).ppt
martinjoseph1822
 
Demand forecasting methods 1 gp
Demand forecasting methods 1 gpDemand forecasting methods 1 gp
Demand forecasting methods 1 gp
PUTTU GURU PRASAD
 
Statistics project2
Statistics project2Statistics project2
Statistics project2
shri1984
 
Bba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression modelsBba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression models
Stephen Ong
 
Demand Forcasting
Demand ForcastingDemand Forcasting
Demand Forcasting
itsvineeth209
 
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning,  Chapter 2- Supervised LearningCourse Title: Introduction to Machine Learning,  Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Shumet Tadesse
 
Different Types of Machine Learning Algorithms
Different Types of Machine Learning AlgorithmsDifferent Types of Machine Learning Algorithms
Different Types of Machine Learning Algorithms
rahmedraj93
 
Demand Estimation AND FORECASTING
Demand Estimation AND FORECASTINGDemand Estimation AND FORECASTING
Demand Estimation AND FORECASTING
RebekahSamuel2
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
jamuga gitulho
 
Regression
Regression  Regression
Regression
Long Beach City College
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
TanyaWadhwani4
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
Kemal İnciroğlu
 
Regression is A statistical procedure used to find relationships among a set...
Regression is  A statistical procedure used to find relationships among a set...Regression is  A statistical procedure used to find relationships among a set...
Regression is A statistical procedure used to find relationships among a set...
RINUSATHYAN
 
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
ch12 (1).pptx Himalaya shampoo and conditioner for the baby is the message fo...
DeepikaSanger
 
Forecasting Using the Predictive Analytics
Forecasting Using the Predictive AnalyticsForecasting Using the Predictive Analytics
Forecasting Using the Predictive Analytics
PRPrasad1
 
Intro to econometrics
Intro to econometricsIntro to econometrics
Intro to econometrics
Gaetan Lion
 
Tbs910 regression models
Tbs910 regression modelsTbs910 regression models
Tbs910 regression models
Stephen Ong
 
15.Simple Linear Regression of case study-530 (2).ppt
15.Simple Linear Regression of case study-530 (2).ppt15.Simple Linear Regression of case study-530 (2).ppt
15.Simple Linear Regression of case study-530 (2).ppt
martinjoseph1822
 
Demand forecasting methods 1 gp
Demand forecasting methods 1 gpDemand forecasting methods 1 gp
Demand forecasting methods 1 gp
PUTTU GURU PRASAD
 
Statistics project2
Statistics project2Statistics project2
Statistics project2
shri1984
 
Bba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression modelsBba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression models
Stephen Ong
 
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning,  Chapter 2- Supervised LearningCourse Title: Introduction to Machine Learning,  Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Shumet Tadesse
 
Different Types of Machine Learning Algorithms
Different Types of Machine Learning AlgorithmsDifferent Types of Machine Learning Algorithms
Different Types of Machine Learning Algorithms
rahmedraj93
 
Demand Estimation AND FORECASTING
Demand Estimation AND FORECASTINGDemand Estimation AND FORECASTING
Demand Estimation AND FORECASTING
RebekahSamuel2
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
jamuga gitulho
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
TanyaWadhwani4
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
Kemal İnciroğlu
 
Ad

More from Simplilearn (20)

Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Ad

Recently uploaded (20)

Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_HyderabadWebcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
Quiz Club of PSG College of Arts & Science
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptxIDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
Parenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independenceParenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independence
Pooky Knightsmith
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition OecdEnergy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
EUPHORIA GENERAL QUIZ FINALS | QUIZ CLUB OF PSGCAS | 21 MARCH 2025
Quiz Club of PSG College of Arts & Science
 
Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_HyderabadWebcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptxIDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
Parenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independenceParenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independence
Pooky Knightsmith
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition OecdEnergy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 

Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn

  • 2. Profit Estimation of a Company Which companies shall we invest? Venture Capital firm A Venture Capital firm is trying to understand which companies should they invest
  • 3. Profit Estimation of a Company Idea Based on companies expenses Predict the profit companies make Decide companies to invest
  • 4. Profit Estimation of a Company Administration Marketing State R&D Based on Expenditure and Location Company Calculate profit
  • 5. Profit Estimation of a Company For simplicity, lets consider a single variable (R&D) and find out which companies to invest in R&D Profit R&D Profit Companies spending more on R&D make good profit, let’s invest in them Plotting profit based on R&D expenditure Prediction line to estimate profit
  • 6. What’s in it for you? Machine Learning Algorithms Understanding Linear Regression Introduction to Machine Learning Applications of Linear Regression Multiple Linear Regression Use Case – Profit Estimation of Companies
  • 8. Introduction to Machine Learning Based on the amount of rainfall, how much would be the crop yield? Crop Field Predict crop yieldBased on Rainfall
  • 9. Independent and Dependent Variables Independent variable Dependent variable A variable whose value does not change by the effect of other variables and is used to manipulate the dependent variable. It is often denoted as X. A variable whose value change when there is any manipulation in the values of independent variables. It is often denoted as Y. Crop yield depends on the amount of rainfall received Rainfall – Independent variable Crop yield – Dependent variable In our example:
  • 10. Numerical and Categorical Values Data SalaryAge Height Gender Dog’s BreedColor 12345 167891 46920 12345 90984 Numerical Categorical A C D E B
  • 11. Machine Learning Algorithms Machine Learning Algorithms Supervised Unsupervised Reinforcement
  • 12. Machine Learning Algorithms Machine Learning Algorithms Supervised ClassificationRegression
  • 13. Machine Learning Algorithms Machine Learning Algorithms Supervised Regression Simple Linear Regression Polynomial Linear Regression Multiple Linear Regression
  • 15. Applications of Linear Regression Economic Growth Used to determine the Economic Growth of a country or a state in the coming quarter, can also be used to predict the GDP of a country
  • 16. Applications of Linear Regression Product price Can be used to predict what would be the price of a product in the future
  • 17. Applications of Linear Regression Housing sales To estimate the number of houses a builder would sell and at what price in the coming months
  • 18. Applications of Linear Regression Score Prediction To predict the number of runs a player would score in the coming matches based on previous performance
  • 20. Understanding Linear Regression Linear Regression is a statistical model used to predict the relationship between independent and dependent variables. Examine 2 factors Which variables in particular are significant predictors of the outcome variables? 1 How significant is the Regression line to make predictions with highest possible accuracy 2
  • 21. Regression Equation The simplest form of a simple linear regression equation with one dependent and one independent variable is represented by: y = m x + c* y ---> Dependent Variable x ---> Independent Variable c ---> Coefficient of the line y2 - y1 x2 – x1 m =m ---> Slope of the line Y X c m y2 y1 x2x1
  • 22. Prediction using the Regression line Rainfall (X) CropYield(Y) Plotting the amount of Crop Yield based on the amount of Rainfall
  • 23. Prediction using the Regression line Rainfall (X) CropYield(Y) Plotting the amount of Crop Yield based on the amount of Rainfall Rainfall (X) CropYield(Y)
  • 24. Prediction using the Regression line The Red point on the Y axis is the amount of Crop Yield you can expect for some amount of Rainfall (X) represented by Green dot Rainfall (X) CropYield(Y) Plotting the amount of Crop Yield based on the amount of Rainfall Rainfall (X) CropYield(Y) Regression Line
  • 25. Intuition behind the Regression line Lets consider a sample dataset with 5 rows and find out how to draw the regression line X Y 1 2 2 4 3 5 4 4 5 5 Independent variable Dependent variable Plotting the data points
  • 26. Intuition behind the Regression line Calculate the mean of X and Y and plot the values X Y 1 2 2 4 3 5 4 4 5 5 Independent variable Dependent variable Plotting the mean of X and Y Mean 3 4
  • 27. Intuition behind the Regression line Regression line should ideally pass through the mean of X and Y X Y 1 2 2 4 3 5 4 4 5 5 Independent variable Dependent variable Regression line Mean 3 4 (3,4)
  • 28. Intuition behind the Regression line Drawing the equation of the Regression line _ _ _ X Y (X ) (Y ) (X Y) 1 2 1 4 2 2 4 4 16 8 3 5 9 25 15 4 4 16 16 16 5 5 25 25 25 = 66 Linear equation is represented as Y = m X + c =m = * Y = m X + c = 0.6 3 + 2.2 = 4 * 2 2 = 55 = 86 * = 15 = 20 c= * ((n (X Y))-( (X) (Y))*** ((n (X ))-( (X) )* 2 2 ((5 66)-(15 20))* * ((5 55))-(225)* =0.6 (( (Y) (X ))-( (X) (X Y)* 2 * * ((n (X ))-( (X) )* 2 2 = 2.2
  • 29. Intuition behind the Regression line Lets find out the predicted values of Y for corresponding values of X using the linear equation where m=0.6 and c=2.2 Here the blue points represent the actual Y values and the brown points represent the predicted Y values. The distance between the actual and predicted values are known as residuals or errors. The best fit line should have the least sum of squares of these errors also known as e square. (3,4) Y Y=0.6 1+2.2=2.8 Y=0.6 2+2.2=3.4 Y=0.6 3+2.2=4 Y=0.6 4+2.2=4.6 Y=0.6 5+2.2=5.2 pred * * * * *
  • 30. Intuition behind the Regression line Lets find out the predicted values of Y for corresponding values of X using the linear equation where m=0.6 and c=2.2 (3,4) _ _ X Y Y (Y-Y ) (Y-Y ) 1 2 2.8 -0.8 0.64 2 4 3.4 0.6 0.36 3 5 4 1 1 4 4 4.6 -0.6 0.36 5 5 5.2 -0.2 0.04 = 2.4 pred pred pred 2 The sum of squared errors for this regression line is 2.4. We check this error for each line and conclude the best fit line having the least e square value.
  • 31. Finding the Best fit line Minimizing the Distance: There are lots of ways to minimize the distance between the line and the data points like Sum of Squared errors, Sum of Absolute errors, Root Mean Square error etc. We keep moving this line through the data points to make sure the Best fit line has the least square distance between the data points and the regression line
  • 33. Multiple Linear Regression Simple Linear Regression Multiple Linear Regression Y = m x + c* 2 * Y = m x + m x + m x + ………. + m x + c*1 1 * 2 3 3*2 n n* Independent variables (IDV’s) Dependent variable (DV) Coefficient nm1, m2, m3…..m Slopes
  • 35. Use case implementation of Linear Regression Let’s understand how Multiple Linear Regression works by implementing it in Python
  • 36. Use case implementation of Linear Regression 1000 Companies Profit Expenditure Based on Predict
  • 37. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: Profit Estimation
  • 38. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 Profit Estimation
  • 39. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 Administration 2 Profit Estimation
  • 40. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 Marketing Spend 3 Administration 2 Profit Estimation
  • 41. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 State 4 Marketing Spend 3 Administration 2 Profit Estimation
  • 42. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 State 4 Marketing Spend 3 Administration 2 ProfitProfit Profit Estimation
  • 43. Use case implementation of Linear Regression Predicting Profit of 1000 companies based on the attributes mentioned in the figure: R&D Spend 1 State 4 Marketing Spend 3 Administration 2 ProfitProfit Profit Estimation Predict Profit
  • 44. Use case implementation of Linear Regression 1. Import the libraries:
  • 45. Use case implementation of Linear Regression 2. Load the Dataset and extract independent and dependent variables:
  • 46. Use case implementation of Linear Regression 3. Data Visualization:
  • 47. Use case implementation of Linear Regression 4. Encoding Categorical Data: 5. Avoiding Dummy Variable Trap:
  • 48. Use case implementation of Linear Regression 6. Splitting the data into Train and Test set: 7. Fitting Multiple Linear Regression Model to Training set:
  • 49. Use case implementation of Linear Regression 8. Predicting the Test set results:
  • 50. Use case implementation of Linear Regression 9. Calculating the Coefficients and Intercepts:
  • 51. Use case implementation of Linear Regression 10. Evaluating the model: R squared value of 0.91 proves the model is a good model
  • 52. Use case summary We successfully trained our model with certain predictors and estimated the profit of companies using linear regression

Editor's Notes