Chapter 03 - Simple Regression
Chapter 03 - Simple Regression
Chapter 03 - Simple Regression
Applied Econometrics
Second edition
Dimitrios Asteriou and Stephen
G. Hall
Applied
Applied Econometrics
Econometrics
SIMPLE REGRESSION
X
300
250
200
X
150
100
50
0
60 80 100 120 140 160 180
Applied Econometrics
• By eye
• Connecting the first with the last observation
• Take the average of the first two and the
average of the two last and connect
• Apply Ordinary Least Squares
Applied Econometrics
Regression Models
Deterministic Regression Model:
Y=0+1X
Probabilistic Regression Model:
Y=0+1X+u
0 and 1 are population parameters
Yˆ b0 b1 X
where : b0 = the sample intercept
b1 = the sample slope
Yˆ = the predicted value of Y
Applied Econometrics
Slope and Intercept of the
Regression Line
X Y
X X Y Y XY nXY XY
n
b
X X X n X X
1 2 2 2 2
X 2
n
Y X
b Y b X n b n
0 1 1
Applied Econometrics
SSXY X X Y Y XY
X Y
n
X
2
X X
2
SSXX X
2
n
SSXY
b1 SSXX
Y X
b Y b X n b n
0 1 1
Applied Econometrics
Example: The Keynesian
Consumption Function
Applied Econometrics
Example: The Keynesian
Consumption Function
C2=B2*A2
D2=B2*B2
A22=SUM(A2:A21)
B22=SUM(B2:B21)
and so on!
Applied
ExcelEconometrics
Calculations
b0=(C22-(A22*B22)/20)/(D22-((B22ˆ2)/20))=0.601888903
b1=AVERAGE(A2:A21)-G2*AVERAGE(B2:B21)=15.116408
Applied Econometrics
Excel Calculations (the easy way!)
• Step 1: go to the menu Tools/Data Analysis and choose the command
regression.
• Step 2: We are then asked to specify the Input Range, Output Range,
and a choice of including or not labels in the first row.
• Step 3: The Input Range is the columns that contain the data for Y and X
(i.e. we enter ‘$A$1:$B$21’ or simply select this area using the mouse).
• Step 4: The Output Range can be either a different sheet (not
recommended) or any empty cell in the current sheet (i.e. we might specify
cell F5).
• Step 5: Since we have chosen the labels in our selection we tick the box.
• Step 6: By clicking <OK> we obtain the display shown in Table 4.4.
Applied Econometrics
Excel Results
250
200
X
150
Linear (X)
100
50
0
60 80 100 120 140 160 180
Applied Econometrics
17
Applied Econometrics
Hypothesis Tests for the Slope
of the Regression Model
b
H 0: 1 0 t
1 1
S
H 1: 1 0
b
S
where: S b
SSXX
e
H 0: 1 0 SSE
Se
H 1: 1 0
n2
SSXX
X
2
X
2
H 0: 1 0 n
the hypothesized slope
H 1: 1 0 1
df n 2
Applied Econometrics