SlideShare a Scribd company logo
Lecture 4
Econ 488
Ordinary Least Squares (OLS)
Yi = β 0 + β1 X 1i + β 2 X 2i + ... + β K X Ki + ε i
 Objective

of OLS  Minimize the sum of
squared residuals:

min n 2

ˆ ∑ ei
β i =1

where

 Remember

ˆ
ei = Yi − Yi

that OLS is not the only possible
estimator of the βs.
 But OLS is the best estimator under certain
assumptions…
Classical Assumptions
 1.

Regression is linear in parameters
 2. Error term has zero population mean
 3. Error term is not correlated with X’s
 4. No serial correlation
 5. No heteroskedasticity
 6. No perfect multicollinearity
 and we usually add:
 7. Error term is normally distributed
Assumption 1: Linearity
 The


regression model:

A) is linear


It can be written as
Yi = β 0 + β1 X 1i + β 2 X 2i + ... + β K X Ki + ε i

This doesn’t mean that the theory must be linear
 For example… suppose we believe that CEO salary is
related to the firm’s sales and CEO’s tenure.
 We might believe the model is:
log( salary ) i = β 0 + β1 log( salesi ) + β 2tenurei + β 3tenure 2 i + ε i

Assumption 1: Linearity
 The


regression model:

B) is correctly specified
The model must have the right variables
 No omitted variables
 The model must have the correct functional form
 This is all untestable  We need to rely on economic
theory.

Assumption 1: Linearity
 The


regression model:

C) must have an additive error term


The model must have + εi
Assumption 2: E(εi)=0
 Error

term has a zero population mean
 E(εi)=0
 Each

observation has a random error with
a mean of zero
 What if E(εi)≠0?
 This

is actually fixed by adding a constant
(AKA intercept) term
Assumption 2: E(εi)=0
 Example:

Suppose instead the mean of εi

was -4.
 Then we know E(εi+4)=0
 We

can add 4 to the error term and
subtract 4 from the constant term:
 Yi =β0+ β1Xi+εi
 Yi

=(β0-4)+ β1Xi+(εi+4)
Assumption 2: E(εi)=0
 Yi

=β0+ β1Xi+εi

 Yi

=(β0-4)+ β1Xi+(εi+4)

 We

can rewrite:
 Yi =β0*+ β1Xi+εi*
 Where
 Now

β0*= β0-4

and

εi*=εi+4

E(εi*)=0, so we are OK.
Assumption 3: Exogeneity
 Important!!
 All

explanatory variables are uncorrelated
with the error term
 E(εi|X1i,X2i,…, XKi,)=0
 Explanatory

variables are determined
outside of the model (They are
exogenous)
Assumption 3: Exogeneity
 What

happens if assumption 3 is violated?
 Suppose we have the model,
 Yi =β0+ β1Xi+εi
 Suppose
 When

well.

Xi and εi are positively correlated

Xi is large, εi tends to be large as
Assumption 3: Exogeneity
120

100

“True” Line

80

60

“True Line”

40

20
0
0
-20
-40

5

10

15

20

25
Assumption 3: Exogeneity
120

100

Data
Data

80

“True” Line

60

“True Line”
“True Line”

40
20

0
0
-20

-40

5

10

15

20

25
Assumption 3: Exogeneity
120

Estimated Line

100

Data

80
60

“True Line”

40

20

0
0
-20

-40

5

10

15

20

25
Assumption 3: Exogeneity
 Why

would x and ε be correlated?
 Suppose you are trying to study the
relationship between the price of a
hamburger and the quantity sold across a
wide variety of Ventura County
restaurants.
Assumption 3: Exogeneity
 We

estimate the relationship using the
following model:
 salesi= β0+β1pricei+εi
 What’s

the problem?
Assumption 3: Exogeneity
 What’s
 What

the problem?

else determines sales of hamburgers?
 How would you decide between buying a burger
at McDonald’s ($0.89) or a burger at TGI
Fridays ($9.99)?
 Quality differs
 sales = β +β price +ε  quality isn’t an X variable
i
0
1
i
i
even though it should be.
 It becomes part of ε
i
Assumption 3: Exogeneity
 What’s
 But

the problem?

price and quality are highly positively
correlated
 Therefore x and ε are also positively correlated.
 This means that the estimate of β will be too
