SlideShare a Scribd company logo
1 of 33
Download to read offline
Economics 20 - Prof. Anderson 1
Multiple Regression Analysis
y = b0 + b1x1 + b2x2 + . . . bkxk + u
2. Inference
Gauss Markov Assumptions
Economics 20 - Prof. Anderson 2
Economics 20 - Prof. Anderson 3
Assumptions of the Classical
Linear Model (CLM)
Given the Gauss-Markov assumptions,
OLS is BLUE,
In order to do classical hypothesis testing,
we need to add another assumption (beyond
the Gauss-Markov assumptions)
Assume that u is independent of x1, x2,…, xk
and u is normally distributed with zero
mean and variance s2: u ~ Normal(0,s2)
Economics 20 - Prof. Anderson 4
CLM Assumptions (cont)
Under CLM, OLS is not only BLUE, but is
the minimum variance unbiased estimator
We can summarize the population
assumptions of CLM as follows
y|x ~ Normal(b0 + b1x1 +…+ bkxk, s2)
While for now we just assume normality,
clear that sometimes not the case
Large samples will let us drop normality
Economics 20 - Prof. Anderson 5
.
.
x1 x2
The homoskedastic normal distribution with
a single explanatory variable
E(y|x) = b0 + b1x
y
f(y|x)
Normal
distributions
Economics 20 - Prof. Anderson 6
Normal Sampling Distributions
  
 
   
errorstheofncombinatiolinearais
itbecausenormallyddistributeisˆ
0,1Normal~ˆ
ˆ
thatso,ˆ,Normal~ˆ
st variableindependentheofvaluessamplethe
onlconditionas,assumptionCLMUnder the
jb
b
bb
bbb
j
jj
jjj
sd
Var

