Chapter 4: Transfer Function Analysis
description
Transcript of Chapter 4: Transfer Function Analysis
![Page 1: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/1.jpg)
1
Chapter 4: Transfer Function AnalysisChapter 4: Transfer Function Analysis
4.1 Introduction
• Previously we have only considered modelling of a single time series Yt, i.e., Yt is linearly related to its past values.
• Transfer function analysis is concerned with the situation where Yt is predicted using current and past values of other variables.
![Page 2: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/2.jpg)
2
• For example, the monthly sales of a company may be related to its monthly advertising expenditure
- Our concern here is to predict the future monthly sales.
- If we think that monthly sales is somewhat affected by advertising expenditure, then by incorporating the information on advertising, we may be able to give better sales forecasting.
![Page 3: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/3.jpg)
3
Transfer function is concerned with situations similar to the above example. The time series being forecasted (Yt) is called the output series, while the time series (Xt) which helps explain the movement of Yt, Yt –1, Yt – 2 … is called the input series.
![Page 4: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/4.jpg)
4
4.2 Nature of transfer function
Assumptions and terminology:
• Observations for the various series occur at equally spaced intervals.
• Input series is not affected by the output series; i.e., we are limited to single equation models.
• Both the input and output series are stationary.
![Page 5: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/5.jpg)
5
• The model may be written as:
Yt = V0Xt + V1Xt–1 + V2Xt–2 + VRXt–k + Nt
= V(B)Xt + Nt (4.1)
where V’s are the unknown parameters, and Nt is the noise series, which represented the combined effects of other factors affecting the output series.• Nt may be autocorrelated, but is assumed to be
independent of Xt.
• The parameters V0, V1 … etc. are called impluse response weights.
• V0 states how Yt responds to a change in Xt, V1 states how Yt responds to a change in Xt-1 and so on.
![Page 6: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/6.jpg)
6
• The larger the absolute value of any weight Vk, the larger the response of Yt to a change in Xt–k. In theory, this distributed lag response could be of infinite length.
• Yt often does not respond immediately to a change in Xt, that is, some initial weights may be zero. For example, the company advertising expense may not affect the sales immediately. It may take up a month for the market to digest the advertising effects. Hence V0 = 0.
![Page 7: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/7.jpg)
7
- The number of v weights equal to zero is called the dead time, denoted as b.
- Also, the order (k) of the transfer function can be rather larger. To avoid infinite number of weights, (2.1) is often written as
tt
bt NXB
B
BWY
where W(B) = W0 – W1B – W2B2 – … WsBs
δ(B) = 1 – δ1B – δ2B2 – … δrBr
![Page 8: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/8.jpg)
8
This effectively expresses the infinite order transfer function as the ratio of two finite order polynomial. For example, consider
W(B) = 1.2 – 0.5B and δ(B) = 1 – 0.8B then
V(B) = (1.2 – 0.5B)(1 + 0.8B + (0.8)2B2+…)= 1.2 + 0.46B + 0.368B2 + 0.924B3 + …
![Page 9: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/9.jpg)
9
Overtime, the full change in Yt in response to unit’s change in Xt is given by,
where g is called a steady-state gain of the transfer function.
r
sWWWVVVg
21
10210 1
![Page 10: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/10.jpg)
10
• In ARIMA model, the model identification consists of matching sample autocorrelation and partial autocorrelation functions to the theoretical AL and PAL of specific ARIMA models.
• In transfer function models, the same approach is used. We match the sample cross correlation function to the theoretical impulse response functions. It is necessary that we investigate the impulse response function and determine what various patterns in the weights V0, V1, V2… imply about b, r and s. Very often, we find that the values of r and s do not exceed 2.
4.3 Nature of impulse response function
![Page 11: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/11.jpg)
11
Case 1: r = 0, s = 0 and b = 0
Since the impulse response function is defined as
this implies
,B
BWBV
V0 + V1B + V2B2 + …= W0
Equating the coefficients of B, we get B0 : V0 = W0
Bk : Vk = 0 k > 0
Therefore, the transfer function model is Yt = W0Xt, i.e., Yt
changes by W0 units immediately for every unit change in Xt. Impulse response function graph is:
Vk
lag0 1 2 3
![Page 12: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/12.jpg)
12
Case 2: r = 0, s = 0 and b = 1
The transfer function is V0 + V1B + …V2B2 + …= W0B
Equating the coefficients of B, we get B0 : V0 = 0B1 : V1 = W0
Bk : Vk = 0 ; k 2Therefore, the transfer function model is Yt = W0BXt = W0Xt–1 i.e., Yt
changes by W0 units immediately for every unit change in Xt–1. Impulse response function graph is:
Vk
lag0 1 2 3
For a non-zero b in general, Vk = 0 for all k b, and Yt = W0BbXt = W0Xt–b
![Page 13: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/13.jpg)
13
Case 3: r = 0, s = 1 and b = 0
V(B) = W0 – W1B B0 : V0 = W0
B1 : V1 = –W1
Bk : Vk = 0 k 2Therefore, the transfer function model is Yt = W0Xt – W1Xt–1 i.e., changes in Xt lead to changes in by Yt and Yt–1. Impulse function graph is:
Depending on the values of the coefficients, the impulse response function has either positive or negative spikes or combination of both at lags 0 and 1.
Vk
lag0 1
![Page 14: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/14.jpg)
14
Case 4: r = 0, s = 1 and b = 1
V(B) = W0 B – W1B2 B0 : V0 = 0B1 : V1 = W0
B2 : V2 = –W1
Bk : Vk = 0 k 3
Therefore, the transfer function model is Yt = W0Xt–1 – W1Xt–2 i.e., changes in Xt lead to changes in Yt+1 and Yt+2. Impulse response function graph is:
Vk
lag0 1 2 3
Depending on the values of the coefficients, the impulse response function has either positive or negative spikes or combination of both at lags 1 and 2.
![Page 15: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/15.jpg)
15
Case 5: r = 0, s = 2 and b = 0
V(B) = W0 – W1B – W2B2 B0 : V0 = W0
B1 : V1 = –W1
B2 : V2 = –W2
Bk : Vk = 0 k 3Therefore, the transfer function model is Yt = W0Xt – W1Xt–1 – W2Xt–2 i.e., changes in Xt lead to changes in Yt, Yt+1 and Yt+2. Impulse response function graph is:
Vk
lag0 1 2 3
![Page 16: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/16.jpg)
16
Case 6: r = 1, s = 0 and b = 0
The transfer function is with
B0 : V0 = W0
B1 : V1 – V0δ1 = 0 V1 = V0δ1 = W0 δ1
B2 : V2 – V1δ1 = 0 V2 = V1δ1 = W0 δ12
Bk : Vk = W0 δ1k for k 0
Impulse response function graph is:
B
WBV
1
0
1
(V0 + V1B + V2B2 + …)(1– δ1B) = W0
1 1Since 1, 0 as kk Vk
lag0 1 2 3 4 5
The transfer function model is Yt = W0Xt + W0δ1Xt–1 + W0δ1
2Xt–2 + … that is, changes in Xt lead to changes in Yt, Yt+1, Yt+2 with the effect dying out geometrically.
![Page 17: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/17.jpg)
17
Case 7: r = 1, s = 1 and b = 0
The transfer function model is with
B0 : V0 = W0
B1 : V1 – V0δ1 = –W1 V1 = V0δ1 – W1= W0 δ1–W1
B2 : V2 – V1δ1 = 0 V2 = V1δ1 = W0 δ12 – W1δ1
Bk : Vk = Vk–1δ1 = W0 δ1k – W1 δ1
k–1 for k 1
Impulse response function graph is:
B
BWWBV
1
10
1
(V0 + V1B + V2B2 + …)(1– δ1B) = W0 – W1 B
Vk
lag0 1 2 3
The impulse response function decays from lag 1 geometrically but the impulse at lag 0 does not follow any decay pattern. Changes in Xt
lead to changes in Yt, Yt+1, Yt+2 with the effects dying out geometrically from lag 1.
![Page 18: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/18.jpg)
18
Case 8: r = 1, s = 2 and b = 0
The transfer function is with
B0 : V0 = W0
B1 : V1 – V0δ1 = –W1 V1 = V0δ1 – W1= W0 δ1–W1
B2 : V2 – V1δ1 = –W2 V2 = V1δ1 – W2 = W0 δ12 – W1δ1 – W2
Bk : Vk = Vk–1δ1 =δ1k–2(W0δ1
2 – W1δ1 – W2) for k 2
Impulse response function graph is:
B
BWBWWBV
1
2210
1
(V0 + V1B + V2B2 + …)(1– δ1B) = W0 – W1 B – W2B2
The impulse response function decays from lag 2 geometrically but the impulse at lags 0 and 1 do not follow any decay pattern. Changes in Xt lead to changes in Yt, Yt+1, Yt+2 with the effects dying from lag 2.
VR
lag0 1 2 3 4
![Page 19: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/19.jpg)
19
Case 9: r = 2, s = 0 and b = 0
The transfer function is with
B0 : V0 = W0
Bk : Vk = Vk–1δ1 – Vk–2δ2 for k 1
2
21
0
1 BB
WBV
(V0 + V1B + V2B2 + …)(1 – δ1B – δ2B2) = W0
Depending on the values of δ1 and δ2, Vk decays slowly or follows a damped sinewave from lag 1 with V0 not following any decaying pattern.
![Page 20: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/20.jpg)
20
Case 10: r = 2, s = 1 and b = 0
The transfer function is with
B0 : V0 = W0
B1 : V1 = δ1W0 – W1
Bk : Vk = Vk–1δ1 – Vk–2δ2 for k 2
2
21
10
1 BB
BWWBV
(V0 + V1B + V2B2 + …)(1 – δ1B – δ2B2) = W0 – W1B
Depending on the values of δ1 and δ2, Vk decays slowly or follows a damped sinewave from lag 2 with V0 and V1 not following any decaying pattern.
![Page 21: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/21.jpg)
21
In summary, δ(B) represents the decay pattern with
W(B) captures unpatterned spikes (not part of the decay pattern)
• r = 0 (no decay)
• r = 1 (decay geometrically)
• r = 2 (decay exponentially or damped sinewave)
• r = 0, 2 (number of unpatterned spikes –1 equals the value of s)
• r = 1 (number of unpatterned spikes before the decay equals the value of s)
![Page 22: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/22.jpg)
22
4.3 Building a transfer function model
Our goals are
1. To find a parsimonious expression for the polynomial V(B) as a ratio of other polynomials of lower order.
2. To find a parsimonious expression for the time structure of the disturbance series Nt in the form of an ARIMA model. The ARIMA model for the Nt series is given by
P(B)P(BL)Nt = q (B)Q(BL)t
where t is white noise.So the transfer function becomes,
L
pp
tL
Qqt
bt BB
BBXB
B
BWY
![Page 23: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/23.jpg)
23
The procedure of building a transfer function model involves three steps:
Step 1 : Identification of a model describing Xt and “pre-whitening” of both the input and output series.
Step 2 : Calculation of the sample cross correlation between the pre-whitened series and the identification of a preliminary transfer function model.
Step 3 : Identification of an ARIMA model for the noise series.
![Page 24: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/24.jpg)
24
Step 1 :
For purposes of illustration, we consider the data given in Table 14.1 of Bowerman and O’Connell (1993) on monthly advertising (Xt) and sales (Yt), as depicted in the following graphs.
![Page 25: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/25.jpg)
25
Figure 4.1: Monthly advertising expenditure (in thousands of dollars)Figure 4.1: Monthly advertising expenditure (in thousands of dollars)
80
90
100
110
120
130
140
150
0 10 20 30 40 50 60 70 80 90 100
Advertising
![Page 26: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/26.jpg)
26
Figure 4.2: Monthly sales volume (in millions of dollars)Figure 4.2: Monthly sales volume (in millions of dollars)
150
170
190
210
230
250
270
290
310
330
350
0 10 20 30 40 50 60 70 80 90 100
Sales
![Page 27: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/27.jpg)
27
• It is identified that Xt is best described by an ARIMA (1, 1, 1) model with
and Yt by an ARIMA (2, 1, 1) model with
• It is easier to construct a transfer function using
only stationary input and output series. For purposes of convenience, we denote the appropriately differenced and transformed series of Xt and Yt as xt and yt respectively.
and300301 .ˆ 787101 .ˆ
..ˆ .ˆ.ˆ 740 and69030 ,98170 121
![Page 28: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/28.jpg)
28
• Furthermore, experience has shown that the identification process is simplified if the input series is white noise. We do this by pre-whitening the input series. Suppose that we have identified an ARMA (p, q) (P, Q)L model for xt.
i.e. p(B)P(BL)xt = q(B)Q(BL)t
where t is white noise. Then the series t is called the pre-whitened series with
L
tL
Ppt BB
xBB
![Page 29: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/29.jpg)
29
• In practice, t is known and estimated by the
residual of the ARMA model for xt. For example, the first difference of the advertising expenditure series can be written as,
,t̂
B.
xB.ˆ
.x.x
tt
tttt
787101
300301
7871030030 11
Although in most cases, we write t instead of .ˆt
![Page 30: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/30.jpg)
30
• But recall that the transfer function model is written as yt = V(B)xt + Nt. Pre-whiten the input series means that we have to multiply the entire transfer function by
tLQq
tL
Pp
LQq
tL
Pp
BB
xBBBV
BB
yBB
i.e., ,
LQq
LPp
BB
BB
L
tL
Ppt BB
yBB
Define
![Page 31: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/31.jpg)
31
• This operation is called “pre-whitening” the input and output series. But note that t is not necessarily white noise. Why?
• The “pre-whitened” transfer function is
1 0.3003
In our example, 1 0.7871
tt
B y
B
ttt BV
![Page 32: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/32.jpg)
32
Step 2 :
• To identify the transfer function, we must estimate the impulse response function V(B) from the pre-whitened input and output series and then match the pattern of the estimated function to that of the theoretical impulse response function.
• We first establish the relationship between the impulse weights and the series. Now, multiply the pre-whitened transfer function Bt = V(B)t + t by t – k and take expectation, we obtain the cross-covariance for Bt and t at lag k defined as
![Page 33: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/33.jpg)
33
0 1 1
2 2
t t k t t k
t t k t t k
t t k t t k
k E V B E
E V E V
E V E
As t and t are independent (why?) hence,
For k = 0, (0) = V02
k = 1, (1) = V12
In general, (k) = Vk2, k = 0, 1, 2 …
![Page 34: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/34.jpg)
34
• Therefore, the impulse response weights are proportional to the cross covariance. Now, the cross correlation coefficient of t and t at lag k is
t t kEk
• Then we see that 2
kVk
kV k
• Thus the cross-correlation coefficients between the pre-whitened input and output series are directly proportional to the impulse response weights.
![Page 35: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/35.jpg)
35
(k) cannot be calculated in practice, so we compute its estimate using
1 12 2
1
2 2
1 1
n
t k tt
n n
t tt t
r k
where are the sample means of and respectively. The sample cross correlation coefficients are computed for k = 0, 1, 2 and so on. Since we assume that Yt is led by Xt, we except (k) = 0 for k
< 0.
and
![Page 36: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/36.jpg)
36
• Since the sample cross correlation values are sample statistics, we need their standard errors to determine if any of them is significantly different from zero.
• Bartlett approximates the standard error of
r(k) by The cross correlation
coefficient at lag k is insignificant at the 5%
level if
1 .n k
2 .k n k
![Page 37: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/37.jpg)
37
The following SAS program computes the pre-whitened input and output series and also the The following SAS program computes the pre-whitened input and output series and also the sample cross correlation coefficients: sample cross correlation coefficients:
data sales;
infile 'd:\teaching\ms4221\advertising.txt';
input @6 X Y;
proc arima;
identify var=X(1) noprint;
estimate p=1 q=1 noconstant;
identify var=y(1) crosscor=(x(1)) nlag=10; run;
![Page 38: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/38.jpg)
38
Correlation of Y and X Variable X has been differenced. Period(s) of Differencing = 1. Both series have been prewhitened. Variance of transformed series = 271.7644 and 21.91755 Number of observations = 99 NOTE: The first observation was eliminated by differencing. Crosscorrelations Lag Covariance Correlation -1 9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9 1 -10 4.762407 0.06171 | . |* . | -9 1.901889 0.02464 | . | . | -8 1.366826 0.01771 | . | . | -7 -4.748175 -0.06152 | . *| . | -6 -4.222908 -0.05472 | . *| . | -5 -7.902604 -0.10239 | . **| . | -4 -6.045174 -0.07833 | . **| . | -3 4.666570 0.06047 | . |* . | -2 6.975240 0.09038 | . |** . | -1 -3.357529 -0.04350 | . *| . | 0 -9.157557 -0.11866 | . **| . | 1 -7.390464 -0.09576 | . **| . | 2 26.271432 0.34040 | . |******* | 3 49.041253 0.63543 | . |************* | 4 22.236550 0.28812 | . |****** | 5 -14.682423 -0.19024 | ****| . | 6 -35.866691 -0.46473 | *********| . | 7 -31.123249 -0.40327 | ********| . | 8 -2.799674 -0.03628 | . *| . | 9 10.285329 0.13327 | . |***. | 10 8.423270 0.10914 | . |** . | "." marks two standard errors Crosscorrelation Check Between Series To Chi Crosscorrelations Lag Square DF Prob 5 65.55 6 0.000 -0.119 -0.096 0.340 0.635 0.288 -0.190 ARIMA Procedure Both variables have been prewhitened by the following filter: Prewhitening Filter Autoregressive Factors Factor 1: 1 + 0.30027 B**(1) Moving Average Factors Factor 1: 1 + 0.78714 B**(1)
![Page 39: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/39.jpg)
39
Some identification rules
1) Determining b:
• It is equal to the number of V weights that are equal to zero starting from V0.
• In practice, we look for a set of zero value V weights in the sample cross correction function. For the advertising sales example, 2 appears to be appropriate.
![Page 40: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/40.jpg)
40
2) Determining r:
• If there is no decay pattern at all, but rather a group of spikes followed by a zero cut-ff, then r = 0.
• If r(k) shows a geometrical decay pattern after some lags, then r = 1.
• If r(k) decays slowly or shows a damped sinewave pattern, then r = 2.
• For the above example, we choose r = 2.
![Page 41: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/41.jpg)
41
Determining S
• If r has been chosen to 0 or 2, then s = number of significant unpatterned spikes –1.
• If r has been chose to 1, then s = number of significant unpatterned spikes.
• For the above example, the decaying pattern starts from lag 3 and there is one significant spike preceding that. We have chosen r = 2, which implies that s = 1 – 1 = 0.
![Page 42: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/42.jpg)
42
So we are led to choose the model,
Step 3
• After the transfer function model has been tentatively identified, an ARIMA process for the noise series must be considered, we do so by first estimating the tentatively identified transfer function model by maximum likelihood. The following SAS program shows an example.
ttt xBBB
Wy
2
221
0
1
![Page 43: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/43.jpg)
43
data sales;
infile 'd:\teaching\ms4221\advertising.txt';
input @6 X Y;
proc arima;
identify var=X(1) noprint;
estimate p=1 q=1 noconstant;
identify var=y(1) crosscor=(x(1)) nlag=10;
estimate input=(2$/(1,2)x) noconstant method=ml plot;
run;
![Page 44: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/44.jpg)
44
The ARIMA Procedure Maximum Likelihood Estimation Standard Approx Parameter Estimate Error t Value Pr > |t| Lag Variable Shift NUM1 1.69655 0.03958 42.86 <.0001 0 X 2 DEN1,1 1.16305 0.0093579 124.29 <.0001 1 X 2 DEN1,2 -0.73685 0.01013 -72.72 <.0001 2 X 2 Variance Estimate 15.49461 Std Error Estimate 3.93632 AIC 532.8967 SBC 540.5583 Number of Residuals 95 Autocorrelation Check of Residuals To Chi- Pr > Lag Square DF ChiSq --------------------Autocorrelations-------------------- 6 31.79 6 <.0001 0.456 0.040 -0.086 -0.273 -0.155 -0.066 12 33.83 12 0.0007 -0.102 -0.034 0.059 0.019 0.045 -0.042 18 36.19 18 0.0067 -0.082 -0.012 -0.066 -0.064 -0.017 0.069 24 38.84 24 0.0284 0.119 0.050 -0.046 -0.046 0.028 -0.005
![Page 45: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/45.jpg)
45
Autocorrelation Plot of Residuals Lag Covariance Correlation -1 9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9 1 Std Error 0 15.494612 1.00000 | |********************| 0 1 7.070411 0.45631 | . |********* | 0.102598 2 0.621509 0.04011 | . |* . | 0.122106 3 -1.333995 -.08609 | . **| . | 0.122245 4 -4.237373 -.27347 | *****| . | 0.122882 5 -2.395656 -.15461 | . ***| . | 0.129129 6 -1.025432 -.06618 | . *| . | 0.131063 7 -1.580902 -.10203 | . **| . | 0.131415 8 -0.531162 -.03428 | . *| . | 0.132246 9 0.907621 0.05858 | . |* . | 0.132339 10 0.300735 0.01941 | . | . | 0.132612 "." marks two standard errors Partial Autocorrelations Lag Correlation -1 9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9 1 1 0.45631 | . |********* | 2 -0.21232 | ****| . | 3 -0.01508 | . | . | 4 -0.27921 | ******| . | 5 0.13492 | . |***. | 6 -0.12407 | . **| . | 7 -0.06528 | . *| . | 8 -0.03186 | . *| . | 9 0.08863 | . |** . | 10 -0.10187 | . **| . |
![Page 46: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/46.jpg)
46
• The SAC and SPAC of the residuals indicate the strong possibility of MA(1) process. So we re-estimate the transfer function again as
ttt BxBBB
Wy
12
221
0 11
using the following SAS program:
![Page 47: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/47.jpg)
47
data sales;
infile 'd:\teaching\ms4221\advertising.txt';
input @6 X Y;
proc arima;
identify var=X(1) noprint;
estimate p=1 q=1 noconstant noprint;
identify var=y(1) crosscor=(x(1)) nlag=10 noprint;
estimate q=1 input=(2$/(1,2)x) noconstant method=ml;plot; run;
![Page 48: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/48.jpg)
48
The ARIMA Procedure Maximum Likelihood Estimation Standard Approx Parameter Estimate Error t Value Pr > |t| Lag Variable Shift MA1,1 -0.68954 0.07721 -8.93 <.0001 1 Y 0 NUM1 1.66928 0.04954 33.69 <.0001 0 X 2 DEN1,1 1.16758 0.01150 101.50 <.0001 1 X 2 DEN1,2 -0.74202 0.01278 -58.05 <.0001 2 X 2 Variance Estimate 11.15887 Std Error Estimate 3.34049 AIC 503.3192 SBC 513.5347 Number of Residuals 95 Autocorrelation Check of Residuals To Chi- Pr > Lag Square DF ChiSq --------------------Autocorrelations-------------------- 6 7.10 5 0.2131 -0.056 0.038 -0.015 -0.255 0.003 -0.023 12 10.92 11 0.4498 -0.062 -0.061 0.124 -0.058 0.089 -0.037 18 14.17 17 0.6550 -0.108 0.085 -0.091 -0.007 -0.018 0.029 24 16.78 23 0.8200 0.091 0.011 -0.030 -0.073 0.070 -0.036
![Page 49: Chapter 4: Transfer Function Analysis](https://reader036.fdocuments.net/reader036/viewer/2022081501/56814860550346895db56e0c/html5/thumbnails/49.jpg)
49
• This model appears to be adequate. The residuals are uncorrelated and all coefficients are significant.
• Exante forecasts of Yt can be generated using the statement “Forecast lead = number of periods” immediately after the estimation statements.