Docsity

Regression Analysis: Understanding Variable Relationships and Predicting Values, Lecture notes of Econometrics and Mathematical Economics

Partial preview of the text

Download Regression Analysis: Understanding Variable Relationships and Predicting Values and more Lecture notes Econometrics and Mathematical Economics in PDF only on Docsity!

Chapter 2

A brief overview of the

classical linear regression model

Regression

  • Regression is probably the single most important tool at the econometrician’s disposal. But what is regression analysis?
  • It is concerned with describing and evaluating the relationship between a given variable (usually called the dependent variable) and one or more other variables (usually known as the independent variable(s)).

Some Notation

  • Denote the dependent variable by y and the independent variable(s) by x 1 , x 2 , ... , xk where there are k independent variables.
  • Some alternative names for the y and x variables:

y x dependent variable independent variables regressand regressors effect variable causal variables explained variable explanatory variable

Regression is different from Correlation and cointegration

  • In regression, we treat the dependent variable ( y ) and the independent variable(s) ( x ’s) very differently. The y variable is assumed to be random or “stochastic” in some way, i.e. to have a probability distribution. The x variables are, however, assumed to have fixed (“non-stochastic”) values in repeated samples. (Eg. The effect of compensation on productivity)

Simple Regression

  • For simplicity, say k =1. This is the situation where y depends on only one x variable.
  • Examples of the kind of relationship that may be of interest include: - The effect of training on productivity of employees - Impact of advertisement campaign on sales volume - Relationship between educational experience of board members and performance of companies.

Triple A Construction

  • Triple A Construction renovates old homes
  • They have found that the dollar volume of renovation work is dependent on the area payroll

TRIPLE A’S SALES ($100,000’s)

LOCAL PAYROLL ($100,000,000’s) 6 3 8 4 9 6 5 4 4.5 2 9.5 5

Finding a Line of Best Fit
  • We can use the general equation for a straight line, y = a + bx to get the line that best “fits” the data.
  • However, this equation (y = a + bx ) is completely deterministic.
  • Is this realistic? No. So what we do is to add a random disturbance term, u into the equation. yt = α + β xt + u (^) t where t = 1,2,3,4,
Why do we include a Disturbance term?
  • The disturbance term can capture a number of features:
    • We always leave out some determinants of yt
    • There may be errors in the measurement of yt that cannot be modelled.
    • Random outside influences on yt which we cannot model
Ordinary Least Squares
  • The most common method used to fit a line to the data is known as OLS (ordinary least squares).
  • What we actually do is take each distance and square it (i.e. take the area of each of the squares in the diagram) and minimise the total sum of the squares (hence least squares).
  • Tightening up the notation, let

y (^) t denote the actual data point t denote the fitted value from the regression line denote the residual, y (^) t - y ˆ t

y ˆ t u ˆ t

Actual and Fitted Value

y

x i x

y i

y ˆ i

u ˆ i

Deriving the OLS Estimator
  • But , so let
  • Want to minimise L with respect to (w.r.t.) and , so differentiate L w.r.t. and (1) (2)
  • From (1),
  • But and.

α^  β

α^  β

y ˆ^ t =αˆ + βˆ x t

∂∂α L ˆ^ =^ −^2 ∑ t^ ( yt^ −αˆ −^ βˆ xt )=^0

∂∂β L ˆ^ =^ −^2 ∑ t^^ xt^ ( yt −αˆ −^ βˆ xt ) =^0

∑ t (^ yt −^ αˆ −βˆ xt ) =^0 ⇔ ∑ yt − T αˆ −^ βˆ∑ xt =^0

∑ y^ t =^ Ty ∑ x^ t =^ Tx

L = (^) ∑ t ( yt − y ˆ t )^2 = ∑ i ( yt −αˆ − βˆ xt )^2

Deriving the OLS Estimator (cont’d)
  • So we can write or (3)
  • From (2), (4)
  • From (3), (5)
  • Substitute into (4) for αfrom (5),

y − αˆ^ − βˆ x = 0 ∑ t xt^ ( yt −αˆ −^ βˆ xt ) =^0

αˆ = y − βˆ x

− + − =

− + − =

− + − =

t t t t

t t t t t t

t t t t

x y Tyx Tx x

x y y x x x x

x y y x x

ˆ ˆ 0

ˆ ˆ 0

( ˆ ˆ ) 0

2 2

2 β β

β β

β β

Ty − T αˆ^ − T βˆ x = 0

What do We Use and For?
  • In the example used above, plugging the 5 observations in to make up the formulae given above would lead to the estimates = 2 and = 1.25. We would write the fitted line as:
  • How do we interpret the coefficient values?

α^  (^) β

α^  (^) β Therefore Y ˆ^ = 2 + 1. 25 X

Accuracy of Intercept Estimate
  • Care needs to be exercised when considering the intercept estimate, particularly if there are no or few observations close to the y -axis: (^) y

0 x