100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
STK320/ WST 321 Exercise 8 memo R50,00   Add to cart

Other

STK320/ WST 321 Exercise 8 memo

1 review
 4 views  0 purchase

STK320/ WST 321 Time series analysis Exercise 8memo

Preview 3 out of 20  pages

  • October 3, 2022
  • 20
  • 2021/2022
  • Other
  • Unknown
All documents for this subject (8)

1  review

review-writer-avatar

By: ritikchudasama101 • 1 year ago

avatar-seller
bradleysmith1
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller bradleysmith1. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R50,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R50,00
  • (1)
  Buy now