Transcription of Lecture Notes in Introductory Econometrics
1 Lecture Notes inIntroductory EconometricsAcademic year 2017-2018 Prof. Arsen PalestiniMEMOTEF, Sapienza University of Introduction52 The regression OLS: two-variable case .. Assessment of the goodness of fit .. OLS: multiple variable case .. Assumptions for classical regression models ..173 Maximum likelihood Maximum likelihood estimation and OLS .. Confidence intervals for coefficients ..264 Approaches to testing Hints on the main distributions in Statistics .. Wald Test .. TheFstatistic ..325 Dummy variables3534 CONTENTSC hapter 1 IntroductionThe present Lecture Notes introduce some preliminary and simple notions ofEconometrics for undergraduate students.
2 They can be viewed as a helpfulcontribution for very short courses in Econometrics , where the basic topics arepresented, endowed with some theoretical insights and some worked lighten the treatment, the basic notions of linear algebra and statistical in- ference and the mathematical optimization methods will be omitted. The basic(first year) courses of Mathematics and Statistics contain the necessary prelim-inary notions to be known. Furthermore, the overall level is not advanced: forany student (either undergraduate or graduate) or scholar willing to proceedwith the study of these intriguing subjects, my clear advice is to read and studya more complete are several accurate and exhaustive textbooks, at different difficultylevels, among which I will cite especially [4], [3] and the most exhaustive one,Econometric Analysisby William H.
3 Greene [1]. For a more macroeconomicapproach, see Wooldridge [5, 6].For all those who approach this discipline, it would be interesting to de-fine it somehow. In his world famous textbook [1], Greene quotes the firstissue ofEconometrica(1933), where Ragnar Frisch made an attempt to charac-terize Econometrics . In his own words, the Econometric Society should pro-mote studies that aim at a unification of the theoretical-quantitative and theempirical-quantitative approach to economic problems . Moreover: Experiencehas shown that each of these three viewpoints, that of Statistics, Economic The-ory, and Mathematics, is a necessary, but not a sufficient, condition for a realunderstanding of the quantitative relations in modern economic life.
4 It is theunificationof all three that is powerful. And it is this unification that constitutesEconometrics..56 CHAPTER 1. INTRODUCTIONA lthough this opinion is 85 years old, it is perfectly shareable. Econometricsrelies upon mathematical techniques, statistical methods and financial and eco-nomic expertise and knowledge. I hope that these Lecture Notes will be useful toclarify the nature of this discipline and to ease comprehension and solutions ofsome basic 2 The regression modelWhen we have to fit a sample regression to a scatter of points, it makes sense todetermine a line such that the residuals, the differences between each actualvalue ofyiand the correspondent predicted value yiare as small as possible.
5 Wewill treat separately the easiest case, when only 2 parameters are involved andthe regression line can be drawn in the 2-dimensional space, and the multivariatecase, whereN >2 variables appear, andNregression parameters have to beestimated. In the latter case, some Linear Algebra will be necessary to derivethe basic formula. Note that sometimes the independent variables such asxiare calledcovariates(especially by statisticians),regressorsorexplanatoryva riables, whereas the dependent ones such asyiare calledregressandsorexplained , the most generic form of the linear regression model isy=f(x1,x2.)
6 ,xN) + = 1+ 2x2+ + NxN+ .( )We will use and in the easiest case with 2 variables. It is important to brieflydiscuss the role of , which is adisturbance. A disturbance is a further termwhich disturbs the stability of the relation. There can be several reasons for thepresence of a disturbance: errors of measurement, effects caused by some inde-terminate economic variable or simply by something which cannot be capturedby the Ordinary least squares (OLS) estimation method:two-variable caseIn the bivariate case, suppose that we have a dataset on variableyand onvariablex.
7 The data are collected in a sample of observations, sayNdifferent78 CHAPTER 2. THE REGRESSION MODEL observations, on units indexed byi= 1,..,N. Our aim is to approximate thevalue ofyby a linear combination y= + x, where and are real constantsto be determined. Thei-thsquare residualeiis given byei=yi yi=yi xi,and the procedure consists in the minimization of the sum of squared ( , ) the function of the parameters indicating such a sum of squares, ( , ) =N i=1e2i=N i=1(yi xi)2.( )The related minimization problem is unconstrained. It reads asmin , S( , ),( )and the solution procedure obviously involves the calculation of the first orderderivatives.
8 The first order conditions (FOCs) are: 2N i=1(yi xi) = 0= N i=1yi N N i=1xi= 0. 2N i=1(yi xi)xi= 0= N i=1xiyi N i=1xi N i=1x2i= a rearrangement, these 2 equations are typically referred to asnormalequationsof the 2-variable regression model:N i=1yi=N + N i=1xi,( )N i=1xiyi= N i=1xi+ N i=1x2i.( )Solving ( ) for yields: = Ni=1yi Ni=1xiN=y x,( )after introducing the arithmetic means:x= Ni=1xiN,y= Ni= OLS: TWO-VARIABLE CASE9 Plugging ( ) into ( ) amounts to:N i=1xiyi (y x)Nx N i=1x2i= 0,hence can be easily determined:N i=1xiyi Nx y+ (Nx2 N i=1x2i)= 0= = = Ni=1xiyi Nx y Ni=1x2i Nx2,( )and consequently, inserting ( ) into ( ), we achieve: =y x Ni=1xiyi Nx2 y Ni=1x2i Nx2.
9 ( )The regression line is given by: y= + x,( )meaning that for each value ofx, taken from a sample, ypredicts the correspond-ing value ofy. The residuals can be evaluated as well, by comparing the givenvalues ofywith the ones that would be predicted by taking the given values is important to note that can be also interpreted from the viewpointof probability, when looking upon bothxandyas random variables. Dividingnumerator and denominator of ( ) byNyields:= = Ni=1xiyiN x y Ni=1x2iN x2=Cov(x,y)V ar(x),( )after applying the 2 well-known formulas:Cov(x,y) =E[x y] E[x]E[y], V ar(x) =E[x2] (E[x]) exists another way to indicate , by further manipulating ( ).
10 SinceN i=1xiyi Nx y=N i=1xiyi Nx y+Nx y Nx y=10 CHAPTER 2. THE REGRESSION MODEL=N i=1xiyi xN i=1yi yN i=1xi+Nx y=N i=1(xi x)(yi y)andN i=1x2i Nx2=N i=1x2i+Nx2 2Nx x=N i=1x2i+N i=1x2 2xN i=1xi==N i=1(xi x)2, can also be reformulated as follows: = Ni=1(xi x)(yi y) Ni=1(xi x)2.( )The following Example illustrates an OLS and the related assessment of the following6points in the(x,y)plane, which corre-spond to2samples of variablesxandy:P1= ( , ), P2= ( , ), P3= (1, ),P4= ( , ), P5= ( ,1), P6= ( , ).Figure given scatter of us cal-culate the regression parameters and with the help of formulas ( ) and( ) to determine the regression line: Sincex= + + 1 + + + ,y= + + + + 1 + , OLS: TWO-VARIABLE CASE11we obtain: = ( + + 1 + + 1 + ) 6 ( )2 ( )2+ ( )2+ 12+ ( )2+ ( )2+ ( )2 6 ( )2== = + + 1 + + 1 + 6 ( )2+ ( )2+ 12+ ( )2+ ( )2+ ( )2 6 ( )2= ,hence the regression line is.