SlideShare une entreprise Scribd logo
1  sur  34
Multiple regression analysis
And
Stepwise regression
History:
The earliest form of regression was
the method of least squares, which was
published by Legendre in 1805, and by Gauss in
1809.
The term "regression" was used by British
biometrician sir Francis Galton in the (1822-
1911), to describe a biological phenomenon.
Sir Galton's work on inherited characteristics
of sweet peas led to the initial conception of
linear regression.
Introduction:
 Regression is a statistical technique for investigating
and modeling the relationship between variables.
 Applications of regression are numerous and occur
in almost every field, including engineering, the
physical and the social sciences, and the biological
sciences.
 Usually, the investigator seeks to ascertain the causal
effect of one variable upon another—the effect of a
price increase upon demand, for example, or the effect
of changes in the money supply upon the inflation rate.
Definition:
Regression is the measure of the average
relationship between two or more variables in terms of
the original units of the data. It is unquestionably the
most widely used statistical technique in social
sciences. It is also widely used in biological and
physical science.
Regression equation is (y) =a + b x
Slope (b) = (NΣXY-(ΣX)( ΣY)) / (NΣX2 – (ΣX)2)
Intercept (a) = (ΣY-b(ΣX)) / N
Review of Simple linear regression.
A simple linear regression is carried out to
estimate the relationship between a dependent variable, Y
and a single explanatory variable, x given a set of data
that includes observations for both of these variables for a
particular population.
•For ex: A real estate agent wishes to examine the
relationship between the selling price of a home and its size
(measured in square feet)
•A random sample of 10 houses is selected
Dependent variable (Y) = house price
Independent variable (X) = square feet
Simple Linear Regression Model
ii10i
εXββY
Linear component
Population
Y intercept
Population
Slope
Coefficient
Random
Error
term
Dependent
Variable
Independen
t Variable
Random Error
component
i10i
XbbYˆ
The simple linear regression equation provides
an estimate of the population regression line
Estimate of
the regression
intercept
Estimate of the
regression slope
Estimated
(or predicted)
Y value for
observation i
Value of X for
observation i
The individual random error terms ei have a mean of zero
Prediction equation is given by:
21
ˆ
xx
yyxx
SS
SS
i
ii
xx
xy
xy 10
ˆˆ
Estimation of coefficients:
Where
Measures of Variation
Total variation is made up of two parts:
SSESSRSST
Total Sum of
Squares
Regression Sum
of Squares
Error Sum of
Squares
2
i
)YY(SST 2
ii
)YˆY(SSE
2
i
)YYˆ(SSR
where:
= Average value of the dependent variable
Yi = Observed values of the dependent variable
i = Predicted value of Y for the given Xi valueYˆ
Y
Measures of Variation
Xi
Y
X
Yi
SST = (Yi - Y)2
SSE = (Yi - Yi )2
SSR = (Yi - Y)2
_
_
_
Y
Y
Y
_
Y
Coefficient of Determination, r2
• The coefficient of determination is the
portion of the total variation in the
dependent variable that is explained by
variation in the independent variable
• The coefficient of determination is also
called r-squared and is denoted as r2
1r0
2note:
squaresofsum
squaresofregression2
total
sum
SST
SSR
r
Multiple linear regression
Introduction:
The general purpose of multiple regression (the
term was first used by Pearson, 1908) is to learn more
about the relationship between several independent or
predictor variables and a dependent or criterion
variables.
Definition:
A regression model that involves the relationship
between two or more explanatory variables and a response
variable by fitting a linear equation to observed data (more
than one regressor variable) is called a multiple regression
model. Every value of the independent variable x is
associated with a value of the dependent variable y.
Suppose that the yield in the pounds of conversation in a
chemical process depends on temperature and the catalyst
concentration. A multiple regression model that might
describe the relationship is
y=β0+β1x1+β2x2+ε
where y denotes the yield,x1denotes the temperature,x2
denotes the catalyst concentration. This is multiple linear
regression model with two regressor variables.
The term linear is used because equation is a linear function
of the known parameters β0,β1& β2 and ε is error term.
The parameter β1 indicates that the expected
change in response (y) per unit change in x1 when x2 is held
constant. Similarly β2 measures the expected change in (y)
per unit change in x2 when x1 held constant.
In general, the response y may be related to k regressor (or)
predictor variables. The model
y= β0+β1x1+β2x2+……………+ βkxk+ε
is a multiple linear regression with k regressors. The parameters
βj, j=0,1,…….k. are called regression coefficients.
The parameter βj represents the expected change in the response (y)
per unit change in xj when all of the remaining regressor variables xi
(i≠j) are held constant. For this reason the parameters βj, j=1,…….k are
often called partial regression coefficients.
Assumptions of Regression
• For any given set of values of x1, x2, … , xk, the random
error has a probability distribution with the following
properties:
• 1. Mean equal to 0
• 2. Variance equal to 2
• 3. Normal distribution
• 4. Random errors are independent
Regression Analysis: Model Building
• General Linear Model
• Determining When to Add or Delete Variables
• Analysis of a Larger Problem
• Multiple Regression Approach
to Analysis of Variance
General Linear Model
Models in which the parameters (β0, β1, . . . , βp)
all have exponents of one are called linear
models.
• First-Order Model with One Predictor
Variable
y x0 1 1
y x0 1 1
Variable Selection Procedures
• Stepwise Regression
• Forward Selection
• Backward Elimination
Iterative; one
independent
variable at a time
is added or
deleted
Based on
the F statistic
Variable Selection Procedures
• F Test
• To test whether the addition of x2 to a model
involving x1 (or the deletion of x2 from a model
involving x1and x2) is statistically significant
F0=MSR/MSRes
(MSR=SSR/K)
The p-value corresponding to the F statistic is the
criterion used to determine if a variable should be added or
deleted
(SSE(reduced)-SSE(full))/number of extra terms
MSE(full)
F
Forward Selection
• This procedure is similar to stepwise-
regression, but does not permit a variable to
be deleted.
• This forward-selection procedure starts with
no independent variables.
• It adds variables one at a time as long as a
significant reduction in the error sum of
squares (SSE) can be achieved.
Backward Elimination
• This procedure begins with a model that
includes all the independent variables the
modeler wants considered.
• It then attempts to delete one variable at a
time by determining whether the least
significant variable currently in the model
can be removed because its p-value is less
than the user-specified or default value.
• Once a variable has been removed from the
model it cannot re enter at a subsequent step.
Stepwise regression:
Procedure of simultaneous forward and backward
selection also available
In a stepwise regression, predictor variables are
entered into the regression equation one at a time
based upon statistical criteria.
At each step in the analysis the predictor variable that
contributes the most to the prediction equation in
terms of increasing the multiple correlation, R, is
entered first. This process is continued only if
additional variables add anything statistically to the
regression equation.
The choosing is done according to following
manner
i.e.) delete x.i if ^i
2 E( 2 )(Z1
lZl)-1
ii<Fout=F1,n-r-1
pout
enter x.j if (n-r-2)cjq
2 (cjjcqq-cjq
2) > Fin=F1,n-r-2
pin
here either pin or pout are specify the stepwise
procedure is terminated when either of the two
following points happens
We can’t enter or delete the variables according to the above criteria
i.e.) this includes the case where enter all regressor & can’t delete any.
The processor dictates that the same regressor be enter and deleted in
successive operations the stepwise selection procedure is an attempt to
achieve to insert variables in terms until the regression equation is
satisfactory.
When additional predictor variables add anything statistically
meaningful to the regression equation, the analysis stops. Thus, not all
predictor variables may enter the equation in stepwise regression.
There are a number of multiple regression variants. Stepwise is usually
a good choice though one can enter all variables simultaneously as an
alternative. Similarly, one can enter all of the variables simultaneously
and gradually eliminate predictors one by one if elimination does little to
change the overall prediction.
Stepwise regression procedure is the best procedure when
compared to the all procedures we have see earlier.
Uses of Regression Analysis:
1.Regression analysis helps in establishing a functional
Relationship between two or more variables.
2. Since most of the problems of economic analysis are based
on cause and effect relationships, the regression analysis is a
highly valuable tool in economic and business research.
3. Regression analysis predicts the values of dependent
variables from the values of independent variables.
4. We can calculate coefficient of correlation (r) and
coefficient of determination (R2) with the help of regression
coefficients.
ANOVA TABLE:
Source Degrees of freedom Sum of squares Mean Square F
Regression 2 5550.8166 2775.4083 4.7*10-16
Residual 22 233.7260 10.6239
Total 24 5784.5426
R2 = 0.9596 Adjusted R2 = 0.9559
Scatter plot for cases and
distance
Regression

