Diagnostics Flashcards

1
Q

What are the steps to fitting a model to a time series process we’ve studied - what is diagnostics then?

A

Ensuring ARMA process is stationary
Selecting p and q orders
fitting the model and parameters
Diagnostics is the next step to test the fit of the model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does goodness of fit mean

A

The goodness of fit of a statistical model to a set of data is judged by comparing the observed values with the correpsonding predicted values obtained from fitting a model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How should residuals behave generally in statistics

A

They should behave in a consistent way with the model if it is well fitted to the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the assumptions in calculating the residual values

A

The Xt trajectory is from a casual and invertible ARMA process with gaussian white noise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In our ARMA models how can we tell if the model is well fitted by the residuals

A

The standardised residuals should be an iid sequence that is normally distributed - follows the behaviour of the white noise. Mean 0 and variance 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What implies independendence concerning correlation and normality

A

Uncorrelated RVs does not imply independence but if uncorrelated RVs are gaussian - implies independence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do we check for the normality of residuals graphically

A

Using a histogram or qqplot (which maps empirical residual quantiles to theoretical quantiles form a normal distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do we examine the acf of residuals

A

The residuals should be not correlated so their ACF should mimic the white noise ACF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What si the idea behind the ljung box pierce Q statistic

A

Test that takes into account the magnitudes of the autocorrelations of the residuals as a group - idea is the autocorrelations at each lag can be individually small in magnitude but not collectively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe the ljung box pierce test set up

A

H0: model is adequate
Under H0 Q is asymptotically distributed to chi squared distribution. We reject the null at level of alpha if the value of Q statistic exceeds 1-alpha quantile of chi squared with H-P-Q degrees of freedom

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What function produces the ljung box pierce statistic in R

A

Sarima

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe the parameters of sarima function

A

sarima(x,p=-,d=-0,q=-,no.constant=-)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to asses a qq normal plot

A

All points should ideally be along the line y=x and should definitely stay within the marked envelope

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to interpret the ljung box statistic graph?

A

Additive function so example H=3 shows effect of autocorrelations for lag 1 and 2 and 3 together
Blue line is at 5% significance line
If points are above alpha then its a good fitting model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What function returns the best fitting ARIMA model

A

auto.arima returns the best ARIMA model according to either AIC, BIC, AICc. the function conducts a search over possible models within the order constraints you provide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does one test for the significance of lags

A

Test if the confidence intervals for each parameter estimate contains zero

17
Q

Layout of auto.arima function

A

Auto.arima(x,max.p=-,max.q=-,stationary=T,seasonal =F, ic=”aic”)

18
Q

What should be the conclusion of the ljung box pierce test

A

Here the autocorrelations considered in groups is/is not significant. All points are below/above the line so we reject/fail to reject the null hypothesis

19
Q

What si a test you can run for normality

A

Shapiro wilk normality test

20
Q

Describe the set up of the shapiro wilk normality test

A

H0: data comes from a normal distribution
H1: data does not come from a normal distribution
We assume a significance level and if the p value is less than the significance level we reject H0