Introduction to econometrics III. Simple linear regression model Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 1 / 54 Content 1 A review of basic concepts in probability 2 Classical assumptions for LRM 3 Properties of OLS estimator 4 Maximal likelihood method 5 Confidence intervals and hypothesis testing 6 Using asymptotic theory Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 2 / 54 Simple regression model No intercept. No need of matrix algebra. Yi = βXi + i . Koop (2008) - chapter 3. Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 3 / 54 A review of basic concepts in probability Content 1 A review of basic concepts in probability 2 Classical assumptions for LRM 3 Properties of OLS estimator 4 Maximal likelihood method 5 Confidence intervals and hypothesis testing 6 Using asymptotic theory Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 4 / 54 A review of basic concepts in probability Randomness of dependent variable Uncertainty expressed by probability density function. House prices example – N(61.153, 683.812). Koop (2008) - figure 3.1. Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 5 / 54 A review of basic concepts in probability Normal p.d.f. of house price (lot size = 5000) −50 0 50 100 150 200 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 Cena domu (tis. kanadských dolarù) Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 6 / 54 A review of basic concepts in probability Normal p.d.f. of house price – density interval −40 −20 0 20 40 60 80 100 120 140 160 180 200 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 Cena domu (tis. kanadskych dolaru) Pr(60 1.96. Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 44 / 54 Confidence intervals and hypothesis testing Error variance estimator Commonly used estimator for σ2 is reffered as s2 (sample variance). OLS residuals: i = Yi − βXi ; OLS estimator σ2: s2 = 2 i N−1 . May be shown that E(s2) = σ2. Intuition: E 2 i = σ2 ⇒ 2 i might be a good estimator for σ2. Use all errors → sample average of squared errors to estimate σ2: 2 i N . Substitute unobserved i : 2 i N (biased estimator for σ2 – ML estimator). Unbiased OLS estimator: N replaced by N − 1 (degrees of freedom) Multiple regression with k explanatory variables and with the intercept term: s2 = 2 i N − k − 1 = SSR N − k − 1 . Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 45 / 54 Confidence intervals and hypothesis testing Modifications when error variance is unknown Construct Z-score: Z = β − β s2 X2 i ∼ tN−1, Hypothesis testing and test statistics: t = β − β0 s2 X2 i ∼ tN−1. tN−1 is Student t-distribution with N − 1 degrees of freedom. Statistical tables for t-distribution or p-value for the test (reject H0 if p-value is less than significance level). Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 46 / 54 Using asymptotic theory Content 1 A review of basic concepts in probability 2 Classical assumptions for LRM 3 Properties of OLS estimator 4 Maximal likelihood method 5 Confidence intervals and hypothesis testing 6 Using asymptotic theory Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 47 / 54 Using asymptotic theory Motivation What happens in large (infinite) samples? No assumpotion about what the p.d.f. of the errors is. Xi is independent and identically distributed – i.i.d., independent of error terms ⇒ E(Xi ) = µX and var(Xi ) = σ2 X . Use OLS estimator: β = β + Xi i X2 i . Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 48 / 54 Using asymptotic theory Consistency of OLS estimator – introduction plim(β) = β. plim β = plim β + Xi i X2 i = β + plim Xi i X2 i by Slutsky’s theorem = β + plim 1 N Xi i 1 N X2 i = β + plim 1 N Xi i plim 1 N X2 i by Slutsky’s theorem. Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 49 / 54 Using asymptotic theory Consistency of OLS estimator (continued) Law of large numbers to figure out the plim 1 N Xi i . „Average converge to expected values“. Errors and explanatory variables are assumed to be independent of one another: plim 1 N Xi i = E(Xi i ) = 0 Law of large numbers → plim 1 N X2 i = E(X2 i ). From definition of the variance, var(Xi ) = E(X2 i ) − [E(Xi )]2 , we can write E(X2 i ) = var(Xi ) + [E(Xi )]2 = σ2 X + µ2 X ⇒ plim β = β + 0 σ2 X + µ2 X = β. Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 50 / 54 Using asymptotic theory Asymptotic normality – introduction As N → ∞ we have: √ N(β − β) ∼ N 0, σ2 σ2 X + µ2 X . Equation can be written: √ N(β − β) = √ N Xi i X2 i = √ N 1 N Xi i 1 N X2 i . Central limit theorem as N → ∞: √ N 1 N Xi i ∼ N (0, var(Xi i )) . Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 51 / 54 Using asymptotic theory Asymptotic normality (continued) var(Xi i ) = E(X2 i 2 i ) − [E(Xi i )]2 = E(X2 i )E( 2 i ) − [E(Xi )E( i )]2 = (σ2 X + µ2 X )σ2 − [µX 0]2 = (σ2 X + µ2 X )σ2 . We showed: plim 1 N X2 i = (σ2 X + µ2 X ). Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 52 / 54 Using asymptotic theory Asymptotic normality (end) Using Cramer’s theorem we can combine the result form the central limit theorem with the forms for var (Xi i ) and plim 1 N X2 i : √ N(β − β) N → N 0, (σ2 X + µ2 X )σ2 (σ2 X + µ2 X )2 . Cancelling out the common factor in the variance: √ N(β − β) N → N 0, σ2 (σ2 X + µ2 X ) . Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 53 / 54 Using asymptotic theory Using the asymptotic results in practice As N → ∞, √ N(β − β) converges to a normal distribution. Using the properties of the expected value and variance operators: β ∼ N β, σ2 N(σ2 X + µ2 X ) . Problem: (σ2 X + µ2 X ) unknown. It holds plim 1 N X2 i = σ2 X + µ2 X ⇒ 1 N X2 i is a consistent estimator of σ2 X + µ2 X . Main result: β ∼ N β, σ2 X2 i . All the derivations and results for finite samples hold (approximately)! Introduction to econometrics (INEC) III. Simple regression model Autumn 2011 54 / 54