У мене питання про моделі ARIMA. Скажімо, у мене є часовий ряд який я хотів би прогнозувати, і модель здається хорошим способом проведення прогнозування.
У мене питання про моделі ARIMA. Скажімо, у мене є часовий ряд який я хотів би прогнозувати, і модель здається хорошим способом проведення прогнозування.
Відповіді:
Я думаю, що вам потрібно пам’ятати, що моделі ARIMA є атеоретичними моделями, тому звичайний підхід до інтерпретації оцінених коефіцієнтів регресії насправді не переносить на моделювання ARIMA.
Для інтерпретації (або розуміння) оцінених моделей ARIMA було б добре усвідомити різні функції, що відображаються у ряді поширених моделей ARIMA.
Ми можемо вивчити деякі з цих особливостей, дослідивши типи прогнозів, що виробляються різними моделями ARIMA. Це основний підхід, який я застосував нижче, але гарною альтернативою було б розглянути функції імпульсного реагування або динамічні часові шляхи, пов'язані з різними моделями ARIMA (або стохастичними рівняннями різниці). Я про це поговорю наприкінці.
AR (1) Моделі
Розглянемо мить модель AR (1). У цій моделі можна сказати, що чим менше значення тим швидше швидкість конвергенції (до середнього). Ми можемо спробувати зрозуміти цей аспект моделей AR (1), дослідивши характер прогнозів для невеликого набору модельованих моделей AR (1) з різними значеннями для α 1 .
Набір з чотирьох моделей AR (1), про які ми говоритимемо, можна записати в алгебраїчні позначення у вигляді: де C - константа, а решта позначень випливає з OP. Як видно, кожна модель відрізняється лише відносно значення α 1 .
На графіку нижче я побудував позапробні прогнози для цих чотирьох моделей AR (1). Видно, що прогнози для моделі AR (1) з сходяться з меншою швидкістю щодо інших моделей. Прогнози для моделі AR (1) з α 1 = 0,4 збігаються швидше, ніж інші.
Примітка: коли червона лінія горизонтальна, вона досягла середнього значення модельованого ряду.
MA (1) Моделі
Now let's consider four MA(1) models with different values for . The four models we'll discuss can be written as:
In the graph below, I have plotted out-of-sample forecasts for these four different MA(1) models. As the graph shows, the behaviour of the forecasts in all four cases are markedly similar; quick (linear) convergence to the mean. Notice that there is less variety in the dynamics of these forecasts compared to those of the AR(1) models.
Note: when the red line is horizontal, it has reached the mean of the simulated series.
AR(2) Models
Things get a lot more interesting when we start to consider more complex ARIMA models. Take for example AR(2) models. These are just a small step up from the AR(1) model, right? Well, one might like to think that, but the dynamics of AR(2) models are quite rich in variety as we'll see in a moment.
Let's explore four different AR(2) models:
The out-of-sample forecasts associated with each of these models is shown in the graph below. It is quite clear that they each differ significantly and they are also quite a varied bunch in comparison to the forecasts that we've seen above - except for model 2's forecasts (top right plot) which behave similar to those for an AR(1) model.
Note: when the red line is horizontal, it has reached the mean of the simulated series.
The key point here is that not all AR(2) models have the same dynamics! For example, if the condition,
It's worth noting that the above condition comes from the general solution to the homogeneous form of the linear, autonomous, second-order difference equation (with complex roots). If this if foreign to you, I recommend both Chapter 1 of Hamilton (1994) and Chapter 20 of Hoy et al. (2001).
Testing the above condition for the four AR(2) models results in the following:
As expected by the appearance of the plotted forecasts, the condition is satisfied for each of the four models except for model 2. Recall from the graph, model 2's forecasts behave ("normally") similar to an AR(1) model's forecasts. The forecasts associated with the other models contain cycles.
Application - Modelling Inflation
Now that we have some background under our feet, let's try to interpret an AR(2) model in an application. Consider the following model for the inflation rate ():
These are the sorts of questions we can ask when trying to interpret an AR(2) model and as you can see, it's not as straightforward as taking an estimated coefficient and saying "a 1 unit increase in this variable is associated with a so-many unit increase in the dependent variable" - making sure to attach the ceteris paribus condition to that statement, of course.
Bear in mind that in our discussion so far, we have only explored a selection of AR(1), MA(1), and AR(2) models. We haven't even looked at the dynamics of mixed ARMA models and ARIMA models involving higher lags.
To show how difficult it would be to interpret models that fall into that category, imagine another inflation model - an ARMA(3,1) with constrained to zero:
Say what you'd like, but here it's better to try to understand the dynamics of the system itself. As before, we can look and see what sort of forecasts the model produces, but the alternative approach that I mentioned at the beginning of this answer was to look at the impulse response function or time path associated with the system.
This brings me to next part of my answer where we'll discuss impulse response functions.
Impulse Response Functions
Those who are familiar with vector autoregressions (VARs) will be aware that one usually tries to understand the estimated VAR model by interpreting the impulse response functions; rather than trying to interpret the estimated coefficients which are often too difficult to interpret anyway.
The same approach can be taken when trying to understand ARIMA models. That is, rather than try to make sense of (complicated) statements like "today's inflation depends on yesterday's inflation and on inflation from two months ago, but not on last week's inflation!", we instead plot the impulse response function and try to make sense of that.
Application - Four Macro Variables
For this example (based on Leamer(2010)), let's consider four ARIMA models based on four macroeconomic variables; GDP growth, inflation, the unemployment rate, and the short-term interest rate. The four models have been estimated and can be written as:
The equations show that GDP growth, the unemployment rate, and the short-term interest rate are modeled as AR(2) processes while inflation is modeled as an AR(4) process.
Rather than try to interpret the coefficients in each equation, let's plot the impulse response functions (IRFs) and interpret them instead. The graph below shows the impulse response functions associated with each of these models.
Don't take this as a masterclass in interpreting IRFs - think of it more like a basic introduction - but anyway, to help us interpret the IRFs we'll need to accustom ourselves with two concepts; momentum and persistence.
These two concepts are defined in Leamer (2010) as follows:
Momentum: Momentum is the tendency to continue moving in the same direction. The momentum effect can offset the force of regression (convergence) toward the mean and can allow a variable to move away from its historical mean, for some time, but not indefinitely.
Persistence: A persistence variable will hang around where it is and converge slowly only to the historical mean.
Equipped with this knowledge, we now ask the question: suppose a variable is at its historical mean and it receives a temporary one unit shock in a single period, how will the variable respond in future periods? This is akin to asking those questions we asked before, such as, do the forecasts contains cycles?, how quickly do the forecasts converge to the mean?, etc.
At last, we can now attempt to interpret the IRFs.
Following a one unit shock, the unemployment rate and short-term interest rate (3-month treasury) are carried further from their historical mean. This is the momentum effect. The IRFs also show that the unemployment rate overshoots to a greater extent than does the short-term interest rate.
We also see that all of the variables return to their historical means (none of them "blow up"), although they each do this at different rates. For example, GDP growth returns to its historical mean after about 6 periods following a shock, the unemployment rate returns to its historical mean after about 18 periods, but inflation and short-term interest take longer than 20 periods to return to their historical means. In this sense, GDP growth is the least persistent of the four variables while inflation can be said to be highly persistent.
I think it's a fair conclusion to say that we've managed (at least partially) to make sense of what the four ARIMA models are telling us about each of the four macro variables.
Conclusion
Rather than try to interpret the estimated coefficients in ARIMA models (difficult for many models), try instead to understand the dynamics of the system. We can attempt this by exploring the forecasts produced by our model and by plotting the impulse response function.
[I'm happy enough to share my R code if anyone wants it.]
References
Note that due to Wold's decomposition theorem you can rewrite any stationary ARMA model as a model, i.e. :
In this form there are no lagged variables, so any interpretation involving notion of a lagged variable is not very convincing. However looking at the and the models separately:
you can say that error terms in ARMA models explain "short-term" influence of the past, and lagged terms explain "long-term" influence. Having said that I do not think that this helps a lot and usually nobody bothers with the precise interpretation of ARMA coefficients. The goal usually is to get an adequate model and use it for forecasting.
I totally agree with the sentiment of the previous commentators. I would like to add that all ARIMA model can also be represented as a pure AR model. These weights are referred to as the Pi weights as compared to the pure MA form (Psi weights) . In this way you can view (interpret) an ARIMA model as an optimized weighted average of the past values. In other words rather than assume a pre-specified length and values for a weighted average , an ARIMA model delivers both the length () of the weights and the actual weights ().
In this way an ARIMA model can be explained as the answer to the question