1
high
 This is called “Omitted Variables Bias” (More in
Chapter 6)
Assumption 4: No Serial Correlation
 Serial

Correlation: The error terms across
observations are correlated with each
other
 i.e. ε1 is correlated with ε2, etc.
 This

is most important in time series
 If errors are serially correlated, an
increase in the error term in one time
period affects the error term in the next.
Assumption 4: No Serial Correlation
The assumption that there is no serial
correlation can be unrealistic in time series
 Think of data from a stock market…

Real S&P 500 Stock Price Index

Assumption 4: No Serial Correlation
2000
1500
1000

Price

500
0

1870

-500

1920

1970
Year

Stock data is serially correlated!

2020
Assumption 5: Homoskedasticity
 Homoskedasticity:

The error has a

constant variance
 This is what we want…as opposed to
 Heteroskedasticity: The variance of the
error depends on the values of Xs.
Assumption 5: Homoskedasticity

Homoskedasticity: The error has constant variance
Assumption 5: Homoskedasticity

Heteroskedasticity: Spread of error depends on X.
Assumption 5: Homoskedasticity

Another form of Heteroskedasticity
Assumption 6: No Perfect Multicollinearity
 Two

variables are perfectly collinear if one
can be determined perfectly from the other
(i.e. if you know the value of x, you can
always find the value of z).
 Example: If we regress income on age,
and include both age in months and age in
years.
 But

age in years = age in months/12
 e.g. if we know someone is 246 months old, we
also know that they are 20.5 years old.
Assumption 6: No Perfect Multicollinearity
 What’s

wrong with this?
 incomei= β0 + β1agemonthsi +
β2ageyearsi + εi
 What is β1?
 It is the change in income associated with
a one unit increase in “age in months,”
holding age in years constant.
 But

if you hold age in years constant, age in
months doesn’t change!
Assumption 6: No Perfect Multicollinearity
 β1 =

Δincome/Δagemonths

 Holding

Δageyears = 0
 If Δageyears = 0; then Δagemonths = 0
 So β1 = Δincome/0
 It

is undefined!
Assumption 6: No Perfect Multicollinearity
 When

more than one independent variable
is a perfect linear combination of the other
independent variables, it is called Perfect
MultiCollinearity
 Example: Total Cholesterol, HDL and LDL
 Total Cholesterol = LDL + HDL
 Can’t include all three as independent
variables in a regression.
 Solution: Drop one of the variables.
Assumption 7: Normally Distributed Error
Assumption 7: Normally Distributed Error
 This

is required not required for OLS, but it
is important for hypothesis testing
 More on this assumption next time.
Putting it all together
 Last

class, we talked about how to compare
estimators. We want:
ˆ
 1. β is unbiased.



ˆ
E (β ) = β

on average, the estimator is equal to the population
value

ˆ
 2. β


is efficient

The variance of the estimator is as small as possible
Putting it all togehter
Gauss-Markov Theorem
 Given

OLS assumptions 1 through 6, the
OLS estimator of βk is the minimum
variance estimator from the set of all linear
unbiased estimators of βk for k=0,1,2,…,K

 OLS

is BLUE
 The Best, Linear, Unbiased Estimator
Gauss-Markov Theorem
 What

happens if we add assumption 7?
 Given assumptions 1 through 7, OLS is
the best unbiased estimator
 Even out of the non-linear estimators
 OLS is BUE?
Gauss-Markov Theorem
 With

Assumptions 1-7 OLS is:
ˆ
 1. Unbiased: E ( β ) = β
 2. Minimum Variance – the sampling distribution
is as small as possible
 3. Consistent – as n∞, the estimators
converge to the true parameters


 4.

As n increases, variance gets smaller, so each estimate
approaches the true value of β.

Normally Distributed. You can apply
statistical tests to them.

More Related Content

What's hot

Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
SwapnaJahan
 
Dummy variable
Dummy variableDummy variable
Dummy variableAkram Ali
 
regression assumption by Ammara Aftab
regression assumption by Ammara Aftabregression assumption by Ammara Aftab
regression assumption by Ammara AftabUniversity of Karachi
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
Yugesh Dutt Panday
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
Pawan Kawan
 
Ols
OlsOls
Dummyvariable1
Dummyvariable1Dummyvariable1
Dummyvariable1
Sreenivasa Harish
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
Irfan Hussain
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
Madurai Kamaraj University
 
Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11
Almaszabeen Badekhan
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d test
Shilpa Chaudhary
 
