






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































Assoc. Prof. Dr. Nurulkamal Masseran Department of Mathematical Sciences Universiti Kebangsaan Malaysia
Time series data is a collection of observations obtained through repeated measurements over time. A time series data tracks a sample over some periods. Time series data is different from cross-sectional data, which collects a number of different samples at the same time. In general, time series data is useful for tracking the characteristics and behaviors of daily, hourly, weekly, or yearly related to some particular events.
ii) Time Series Forecasting:
The time series data entry in R commonly constructed in the form of daily, weekly, monthly, annual or quarterly data. R adopted the ISO 8601 format for time. Commonly, as.Date() function is used the create date in R. The character string has to obey a format that can be defined using a set of symbols as follow: i) %Y: 4-digit year (2022) ii) %y: 2-digit year (22) iii) %m: 2-digit month (01) iv) %d: 2-digit day of the month (12) v) %A: weekday (Wednesday) vi) %a: abbreviated weekday (Wed) vii) %B: month (January) viii) %b: abbreviated month (Jan)
The trend component refers to increasing or decreasing trend in a data. Depending on the series characteristics, a trend could have either linear, polynomial or exponential growth.
A cycle is a sequence of repeatable events over a long period of time. Unlike the seasonal pattern, cycles do not necessarily occur at equally spaced time intervals, and their length could change from cycle to cycle.
Irregular component is a remainder between the series and structural components (trend, seasonality, and cyclical). Its provides an indication of irregular events in the series (random components). Its show non-systematic patterns or events in the data.
ii) Multiplicative Decomposition: Multiplicative structure of time series exists whenever the growth of the trend or the magnitude of the seasonal component increases or decreases by some multiplicity from period to period over time. Multiplicative structure of time series: Multiplicative structure in time series can be converts to additive structure using Box-Cox Transformation. t t t t t Y T S C I
Time series model is used to predict future events based on past data. Example: We want to predicts the opening price of a stock based on past stock performance. Two basic models (time domain) for time series forecasting are the autoregressive moving average (ARMA) and the autoregressive integrated moving average (ARIMA). The fitted ARIMA model to univariate time series data can be used for forecasting.
( 3 ) The combination of the AR(p) and MA(q) models yields the ARMA(p, q) model:
“Stationarity” is a fundamental property of most time series statistical models. A time series yt is said to be stationary if it satisfies the following conditions: 17 2 2 (1) ( ). (2) ( ) [( ) ]. (3) ( , ). t y t t y y t t k k E y u for all t Var y E y u for all t Cov y y for all t
EXAMPLE: 1 29 58 87 116 145 174 203 232 261 290 4000 3900 3800 3700 3600 3500 Time Time Series Plot of Dow-Jones Index 19
1
t t t t
20