SlideShare a Scribd company logo
1 of 36
Download to read offline
Linear RegressionTheory
https://in.linkedin.com/in/sauravmukherjee
What &Why
1
What is Regression?
Formulation of a functional relationship between a set of Independent or
Explanatory variables (X’s) with a Dependent or Response variable (Y).
Y = f(X)
Why Regression?
Knowledge of Y is crucial for decision making.
• Will he/she buy or not?
• Shall I offer him/her the loan or not?
• ………
X is available at the time of decision making and is related to Y, thus making
it possible to have a prediction of Y.
2
Types of Regression
Y
Continuous
E.g., SalesVolume, Claim
Amount, % of sales growth
etc.
Binary (0/1)
E.g., Buy/No-Buy, Survive/Not-
Survive,Win/Loss etc
Ordinary Least Square
(OLS) Regression
Logistic Regression
• Regression analysis is used to:
• Predict the value of a
dependent variable based on
the value of at least one
independent variable
• Explain the impact of changes
in an independent variable on
the dependent variable
• Dependent variable: the
variable we wish to explain,
usually denoted by Y.
• Independent variable: the
variable used to explain the
dependent variable. Usually
denoted by X.
3
Intro to RegressionAnalysis
4
Regression Example
Predict the fitness of a
person based on one or
more parameters.
5
Regression Example
• Only one independent
variable, x
• Relationship between x
and y is described by a
linear function
• Changes in y are
assumed to be caused
by changes in x
6
Simple Linear Regression Model
7
Assumptions for Simple Linear Regression
E(ε) = 0
8
Assumptions for Multiple Regression
9
Assumptions for Multiple Regression
݅
2
ߝ
ଶ
10
i]j0,)ε[E(ε ji ≠=
Assumptions for Multiple Regression
11
Equations for Regression
12
Simple Linear Regression Model
13
Beta Zero
14
Beta One
1 unit
15
ErrorTerm /Residual
16
Regression Line Equation
17
The Simple Linear Regression Model
18
The Multiple Linear Regression Model
19
Model for Multiple Regression
20
Positive Linear Relationship
Negative Linear Relationship
No Relationship
Relationship NOT Linear
Types of Regression Relationships
21
Unknown
Relationship
Population Random Sample
Y Xi i i= + +β β ε0 1
☺ ☺
☺
☺
☺
☺
☺
Population & Sample Regression Models
22
PredictedValue
ofY for Xi
Intercept = β0
Random Error for this x value
Y
X
uXββY 10 ++=
xi
Slope = β1
ui
Individual
person's marks
Population Linear Regression
23
Linear component
Population y
intercept
Population Slope
Coefficient
Random
Error term, or
residual
Dependent
Variable
Independent
Variable
Random Error
component
uXββY 10 ++=
But can we actually get this equation?
If yes what all information we will need?
Population Regression Function
24
PredictedValue
ofY for Xi
Intercept = β0
Random Error for this x value
Y
Xxi
Slope = β1
exbby 10 ++=
ei
ObservedValue
of y for xi
Sample Regression Function
25
exbby 10i ++=
Estimate of the
regression intercept
Estimate of the
regression slope
Independent
variable
Error term
Notice the similarity with the Population Regression Function
Can we do something of the error term?
Sample Regression Function
• Represents the influence of all the variable which
we have not accounted for in the equation
• It represents the difference between the actual y
values as compared the predicted y values from the
Sample Regression Line
• Wouldn't it be good if we were able to reduce this
error term?
• By the way - what are we trying to achieve by
Sample Regression?
26
The ErrorTerm (Residual)
27
HowWell A Model Fits the Data
28
Comparing the Regression Model to a Baseline Model
29
Comparing the Regression Model to a Baseline Model
• The sum of the residuals from the least squares regression line is
zero.
• The sum of the squared residuals is a minimum.
Minimize( )
• The simple regression line always passes through the mean of
the y variable and the mean of the x variable
• The least squares coefficients are unbiased estimates of β0 and
β1
30
0)ˆ( =−∑ yy
2
)ˆ( yy∑ −
OLS Regression Properties
• Parameter Instability - This happens in situations where
correlations change over a period of time.This is very
common in financial markets where economic, tax,
regulatory, and political factors change frequently.
• Public knowledge of a specific regression relation may
cause a large number of people to react in a similar fashion
towards the variables, negating its future usefulness.
• If any of the regression assumptions are violated,
predicted dependent variables and hypothesis tests will not
hold valid.
31
Limitations of RegressionAnalysis
• In simple linear regression, the dependent variable was assumed to be
dependent on only one variable (independent variable)
• In General Multiple Linear Regression model, the dependent variable derives its
value from two or more than two variable.
• General Multiple Linear Regression model take the following form:
where:
Yi = ith observation of dependent variableY
Xki = ith observation of kth independent variable X
b0 = intercept term
bk = slope coefficient of kth independent variable
εi = error term of ith observation
n = number of observations
k = total number of independent variables
32
ikikiii XbXbXbbY ε+++++= .........22110
General Multiple Linear Regression Model
• As we calculated the intercept and the slope coefficient in case of
simple linear regression by minimizing the sum of squared errors,
similarly we estimate the intercept and slope coefficient in multiple
linear regression.
• Sum of Squared Errors is minimized and the slope coefficient is
estimated.
• The resultant estimated equation becomes:
• Now the error in the ith observation can be written as:
33
∑=
n
i
i
1
2
ε
kikiii XbXbXbbY
∧∧∧∧∧
++++= .........22110






++++−=−=
∧∧∧∧∧
kikiiiiii XbXbXbbYYY .........22110ε
Estimated Regression Equation
34
Assumptions of Multiple Regression Model
• There exists a linear relationship between the dependent and
independent variables.
• The expected value of the error term, conditional on the
independent variables is zero.
• The error terms are homoskedastic, i.e. the variance of the
error terms is constant for all the observations.
• The expected value of the product of error terms is always
zero, which implies that the error terms are uncorrelated with
each other.
• The error term is normally distributed.
• The independent variables doesn't have any linear
relationships between each other.
Thank you!

More Related Content

What's hot

Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regressiondessybudiyanti
 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear RegressionAndrew Ferlitsch
 
Regression analysis
Regression analysisRegression analysis
Regression analysissaba khan
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learningShajun Nisha
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsBabasab Patil
 
Regression analysis and its type
Regression analysis and its typeRegression analysis and its type
Regression analysis and its typeEkta Bafna
 
Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Haoran Zhang
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentationCarlo Magno
 
Logistic Regression.pptx
Logistic Regression.pptxLogistic Regression.pptx
Logistic Regression.pptxMuskaan194530
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regressionSreerajVA
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.sonia gupta
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in RAlichy Sowmya
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regressionalok tiwari
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionpankaj8108
 

What's hot (20)

Linear regression
Linear regressionLinear regression
Linear regression
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regression
 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learning
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Regression analysis and its type
Regression analysis and its typeRegression analysis and its type
Regression analysis and its type
 
Simple Linear Regression (simplified)
Simple Linear Regression (simplified)Simple Linear Regression (simplified)
Simple Linear Regression (simplified)
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
 
Logistic Regression.pptx
Logistic Regression.pptxLogistic Regression.pptx
Logistic Regression.pptx
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regression
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 

Similar to Linear regression theory

Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLKumud Arora
 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variableAshok Dsouza
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptEkoGaniarto
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxcajativ595
 
Chapter 15Multiple Regression and Model BuildingCo
Chapter 15Multiple Regression and Model BuildingCoChapter 15Multiple Regression and Model BuildingCo
Chapter 15Multiple Regression and Model BuildingCoEstelaJeffery653
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptxShivankAggatwal
 
STATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSSTATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSAneesa K Ayoob
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regressionjamuga gitulho
 
Detail Study of the concept of Regression model.pptx
Detail Study of the concept of  Regression model.pptxDetail Study of the concept of  Regression model.pptx
Detail Study of the concept of Regression model.pptxtruptikulkarni2066
 
Assumptions of OLS.pptx
Assumptions of OLS.pptxAssumptions of OLS.pptx
Assumptions of OLS.pptxEzhildev
 
Group 5 - Regression Analysis.pdf
Group 5 - Regression Analysis.pdfGroup 5 - Regression Analysis.pdf
Group 5 - Regression Analysis.pdffahlevet40
 
regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfMuhammadAftab89
 

Similar to Linear regression theory (20)

Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
 
SPSS
SPSSSPSS
SPSS
 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variable
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptx
 
MModule 1 ppt.pptx
MModule 1 ppt.pptxMModule 1 ppt.pptx
MModule 1 ppt.pptx
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 15Multiple Regression and Model BuildingCo
Chapter 15Multiple Regression and Model BuildingCoChapter 15Multiple Regression and Model BuildingCo
Chapter 15Multiple Regression and Model BuildingCo
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptx
 
STATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSSTATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELS
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
 
Detail Study of the concept of Regression model.pptx
Detail Study of the concept of  Regression model.pptxDetail Study of the concept of  Regression model.pptx
Detail Study of the concept of Regression model.pptx
 
Ders 2 ols .ppt
Ders 2 ols .pptDers 2 ols .ppt
Ders 2 ols .ppt
 
Regression
RegressionRegression
Regression
 
Assumptions of OLS.pptx
Assumptions of OLS.pptxAssumptions of OLS.pptx
Assumptions of OLS.pptx
 
Group 5 - Regression Analysis.pdf
Group 5 - Regression Analysis.pdfGroup 5 - Regression Analysis.pdf
Group 5 - Regression Analysis.pdf
 
regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdf
 
Regression
RegressionRegression
Regression
 

More from Saurav Mukherjee

Complex C-declarations & typedef
Complex C-declarations & typedefComplex C-declarations & typedef
Complex C-declarations & typedefSaurav Mukherjee
 
Enterprise Data Management - Data Lake - A Perspective
Enterprise Data Management - Data Lake - A PerspectiveEnterprise Data Management - Data Lake - A Perspective
Enterprise Data Management - Data Lake - A PerspectiveSaurav Mukherjee
 
Tire Pressure Monitoring System (TPMS) - An Introduction
Tire Pressure Monitoring System (TPMS) - An IntroductionTire Pressure Monitoring System (TPMS) - An Introduction
Tire Pressure Monitoring System (TPMS) - An IntroductionSaurav Mukherjee
 
Competitive positioning and routes to market for a high-technology innovation...
Competitive positioning and routes to market for a high-technology innovation...Competitive positioning and routes to market for a high-technology innovation...
Competitive positioning and routes to market for a high-technology innovation...Saurav Mukherjee
 

More from Saurav Mukherjee (6)

Complex C-declarations & typedef
Complex C-declarations & typedefComplex C-declarations & typedef
Complex C-declarations & typedef
 
Presentation Skills
Presentation SkillsPresentation Skills
Presentation Skills
 
Enterprise Agile Adoption
Enterprise Agile AdoptionEnterprise Agile Adoption
Enterprise Agile Adoption
 
Enterprise Data Management - Data Lake - A Perspective
Enterprise Data Management - Data Lake - A PerspectiveEnterprise Data Management - Data Lake - A Perspective
Enterprise Data Management - Data Lake - A Perspective
 
Tire Pressure Monitoring System (TPMS) - An Introduction
Tire Pressure Monitoring System (TPMS) - An IntroductionTire Pressure Monitoring System (TPMS) - An Introduction
Tire Pressure Monitoring System (TPMS) - An Introduction
 
Competitive positioning and routes to market for a high-technology innovation...
Competitive positioning and routes to market for a high-technology innovation...Competitive positioning and routes to market for a high-technology innovation...
Competitive positioning and routes to market for a high-technology innovation...
 

Recently uploaded

How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 

Recently uploaded (20)

How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 

Linear regression theory

  • 2. What &Why 1 What is Regression? Formulation of a functional relationship between a set of Independent or Explanatory variables (X’s) with a Dependent or Response variable (Y). Y = f(X) Why Regression? Knowledge of Y is crucial for decision making. • Will he/she buy or not? • Shall I offer him/her the loan or not? • ……… X is available at the time of decision making and is related to Y, thus making it possible to have a prediction of Y.
  • 3. 2 Types of Regression Y Continuous E.g., SalesVolume, Claim Amount, % of sales growth etc. Binary (0/1) E.g., Buy/No-Buy, Survive/Not- Survive,Win/Loss etc Ordinary Least Square (OLS) Regression Logistic Regression
  • 4. • Regression analysis is used to: • Predict the value of a dependent variable based on the value of at least one independent variable • Explain the impact of changes in an independent variable on the dependent variable • Dependent variable: the variable we wish to explain, usually denoted by Y. • Independent variable: the variable used to explain the dependent variable. Usually denoted by X. 3 Intro to RegressionAnalysis
  • 5. 4 Regression Example Predict the fitness of a person based on one or more parameters.
  • 7. • Only one independent variable, x • Relationship between x and y is described by a linear function • Changes in y are assumed to be caused by changes in x 6 Simple Linear Regression Model
  • 8. 7 Assumptions for Simple Linear Regression E(ε) = 0
  • 10. 9 Assumptions for Multiple Regression ݅ 2 ߝ ଶ
  • 11. 10 i]j0,)ε[E(ε ji ≠= Assumptions for Multiple Regression
  • 18. 17 The Simple Linear Regression Model
  • 19. 18 The Multiple Linear Regression Model
  • 20. 19 Model for Multiple Regression
  • 21. 20 Positive Linear Relationship Negative Linear Relationship No Relationship Relationship NOT Linear Types of Regression Relationships
  • 22. 21 Unknown Relationship Population Random Sample Y Xi i i= + +β β ε0 1 ☺ ☺ ☺ ☺ ☺ ☺ ☺ Population & Sample Regression Models
  • 23. 22 PredictedValue ofY for Xi Intercept = β0 Random Error for this x value Y X uXββY 10 ++= xi Slope = β1 ui Individual person's marks Population Linear Regression
  • 24. 23 Linear component Population y intercept Population Slope Coefficient Random Error term, or residual Dependent Variable Independent Variable Random Error component uXββY 10 ++= But can we actually get this equation? If yes what all information we will need? Population Regression Function
  • 25. 24 PredictedValue ofY for Xi Intercept = β0 Random Error for this x value Y Xxi Slope = β1 exbby 10 ++= ei ObservedValue of y for xi Sample Regression Function
  • 26. 25 exbby 10i ++= Estimate of the regression intercept Estimate of the regression slope Independent variable Error term Notice the similarity with the Population Regression Function Can we do something of the error term? Sample Regression Function
  • 27. • Represents the influence of all the variable which we have not accounted for in the equation • It represents the difference between the actual y values as compared the predicted y values from the Sample Regression Line • Wouldn't it be good if we were able to reduce this error term? • By the way - what are we trying to achieve by Sample Regression? 26 The ErrorTerm (Residual)
  • 28. 27 HowWell A Model Fits the Data
  • 29. 28 Comparing the Regression Model to a Baseline Model
  • 30. 29 Comparing the Regression Model to a Baseline Model
  • 31. • The sum of the residuals from the least squares regression line is zero. • The sum of the squared residuals is a minimum. Minimize( ) • The simple regression line always passes through the mean of the y variable and the mean of the x variable • The least squares coefficients are unbiased estimates of β0 and β1 30 0)ˆ( =−∑ yy 2 )ˆ( yy∑ − OLS Regression Properties
  • 32. • Parameter Instability - This happens in situations where correlations change over a period of time.This is very common in financial markets where economic, tax, regulatory, and political factors change frequently. • Public knowledge of a specific regression relation may cause a large number of people to react in a similar fashion towards the variables, negating its future usefulness. • If any of the regression assumptions are violated, predicted dependent variables and hypothesis tests will not hold valid. 31 Limitations of RegressionAnalysis
  • 33. • In simple linear regression, the dependent variable was assumed to be dependent on only one variable (independent variable) • In General Multiple Linear Regression model, the dependent variable derives its value from two or more than two variable. • General Multiple Linear Regression model take the following form: where: Yi = ith observation of dependent variableY Xki = ith observation of kth independent variable X b0 = intercept term bk = slope coefficient of kth independent variable εi = error term of ith observation n = number of observations k = total number of independent variables 32 ikikiii XbXbXbbY ε+++++= .........22110 General Multiple Linear Regression Model
  • 34. • As we calculated the intercept and the slope coefficient in case of simple linear regression by minimizing the sum of squared errors, similarly we estimate the intercept and slope coefficient in multiple linear regression. • Sum of Squared Errors is minimized and the slope coefficient is estimated. • The resultant estimated equation becomes: • Now the error in the ith observation can be written as: 33 ∑= n i i 1 2 ε kikiii XbXbXbbY ∧∧∧∧∧ ++++= .........22110       ++++−=−= ∧∧∧∧∧ kikiiiiii XbXbXbbYYY .........22110ε Estimated Regression Equation
  • 35. 34 Assumptions of Multiple Regression Model • There exists a linear relationship between the dependent and independent variables. • The expected value of the error term, conditional on the independent variables is zero. • The error terms are homoskedastic, i.e. the variance of the error terms is constant for all the observations. • The expected value of the product of error terms is always zero, which implies that the error terms are uncorrelated with each other. • The error term is normally distributed. • The independent variables doesn't have any linear relationships between each other.