Theories of consumption II
Theories of consumption   IITheories of consumption   II
Theories of consumption II
Prabha Panth
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
Almaszabeen Badekhan
 
Autocorrelation- Concept, Causes and Consequences
Autocorrelation- Concept, Causes and ConsequencesAutocorrelation- Concept, Causes and Consequences
Autocorrelation- Concept, Causes and Consequences
Shilpa Chaudhary
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticityhalimuth
 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1Muhammad Ali
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1stIshaq Ahmad
 
Econometric model ing
Econometric model ingEconometric model ing
Econometric model ingMatt Grant
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
PatilDevendra5
 

What's hot (20)

Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
 
Dummy variable
Dummy variableDummy variable
Dummy variable
 
regression assumption by Ammara Aftab
regression assumption by Ammara Aftabregression assumption by Ammara Aftab
regression assumption by Ammara Aftab
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
Ols
OlsOls
Ols
 
Dummyvariable1
Dummyvariable1Dummyvariable1
Dummyvariable1
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d test
 
Theories of consumption II
Theories of consumption   IITheories of consumption   II
Theories of consumption II
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 
Autocorrelation- Concept, Causes and Consequences
Autocorrelation- Concept, Causes and ConsequencesAutocorrelation- Concept, Causes and Consequences
Autocorrelation- Concept, Causes and Consequences
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1st
 
Econometric model ing
Econometric model ingEconometric model ing
Econometric model ing
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 

Viewers also liked

STATA - Introduction
STATA - IntroductionSTATA - Introduction
STATA - Introductionstata_org_uk
 
Stata statistics
Stata statisticsStata statistics
Stata statistics
izahn
 
Data Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVAData Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVA
Derek Kane
 
Regression analysis
Regression analysisRegression analysis
Regression analysisRavi shankar
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
Elkana Rorio
 
Simple (and Simplistic) Introduction to Econometrics and Linear Regression
Simple (and Simplistic) Introduction to Econometrics and Linear RegressionSimple (and Simplistic) Introduction to Econometrics and Linear Regression
Simple (and Simplistic) Introduction to Econometrics and Linear Regression
Philip Tiongson
 
STATA - Panel Regressions
STATA - Panel RegressionsSTATA - Panel Regressions
STATA - Panel Regressionsstata_org_uk
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)Harsh Upadhyay
 
Econometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviewsEconometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviews
Deiven Jesus Palpa
 
L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3analystbuddy
 
How to write a review article
How to write a review articleHow to write a review article
How to write a review article
Harshit Jadav
 
2.3 the simple regression model
2.3 the simple regression model2.3 the simple regression model
2.3 the simple regression modelRegmi Milan
 
A&S 350 Vr
A&S 350 VrA&S 350 Vr
A&S 350 Vrzjmo222
 
Stats powerpoint presentation
Stats powerpoint presentationStats powerpoint presentation
Stats powerpoint presentationjpratt23
 
Reporting Workshop 10.12.08 B
Reporting Workshop 10.12.08 BReporting Workshop 10.12.08 B
Reporting Workshop 10.12.08 B
Heather Price
 
Reporting Workshop
Reporting WorkshopReporting Workshop
Reporting Workshop
TitoOlsen
 
Rank correlation- some features and an application
Rank correlation- some features and an applicationRank correlation- some features and an application
Rank correlation- some features and an application
Kushal Kumar Dey
 
Endogenous and exogenous christalization
Endogenous and exogenous christalizationEndogenous and exogenous christalization
Endogenous and exogenous christalization
greenbike
 

Viewers also liked (20)

Regression
RegressionRegression
Regression
 
STATA - Introduction
STATA - IntroductionSTATA - Introduction
STATA - Introduction
 
Stata statistics
Stata statisticsStata statistics
Stata statistics
 
Data Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVAData Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVA
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Simple (and Simplistic) Introduction to Econometrics and Linear Regression
Simple (and Simplistic) Introduction to Econometrics and Linear RegressionSimple (and Simplistic) Introduction to Econometrics and Linear Regression
Simple (and Simplistic) Introduction to Econometrics and Linear Regression
 
STATA - Panel Regressions
STATA - Panel RegressionsSTATA - Panel Regressions
STATA - Panel Regressions
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Report writing
Report writingReport writing
Report writing
 
Econometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviewsEconometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviews
 
L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3
 
How to write a review article
How to write a review articleHow to write a review article
How to write a review article
 
2.3 the simple regression model
2.3 the simple regression model2.3 the simple regression model
2.3 the simple regression model
 
A&S 350 Vr
A&S 350 VrA&S 350 Vr
A&S 350 Vr
 
Stats powerpoint presentation
Stats powerpoint presentationStats powerpoint presentation
Stats powerpoint presentation
 
Reporting Workshop 10.12.08 B
Reporting Workshop 10.12.08 BReporting Workshop 10.12.08 B
Reporting Workshop 10.12.08 B
 
Reporting Workshop
Reporting WorkshopReporting Workshop
Reporting Workshop
 
Rank correlation- some features and an application
Rank correlation- some features and an applicationRank correlation- some features and an application
Rank correlation- some features and an application
 
Endogenous and exogenous christalization
Endogenous and exogenous christalizationEndogenous and exogenous christalization
Endogenous and exogenous christalization
 

Similar to Lecture 4

Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regressionjamuga gitulho
 
Machine learning (4)
Machine learning (4)Machine learning (4)
Machine learning (4)NYversity
 
Cs229 notes4
Cs229 notes4Cs229 notes4
Cs229 notes4
VuTran231
 
PRML Chapter 1
PRML Chapter 1PRML Chapter 1
PRML Chapter 1
Sunwoo Kim
 
chap4_Parametric_Methods.ppt
chap4_Parametric_Methods.pptchap4_Parametric_Methods.ppt
chap4_Parametric_Methods.ppt
ShayanChowdary
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
HelpWithAssignment.com
 
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Daniel Katz
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
Matthew L Levy
 
MVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطةMVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطة
Dr. Karrar Alwash
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
DevendraRavindraPati
 
For this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The dFor this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The d
MerrileeDelvalle969
 
Analysis.pptx
Analysis.pptxAnalysis.pptx
Analysis.pptx
AryanVerma215603
 
Chapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptxChapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptx
aschalew shiferaw
 
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
Slides With MANAV
 
Lec1.regression
Lec1.regressionLec1.regression
Lec1.regression
Aftab Alam
 
Quantitative Analysis Homework Help
Quantitative Analysis Homework HelpQuantitative Analysis Homework Help
Quantitative Analysis Homework Help
Excel Homework Help
 
Basic statistics by_david_solomon_hadi_-_split_and_reviewed
Basic statistics by_david_solomon_hadi_-_split_and_reviewedBasic statistics by_david_solomon_hadi_-_split_and_reviewed
Basic statistics by_david_solomon_hadi_-_split_and_reviewed
bob panic
 
Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression model
Mehdi Shayegani
 
Deep VI with_beta_likelihood
Deep VI with_beta_likelihoodDeep VI with_beta_likelihood
Deep VI with_beta_likelihood
Natan Katz
 
download-1678454734797.pptx
download-1678454734797.pptxdownload-1678454734797.pptx
download-1678454734797.pptx
Ahmedalmahdi16
 

Similar to Lecture 4 (20)

Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
 
Machine learning (4)
Machine learning (4)Machine learning (4)
Machine learning (4)
 
Cs229 notes4
Cs229 notes4Cs229 notes4
Cs229 notes4
 
PRML Chapter 1
PRML Chapter 1PRML Chapter 1
PRML Chapter 1
 
chap4_Parametric_Methods.ppt
chap4_Parametric_Methods.pptchap4_Parametric_Methods.ppt
chap4_Parametric_Methods.ppt
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
 
MVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطةMVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطة
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
For this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The dFor this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The d
 
Analysis.pptx
Analysis.pptxAnalysis.pptx
Analysis.pptx
 
Chapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptxChapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptx
 
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
Ncert Maths Class-X | Chapter-1 | Slides By MANAV |
 
Lec1.regression
Lec1.regressionLec1.regression
Lec1.regression
 
Quantitative Analysis Homework Help
Quantitative Analysis Homework HelpQuantitative Analysis Homework Help
Quantitative Analysis Homework Help
 
Basic statistics by_david_solomon_hadi_-_split_and_reviewed
Basic statistics by_david_solomon_hadi_-_split_and_reviewedBasic statistics by_david_solomon_hadi_-_split_and_reviewed
Basic statistics by_david_solomon_hadi_-_split_and_reviewed
 
Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression model
 
