Professional Documents
Culture Documents
edition
SIMPLE REGRESSION
1. Introduction to the Classical Linear Regression Model
2. The OLS Method of Estimation
3. The Overall Goodness of Fit
4. Hypothesis Testing
5. How to Estimate a Simple Regression in Eviews
6. Applications and Examples
• Why probabilistic?
E(Yt)=a+ Xt
Yt=E(Yt) +ut
Yt=a+ Xt+u
300
250
200
150 X
100
50
0
0 20 40 60 80 100 120 140 160 180
From the desk of Ms Imrana Bano 7
Applied Econometrics 3rd
edition
Four Ways of Fitting a Line in the Data
• 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
From the desk of Ms Imrana Bano 8
Applied Econometrics 3rd
edition
THE SCATTER PLOT
Yˆ b0 b1 X
where : b0 = the sample intercept
b1 = the sample slope
Yˆ = the predicted value of Y
From the desk of Ms Imrana Bano 10
Applied Econometrics 3rd
edition
SLOPE AND INTERCEPT OF THE
REGRESSION LINE
X Y
X X Y Y XY nXY XY
n
b
X X X n X
2 2 2
1 2
X 2
X
n
Y X
b Y b X n b n
0 1 1
SSXY X X Y Y XY
X Y
n
X X
2
X
SSXX
2
2
X n
SSXY
b1 SSXX
Y X
b Y b X n b n
From the desk of Ms Imrana
0 Bano 1 1 12
Applied Econometrics 3rd
edition
LEAST SQUARES ANALYSIS
Why OLS?
1. Elimination of the effect of the sign (positive and
negative residuals offset each other)
2. More weight is given to larger residuals and so we
work harder to reduce the very large errors
3. It chooses a method that follow some numerical and
statistical properties (remember unbiasedness,
efficiency etc)
From the desk of Ms Imrana Bano 13
Applied Econometrics 3rd
edition
ASSUMPTIONS OF THE LEAST SQUARES
ANALYSIS
Unbiasedness
Efficiency
BLUEness
From the desk of Ms Imrana Bano 15
Consistency
Applied Econometrics 3rd
edition
PROPERTIES OF THE OLS ESTIMATORS
• BLUE - What does the acronym stand for?
C2=B2*A2
D2=B2*B2
A22=SUM(A2:A21)
B22=SUM(B2:B21)
and so on!
edition
b0=(C22-(A22*B22)/20)/(D22-
((B22ˆ2)/20))=0.601888903
b1=AVERAGE(A2:A21)-G2*AVERAGE(B2:B21)=15.116408
21
Applied Econometrics 3rd
edition
THE REGRESSION LINE
X
300
250
200
150
X
Linear (X)
100
50
0
From the desk of0Ms Imrana
20Bano 40 60 80 100 120 140 160 180
22
Applied Econometrics 3rd
edition
REGRESSION IN EVIEWS (1) (1)
23
Applied Econometrics 3rd
edition
REGRESSION IN EVIEWS (2)
Step 4 In the command line type:
genr x=0 (press enter)
genr y=0 (press enter)
which creates two new series named x and y that contain zeros
for every observation.
Open x and y as a group by selecting them and double clicking
with the mouse.
ls y c x (press ‘enter’)
25
Applied Econometrics 3rd
edition
READING THE EVIEWS REGRESSION
OUTPUT
26
Applied Econometrics 3rd
edition
THE COEFFICIENT OF
DETERMINATION
The proportion of variability of the dependent
variable accounted for or explained by the
independent variable in a regression model.
It is called R2 and it takes values from 0-1.
TSS=ESS+RSS
From the desk of Ms Imrana Bano
R2 = ESS/TSS or R2 = 1 – (RSS/TSS) 27
Applied Econometrics 3rd
edition
THE COEFFICIENT OF
DETERMINATION
Problems associated with R2
1. Spurious regression problem
2. High correlation of Xt with another varible Zt
3. Correlation does not necessarily imply causality
4. Time Series vs Cross Sectional equations
5. Low R2 does not mean wrong choice of Xt
6. R2s from equation with different forms of Yt are
not comparable
From the desk of Ms Imrana Bano
28
Applied Econometrics 3rd
edition
HYPOTHESIS TESTS FOR THE SLOPE
OF THE REGRESSION MODEL
H 0: 1 0 t
b 1 1
S
H 1: 1 0
b
where: S
S e
b
SS
H 0: 1 0
XX
SSE
Se
H 1: 1 0
n2
SSXX
2
X
2
H 0: 1 0
X n
the hypothesized slope
H 1: 1 0
From the desk of Ms Imrana Bano
1
df n 2 29
Applied Econometrics 3rd
edition
HYPOTHESIS TESTS FOR THE SLOPE
OF THE REGRESSION MODEL
30
Applied Econometrics 3rd
edition
HYPOTHESIS TESTS FOR THE SLOPE
OF THE REGRESSION MODEL
We don’t like statistical Tables? – good!!!
31