Chapter 4.  Time Series Modeling

Time series forecasting analysis is one of the most important components of quantitative finance. R software gives a lot of time series and forecasting packages to support time series analysis. There are sufficient packages in R to convert the equally spaced and unequally spaced series in time series. Also, there are sufficient packages in R to build forecasting models such as autoregressive integrated moving average and generalized autoregressive conditional heteroscedasticity. In this chapter, we are going to give brief flavors of converting any series into time series and forecasting models.

In this chapter, we are going to cover the following topics:

  • General time series
  • Converting data to time series
  • zoo
  • xts
  • Linear filters
  • AR
  • MA
  • ARIMA
  • GARCH
  • EGARCH
  • VGARCH
  • Dynamic conditional correlation

General time series

A time series is the sequence of data usually collected at regular intervals. There are a lot of domains where information is stored in time series form and needs to be analyzed for future planning.

For example, in the financial domain, we have the daily/monthly data available for unemployment, GDP, daily exchange rates, share prices, and so on. So all the investors or the people working in financial institutions need to plan their future strategy and so they want to analyze the time series data. Thus time series play a crucial role in the financial domain.

Time series data is very unpredictable in nature and to understand the data we need to decompose the time series data into various components, as given here:

  • Trend: This is a pattern of long-term movements in the mean of time series data. The trend may be linear or nonlinear and keeps changing across time. There is no sure process to identify the exact trend but if it is behaving monotonously then it is possible to estimate with a certain acceptable degree of error.
  • Seasonal effects: These are cyclical fluctuations related to the periodical cycle. So, for example, the sale of a particular product spikes during a particular month/quarter of the year. The seasonality can be identified by plotting the series and inspecting it.
  • Cycles (Ct): Apart from seasonal cycles, there are certain cycles which are associated with business cycles which need to be taken care of when doing time series analysis.
  • Residuals: Time series consist of systematic patterns and random noise (error), which makes it difficult to identify the pattern. Generally, time series techniques involve certain ways of filtering the noise in order to make the pattern more salient.

In some of the techniques of forecasting, the time series is assumed to be stationary. The stationarity is required because for forecasting we are assuming the mean and variance to be static as that will be required for future forecasting analysis. If the series is nonstationary then we difference it to first make it stationary and then proceed further.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset