Difference between revisions of "Time Series Model Building Process"

From Simulace.info
Jump to: navigation, search
Line 13: Line 13:
  
 
=== GETS (General-to-Specific) ===
 
=== GETS (General-to-Specific) ===
 +
 +
We first start with high enough p (pmax in the code), and perform statistical test whether the last lag has statistically significant impact, i.e.,
 +
(formula)
 +
If the impact is insignificant, we reduce p by one and continue until the parameter for the last lag is significant, i.e. last lag has significant effect.
  
 
=== Specific-to-General ===
 
=== Specific-to-General ===
 +
 +
The second approach works similarly as GETS, the only difference is that we first start with model without any lag, i.e.,
 +
(formula)
 +
and we are adding lags until they are significant.
 +
  
 
=== BIC (Bayesian Information Criteria) ===
 
=== BIC (Bayesian Information Criteria) ===
 +
 +
Bayesian information criteria is based on a likelihood of the model and number of parameters. The criteria punish the model for high number of parameters for a potential over-fitting, and rewards the model for good fit of the data. The lower the BIC value is, the better the model (a little bit counterintuitive definition). We are supposed to select a model with the lowest value of BIC.
  
 
=== AIC  ===
 
=== AIC  ===

Revision as of 18:48, 16 January 2020

Introduction

Linear time series models, e.g., ARIMA models for univariate time series, is a popular tool for modeling dynamics of time series and predicting the time series. The methodology is not popular only in statistics, econometrics and science, but also in machine learning business applications. The key question is how to build the model. We have to choose the form of the model, in particular number of lags for so-called autoregressive part (usually denoted as p) and moving average part of the model (usually denoted as d). The common guides usually provide a ‘cook book’ for model selection, see for example ARIMA Model – Complete Guide to Time Series Forecasting in Python . This goal of this simulation is to compare four basic methods for selection of lags (p) for the autoregressive part.

Problem Definition

The autoregressive process has form

(math formula that is difficult to format in this editor -_-")

However, we observe only the realized value and we do not know the hyperparameter p. Therefore, we must estimate it. The considered methods are following.

GETS (General-to-Specific)

We first start with high enough p (pmax in the code), and perform statistical test whether the last lag has statistically significant impact, i.e., (formula) If the impact is insignificant, we reduce p by one and continue until the parameter for the last lag is significant, i.e. last lag has significant effect.

Specific-to-General

The second approach works similarly as GETS, the only difference is that we first start with model without any lag, i.e., (formula) and we are adding lags until they are significant.


BIC (Bayesian Information Criteria)

Bayesian information criteria is based on a likelihood of the model and number of parameters. The criteria punish the model for high number of parameters for a potential over-fitting, and rewards the model for good fit of the data. The lower the BIC value is, the better the model (a little bit counterintuitive definition). We are supposed to select a model with the lowest value of BIC.

AIC

Method

Model

Results

Conclusion

Code