100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Otro

STK 320/WST 321 exercise 6 memo

Puntuación
3.0
(1)
Vendido
-
Páginas
21
Subido en
03-10-2022
Escrito en
2021/2022

STK 320/WST 321 time series analysis exercise 6 memo

Institución
Grado










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
3 de octubre de 2022
Número de páginas
21
Escrito en
2021/2022
Tipo
Otro
Personaje
Desconocido

Temas

Vista previa del contenido

1


EXERCISE 6 SUGGESTED SOLUTION
1. SAS Program
data ar2;
n=100;
seed=0;
theta0=10;
phi1=0.2;
phi2=0.7;
mu=theta0/(1-phi1-phi2);
var_at=4;
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;




WST321

, 2


2.(a) SAS Program
goptions reset=all;
title1 'AR(2) Series Simulated - AR(1) Model Fitted';
proc arima data=ar2 out=fit_ar1 plots(only)=residuals(acf pacf);
identify var=zt nlag=6 noprint;
estimate p=1 method=ml;
forecast lead=0;
run;
data res_ar1;
set fit_ar1;
t=_n_;
run;
proc corr data=res_ar1;
var zt forecast;
run;
goptions reset=all i=join;
axis1 label=(angle=90 'Observed and Predicted Values') order = 90 to 110 by 5;
legend1 label=('Series:') value=('Observed Values' 'Predicted Values');
symbol1 color=black line=33;
symbol2 color=brown line=1;
title1 'AR(1) Model Fitted';
title2 'Time Plot of Observed and Predicted Values';
proc gplot data=res_ar1;
plot (zt forecast)*t / overlay legend=legend1 vaxis=axis1;
run;
goptions reset=all i=needle;
axis1 label=(angle=90 'Residuals') order = -10 to 10 by 1;
symbol1 color=brown;
title1 'AR(1) Model Fitted';
title2 'Plot of Residual Series';
proc gplot data=res_ar1;
plot residual*t / vaxis=axis1 vref=0;
run;
goptions reset=all;
axis1 label=(angle=90 'Residuals') order = -10 to 10 by 1;
axis2 label=('Predicted Values') order = 90 to 110 by 5;
symbol1 color=brown value=hash;
title1 'AR(1) Model Fitted';
title2 'Plot of Residuals against Predicted Values';
proc gplot data=res_ar1;
plot residual*forecast / vaxis=axis1 haxis=axis2;
run;
goptions reset=all;
title1 'AR(1) Model Fitted';
title2 'Testing for Normality';
proc univariate data=res_ar1 noprint;
histogram residual / normal (mu=est sigma=est color=brown);
probplot residual / normal (mu=est sigma=est color=brown) square;
run;


2.(a) (i) SAS Output

AR(2) Series Simulated - AR(1) Model Fitted

The ARIMA Procedure
Maximum Likelihood Estimation
Parameter Estimate Standard Error t Value Approx Lag
Pr > |t|
MU 99.55984 0.65268 152.54 <.0001 0
AR1,1 0.58347 0.08357 6.98 <.0001 1




WST321

, 3


Constant Estimate 41.46986
Variance Estimate 7.603793
Std Error Estimate 2.757498
AIC 489.0483
SBC 494.2587
Number of Residuals 100

Correlations of Parameter
Estimates
Parameter MU AR1,1
MU 1.000 -0.044
AR1,1 -0.044 1.000


The parameter estimates of the fitted AR(1) model are µˆ = 99.55984 ,
φˆ1 = 0.58347 , θˆ0 = 41.46986 and σˆ a2 = 7.603793 .

The constant and variance estimates are not close to the corresponding
parameter values ( θ 0 = 10 and σ a2 = 4 ).

The theoretical mean is

θ0
µ=
1 − φ1 − φ2
10
=
1 − 0.2 − 0.7
= 100 .

Therefore the estimate for the mean is close to the theoretical mean.
Furthermore, since p-value <.0001, H 0 : µ = 0 is rejected at a 1% level of
significance and hence µ differs significantly from zero.

The estimated autoregressive coefficient is not close to φ1 = 0.2 . But, since
H 0 : φ1 = 0 can be rejected (p-value <.0001), φ1 differs significantly from
zero. This implies that the parameter should be in the model.

The differences between the parameter values and their estimates are an
indication that the fitted model is wrongly specified.




WST321
$3.09
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Reseñas de compradores verificados

Se muestran los comentarios
2 año hace

3.0

1 reseñas

5
0
4
0
3
1
2
0
1
0
Reseñas confiables sobre Stuvia

Todas las reseñas las realizan usuarios reales de Stuvia después de compras verificadas.

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
bradleysmith1 University of Pretoria
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
10
Miembro desde
3 año
Número de seguidores
10
Documentos
11
Última venta
1 año hace
BCom OneStop

STK and OBS Notes and solutions

3.4

9 reseñas

5
2
4
1
3
5
2
1
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes