Page 1 Page Regression model Theme 2 Michał Rubaszek Michał Regression Model Regression Chapters from 2to 6 of PoE Applied Econometric QEM Based on presentation Paczkowski R. Walter by
Applied Applied Econometrics QEM Page 2 Page Regression model Economic andEconomic Econometric Model
Applied Applied Econometrics QEM ’’ or ’’ Page 3 Page independent depends on depends y , which, us give the ‘‘ the 2 x σ and we need to use we data to andneed ’’ and ’’ Regression model random variable is a is y dependent variable ’’ variable ’’ and the conditional variance conditionalthe and the ‘‘ the y|x µ y x )= x | y ( explanatory valuable information about the population we we considering are population the about information valuable to learn about the relationship theabout learnto mean conditional calculate to helps model econometric The E In econometrics ‘‘ income income call We Economists interested in relationships between variables between in relationships interested Economists Example: theexpendituresus that theorytells ‹ ‹ ‹ ‹ ‹ Applied Econometrics QEM y Page 4 Page = $2000 = x = $1000 and = x Regression model givenincomes Figure 2.1b Probability distributions of food distributions2.1bProbabilityof Figureexpenditures
Applied Applied Econometrics QEM Page 5 Page economic value: x econometric econometric model: | Regression model x dx given angiven (|) (|) ∆ y Eyx dEyx ∆ = = 2 β and a corresponding anda – intercept – slope 1 2 β β To investigate the relationship wetherelationship investigate To buildan Interpretation–slopethe of derivativethe of of expectedvalue model
• Applied Econometrics QEM Page 6 Page Regression model averagepersonper expenditureincome and food Figure 2.2 Theeconomic model:relationshiplinear abetween 2.2Figure
Applied Applied Econometrics QEM Page 7 Page at two levelsincome attwo of y Regression model Figure 2.3 Thefor probabilitydensityfunction 2.3 Figure 2.2 Applied Applied Econometrics QEM Model An Econometric Econometric An Page 8 Page ) ( upon the expected expected uponthe k K K x K Regression model other xs held constant held xs other ) k k ( x x ∆ ∂ Ey Ey ∆ ∂ 1 22 33 ββ β β = = =+ + ++ + k , all otherconstantall held, variables (ceteris paribus) β y xx xe y measures the effect of a in change theeffect measures k value of value Multiplemodel regression – ageneral case: β Applied Econometrics-QEM Eq.5.3 ) 9 Page ∼ (0, , Regression model Economiceconometric vs. model Economic model Econometric model Applied Econometrics QEM Page 10 Page is: is: e ≠ is: , is: , e for for x j ) e 0 and i , e Regression model ∼ (0, normallydistributed: is e , , valuefor of each y 0 ↔ is notrandomistakesand 2different at least term term x A4: The covarianceThe between A4: Assumptionsoflinear econometric model: valueThe of A1: A2: The expected valueThe of randomtheerror A2: Variable A5: values A6+:Random A3: The variancetheTheerror of random A3: Applied Econometrics QEM Page 11 Page 2 2 , 1, , Regression model are not random and are not exact and are not random are tk L x 2 L LK ASSUMPTIONS of the Multiple Regression Model Regression the ASSUMPTIONS of Multiple = = 1 2 2 1 2 2 β+β ++β σ⇔ σ = = σ =β+β + +β ⇔ = ij ij 1 2 2 i i yy ee y e i i K iK i ~ ( ), ~ (0, ) =β+β + +β + = () ()0 i i K iK i i i K iK i y N x x e N y x x e i N Ey x xEe var( ) var( ) cov( , ) cov( , ) 0 Assumptions a multiple for regression model: A1. A2. A3. A4. of each The values A5. linear functions of the other explanatory variables otherexplanatory of functionsthe linear A6. Applied Econometrics QEM Page 12 Page y and e Regression model Figure 2.4 Probability densityfunctions2.4ProbabilityforFigure
Applied Applied Econometrics QEM Page 13 Page Regression model Estimating the RegressionParameters theEstimating
Applied Applied Econometrics QEM Page 14 Page Regression model Table 2.1 Food Expenditure and Data 2.1Food ExpenditureIncome Table
Applied Applied Econometrics QEM Page 15 Page Regression model Figure 2.6DataFigurefor expenditure example food
Applied Applied Econometrics QEM ) , Page 16 Page ( i x : 2 ) b − 1 b − fitted values i y minimizeresiduals: ofsquared sum the = 1 2 i Regression model ˆ y and = + − i i i we canwe calculate y ˆ y b bx ( = i ˆ e and residuals: For anyFor values valuessquares least The of and
Fitted values,residuals andleast squares Applied Econometrics QEM Page 17 Page , ê and theline regressionandfitted,ê y Regression model Figure 2.7 The relationshipamong 2.7Figure
Applied Applied Econometrics QEM 2 andb 1 Page 18 Page imizing values b Regression model Figure 2A.1 The sum sum TheFigure 2A.1squaresof functionand the min
Applied Applied Econometrics QEM are 2 β x 2 and b Page 19 Page 1 β − ) y = 1 b and ) Regression model y ( − 2 ) i y x )( − i x x − ( i x ∑ ( ∑ = obtained my minimizing the sum sum the my minimizing obtained Least squares estimates for the unknown unknown thefor parameters squaresestimates Least Solution for one explanatoty variable case: 2 b
Least squares estimator Applied Econometrics QEM and Page 20 Page ⋯ Regression model ′ , , don'tbutknow of thevalues - the vector of explanatory variables - the vector of parameters. ]′ and … … [1 in a vectorin a form: observe We Least squares estimator – multiple regression Multiple regression needestimate to it Applied Econometrics-QEM . The , the ) Page 21 Page odel (described by ( random variable ∑ and is a is anda ∑ such thatsuch the SEE is minimum Regression model that obtainwe byapplying the general ∑ so that: , we we , can find ( ) ∑ be the estimate be the estimate of The LS estimator generalis a formula The LS estimator properties of which dependonthe structure of the m assumptions). numbers LS estimates are formulas theto observed data. Since SSE ondepends solution is the formula for LS estimator: • Let • Fitted values: Residuals: Sum Sum of residuals:sq. Applied Econometrics-QEM Page 22 Page Regression model Table 2.1 Food Expenditure and Data 2.1Food ExpenditureIncome Table Least squares estimator - example
Applied Applied Econometrics QEM Page 23 Page 4160 . 83 = ) 2096 . 6048 . ? 10 2 = 19 b )( and 2684 7876 . 2096 . 1 . b Regression model 10 ( i 1828 18671 x − = ) 21 . y 5735 . − 2 ) i 10 y x + 283 )( − i x = x − ( 42 x . i 2 x b ∑ ( − 83 y ∑ = = = i 2 1 ˆ y b b We canWe calculate: Andreport that: What interpretation of
Least squares estimator - example Applied Econometrics QEM Page 24 Page Regression model Figure 2.9EViewsFigure Output Regression
Applied Applied Econometrics QEM Page 25 Page Regression model Figure 2.8 Theregressionfitted line 2.8Figure
Applied Applied Econometrics QEM for a 61 . Page 26 Page 287 = ) = 20. We20. = obtain: 20 x ( 21 . 10 + 42 . 83 = Regression model i x 21 . 10 + 42 . 83 that a household of weeklya with a thatincome = ˆ y predict predict $2000willspend$287.61 per foodweek on householdof $2000,with income so that We Point prediction Supposewe wanted predictthattofood expenditure Applied Econometrics QEM Page 27 Page Regression model Assessing the Least Least SquaresAssessingtheFit
Applied Applied Econometrics QEM ) ∑ Page 28 Page ̅ ̅ ∑ ̅ ̅)( ∑( ∑ Regression model ̅ ) 1 ̅ ∑ ̅)( ∑ ∑(
Notice Notice thatestimators LS not (do confuse with estimates) are random variables so wecan calculate their expected values, variances, covariances or probability distributions Given that: canWe derive: Applied Econometrics QEM 2 b bution and 1 e from from e b (estimate Page 29 Page 0 imply that: