Docsity

data mining of ukm。。。。, Lecture notes of Data Mining

Partial preview of the text

Download data mining of ukm。。。。 and more Lecture notes Data Mining in PDF only on Docsity!

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:

  • Build a statistical model and then use it to predict future values.
  • There are many popular time series models such as time series regression models, ARIMA models, GARCH models, non-linear models and etc. iii) Time Series Clustering:
  • Time series clustering is the process to segmenting multiple time series data into several clusters based on the nature of similarity.
  • Common clustering techniques are discussed in the Machine Learning course. iv) Time Series Classification:
  • Time series classification aims to construct a classification model based on labeled time series data.
  • Common data classification techniques are discussed in the Machine Learning course.

 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)

 Time Series Decomposition is a method to decompose

time series data into a structural component which are:

i) Trend,

ii) Seasonality,

iii) Cyclical.

 And also non- structural component:

i) Irregular (random) components.

 Decomposition provides information about the behaviors

of time series data for better understanding during time

series analysis and forecasting.

 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 YTSCI

 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:

  • y t depends on the past p values of observations and also their past q residual values.
  • If the data is not stationary, a differentiation technique is performed on the data to make it stationary.
  • i- order of differencing create ARIMA (p, i, q ) model. , 1 1 2 2 1 1 2 2 t t t q t q t t t p t p y y y y                             

 “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

 Non-stationary series can be transform to stationary

series through differencing.

 Example:

1

is not stationary, but

z is stationary

t t t t

y

y y

20