Beruflich Dokumente
Kultur Dokumente
Yt = β0
t
Figure 1: No Trend
β1 > 0 β1 < 0
t t
Figure 2: Linear Trend
Yt = β0 + β1t + β1t 2
t t
Figure 3: Quadratic Trend
Yi = β0 + β1 X i + εi
Yˆi = b0 + b1 X i (1)
ei = Yi −Yˆi
And − 2∑ X i (Yi − b0 − b1 X i ) = 0
i =1
n n
b0 n + b1 ∑ X i =∑Yi
i =1 i =1
n n n
b0 ∑ X i + b1 ∑ X =∑ X i Yi i
2
(2)
i =1 i =1 i =1
n∑i =1 XY − ∑i =1 X ∑i =1 Y
n n n
b1 =
n∑i =1 X 2 −
n
(∑ X ) n
i =1
2
b0 = Y − b1 X
From equation 1
Y =Xb
b=
2
. .
, Y= and X =
. .
.
b1
. .
.
1 x n
y n
The Standard Deviation About the Regression Line
The standard error of the regression is defined as
∑ (Yi − Yˆi ) 2 ∑
n n 2
e
i =1 i
se = i =1
=
n−2 n−2
t > tα/ 2 ,v =n −2
R2 =
∑(Yˆ i −Y )2
∑(Y i −Y )2
ANALYSIS OF VARIANCE
Analysis of variance (ANOVA) focuses on the ability of a
regression line to explain or account for the variation in Y.
Formally, the total deviation in Y can be regarded as the sum:
by s2
regression
Unexplaine ∑(Yi −Yˆi ) 2 n–2
s2 =
∑(Yi − Yˆi ) 2
d variation n −2
(Error)
Total ∑(Yi −Y ) 2 n–1
1. RMSE
2. MAE
3. R2 =
∑(Yˆ i −Y )2
∑(Y i −Y )2
The best model is chosen if the model has small value of AIC or
SBC.
1. yt = β 0 e β t ε t
1
2. y t = β0 ( β1−t )ε t
β1
3. Yt = β o + + εt
t
L
4. Yt =
1 + exp( β0 + β1t + ε t )
Multiple Regression
Multiple regression analysis is one of the most widely used for all
statistical methods. Is used to determine the relationship between
response function (y) and predictor variables (x’s). The regression
model
y t = β0 + β1 X 1 + β2 X 2 +... + βp −1 X p −1 +εt
ˆ = ( X T X)
β −1
(X T Y )
ˆ
ˆ = Xβ
Y
where
y1
y2 1 t1
t12 . . . t1n
. 1 t 2 t 22 . . . t 2n
. . .
Yˆ =
.
X=
. . .
. .
.
.
.
.
1 t n t n . . . t nn
2
.
y
n
Residuals
ei = Yi −Yˆi
ˆ
ˆ = Y − Xβ
e = Y −Y
Regression Coefficient
H0 : βj = 0
H1 : β j ≠ 0
H 0 : β1 = β2 = ... = β k = 0
H 1 : at least one β j ≠ 0
by k
s2
regression
Unexplaine SSE = ∑(Yi −Yˆi ) 2 n – p s 2 = σ̂ 2 =
SSE
d variation n− p
(Error)
Total SST = ∑(Yi − Y ) 2 n – 1
The null hypothesis would be rejected if the value of test statistics
(F) falls in the critical region by the upper ( α ) percentage points
of the F distribution with v1 = k and v 2 = n − p degrees of freedom.
That is, rejected H 0 if
F > f α, v , v
1 2
Exercise
1. Table 1 shows the quarterly average exchange rate for the
Japanese yen (yen per dollar) over the 19 periods (1985.4-
1990.2).
y t = β0 + β1 X 1 + β2 X 2 +... + βp −1 X p −1 +εt
iii. Find R 2 , RMSE, MAE, AIC and BSC and interpret the results?
iv. Using the best model, forecast the data from 1990.3-1990.4.
(b) y t = β 0 ( β1t )ε t
β1
(c) yt = β o + + εt
t
1
(d) yt =
1 + exp( β0 + β1t + ε t )
(e) y t = β 0 + β1 t + β 2 t + ... + β k t + ε t
2 k
, for k = 1 , 2, 3, 5.
iii. Find R 2 , RMSE, MAE, AIC and BSC and interpret the results?
iv. Using the best model, forecast the U.S. apparel employment data
from 1991-1992.
Task 2
Using the your data, test whether the et follows the properties assumed
for the εt .
Example:
(a) Find the equation of the regression line to predict production of cultured
yellow tail in Japan
(b) Using the analysis-of-variance (ANOVA) approach and t- test to test whether
or not the slope β = 0 . Take α = 5% as your level of significance.
(c) Find R 2 , RMSE, MAE, AIC and BSC and interpret the results?
Task 1
The table following shows the values for Microsoft Corporation Revenue.
a. Using the data from time 1 to 20, fit the data using the nonlinear function
yt = β 0 e β t ε t
1
a. Using the analysis-of-variance (ANOVA) approach and t- test approach to
test whether or not the slope β1 = 0 using α = 5%.
e. Using the estimate model from (a) forecast the data from time 21-28.
(n − k ) 2 1 2
χ2 = S + ( K − 3)
6 4
(i)Durbin-Watson Test
∑(et − et −1 ) 2
d= 2
∑et2
1
Reject H 0 if d < d L
Not Rejected if d > d u
Inclusive if d L < d < d u (Other method should be used).
(i)Run Tests
H 0 : The series are random independents (no-trends
series)
H 1 : The series are dependent (has trend)
n / 2 f o nr e v e n
m=
(n − 1) / 2 f o nr o d d
R − µR
z=
σR
For m ≤ 20 , α = 0.1
Reject H 0 if R ≥ RU or R ≤ RL
For m > 20 , α
Reject H 0 if z ≥ zα / 2