Time Series Analysis
Time Series Analysis
chapter, you
studying this time-series and|its
stochasticcomponent
models s
After Understandthe conceptsof
few standard
" implement
Analyzeand
analysis time-series
Analyze and
implement forecasting using
Regression
Analyze and
implement time-series
Sup ort
forecasting using Artifical
Vety
Networks
analysis
Overview of time-series
Year >
6.1: example
An ofa timeseriesanalysis
Figure
analysis involvethe following::
uses of time-series regarding the variationsin the values
Fewofthe comparisonmade
realisticin-depth different times.
" A variables at is predicted based on
ofdifferent phenomenon that
The future behavior of a particular
current situation with the
experience. comparing the actual
planning done by
Business
expected one. phenomenon underconsideration.
the past behaviorofthe time series
A studymade on stationarity. A
is its This indicates
characteristics ofthetime series over time.
One of theeimportant behavior does not change the variability is constant
considered stationary ifitsaboutthe samelevel,thatis, time seriestime-series
suchasthe
that the observed values vary propertiesofthe stationary
ofthe
over time. In turn, the statistical However, most donot
Constant over time. Non-stationarytimeseries
upwardor
mean and variance also remain non-stationary. drifting
either
problems that are encountered are and follows a trend by
have a constant mnean or variarnce
backward.
of time-series timeseriesnamely,
6.2 Components Components of
These
components
important Components.
four
Inthis we will study the
trend, section, seasonal, and irregular
cyclical, as shown in. Figure 6.2.
are distributed
or random
356 Data Sci
Components of
Time Series
Long-term
Short-term
Movement
irregular or Random
Movement or Trend Movement
important occasions.
cannot be taken as an An upward sweetsor during festive
downward
season
seasonal variation
Cyci c al: The
cydle. In cyclical indicator of
of interpreting business conditions.
variaistiolike
phases ofthis case, a cycle n of aatime series operatesin a
recognizable
the
in expansiison,termed
cycic period that encompasse
shownmoOvement
Figure 6.3. recessiason,the compl ete
deprBusiessinesson, Cycie
four-phase
and recovery. This
or the Economic
Grcleas
357
Peak
uossa
Expansio,
Business
Variation
Depression
Trough
Time
nu m b o t t a n d o nm
Let us now
of the
discuss a few models
over
have been rigorously used
time. Thesefor
forecasting and risk
th at
analysis. and have ben
ite r a t i o ns
developed
dealing with timeseries
data
ad a p t e d in
6.3.1.1TheAutoregressive Moving
(ARMA)
Average model
Autoregressive Moving Average the
model is strictly based
The time-series models,
namely AR (Autoregressive) model,
0n two
standard linear time-series models
Linear have and the
MA
(MovingAverage) model.
due to the
simpliity of the model and ease in implementation. gai
try to understand how the AR
ned populari
To understandty
us at first and MA
the ARMA model, let models
individuallywork.
time-series data available to predict future
The AR modeluses the past
similar to the concept of linear regression. However, by mainly relying on th
data for future prediction, there is almost no chance of getting 100% accuracy in
behavior,
predicted results. The AR model is denoted by AR(p), where p denotes the order of
the process. For example, AR(3) indicates the third-order autoregressive proceS In
general, the autoregressive model is defined as:
i=1
Here, C15 a constant, , ,, .., .are the model parameters (which cannot be
and e, is the stochastic whitee Zer)
are to be estimated using the noise that defines the randomness. These parameters
variables
usedfrom the past data are known autocorrelation function. The input valuecis
determined by considering theconsidered
process asmeantheHas
lag shown in the
variables. constant equation
Thefollowing
It should be
almost noted that if the
time-seri
icontmpossiainibnlge purely
as it is esisa becomes
process, forecasting discrete
white no1se
signal
varwhiiacnce.h areTo uncorrelated random. In such a case, the white noise
isa
finite
Imean and
bothsummar random variables that zero walk by
linear izine, the AR(p) model is an extensionhas
model
\nature. This of the random govemed
is linearly
theprevious
term, along with the coefficients for each term.
-Series Analysis A 363
nmodelis an extension of the
AR
ARmodelmainly depends on the lagged
MA
The
model ofwith a major
values
resultsWhereasthe
af MA model
mainly the data dif erence in that
further forecasting. The MA depends on provided for the
model can be the errorsas: of the
for
forecasts
Y, =c+e,+)ج
defined forecasting
previous
i=1
theAR model,in
the MA
like model, cis a constant, ,, ,, ... ,
Here (which cannot be
parameters s zero) and e, E E,. are the model
define the randomness. The E,are the white
that
These parameters are to be estimated noise error
autocorrelation function. These
terms
error terms are using the
known
(iid) random numbers sampled from a
distrlbuted
MA(9), where g
independent
normal distribution. identically
The MA
is
model denoted by denotes the order of the process. For
third-order,moving average is denoted by MA(3) and can be example,
written as:
the
Y- c+e, +), Et, t , E3
Now,. combiningthe concepts ofthee AR model and the MA model, the ARMA model
developed. The ARMA(P,q) model combines the.
the AR(p) and MA(g) models
has been
asshownbelow:
main notion of combining the concepts of the AR model and the MAmodel in
The requirements - the AR(p) model
the ARMA model is to equally consider both the based on its own lagged values, and
encompasses regressing the feature considered
model includes modeling theerror termstor several times in the past. By
the MA(q) give much
concepts of both the models, the ARMA is expected toARMA(1, 1)
Cmbinng the models. Now, if we consider the
individual two
erresults than the equation can be written as
Moael which considers asingle time value. the