Contenu connexe

Tendances (20)

Correlation
CorrelationCorrelation
Correlation
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
T test
T testT test
T test
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation
CorrelationCorrelation
Correlation
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of Dispersion
 
Anova ppt
Anova pptAnova ppt
Anova ppt
 
Multiple Correlation - Thiyagu
Multiple Correlation - ThiyaguMultiple Correlation - Thiyagu
Multiple Correlation - Thiyagu
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression Analysis
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlation
 
Karl pearson's correlation
Karl pearson's correlationKarl pearson's correlation
Karl pearson's correlation
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 

Similaire à Regression

regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfMuhammadAftab89
 
Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Japheth Muthama
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JMJapheth Muthama
 
Regression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleRegression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleshivshankarshiva98
 
Regression analysis
Regression analysisRegression analysis
Regression analysissaba khan
 
Regression Analysis - Thiyagu
Regression Analysis - ThiyaguRegression Analysis - Thiyagu
Regression Analysis - ThiyaguThiyagu K
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.pptRufesh
 
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx k
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx kYdb ji n8 itc ko6esvj8 kgerx k8tc ko4sx k
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx kAdikesavaperumal
 
Regression analysis
Regression analysisRegression analysis
Regression analysisSohag Babu
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help HelpWithAssignment.com
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and AnnovaMansi Rastogi
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 

Similaire à Regression (20)

regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdf
 
Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Regression Analysis by Muthama JM
Regression Analysis by Muthama JM
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JM
 
Regression
RegressionRegression
Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Regression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleRegression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with example
 
Cost indexes
Cost indexesCost indexes
Cost indexes
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Reg
RegReg
Reg
 
Regression
RegressionRegression
Regression
 
Regression Analysis - Thiyagu
Regression Analysis - ThiyaguRegression Analysis - Thiyagu
Regression Analysis - Thiyagu
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.ppt
 
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx k
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx kYdb ji n8 itc ko6esvj8 kgerx k8tc ko4sx k
Ydb ji n8 itc ko6esvj8 kgerx k8tc ko4sx k
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
Regression
RegressionRegression
Regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
HIGHER MATHEMATICS
HIGHER MATHEMATICSHIGHER MATHEMATICS
HIGHER MATHEMATICS
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annova
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 

Dernier

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Dernier (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

Regression

  • 2. History: The earliest form of regression was the method of least squares, which was published by Legendre in 1805, and by Gauss in 1809. The term "regression" was used by British biometrician sir Francis Galton in the (1822- 1911), to describe a biological phenomenon. Sir Galton's work on inherited characteristics of sweet peas led to the initial conception of linear regression.
  • 3. Introduction:  Regression is a statistical technique for investigating and modeling the relationship between variables.  Applications of regression are numerous and occur in almost every field, including engineering, the physical and the social sciences, and the biological sciences.  Usually, the investigator seeks to ascertain the causal effect of one variable upon another—the effect of a price increase upon demand, for example, or the effect of changes in the money supply upon the inflation rate.
  • 4. Definition: Regression is the measure of the average relationship between two or more variables in terms of the original units of the data. It is unquestionably the most widely used statistical technique in social sciences. It is also widely used in biological and physical science. Regression equation is (y) =a + b x Slope (b) = (NΣXY-(ΣX)( ΣY)) / (NΣX2 – (ΣX)2) Intercept (a) = (ΣY-b(ΣX)) / N
  • 5. Review of Simple linear regression. A simple linear regression is carried out to estimate the relationship between a dependent variable, Y and a single explanatory variable, x given a set of data that includes observations for both of these variables for a particular population. •For ex: A real estate agent wishes to examine the relationship between the selling price of a home and its size (measured in square feet) •A random sample of 10 houses is selected Dependent variable (Y) = house price Independent variable (X) = square feet
  • 6. Simple Linear Regression Model ii10i εXββY Linear component Population Y intercept Population Slope Coefficient Random Error term Dependent Variable Independen t Variable Random Error component
  • 7. i10i XbbYˆ The simple linear regression equation provides an estimate of the population regression line Estimate of the regression intercept Estimate of the regression slope Estimated (or predicted) Y value for observation i Value of X for observation i The individual random error terms ei have a mean of zero Prediction equation is given by:
  • 9. Measures of Variation Total variation is made up of two parts: SSESSRSST Total Sum of Squares Regression Sum of Squares Error Sum of Squares 2 i )YY(SST 2 ii )YˆY(SSE 2 i )YYˆ(SSR where: = Average value of the dependent variable Yi = Observed values of the dependent variable i = Predicted value of Y for the given Xi valueYˆ Y
  • 10. Measures of Variation Xi Y X Yi SST = (Yi - Y)2 SSE = (Yi - Yi )2 SSR = (Yi - Y)2 _ _ _ Y Y Y _ Y
  • 11. Coefficient of Determination, r2 • The coefficient of determination is the portion of the total variation in the dependent variable that is explained by variation in the independent variable • The coefficient of determination is also called r-squared and is denoted as r2 1r0 2note: squaresofsum squaresofregression2 total sum SST SSR r
  • 12. Multiple linear regression Introduction: The general purpose of multiple regression (the term was first used by Pearson, 1908) is to learn more about the relationship between several independent or predictor variables and a dependent or criterion variables.
  • 13. Definition: A regression model that involves the relationship between two or more explanatory variables and a response variable by fitting a linear equation to observed data (more than one regressor variable) is called a multiple regression model. Every value of the independent variable x is associated with a value of the dependent variable y. Suppose that the yield in the pounds of conversation in a chemical process depends on temperature and the catalyst concentration. A multiple regression model that might describe the relationship is
  • 14. y=β0+β1x1+β2x2+ε where y denotes the yield,x1denotes the temperature,x2 denotes the catalyst concentration. This is multiple linear regression model with two regressor variables. The term linear is used because equation is a linear function of the known parameters β0,β1& β2 and ε is error term. The parameter β1 indicates that the expected change in response (y) per unit change in x1 when x2 is held constant. Similarly β2 measures the expected change in (y) per unit change in x2 when x1 held constant. In general, the response y may be related to k regressor (or) predictor variables. The model y= β0+β1x1+β2x2+……………+ βkxk+ε
  • 15. is a multiple linear regression with k regressors. The parameters βj, j=0,1,…….k. are called regression coefficients. The parameter βj represents the expected change in the response (y) per unit change in xj when all of the remaining regressor variables xi (i≠j) are held constant. For this reason the parameters βj, j=1,…….k are often called partial regression coefficients.
  • 16.
  • 17. Assumptions of Regression • For any given set of values of x1, x2, … , xk, the random error has a probability distribution with the following properties: • 1. Mean equal to 0 • 2. Variance equal to 2 • 3. Normal distribution • 4. Random errors are independent
  • 18. Regression Analysis: Model Building • General Linear Model • Determining When to Add or Delete Variables • Analysis of a Larger Problem • Multiple Regression Approach to Analysis of Variance
  • 19. General Linear Model Models in which the parameters (β0, β1, . . . , βp) all have exponents of one are called linear models. • First-Order Model with One Predictor Variable y x0 1 1 y x0 1 1
  • 20. Variable Selection Procedures • Stepwise Regression • Forward Selection • Backward Elimination Iterative; one independent variable at a time is added or deleted Based on the F statistic
  • 21. Variable Selection Procedures • F Test • To test whether the addition of x2 to a model involving x1 (or the deletion of x2 from a model involving x1and x2) is statistically significant F0=MSR/MSRes (MSR=SSR/K) The p-value corresponding to the F statistic is the criterion used to determine if a variable should be added or deleted (SSE(reduced)-SSE(full))/number of extra terms MSE(full) F
  • 22. Forward Selection • This procedure is similar to stepwise- regression, but does not permit a variable to be deleted. • This forward-selection procedure starts with no independent variables. • It adds variables one at a time as long as a significant reduction in the error sum of squares (SSE) can be achieved.
  • 23. Backward Elimination • This procedure begins with a model that includes all the independent variables the modeler wants considered. • It then attempts to delete one variable at a time by determining whether the least significant variable currently in the model can be removed because its p-value is less than the user-specified or default value. • Once a variable has been removed from the model it cannot re enter at a subsequent step.
  • 24. Stepwise regression: Procedure of simultaneous forward and backward selection also available In a stepwise regression, predictor variables are entered into the regression equation one at a time based upon statistical criteria. At each step in the analysis the predictor variable that contributes the most to the prediction equation in terms of increasing the multiple correlation, R, is entered first. This process is continued only if additional variables add anything statistically to the regression equation.
  • 25. The choosing is done according to following manner i.e.) delete x.i if ^i 2 E( 2 )(Z1 lZl)-1 ii<Fout=F1,n-r-1 pout enter x.j if (n-r-2)cjq 2 (cjjcqq-cjq 2) > Fin=F1,n-r-2 pin here either pin or pout are specify the stepwise procedure is terminated when either of the two following points happens
  • 26. We can’t enter or delete the variables according to the above criteria i.e.) this includes the case where enter all regressor & can’t delete any. The processor dictates that the same regressor be enter and deleted in successive operations the stepwise selection procedure is an attempt to achieve to insert variables in terms until the regression equation is satisfactory. When additional predictor variables add anything statistically meaningful to the regression equation, the analysis stops. Thus, not all predictor variables may enter the equation in stepwise regression. There are a number of multiple regression variants. Stepwise is usually a good choice though one can enter all variables simultaneously as an alternative. Similarly, one can enter all of the variables simultaneously and gradually eliminate predictors one by one if elimination does little to change the overall prediction. Stepwise regression procedure is the best procedure when compared to the all procedures we have see earlier.
  • 27. Uses of Regression Analysis: 1.Regression analysis helps in establishing a functional Relationship between two or more variables. 2. Since most of the problems of economic analysis are based on cause and effect relationships, the regression analysis is a highly valuable tool in economic and business research. 3. Regression analysis predicts the values of dependent variables from the values of independent variables. 4. We can calculate coefficient of correlation (r) and coefficient of determination (R2) with the help of regression coefficients.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. ANOVA TABLE: Source Degrees of freedom Sum of squares Mean Square F Regression 2 5550.8166 2775.4083 4.7*10-16 Residual 22 233.7260 10.6239 Total 24 5784.5426 R2 = 0.9596 Adjusted R2 = 0.9559 Scatter plot for cases and distance