Professional Documents
Culture Documents
HARIKUMAR
PROFESSOR
SCHOOL OF BUSINESS MANAGEMENT& LEGAL STUDIES
DEPARTMENT OF COMMERCE
UNIVERSITY OF KERALA
THIRUVANANTHAPURAM
STRUCTURE
Meaning
Example
Types of datasets
Stationarity
WHAT IS A TIME SERIES?
• Essentially, Time Series is a sequence of numerical data obtained at
regular time intervals.
• “A set of data depending on the time is called Time Series”
• “A time series consists of data arranged chronologically”
• Time series forecasting uses information regarding historical values and
associated patterns to predict future activity.
CROSS SECTIONAL
TIME SERIES DATA DATA PANEL DATA
DIFFERENCES BETWEEN THE THREE DATA TYPES
A time series is a group of observations on a single entity over time — e.g.
the daily closing prices over one year for a single financial security, or a
single patient’s heart rate measured every minute over a one-hour procedure.
If your data is organized in both dimensions — e.g. daily closing prices over
one year for 500 companies — then you have panel data.
• Types of Time Series that a dataset can belong to:
Time series analysis can be useful to see how a given variable changes over time
(while time itself, in time series data, is often the independent variable). Time
series analysis can also be used to examine how the changes associated with the
chosen data point compare to shifts in other variables over the same time period.
WHAT ARE USERS LOOKING FOR IN AN ECONOMIC
TIME SERIES?
• Instances where deterministic factors are not readily available and the accuracy of the
estimate can be compromised on the need..(be careful!)
• How the data (x) and time (t) is recorded and presented
Exports, 1989-1998
t Year x=Value
1 1989 44,320
2 1990 52,865
3 1991 53,092
4 1992 39,424
5 1993 34,444
6 1994 47,870
7 1995 49,805
8 1996 59,404
9 1997 70,214
10 1998 74,626
TIME SERIES
• Coordinates (t,x) is established in the 2 axis
• (1, 44,320) Exports
• (2, 52,865)
80,000
• (3, 53,092) 75,000
70,000
• etc.. 65,000
60,000
55,000
50,000
45,000
40,000
35,000
30,000
1988 1990 1992 1994 1996 1998 2000
TIME SERIES
• A graphical representation of time series.
• We use x as a function of t: x= f(t)
• Data points connected by a curve Exports
80,000
75,000
70,000
65,000
60,000
55,000
50,000
45,000
40,000
35,000
30,000
1988 1990 1992 1994 1996 1998 2000
SEE THE PLOT BELOW. IT IS DRAWN FROM A DATA OF
MONTHLY BOOKINGS FOR AN AIRLINE. THIS DATA IS
A TIME SERIES.
IMPORTANCE OF TIME SERIES ANALYSIS
A linear time series is one where, for Nonlinear time series are generated by
nonlinear dynamic equations. They have features that
each data point Xt, that data point can be viewed as
cannot be modelled by linear processes: time-
a linear combination of past or future values or changing variance, asymmetric cycles, higher-
differences. moment structures, thresholds and breaks.
HOW IS TIME SERIES DATA UNDERSTOOD AND USED?
In data mining, pattern recognition and machine learning, time series analysis
is used for clustering, classification, and forecasting.
Cyclica
Trend Seasonal Random
l
A study of time series aims at identifying the possible contributions of these effects and
after eliminating these effects the remaining series called as the ‘Residual Series’ is taken
up for high end solutions using different type of models. However, the identification of
effects due to Trend and Seasonal Variation are highly valuable in Econometric studies.
TIME SERIES
• A time series is said to be an effect of these four components and the researcher may
choose from the two alternative models i.e. additive or multiplicative models.
• In an additive model these forces or components are added up to give time series. This
means that at every point of time these four forces may be in operation and hence there
may be an effect due to Trend (T), an effect due to Seasonal Variation (S), Oscillation (O)
and Random component (R) and the value of the observation of the variable at that point
of time is taken as the sum of these four effects. If the variable is taken as y and its
observation at time‘t’ is denoted by then it is assumed to be given by .
• Yt= Tt+St+Ot+Rt
• Similarly the alternative model will be obtained by multiplying these effects to get .
• Yt= Tt*St*Ot*Rt
• Trend (Tt )
30
25
20
15
10
5
0
-5
-10
CYCLIC VARIATION
RANDOM VARIATION
CLASSICAL DECOMPOSITION
• One method of describing a time series
• Decompose the series into various components
• Trend – long term movements in the level of the series
• Seasonal effects – cyclical fluctuations reasonably stable in terms of annual timing (including moving
holidays and working day effects)
• Cycles – cyclical fluctuations longer than a year
• Irregular – other random or short-term unpredictable fluctuations
Contributed by National Academy of Statistical Administration
32
34
Contributed by National Academy of Statistical Administration
35
Contributed by National Academy of Statistical Administration
36
Contributed by National Academy of Statistical Administration
37
Contributed by National Academy of Statistical Administration
39 SMOOTHING TECHNIQUES
40 SMOOTHING TECHNIQUES
• We will study :
• Moving average.
• Exponential smoothing
SMOOTHING THE
Contributed by National Academy of Statistical Administration
• Calculate moving averages to get an overall impression of the pattern of movement over time
Moving Average: averages of consecutive
time series values for a
chosen period of length L
Contributed by National Academy of Statistical Administration
42 MOVING AVERAGES
43 SMOOTHING TECHNIQUES:
MOVING AVERAGE (MA)
• Odd number of points. Points (k) – length for computing MA
• k=3
y1 y2 y3
MA1
3
y 2 y3 y 4
MA2
and so on. 3
MOVING AVERAGE METHOD
1987 490
Year 1981 1982 1983 1984 1985 1986 1987
Production 412 438 446 454 470 483 490
Moving 432 446 457 469 481
Averages
FIT A TREND LINE USING 4 YEARS MOVING
AVERAGE METHOD
YEAR 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979
SALES 7 8 9 11 10 12 8 6 5 10
(IN
CRORE)
Year 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979
Sales (in 7 8 9 11 10 12 8 6 5 10
crore)
Moving 9.125 10 10.375 9.625 8.375 7.5
average
LEAST SQUARE METHOD
WHAT IS STATIONARITY
•A stationary time series is a series where there are no changes in the
underlying system
•Constant mean (no trend)
•Constant variance (No hetroscedastisity )
•Constant autocorrelation structure)
•No periodic component (No seasonality)