OLS Goodness-of-Fit Inference
Ordinary Least Squares (Linear) Regression
Department of Political Science and Government Aarhus University
Ordinary Least Squares (Linear) Regression Department of Political - - PowerPoint PPT Presentation
OLS Goodness-of-Fit Inference Ordinary Least Squares (Linear) Regression Department of Political Science and Government Aarhus University February 17, 2015 OLS Goodness-of-Fit Inference 1 OLS 2 Goodness-of-Fit 3 Inference OLS
OLS Goodness-of-Fit Inference
Department of Political Science and Government Aarhus University
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Description 2 Prediction 3 Causal Inference
OLS Goodness-of-Fit Inference
1 We want to understand a population of cases 2 We cannot observe them all, so: 1 Draw a representative sample 2 Perform mathematical procedures on sample data 3 Use assumptions to make inferences about
4 Express uncertainty about those inferences based
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
n
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Everything that goes into descriptive inference
OLS Goodness-of-Fit Inference
1 Everything that goes into descriptive inference 2 Plus, philosophical assumptions
OLS Goodness-of-Fit Inference
1 Everything that goes into descriptive inference 2 Plus, philosophical assumptions 3 Plus, randomization or perfectly specified
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X)
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X) 3 Minimizing residual sum of squares (SSR)
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X) 3 Minimizing residual sum of squares (SSR) 4 Line (or surface) of best fit
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Population: Y = β0 + β1X (+ǫ) 2 Sample estimate: ˆ
3 Unit:
OLS Goodness-of-Fit Inference
∆X
OLS Goodness-of-Fit Inference
∆X
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
∆X
OLS Goodness-of-Fit Inference
∆X
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X)
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
σXσy
i=1(xi − ¯
n
i=1(xi − ¯
OLS Goodness-of-Fit Inference
1Multivariate formula involves matrices; Week 20
OLS Goodness-of-Fit Inference
Var(X)
i=1(xi − ¯
i=1(xi − ¯
1Multivariate formula involves matrices; Week 20
OLS Goodness-of-Fit Inference
Var(X)
i=1(xi − ¯
i=1(xi − ¯
1Multivariate formula involves matrices; Week 20
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
3 How many observations do we need?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
3 How many observations do we need?
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X)
OLS Goodness-of-Fit Inference
1 Estimating Unit-level Causal Effect 2 Ratio of Cov(X, Y ) and Var(X) 3 Minimizing residual sum of squares (SSR)
OLS Goodness-of-Fit Inference
n i=1(yi − ¯
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Works mathematically 2 Causally valid theory 3 Linear relationship between X and Y 4 X is measured without error 5 No missing data (or MCAR; see Lecture 5) 6 No confounding
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Indicator (0,1) 2 Categorical 3 Ordinal 4 Interval
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Measurement error in regressors 2 Omitted variables associated with included
3 Lack of temporal precedence
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Condition on nothing (“naive effect”)
OLS Goodness-of-Fit Inference
1 Condition on nothing (“naive effect”) 2 Condition on some variables
OLS Goodness-of-Fit Inference
1 Condition on nothing (“naive effect”) 2 Condition on some variables 3 Condition on all observables
OLS Goodness-of-Fit Inference
1 Condition on nothing (“naive effect”) 2 Condition on some variables 3 Condition on all observables
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
3 How many observations do we need?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
3 How many observations do we need?
4 Can we have highly correlated regressors?
OLS Goodness-of-Fit Inference
1 Do we need variation in X?
2 Do we need variation in Y ?
3 How many observations do we need?
4 Can we have highly correlated regressors?
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Works mathematically 2 Causally valid theory 3 Linear relationship between X and Y 4 X is measured without error 5 No missing data (or MCAR; see Lecture 5) 6 No confounding
OLS Goodness-of-Fit Inference
1 Linearity in parameters 2 Random sampling 3 No multicollinearity 4 Exogeneity (E[ǫ|X] = 0) 5 Homoskedasticity (Var(ǫ|X) = σ2)
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
(n−1)sxsy
OLS Goodness-of-Fit Inference
x,y = SSE SST = 1 − SSR SST
k n−k−1, where
OLS Goodness-of-Fit Inference
n−p, where p is number of
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
. reg growth lcon Source | SS df MS Number of obs = 44
F( 1, 42) = 0.09 Model | .000038348 1 .000038348 Prob > F = 0.7615 Residual | .017255198 42 .000410838 R-squared = 0.0022
Adj R-squared = -0.0215 Total | .017293546 43 .000402175 Root MSE = .02027
Coef.
t P>|t| [95% Conf. Interval]
lcon |
.0058325
0.761
.0099886 _cons | .0158988 .0390155 0.41 0.686
.0946353
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
. nestreg: reg growth lcon (lconsq) +-------------------------------------------------------------+ Block Residual Change Block F df df Pr > F R2 in R2
1 0.09 1 42 0.7615 0.0022 2 7.98 1 41 0.0073 0.1649 0.1626 +-------------------------------------------------------------+
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 n−2SSR
SSTx
x )
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Standard Error 2 Confidence interval 3 t-statistic 4 p-value
OLS Goodness-of-Fit Inference
. reg growth lcon Source | SS df MS Number of obs = 44
F( 1, 42) = 0.09 Model | .000038348 1 .000038348 Prob > F = 0.7615 Residual | .017255198 42 .000410838 R-squared = 0.0022
Adj R-squared = -0.0215 Total | .017293546 43 .000402175 Root MSE = .02027
Coef.
t P>|t| [95% Conf. Interval]
lcon |
.0058325
0.761
.0099886 _cons | .0158988 .0390155 0.41 0.686
.0946353
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
x )
OLS Goodness-of-Fit Inference
β1 = ˆ β1 SE ˆ
β1
ˆ β1−α SE ˆ
β1 , where α is our null
OLS Goodness-of-Fit Inference
β1 = ˆ β1 SE ˆ
β1
ˆ β1−α SE ˆ
β1 , where α is our null
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
OLS Goodness-of-Fit Inference
1 Substantive significance 2 Statistical significance
OLS Goodness-of-Fit Inference
1 Substantive significance
2 Statistical significance
OLS Goodness-of-Fit Inference
1 Substantive significance
2 Statistical significance
OLS Goodness-of-Fit Inference