Deep VI with_beta_likelihood
Deep VI with_beta_likelihoodDeep VI with_beta_likelihood
Deep VI with_beta_likelihood
 
download-1678454734797.pptx
download-1678454734797.pptxdownload-1678454734797.pptx
download-1678454734797.pptx
 

More from Subrat Sar

Pages for report
Pages for reportPages for report
Pages for report
Subrat Sar
 
Journals ranking
Journals rankingJournals ranking
Journals rankingSubrat Sar
 
Course plan of international business
Course plan of international businessCourse plan of international business
Course plan of international businessSubrat Sar
 

More from Subrat Sar (6)

Pages for report
Pages for reportPages for report
Pages for report
 
Journals ranking
Journals rankingJournals ranking
Journals ranking
 
Pom1
Pom1Pom1
Pom1
 
Pom1
Pom1Pom1
Pom1
 
Course plan of international business
Course plan of international businessCourse plan of international business
Course plan of international business
 
Notification
NotificationNotification
Notification
 

Recently uploaded

SMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the worldSMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the world
smmpanel567
 
Generative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter WeltmanGenerative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter Weltman
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya KellyHow to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Search Engine Marketing - Competitor and Keyword research
Search Engine Marketing  - Competitor and Keyword researchSearch Engine Marketing  - Competitor and Keyword research
Search Engine Marketing - Competitor and Keyword research
ETMARK ACADEMY
 
10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User JourneysMastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
Search Engine Journal
 
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdfOffissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
offisadizayn
 
Top 3 Ways to Align Sales and Marketing Teams for Rapid Growth
Top 3 Ways to Align Sales and Marketing Teams for Rapid GrowthTop 3 Ways to Align Sales and Marketing Teams for Rapid Growth
Top 3 Ways to Align Sales and Marketing Teams for Rapid Growth
Demandbase
 
How to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social PlatformsHow to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social Platforms
VWO
 
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel LeminTurn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_VersionThe_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
AmirYakdi
 
De-risk Your Digital Evolution - Hannah Grap
De-risk Your Digital Evolution - Hannah GrapDe-risk Your Digital Evolution - Hannah Grap
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel BussiusYour Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
15 ideas and frameworks on the art of storytelling
15 ideas and frameworks on the art of storytelling15 ideas and frameworks on the art of storytelling
15 ideas and frameworks on the art of storytelling
Aatir Abdul Rauf
 
Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024
Andy Lambert
 
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly BulletinBLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BalmerLawrie
 
Winning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis YuWinning local SEO in the Age of AI - Dennis Yu
Marketing as a Primary Revenue Driver - Lee Levitt
Marketing as a Primary Revenue Driver - Lee LevittMarketing as a Primary Revenue Driver - Lee Levitt
FullSail: HOF - Presentation Phil Pallen
FullSail: HOF - Presentation Phil PallenFullSail: HOF - Presentation Phil Pallen
FullSail: HOF - Presentation Phil Pallen
travisomalana
 

Recently uploaded (20)

SMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the worldSMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the world
 
Generative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter WeltmanGenerative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter Weltman
 
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya KellyHow to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
 
Search Engine Marketing - Competitor and Keyword research
Search Engine Marketing  - Competitor and Keyword researchSearch Engine Marketing  - Competitor and Keyword research
Search Engine Marketing - Competitor and Keyword research
 
10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
 
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User JourneysMastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
Mastering Multi-Touchpoint Content Strategy: Navigate Fragmented User Journeys
 
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdfOffissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
 
Top 3 Ways to Align Sales and Marketing Teams for Rapid Growth
Top 3 Ways to Align Sales and Marketing Teams for Rapid GrowthTop 3 Ways to Align Sales and Marketing Teams for Rapid Growth
Top 3 Ways to Align Sales and Marketing Teams for Rapid Growth
 
How to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social PlatformsHow to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social Platforms
 
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel LeminTurn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
 
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_VersionThe_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
 
De-risk Your Digital Evolution - Hannah Grap
De-risk Your Digital Evolution - Hannah GrapDe-risk Your Digital Evolution - Hannah Grap
De-risk Your Digital Evolution - Hannah Grap
 
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel BussiusYour Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
 
