100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

STK320/ WST 321 Exercise 8 memo

Rating
3.0
(1)
Sold
-
Pages
20
Uploaded on
03-10-2022
Written in
2021/2022

STK320/ WST 321 Time series analysis Exercise 8memo

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
October 3, 2022
Number of pages
20
Written in
2021/2022
Type
Other
Person
Unknown

Subjects

Content preview

1


EXERCISE 8 SUGGESTED SOLUTION
1.(a) SAS Program
goptions reset=all;
proc iml;
omega={1 0.5, 0.5 0.75};
phi={1.2 0.5, -0.6 0.3};
call eigen(eigval, eigvec, phi);
modroots=sqrt(eigval[,1]##2+eigval[,2]##2);
vecomega=shape(omega, 4, 1);
vecgam_0=inv(i(4)-phi@phi)*vecomega;
gamma_0=shape(vecgam_0, 2, 2);
gamma_1=phi*gamma_0;
gamma_2=phi**2*gamma_0;
gamma_3=phi**3*gamma_0;
print 'Determine whether model is stationary';
print phi eigval modroots;
print 'Calculate theoretical autocovariance matrices';
print omega vecomega vecgam_0;
print gamma_0 gamma_1 gamma_2 gamma_3;
quit;

SAS Output

Determine whether model is stationary

phi eigval modroots
1.2 0.5 0.75 0.3122499 0.8124038
-0.6 0.3 0.75 -0.31225 0.8124038

Calculate theoretical autocovariance matrices

omega vecomega vecgam_0
1 0.5 1 10.015183
0.5 0.75 0.5 -5.996952
0.5 -5.996952
0.75 7.1586467

gamma_0 gamma_1 gamma_2 gamma_3
10.015183 -5.996952 9.0197436 -3.617019 6.9195947 -1.46754 4.4263612 0.1859224
-5.996952 7.1586467 -7.808195 5.7457651 -7.754305 3.8939408 -6.478048 2.0487063




WST321

, 2


 1 .2 0 .5 
Φ =  
 − 0 .6 0 .3 

1.2 − λ 0.5
Φ − λI =
− 0.6 0.3 − λ
= (1.2 − λ )(0.3 − λ ) − (0.5)(−0.6)
= λ2 − 1.5λ + 0.66
=0

The eigenvalues are

λ1 = 0.75 + 0.3122499 i

and

λ2 = 0.75 − 0.31225i .

The modulus of each eigenvalue is

λ1 = (0.75) 2 + (0.3122499) 2
= 0.8124038

and

λ2 = (0.75) 2 + ( −0.31225)2
= 0.8124038 .

Since the modulus for each eigenvalue is less than one, the model is stationary.

The theoretical covariance matrix, Γ0 , is calculated using

vec (Γ 0 ) = [I − (Φ ⊗ Φ)]−1 vec (Ω)
−1
 1 0 0 0   1.2 0.5   1.2 0.5    1 
   1.2  0.5    
0 1 0 0   − 0.6 0.3   − 0.6 0.3    0.5 
=   −  0.5 
 0 0 1 0  1.2 0.5   1.2 0.5  
   − 0.6  0.3    
 0 0 0 1   − 0.6 0.3  − 0.6 0.3    0.75 
 10.015183 
 
 − 5.996952 
= .
− 5.996952 
 
 7.1586467 




WST321

, 3


Therefore

 10.015183 − 5.996952 
Γ0 =   .
 − 5.996952 7.1586467 

The theoretical autocovariance matrices at lags 1, 2 and 3 are

Γ1 = ΦΓ0
 1.2 0.5   10.015183 − 5.996952 
=    
 − 0.6 0.3   − 5.996952 7.1586467 
 9.0197436 − 3.617019 
=   ,
 − 7.808195 5.7457651 

Γ 2 = Φ2 Γ 0
2
 1.2 0.5   10.015183 − 5.996952 
=    
 − 0.6 0.3   − 5.996952 7.1586467 
 6.9195947 − 1.46754 
=  
 − 7.754305 3.8939408

and

Γ3 = Φ3Γ0
3
 1.2 0.5   10.015183 − 5.996952 
=    
 − 0.6 0.3  − 5.996952 7.1586467 
 4.4263612 0.1859224
=  .
 − 6.478048 2.0487063




WST321
$3.05
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Reviews from verified buyers

Showing all reviews
2 year ago

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
bradleysmith1 University of Pretoria
Follow You need to be logged in order to follow users or courses
Sold
10
Member since
3 year
Number of followers
10
Documents
11
Last sold
1 year ago
BCom OneStop

STK and OBS Notes and solutions

3.4

9 reviews

5
2
4
1
3
5
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions