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

STK 320 / WST 321Time series analysis exercise 5 memo

Rating
3,0
(1)
Sold
-
Pages
3
Uploaded on
03-10-2022
Written in
2021/2022

STK 320 Time series analysis exercise 5 memo









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

Document information

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

Content preview

1


EXERCISE 5 SUGGESTED SOLUTION
1. SAS Program
data fit_ar2;
n=500;
seed=0;
theta0=120;
phi1=0.2;
phi2=0.6;
mu=theta0/(1-phi1-phi2);
var_at=100;
zt_2=mu;
zt_1=mu;
do t = -49 to n;
at=sqrt(var_at)*rannor(seed);
zt=theta0+phi1*zt_1+phi2*zt_2+at;
if t > 0 then output;
zt_2=zt_1;
zt_1=zt;
end;
run;

2. SAS Program
goptions reset=all;
title1 'Simulated AR(2) series';
proc arima data=fit_ar2 plots(only)=series(acf pacf);
identify var=zt nlag=12;
estimate p=2 method=ml;
run;

SAS Output

Simulated AR(2) series

The ARIMA Procedure
Name of Variable = zt
Mean of Working Series 599.09
Standard Deviation 14.76223
Number of Observations 500

Autocorrelation Check for White Noise
To Lag Chi-Square DF Pr > ChiSq Autocorrelations
6 683.45 6 <.0001 0.499 0.689 0.388 0.507 0.290 0.371
12 806.30 12 <.0001 0.227 0.281 0.171 0.203 0.152 0.128




WST321

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
View profile
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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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