15 ideas and frameworks on the art of storytelling
15 ideas and frameworks on the art of storytelling15 ideas and frameworks on the art of storytelling
15 ideas and frameworks on the art of storytelling
 
Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024
 
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly BulletinBLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
 
Winning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis YuWinning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis Yu
 
Marketing as a Primary Revenue Driver - Lee Levitt
Marketing as a Primary Revenue Driver - Lee LevittMarketing as a Primary Revenue Driver - Lee Levitt
Marketing as a Primary Revenue Driver - Lee Levitt
 
FullSail: HOF - Presentation Phil Pallen
FullSail: HOF - Presentation Phil PallenFullSail: HOF - Presentation Phil Pallen
FullSail: HOF - Presentation Phil Pallen
 

Lecture 4

  • 2. Ordinary Least Squares (OLS) Yi = β 0 + β1 X 1i + β 2 X 2i + ... + β K X Ki + ε i  Objective of OLS  Minimize the sum of squared residuals: min n 2  ˆ ∑ ei β i =1 where  Remember ˆ ei = Yi − Yi that OLS is not the only possible estimator of the βs.  But OLS is the best estimator under certain assumptions…
  • 3. Classical Assumptions  1. Regression is linear in parameters  2. Error term has zero population mean  3. Error term is not correlated with X’s  4. No serial correlation  5. No heteroskedasticity  6. No perfect multicollinearity  and we usually add:  7. Error term is normally distributed
  • 4. Assumption 1: Linearity  The  regression model: A) is linear  It can be written as Yi = β 0 + β1 X 1i + β 2 X 2i + ... + β K X Ki + ε i This doesn’t mean that the theory must be linear  For example… suppose we believe that CEO salary is related to the firm’s sales and CEO’s tenure.  We might believe the model is: log( salary ) i = β 0 + β1 log( salesi ) + β 2tenurei + β 3tenure 2 i + ε i 
  • 5. Assumption 1: Linearity  The  regression model: B) is correctly specified The model must have the right variables  No omitted variables  The model must have the correct functional form  This is all untestable  We need to rely on economic theory. 
  • 6. Assumption 1: Linearity  The  regression model: C) must have an additive error term  The model must have + εi
  • 7. Assumption 2: E(εi)=0  Error term has a zero population mean  E(εi)=0  Each observation has a random error with a mean of zero  What if E(εi)≠0?  This is actually fixed by adding a constant (AKA intercept) term
  • 8. Assumption 2: E(εi)=0  Example: Suppose instead the mean of εi was -4.  Then we know E(εi+4)=0  We can add 4 to the error term and subtract 4 from the constant term:  Yi =β0+ β1Xi+εi  Yi =(β0-4)+ β1Xi+(εi+4)
  • 9. Assumption 2: E(εi)=0  Yi =β0+ β1Xi+εi  Yi =(β0-4)+ β1Xi+(εi+4)  We can rewrite:  Yi =β0*+ β1Xi+εi*  Where  Now β0*= β0-4 and εi*=εi+4 E(εi*)=0, so we are OK.
  • 10. Assumption 3: Exogeneity  Important!!  All explanatory variables are uncorrelated with the error term  E(εi|X1i,X2i,…, XKi,)=0  Explanatory variables are determined outside of the model (They are exogenous)
  • 11. Assumption 3: Exogeneity  What happens if assumption 3 is violated?  Suppose we have the model,  Yi =β0+ β1Xi+εi  Suppose  When well. Xi and εi are positively correlated Xi is large, εi tends to be large as
  • 12. Assumption 3: Exogeneity 120 100 “True” Line 80 60 “True Line” 40 20 0 0 -20 -40 5 10 15 20 25
  • 13. Assumption 3: Exogeneity 120 100 Data Data 80 “True” Line 60 “True Line” “True Line” 40 20 0 0 -20 -40 5 10 15 20 25
  • 14. Assumption 3: Exogeneity 120 Estimated Line 100 Data 80 60 “True Line” 40 20 0 0 -20 -40 5 10 15 20 25
  • 15. Assumption 3: Exogeneity  Why would x and ε be correlated?  Suppose you are trying to study the relationship between the price of a hamburger and the quantity sold across a wide variety of Ventura County restaurants.
  • 16. Assumption 3: Exogeneity  We estimate the relationship using the following model:  salesi= β0+β1pricei+εi  What’s the problem?
  • 17. Assumption 3: Exogeneity  What’s  What the problem? else determines sales of hamburgers?  How would you decide between buying a burger at McDonald’s ($0.89) or a burger at TGI Fridays ($9.99)?  Quality differs  sales = β +β price +ε  quality isn’t an X variable i 0 1 i i even though it should be.  It becomes part of ε i
  • 18. Assumption 3: Exogeneity  What’s  But the problem? price and quality are highly positively correlated  Therefore x and ε are also positively correlated.  This means that the estimate of β will be too 1 high  This is called “Omitted Variables Bias” (More in Chapter 6)
  • 19. Assumption 4: No Serial Correlation  Serial Correlation: The error terms across observations are correlated with each other  i.e. ε1 is correlated with ε2, etc.  This is most important in time series  If errors are serially correlated, an increase in the error term in one time period affects the error term in the next.
  • 20. Assumption 4: No Serial Correlation The assumption that there is no serial correlation can be unrealistic in time series  Think of data from a stock market… 
  • 21. Real S&P 500 Stock Price Index Assumption 4: No Serial Correlation 2000 1500 1000 Price 500 0 1870 -500 1920 1970 Year Stock data is serially correlated! 2020
  • 22. Assumption 5: Homoskedasticity  Homoskedasticity: The error has a constant variance  This is what we want…as opposed to  Heteroskedasticity: The variance of the error depends on the values of Xs.
  • 23. Assumption 5: Homoskedasticity Homoskedasticity: The error has constant variance
  • 24. Assumption 5: Homoskedasticity Heteroskedasticity: Spread of error depends on X.
  • 25. Assumption 5: Homoskedasticity Another form of Heteroskedasticity
  • 26. Assumption 6: No Perfect Multicollinearity  Two variables are perfectly collinear if one can be determined perfectly from the other (i.e. if you know the value of x, you can always find the value of z).  Example: If we regress income on age, and include both age in months and age in years.  But age in years = age in months/12  e.g. if we know someone is 246 months old, we also know that they are 20.5 years old.
  • 27. Assumption 6: No Perfect Multicollinearity  What’s wrong with this?  incomei= β0 + β1agemonthsi + β2ageyearsi + εi  What is β1?  It is the change in income associated with a one unit increase in “age in months,” holding age in years constant.  But if you hold age in years constant, age in months doesn’t change!
  • 28. Assumption 6: No Perfect Multicollinearity  β1 = Δincome/Δagemonths  Holding Δageyears = 0  If Δageyears = 0; then Δagemonths = 0  So β1 = Δincome/0  It is undefined!
  • 29. Assumption 6: No Perfect Multicollinearity  When more than one independent variable is a perfect linear combination of the other independent variables, it is called Perfect MultiCollinearity  Example: Total Cholesterol, HDL and LDL  Total Cholesterol = LDL + HDL  Can’t include all three as independent variables in a regression.  Solution: Drop one of the variables.
  • 30. Assumption 7: Normally Distributed Error
  • 31. Assumption 7: Normally Distributed Error  This is required not required for OLS, but it is important for hypothesis testing  More on this assumption next time.
  • 32. Putting it all together  Last class, we talked about how to compare estimators. We want: ˆ  1. β is unbiased.   ˆ E (β ) = β on average, the estimator is equal to the population value ˆ  2. β  is efficient The variance of the estimator is as small as possible
  • 33. Putting it all togehter
  • 34. Gauss-Markov Theorem  Given OLS assumptions 1 through 6, the OLS estimator of βk is the minimum variance estimator from the set of all linear unbiased estimators of βk for k=0,1,2,…,K  OLS is BLUE  The Best, Linear, Unbiased Estimator
  • 35. Gauss-Markov Theorem  What happens if we add assumption 7?  Given assumptions 1 through 7, OLS is the best unbiased estimator  Even out of the non-linear estimators  OLS is BUE?
  • 36. Gauss-Markov Theorem  With Assumptions 1-7 OLS is: ˆ  1. Unbiased: E ( β ) = β  2. Minimum Variance – the sampling distribution is as small as possible  3. Consistent – as n∞, the estimators converge to the true parameters   4. As n increases, variance gets smaller, so each estimate approaches the true value of β. Normally Distributed. You can apply statistical tests to them.