Economics 20 - Prof. Anderson 7
The t Test
 
 
1:freedomofdegreestheNote
ˆbyestimatetohavewebecause
normal)(vsondistributiaisthisNote
~ˆ
ˆ
sassumptionCLMUnder the
22
1
j



kn
t
t
se kn
j
j
ss
b
bb
Economics 20 - Prof. Anderson 8
The t Test (cont)
Knowing the sampling distribution for the
standardized estimator allows us to carry
out hypothesis tests
Start with a null hypothesis
For example, H0: bj=0
If do not reject null, then xj has no effect on
y, controlling for other x’s
Economics 20 - Prof. Anderson 9
The t Test (cont)
 
0
ˆj
H,hypothesisnullaccept the
owhether tdeterminetorulerejectiona
withalongstatisticourusethenwillWe
ˆ
ˆ
:ˆforstatisticthe""
formtoneedfirsteour test wperformTo
t
se
tt
j
j
j
b
b
b b

Economics 20 - Prof. Anderson 10
t Test: One-Sided Alternatives
Besides our null, H0, we need an alternative
hypothesis, H1, and a significance level
H1 may be one-sided, or two-sided
H1: bj > 0 and H1: bj < 0 are one-sided
H1: bj  0 is a two-sided alternative
If we want to have only a 5% probability of
rejecting H0 if it is really true, then we say
our significance level is 5%
Economics 20 - Prof. Anderson 11
One-Sided Alternatives (cont)
Having picked a significance level, a, we
look up the (1 – a)th percentile in a t
distribution with n – k – 1 df and call this c,
the critical value
We can reject the null hypothesis if the t
statistic is greater than the critical value
If the t statistic is less than the critical value
then we fail to reject the null
Economics 20 - Prof. Anderson 12
yi = b0 + b1xi1 + … + bkxik + ui
H0: bj = 0 H1: bj > 0
c0
a1  a
One-Sided Alternatives (cont)
Fail to reject
reject
Economics 20 - Prof. Anderson 13
One-sided vs Two-sided
Because the t distribution is symmetric,
testing H1: bj < 0 is straightforward. The
critical value is just the negative of before
We can reject the null if the t statistic < –c,
and if the t statistic > than –c then we fail to
reject the null
For a two-sided test, we set the critical
value based on a/2 and reject H1: bj  0 if
the absolute value of the t statistic > c
Economics 20 - Prof. Anderson 14
yi = b0 + b1Xi1 + … + bkXik + ui
H0: bj = 0 H1: bj > 0
c0
a/21  a
-c
a/2
Two-Sided Alternatives
reject reject
fail to reject
Economics 20 - Prof. Anderson 15
Summary for H0: bj = 0
Unless otherwise stated, the alternative is
assumed to be two-sided
If we reject the null, we typically say “xj is
statistically significant at the a % level”
If we fail to reject the null, we typically say
“xj is statistically insignificant at the a %
level”
Economics 20 - Prof. Anderson 16
Testing other hypotheses
A more general form of the t statistic
recognizes that we may want to test
something like H0: bj = aj
In this case, the appropriate t statistic is
 
 
teststandardfor the0
where,ˆ
ˆ



j
j
jj
a
se
a
t
b
b
Economics 20 - Prof. Anderson 17
Confidence Intervals
Another way to use classical statistical testing is
to construct a confidence interval using the same
critical value as was used for a two-sided test
A (1 - a) % confidence interval is defined as
 
ondistributiain
percentile
2
-1theiscwhere,ˆˆ
1







kn
jj
t
sec
a
bb
Economics 20 - Prof. Anderson 18
Computing p-values for t tests
An alternative to the classical approach is
to ask, “what is the smallest significance
level at which the null would be rejected?”
So, compute the t statistic, and then look up
what percentile it is in the appropriate t
distribution – this is the p-value
p-value is the probability we would observe
the t statistic we did, if the null were true
Economics 20 - Prof. Anderson 19
Stata and p-values, t tests, etc.
Most computer packages will compute the
p-value for you, assuming a two-sided test
If you really want a one-sided alternative,
just divide the two-sided p-value by 2
Stata provides the t statistic, p-value, and
95% confidence interval for H0: bj = 0 for
you, in columns labeled “t”, “P > |t|” and
“[95% Conf. Interval]”, respectively
Economics 20 - Prof. Anderson 20
Testing a Linear Combination
Suppose instead of testing whether b1 is equal to a
constant, you want to test if it is equal to another
parameter, that is H0 : b1 = b2
Use same basic procedure for forming a t statistic
 21
21
ˆˆ
ˆˆ
bb
bb



se
t
Economics 20 - Prof. Anderson 21
Testing Linear Combo (cont)
   
       
        
 2112
2
1
12
2
2
2
121
212121
2121
ˆ,ˆofestimateaniswhere
2ˆˆˆˆ
ˆ,ˆ2ˆˆˆˆ
then,ˆˆˆˆ
Since
bb
bbbb
bbbbbb
bbbb
Covs
ssesese
CovVarVarVar
Varse



Economics 20 - Prof. Anderson 22
Testing a Linear Combo (cont)
So, to use formula, need s12, which
standard output does not have
Many packages will have an option to get
it, or will just perform the test for you
In Stata, after reg y x1 x2 … xk you would
type test x1 = x2 to get a p-value for the test
More generally, you can always restate the
problem to get the test you want
Economics 20 - Prof. Anderson 23
Example (cont):
Now you get a standard error for b1 – b2 =
q1 directly from the basic regression
Any linear combination of parameters
could be tested in a similar manner
Other examples of hypotheses about a
single linear combination of parameters:
 b1 = 1 + b2 ; b1 = 5b2 ; b1 = -1/2b2 ; etc
Economics 20 - Prof. Anderson 24
Multiple Linear Restrictions
Everything we’ve done so far has involved
testing a single linear restriction, (e.g. b1 = 0
or b1 = b2 )
However, we may want to jointly test
multiple hypotheses about our parameters
A typical example is testing “exclusion
restrictions” – we want to know if a group
of parameters are all equal to zero
Economics 20 - Prof. Anderson 25
Testing Exclusion Restrictions
Now the null hypothesis might be
something like H0: bk-q+1 = 0, ... , bk = 0
The alternative is just H1: H0 is not true
Can’t just check each t statistic separately,
because we want to know if the q
parameters are jointly significant at a given
level – it is possible for none to be
individually significant at that level
Economics 20 - Prof. Anderson 26
Exclusion Restrictions (cont)
To do the test we need to estimate the “restricted
model” without xk-q+1,, …, xk included, as well as
the “unrestricted model” with all x’s included
Intuitively, we want to know if the change in SSR
is big enough to warrant inclusion of xk-q+1,, …, xk
 
 
edunrestrictisurandrestrictedisr
where,
1


knSSR
qSSRSSR
F
ur
urr
Economics 20 - Prof. Anderson 27
The F statistic
The F statistic is always positive, since the
SSR from the restricted model can’t be less
than the SSR from the unrestricted
Essentially the F statistic is measuring the
relative increase in SSR when moving from
the unrestricted to restricted model
q = number of restrictions, or dfr – dfur
n – k – 1 = dfur
Economics 20 - Prof. Anderson 28
The F statistic (cont)
To decide if the increase in SSR when we
move to a restricted model is “big enough”
to reject the exclusions, we need to know
about the sampling distribution of our F stat
Not surprisingly, F ~ Fq,n-k-1, where q is
referred to as the numerator degrees of
freedom and n – k – 1 as the denominator
degrees of freedom
Economics 20 - Prof. Anderson 29
0 c
a1  a
f(F)
F
The F statistic (cont)
reject
fail to reject
Reject H0 at a
significance level
if F > c
Economics 20 - Prof. Anderson 30
The R2 form of the F statistic
Because the SSR’s may be large and unwieldy, an
alternative form of the formula is useful
We use the fact that SSR = SST(1 – R2) for any
regression, so can substitute in for SSRu and SSRur
 
   
edunrestrictisurandrestrictedisr
againwhere,
11 2
22



knR
qRR
F
ur
rur
Economics 20 - Prof. Anderson 31
Overall Significance
A special case of exclusion restrictions is to test
H0: b1 = b2 =…= bk = 0
Since the R2 from a model with only an intercept
will be zero, the F statistic is simply
   11 2
2


knR
kR
F
Economics 20 - Prof. Anderson 32
General Linear Restrictions
The basic form of the F statistic will work
for any set of linear restrictions
First estimate the unrestricted model and
then estimate the restricted model
In each case, make note of the SSR
Imposing the restrictions can be tricky –
will likely have to redefine variables again
Economics 20 - Prof. Anderson 33
F Statistic Summary
Just as with t statistics, p-values can be
calculated by looking up the percentile in
the appropriate F distribution
Stata will do this by entering: display
fprob(q, n – k – 1, F), where the appropriate
values of F, q,and n – k – 1 are used
If only one exclusion is being tested, then F
= t2, and the p-values will be the same

More Related Content

What's hot

Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regressionElkana Rorio
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationBrian Erandio
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov testSubhradeep Mitra
 
Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Ali Lodhra
 
Least Squares Regression Method | Edureka
Least Squares Regression Method | EdurekaLeast Squares Regression Method | Edureka
Least Squares Regression Method | EdurekaEdureka!
 
Lecture 2-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized AlgorithmsLecture 2-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized AlgorithmsAnshul Yadav
 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handoutfatima d
 
Arithmetic and geometric mean
Arithmetic and geometric meanArithmetic and geometric mean
Arithmetic and geometric meanRekhaChoudhary24
 
Non Linear Equation
Non Linear EquationNon Linear Equation
Non Linear EquationMdAlAmin187
 
Probability and Random Variables
Probability and Random VariablesProbability and Random Variables
Probability and Random VariablesSubhobrata Banerjee
 
Lesson 6 coefficient of determination
Lesson 6   coefficient of determinationLesson 6   coefficient of determination
Lesson 6 coefficient of determinationMehediHasan1023
 
Simple regression model
Simple regression modelSimple regression model
Simple regression modelMidoTami
 

What's hot (20)

Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Chapter13
Chapter13Chapter13
Chapter13
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
 
Es272 ch5a
Es272 ch5aEs272 ch5a
Es272 ch5a
 
Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...
 
Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11
 
Least Squares Regression Method | Edureka
Least Squares Regression Method | EdurekaLeast Squares Regression Method | Edureka
Least Squares Regression Method | Edureka
 
Lecture 2-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized AlgorithmsLecture 2-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized Algorithms
 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handout
 
Arithmetic and geometric mean
Arithmetic and geometric meanArithmetic and geometric mean
Arithmetic and geometric mean
 
Chapter05
Chapter05Chapter05
Chapter05
 
Lecture 04
Lecture 04Lecture 04
Lecture 04
 
Non Linear Equation
Non Linear EquationNon Linear Equation
Non Linear Equation
 
Statistical Assignment Help
Statistical Assignment HelpStatistical Assignment Help
Statistical Assignment Help
 
Probability and Random Variables
Probability and Random VariablesProbability and Random Variables
Probability and Random Variables
 
Business statistics homework help
Business statistics homework helpBusiness statistics homework help
Business statistics homework help
 
Lesson 6 coefficient of determination
Lesson 6   coefficient of determinationLesson 6   coefficient of determination
Lesson 6 coefficient of determination
 
Simple regression model
Simple regression modelSimple regression model
Simple regression model
 
Chi square using excel
Chi square using excelChi square using excel
Chi square using excel
 

Viewers also liked

Country report on semi-structured interviews with temporary migrants - the Ne...
Country report on semi-structured interviews with temporary migrants - the Ne...Country report on semi-structured interviews with temporary migrants - the Ne...
Country report on semi-structured interviews with temporary migrants - the Ne...EURA-NET project
 
Semi-structured interviews for educational research
Semi-structured interviews for educational research Semi-structured interviews for educational research
Semi-structured interviews for educational research Tünde Varga-Atkins
 
Adler clark 4e ppt 10
Adler clark 4e ppt 10Adler clark 4e ppt 10
Adler clark 4e ppt 10arpsychology
 
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...Edureka!
 

Viewers also liked (7)

Country report on semi-structured interviews with temporary migrants - the Ne...
Country report on semi-structured interviews with temporary migrants - the Ne...Country report on semi-structured interviews with temporary migrants - the Ne...
Country report on semi-structured interviews with temporary migrants - the Ne...
 
ICAR-IFPRI questionnaire development -Devesh Roy, IFPRI
ICAR-IFPRI questionnaire development -Devesh Roy, IFPRIICAR-IFPRI questionnaire development -Devesh Roy, IFPRI
ICAR-IFPRI questionnaire development -Devesh Roy, IFPRI
 
Group 6
Group 6Group 6
Group 6
 
Semi-structured interviews for educational research
Semi-structured interviews for educational research Semi-structured interviews for educational research
Semi-structured interviews for educational research
 
Adler clark 4e ppt 10
Adler clark 4e ppt 10Adler clark 4e ppt 10
Adler clark 4e ppt 10
 
Causal Research
Causal ResearchCausal Research
Causal Research
 
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...
Hadoop Interview Questions and Answers | Big Data Interview Questions | Hadoo...
 

Similar to ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy

Chapter4
Chapter4Chapter4
Chapter4Vu Vo
 
Materi_Business_Intelligence_1.pdf
Materi_Business_Intelligence_1.pdfMateri_Business_Intelligence_1.pdf
Materi_Business_Intelligence_1.pdfHasan Dwi Cahyono
 
whitehead-logistic-regression.ppt
whitehead-logistic-regression.pptwhitehead-logistic-regression.ppt
whitehead-logistic-regression.ppt19DSMA012HarshSingh
 
Advanced Econometrics L5-6.pptx
Advanced Econometrics L5-6.pptxAdvanced Econometrics L5-6.pptx
Advanced Econometrics L5-6.pptxakashayosha
 
Two-Variable (Bivariate) RegressionIn the last unit, we covered
Two-Variable (Bivariate) RegressionIn the last unit, we covered Two-Variable (Bivariate) RegressionIn the last unit, we covered
Two-Variable (Bivariate) RegressionIn the last unit, we covered LacieKlineeb
 
Likelihoodist vs. significance tester w bernoulli trials
Likelihoodist vs. significance tester w bernoulli trialsLikelihoodist vs. significance tester w bernoulli trials
Likelihoodist vs. significance tester w bernoulli trialsjemille6
 
dougherty5e_C02G06_2016_04_19.pptx
dougherty5e_C02G06_2016_04_19.pptxdougherty5e_C02G06_2016_04_19.pptx
dougherty5e_C02G06_2016_04_19.pptxJorge329435
 
1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptxPrachiDawer1
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Neeraj Bhandari
 
Newbold_chap12.ppt
Newbold_chap12.pptNewbold_chap12.ppt
Newbold_chap12.pptcfisicaster
 

Similar to ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy (20)

Chapter4
Chapter4Chapter4
Chapter4
 
qm2CHAP12.ppt
qm2CHAP12.pptqm2CHAP12.ppt
qm2CHAP12.ppt
 
Estimation rs
Estimation rsEstimation rs
Estimation rs
 
Materi_Business_Intelligence_1.pdf
Materi_Business_Intelligence_1.pdfMateri_Business_Intelligence_1.pdf
Materi_Business_Intelligence_1.pdf
 
Chapter 14 Part I
Chapter 14 Part IChapter 14 Part I
Chapter 14 Part I
 
whitehead-logistic-regression.ppt
whitehead-logistic-regression.pptwhitehead-logistic-regression.ppt
whitehead-logistic-regression.ppt
 
Reg
RegReg
Reg
 
Chapter6.pdf.pdf
Chapter6.pdf.pdfChapter6.pdf.pdf
Chapter6.pdf.pdf
 
Advanced Econometrics L5-6.pptx
Advanced Econometrics L5-6.pptxAdvanced Econometrics L5-6.pptx
Advanced Econometrics L5-6.pptx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Two-Variable (Bivariate) RegressionIn the last unit, we covered
Two-Variable (Bivariate) RegressionIn the last unit, we covered Two-Variable (Bivariate) RegressionIn the last unit, we covered
Two-Variable (Bivariate) RegressionIn the last unit, we covered
 
stats_ch12.pdf
stats_ch12.pdfstats_ch12.pdf
stats_ch12.pdf
 
Basic of Hypothesis Testing TEKU QM
Basic of Hypothesis Testing TEKU QMBasic of Hypothesis Testing TEKU QM
Basic of Hypothesis Testing TEKU QM
 
Likelihoodist vs. significance tester w bernoulli trials
Likelihoodist vs. significance tester w bernoulli trialsLikelihoodist vs. significance tester w bernoulli trials
Likelihoodist vs. significance tester w bernoulli trials
 
dougherty5e_C02G06_2016_04_19.pptx
dougherty5e_C02G06_2016_04_19.pptxdougherty5e_C02G06_2016_04_19.pptx
dougherty5e_C02G06_2016_04_19.pptx
 
1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx
 
Semana7 dn
Semana7 dnSemana7 dn
Semana7 dn
 
Powerpoint2.reg
Powerpoint2.regPowerpoint2.reg
Powerpoint2.reg
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
Newbold_chap12.ppt
Newbold_chap12.pptNewbold_chap12.ppt
Newbold_chap12.ppt
 

More from International Food Policy Research Institute- South Asia Office

More from International Food Policy Research Institute- South Asia Office (20)

8. Dr Rao.pdf
8. Dr Rao.pdf8. Dr Rao.pdf
8. Dr Rao.pdf
 
13. Manish Patel.pdf
13. Manish Patel.pdf13. Manish Patel.pdf
13. Manish Patel.pdf
 
15. Smita Sirohi.pdf
15. Smita Sirohi.pdf15. Smita Sirohi.pdf
15. Smita Sirohi.pdf
 
6. CD Mayee.pdf
6. CD Mayee.pdf6. CD Mayee.pdf
6. CD Mayee.pdf
 
10. Keshavulu_1.pdf
10. Keshavulu_1.pdf10. Keshavulu_1.pdf
10. Keshavulu_1.pdf
 
12. Swati Nayak.pdf
12. Swati Nayak.pdf12. Swati Nayak.pdf
12. Swati Nayak.pdf
 
16. Dr Anjani.pdf
16. Dr Anjani.pdf16. Dr Anjani.pdf
16. Dr Anjani.pdf
 
9. Malavika Dadlani_1.pdf
9. Malavika Dadlani_1.pdf9. Malavika Dadlani_1.pdf
9. Malavika Dadlani_1.pdf
 
7. Neeru Bhooshan.pdf
7. Neeru Bhooshan.pdf7. Neeru Bhooshan.pdf
7. Neeru Bhooshan.pdf
 
4. Raj Ganesh.pdf
4. Raj Ganesh.pdf4. Raj Ganesh.pdf
4. Raj Ganesh.pdf
 
11. Surinder K Tikoo_1.pdf
11. Surinder K Tikoo_1.pdf11. Surinder K Tikoo_1.pdf
11. Surinder K Tikoo_1.pdf
 
3. DK Yadava.pdf
3. DK Yadava.pdf3. DK Yadava.pdf
3. DK Yadava.pdf
 
14. Paresh Verma_1.pdf
14. Paresh Verma_1.pdf14. Paresh Verma_1.pdf
14. Paresh Verma_1.pdf
 
5. Ram Kaundinya.pdf
5. Ram Kaundinya.pdf5. Ram Kaundinya.pdf
5. Ram Kaundinya.pdf
 
1. Dr Anjani.pdf
1. Dr Anjani.pdf1. Dr Anjani.pdf
1. Dr Anjani.pdf
 
2. David Spielman.pdf
2. David Spielman.pdf2. David Spielman.pdf
2. David Spielman.pdf
 
GFPR 2021 South Asia Launch Ppt - Dr. Shahidur Rashid
GFPR 2021 South Asia Launch Ppt - Dr. Shahidur RashidGFPR 2021 South Asia Launch Ppt - Dr. Shahidur Rashid
GFPR 2021 South Asia Launch Ppt - Dr. Shahidur Rashid
 
GFPR 2021 South Asia Launch Ppt - Dr. Johan Swinnen
GFPR 2021 South Asia Launch Ppt - Dr. Johan SwinnenGFPR 2021 South Asia Launch Ppt - Dr. Johan Swinnen
GFPR 2021 South Asia Launch Ppt - Dr. Johan Swinnen
 
Book Launch : Agricultural Transformation in Nepal: Trends, Prospects and Pol...
Book Launch : Agricultural Transformation in Nepal: Trends, Prospects and Pol...Book Launch : Agricultural Transformation in Nepal: Trends, Prospects and Pol...
Book Launch : Agricultural Transformation in Nepal: Trends, Prospects and Pol...
 
Understanding the landscape of pulse policy in India and implications for trade
Understanding the landscape of pulse policy in India and implications for tradeUnderstanding the landscape of pulse policy in India and implications for trade
Understanding the landscape of pulse policy in India and implications for trade
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy

  • 1. Economics 20 - Prof. Anderson 1 Multiple Regression Analysis y = b0 + b1x1 + b2x2 + . . . bkxk + u 2. Inference
  • 2. Gauss Markov Assumptions Economics 20 - Prof. Anderson 2
  • 3. Economics 20 - Prof. Anderson 3 Assumptions of the Classical Linear Model (CLM) Given the Gauss-Markov assumptions, OLS is BLUE, In order to do classical hypothesis testing, we need to add another assumption (beyond the Gauss-Markov assumptions) Assume that u is independent of x1, x2,…, xk and u is normally distributed with zero mean and variance s2: u ~ Normal(0,s2)
  • 4. Economics 20 - Prof. Anderson 4 CLM Assumptions (cont) Under CLM, OLS is not only BLUE, but is the minimum variance unbiased estimator We can summarize the population assumptions of CLM as follows y|x ~ Normal(b0 + b1x1 +…+ bkxk, s2) While for now we just assume normality, clear that sometimes not the case Large samples will let us drop normality
  • 5. Economics 20 - Prof. Anderson 5 . . x1 x2 The homoskedastic normal distribution with a single explanatory variable E(y|x) = b0 + b1x y f(y|x) Normal distributions
  • 6. Economics 20 - Prof. Anderson 6 Normal Sampling Distributions          errorstheofncombinatiolinearais itbecausenormallyddistributeisˆ 0,1Normal~ˆ ˆ thatso,ˆ,Normal~ˆ st variableindependentheofvaluessamplethe onlconditionas,assumptionCLMUnder the jb b bb bbb j jj jjj sd Var 
  • 7. Economics 20 - Prof. Anderson 7 The t Test     1:freedomofdegreestheNote ˆbyestimatetohavewebecause normal)(vsondistributiaisthisNote ~ˆ ˆ sassumptionCLMUnder the 22 1 j    kn t t se kn j j ss b bb
  • 8. Economics 20 - Prof. Anderson 8 The t Test (cont) Knowing the sampling distribution for the standardized estimator allows us to carry out hypothesis tests Start with a null hypothesis For example, H0: bj=0 If do not reject null, then xj has no effect on y, controlling for other x’s
  • 9. Economics 20 - Prof. Anderson 9 The t Test (cont)   0 ˆj H,hypothesisnullaccept the owhether tdeterminetorulerejectiona withalongstatisticourusethenwillWe ˆ ˆ :ˆforstatisticthe"" formtoneedfirsteour test wperformTo t se tt j j j b b b b 
  • 10. Economics 20 - Prof. Anderson 10 t Test: One-Sided Alternatives Besides our null, H0, we need an alternative hypothesis, H1, and a significance level H1 may be one-sided, or two-sided H1: bj > 0 and H1: bj < 0 are one-sided H1: bj  0 is a two-sided alternative If we want to have only a 5% probability of rejecting H0 if it is really true, then we say our significance level is 5%
  • 11. Economics 20 - Prof. Anderson 11 One-Sided Alternatives (cont) Having picked a significance level, a, we look up the (1 – a)th percentile in a t distribution with n – k – 1 df and call this c, the critical value We can reject the null hypothesis if the t statistic is greater than the critical value If the t statistic is less than the critical value then we fail to reject the null
  • 12. Economics 20 - Prof. Anderson 12 yi = b0 + b1xi1 + … + bkxik + ui H0: bj = 0 H1: bj > 0 c0 a1  a One-Sided Alternatives (cont) Fail to reject reject
  • 13. Economics 20 - Prof. Anderson 13 One-sided vs Two-sided Because the t distribution is symmetric, testing H1: bj < 0 is straightforward. The critical value is just the negative of before We can reject the null if the t statistic < –c, and if the t statistic > than –c then we fail to reject the null For a two-sided test, we set the critical value based on a/2 and reject H1: bj  0 if the absolute value of the t statistic > c
  • 14. Economics 20 - Prof. Anderson 14 yi = b0 + b1Xi1 + … + bkXik + ui H0: bj = 0 H1: bj > 0 c0 a/21  a -c a/2 Two-Sided Alternatives reject reject fail to reject
  • 15. Economics 20 - Prof. Anderson 15 Summary for H0: bj = 0 Unless otherwise stated, the alternative is assumed to be two-sided If we reject the null, we typically say “xj is statistically significant at the a % level” If we fail to reject the null, we typically say “xj is statistically insignificant at the a % level”
  • 16. Economics 20 - Prof. Anderson 16 Testing other hypotheses A more general form of the t statistic recognizes that we may want to test something like H0: bj = aj In this case, the appropriate t statistic is     teststandardfor the0 where,ˆ ˆ    j j jj a se a t b b
  • 17. Economics 20 - Prof. Anderson 17 Confidence Intervals Another way to use classical statistical testing is to construct a confidence interval using the same critical value as was used for a two-sided test A (1 - a) % confidence interval is defined as   ondistributiain percentile 2 -1theiscwhere,ˆˆ 1        kn jj t sec a bb
  • 18. Economics 20 - Prof. Anderson 18 Computing p-values for t tests An alternative to the classical approach is to ask, “what is the smallest significance level at which the null would be rejected?” So, compute the t statistic, and then look up what percentile it is in the appropriate t distribution – this is the p-value p-value is the probability we would observe the t statistic we did, if the null were true
  • 19. Economics 20 - Prof. Anderson 19 Stata and p-values, t tests, etc. Most computer packages will compute the p-value for you, assuming a two-sided test If you really want a one-sided alternative, just divide the two-sided p-value by 2 Stata provides the t statistic, p-value, and 95% confidence interval for H0: bj = 0 for you, in columns labeled “t”, “P > |t|” and “[95% Conf. Interval]”, respectively
  • 20. Economics 20 - Prof. Anderson 20 Testing a Linear Combination Suppose instead of testing whether b1 is equal to a constant, you want to test if it is equal to another parameter, that is H0 : b1 = b2 Use same basic procedure for forming a t statistic  21 21 ˆˆ ˆˆ bb bb    se t
  • 21. Economics 20 - Prof. Anderson 21 Testing Linear Combo (cont)                       2112 2 1 12 2 2 2 121 212121 2121 ˆ,ˆofestimateaniswhere 2ˆˆˆˆ ˆ,ˆ2ˆˆˆˆ then,ˆˆˆˆ Since bb bbbb bbbbbb bbbb Covs ssesese CovVarVarVar Varse   
  • 22. Economics 20 - Prof. Anderson 22 Testing a Linear Combo (cont) So, to use formula, need s12, which standard output does not have Many packages will have an option to get it, or will just perform the test for you In Stata, after reg y x1 x2 … xk you would type test x1 = x2 to get a p-value for the test More generally, you can always restate the problem to get the test you want
  • 23. Economics 20 - Prof. Anderson 23 Example (cont): Now you get a standard error for b1 – b2 = q1 directly from the basic regression Any linear combination of parameters could be tested in a similar manner Other examples of hypotheses about a single linear combination of parameters:  b1 = 1 + b2 ; b1 = 5b2 ; b1 = -1/2b2 ; etc
  • 24. Economics 20 - Prof. Anderson 24 Multiple Linear Restrictions Everything we’ve done so far has involved testing a single linear restriction, (e.g. b1 = 0 or b1 = b2 ) However, we may want to jointly test multiple hypotheses about our parameters A typical example is testing “exclusion restrictions” – we want to know if a group of parameters are all equal to zero
  • 25. Economics 20 - Prof. Anderson 25 Testing Exclusion Restrictions Now the null hypothesis might be something like H0: bk-q+1 = 0, ... , bk = 0 The alternative is just H1: H0 is not true Can’t just check each t statistic separately, because we want to know if the q parameters are jointly significant at a given level – it is possible for none to be individually significant at that level
  • 26. Economics 20 - Prof. Anderson 26 Exclusion Restrictions (cont) To do the test we need to estimate the “restricted model” without xk-q+1,, …, xk included, as well as the “unrestricted model” with all x’s included Intuitively, we want to know if the change in SSR is big enough to warrant inclusion of xk-q+1,, …, xk     edunrestrictisurandrestrictedisr where, 1   knSSR qSSRSSR F ur urr
  • 27. Economics 20 - Prof. Anderson 27 The F statistic The F statistic is always positive, since the SSR from the restricted model can’t be less than the SSR from the unrestricted Essentially the F statistic is measuring the relative increase in SSR when moving from the unrestricted to restricted model q = number of restrictions, or dfr – dfur n – k – 1 = dfur
  • 28. Economics 20 - Prof. Anderson 28 The F statistic (cont) To decide if the increase in SSR when we move to a restricted model is “big enough” to reject the exclusions, we need to know about the sampling distribution of our F stat Not surprisingly, F ~ Fq,n-k-1, where q is referred to as the numerator degrees of freedom and n – k – 1 as the denominator degrees of freedom
  • 29. Economics 20 - Prof. Anderson 29 0 c a1  a f(F) F The F statistic (cont) reject fail to reject Reject H0 at a significance level if F > c
  • 30. Economics 20 - Prof. Anderson 30 The R2 form of the F statistic Because the SSR’s may be large and unwieldy, an alternative form of the formula is useful We use the fact that SSR = SST(1 – R2) for any regression, so can substitute in for SSRu and SSRur       edunrestrictisurandrestrictedisr againwhere, 11 2 22    knR qRR F ur rur
  • 31. Economics 20 - Prof. Anderson 31 Overall Significance A special case of exclusion restrictions is to test H0: b1 = b2 =…= bk = 0 Since the R2 from a model with only an intercept will be zero, the F statistic is simply    11 2 2   knR kR F
  • 32. Economics 20 - Prof. Anderson 32 General Linear Restrictions The basic form of the F statistic will work for any set of linear restrictions First estimate the unrestricted model and then estimate the restricted model In each case, make note of the SSR Imposing the restrictions can be tricky – will likely have to redefine variables again
  • 33. Economics 20 - Prof. Anderson 33 F Statistic Summary Just as with t statistics, p-values can be calculated by looking up the percentile in the appropriate F distribution Stata will do this by entering: display fprob(q, n – k – 1, F), where the appropriate values of F, q,and n – k – 1 are used If only one exclusion is being tested, then F = t2, and the p-values will be the same