SlideShare a Scribd company logo
1 of 55
1
Time Series Analysis
2
Module objectives
Introduce time series
Components of time series
Deseasonalising a time series
3
What is a time series?
Essentially, Time Series is a sequence of numerical
data obtained at regular time intervals.
Occurs in many areas: economics, finance,
environment, medicine
The aims of time series analysis are
 to describe and summarize time series data,
 fit models, and make forecasts
4
Why are time series data different
from other data?
Data are not independent
 Much of the statistical theory relies on the data
being independent and identically distributed
Large samples sizes are good, but long time
series are not always the best
 Series often change with time, so bigger isn’t
always better
5
What Are Users Looking for in an
Economic Time Series?
Important features of economic
indicator series include
 Direction
 Turning points
 In addition, we want to see if the
series is increasing/decreasing more
slowly/faster than it was before
6
When should time series analysis
best be used?
We do not assume the existence of deterministic model
governing the behaviour of the system considered.
Instances where deterministic factors are not readily available
and the accuracy of the estimate can be compromised on the
need..(be careful!)
We will only consider univariate time series
7
Forecasting Horizons
Long Term
 5+ years into the future
 R&D, plant location, product planning
 Principally judgement-based
Medium Term
 1 season to 2 years
 Aggregate planning, capacity planning, sales forecasts
 Mixture of quantitative methods and judgement
Short Term
 1 day to 1 year, less than 1 season
 Demand forecasting, staffing levels, purchasing, inventory
levels
 Quantitative methods
8
Examples of Time series data
Number of babies born in each hour
Daily closing price of a stock.
The monthly trade balance of Japan
for each year.
GDP of the country, measured each
year.
9
Time Series example
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
10
Time Series
Coordinates
(t,x) is
established in
the 2 axis
(1, 44,320)
(2, 52,865)
(3, 53,092)
etc..
Exports
30,000
35,000
40,000
45,000
50,000
55,000
60,000
65,000
70,000
75,000
80,000
1988 1990 1992 1994 1996 1998 2000
11
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
30,000
35,000
40,000
45,000
50,000
55,000
60,000
65,000
70,000
75,000
80,000
1988 1990 1992 1994 1996 1998 2000
12
Importance of time series analysis
 Understand the past.
What happened over the last years,
months?
 Forecast the future.
Government wants to know future of
unemployment rate, percentage increase in
cost of living etc.
For companies to predict the demand for
their product etc.
13
Time-Series Components
Time-Series
Cyclical
Random
Trend
Seasonal
14
Components of Time Series
Trend (Tt )
Seasonal variation (St )
Cyclical variation ( Ct )
Random variation (Rt )
or irregular
15
Components of Time Series
Trend (Tt )
Trend: the long-term patterns or
movements in the data.
Overall or persistent, long-term upward
or downward pattern of movement.
The trend of a time series is not always
linear.
16
Seasonal variation (St )
Regular periodic fluctuations that occur
within year.
Examples:
Consumption of heating oil, which is
high in winter, and low in other seasons
of year.
Gasoline consumption, which is high in
summer when most people go on
vacation.
Components of Time Series
17
-10
-5
0
5
10
15
20
25
30
Seasonal variation (St )
Summer
Winter Winter
Summer
Components of Time Series
18
Example
Quarterly with Seasonal Components
0
5
10
15
20
25
0 5 10 15 20 25 30 35
Time
Sales
19
Seasonal Components Removed
Quarterly without Seasonal Components
0
5
10
15
20
25
0 5 10 15 20 25 30 35
Time
Sales
Y(t)
20
Why Do Users Want Seasonally
Adjusted Data?
Seasonal movements can make features
difficult or impossible to see
21
Causes of Seasonal Effects
Possible causes are
 Natural factors
 Administrative or legal measures
 Social/cultural/religious traditions
(e.g., fixed holidays, timing of
vacations)
22
Components of Time Series
Cyclical variation ( Ct )
• Cyclical variations are similar to seasonal
variations. Cycles are often irregular both in
height of peak and duration.
• Examples:
• Long-term product demand cycles.
• Cycles in the monetary and financial
sectors. (Important for economists!)
23
Cyclical Component
Long-term wave-like patterns
Regularly occur but may vary in length
Often measured peak to peak or trough
to trough
Sales
1 Cycle
Year
24
Irregular Component
Unpredictable, random, “residual”
fluctuations
Due to random variations of
 Nature
 Accidents or unusual events
“Noise” in the time series
25
Causes of Irregular Effects
Possible causes
 Unseasonable weather/natural disasters
 Strikes
 Sampling error
 Nonsampling error
26
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
27
Not easy to understand the pattern!
28
Our aim
is to understand and identify different
variations so that we can easily predict
the future variations separately and
combine together
Look how the above complicated series
could be understood as follows
separately
29
30
31
32
Few variations separately
33
34
Can you imagine how all components aggregate
together to form this?
35
Multiplicative Time-Series Model for
Annual Data
Used primarily for forecasting
Observed value in time series is the
product of components
where Ti = Trend value at year i
Ci = Cyclical value at year i
Ii = Irregular (random) value at year i
i
i
i
i I
C
T
Y 


36
Multiplicative Time-Series Model with
a Seasonal Component
Used primarily for forecasting
Allows consideration of seasonal
variation
where Ti = Trend value at time i
Si = Seasonal value at time i
Ci = Cyclical value at time i
Ii = Irregular (random) value at time i
i
i
i
i
i I
C
S
T
Y 



37
Smoothing techniques
Smoothing helps to see overall patterns
in time series data.
Smoothing techniques smooth or “iron”
out variation to get the overall picture.
There are several smoothing techniques
of time series.
38
Smoothing techniques
We will study :
Moving average.
Exponential smoothing
39
Smoothing the
Annual Time Series
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
40
Moving Averages
Used for smoothing
A series of arithmetic means over time
Result dependent upon choice of L
(length of period for computing means)
Examples:
 For a 3 year moving average, L = 3
 For a 5 year moving average, L = 5
 Etc.
41
Smoothing techniques:
Moving Average (MA)
 Odd number of points. Points (k) – length
for computing MA
 k=3
and so on.
3
3
2
1
1
y
y
y
MA



3
4
3
2
2
y
y
y
MA



42
Smoothing techniques:
Moving Average (MA) k=3
Year Series 3 Point MA
1990 5
1991 6 6
1992 7
1993 8
1994 10
1995 11
1996 12
1997 12
1998 12 12.0
1999 12 12.3
2000 13 12.7
2001 13
1
MA
2
MA
43
Smoothing techniques:
Moving Average (MA)
Moving Average (3)
3
4
5
6
7
8
9
10
11
12
13
14
1 2 3 4 5 6 7 8 9 10 11 12
Actual Forecast
44
Smoothing techniques:
Moving Average (MA) k=5
Year Series 5 Point MA
1990 5
1991 6
1992 7 7.2
1993 8
1994 10
1995 11
1996 12
1997 12
1998 12
1999 12 12.4
2000 13
2001 13
45
Smoothing techniques:
Moving Average (MA)
Moving Average (5)
0
2
4
6
8
10
12
14
1 2 3 4 5 6 7 8 9 10 11
Actual Forecast
46
Smoothing techniques:
Moving Average (MA)
We need even numbered MA s for
seasonal adjustments
 eg: 4 – quarterly data
 12 – monthly data
47
Smoothing techniques:
Moving Average (MA)
Even number of points.
Two stages:
1. Obtain MA, centered halfway
between t and t-1.
2. To get a trend take the average of
two successive estimates. Estimate
centered halfway between t and t-1.
48
Smoothing techniques:
Moving Average (MA)
for k=4.
Stage 1.
Stage 2.
and so on.
4
)
( 4
3
2
1
1
,
1
y
y
y
y
MA




4
)
( 5
4
3
2
2
,
1
y
y
y
y
MA




2
2
,
1
1
,
1
1
MA
MA
MA


49
Smoothing techniques:
Moving Average (MA)
Observation Series MA stage 1 MA stage 2:
MA Centered
1
2
3
4
5
6
7
5
6
7
8
10
11
12
6.5
9.0
10.3
7.1
#NA
#NA
#NA
#NA
MA1,1
MA1,2
1
MA
50
Measuring the seasonal effect
To measure seasonal effect construct
seasonal indices.
Seasonal indices is a degree to which
the seasons differ from one another.
Requirement: time series should be
sufficiently long to allow to observe
seasonal fluctuations.
51
Measuring the seasonal effect
Computation:
 Calculating MA.
 Set the number of periods equal to the
number of types of season.
 Use multiplicative model:
 MA remove St and Rt
t
t
t
t
t R
S
C
T
Y 



52
Measuring the seasonal effect
Calculate (step 1)
Compute the ratio (step 2):
For each type of season calculate the
average of the ratios (step 3).
The seasonal indices are the average
ratios from ratios step 3 adjusted.
t
t
t
t
t
t
t
t
t
t
R
S
C
T
R
S
C
T
MA
Y







t
MA
53
Measuring seasonal effect
Year Quarter
Hotel
Occupan
cy Yt
Centered
MA
Ratio
Yt/MA
Seasonal
Index Si
1997 1 0.527 0.895
2 0.660 1.098
3 0.752 0.642 1.171 1.144
4 0.534 0.658 0.811 0.864
1998 1 0.541 0.635 0.852 0.895
2 0.694 0.632 1.098 1.098
3 0.816 0.657 1.241 1.144
4 0.569 0.658 0.864 0.864
1999 1 0.558 0.628 0.889 0.895
2 0.694 0.617 1.124 1.098
3 0.685 0.642 1.068 1.144
4 0.564 0.650 0.867 0.864
2000 1 0.585 0.637 0.918 0.895
2 0.666 0.650 1.023 1.098
3 0.758 0.688 1.101 1.144
4 0.594 0.705 0.843 0.864
2001 1 0.625 0.696 0.898 0.895
2 0.785 0.703 1.116 1.098
3 0.821 1.144
4 0.630 0.864
Step 1
Step 2
Step 3
(calculation
see next slide)
Contributed by National Academy
of Statistical Administration
54
Quarterly ratios
Year 1 2 3 4 Total
1997 1.171 0.811
1998 0.852 1.098 1.241 0.864
1999 0.889 1.124 1.068 0.867
2000 0.918 1.023 1.101 0.843
2001 0.898 1.116
Average 0.889 1.090 1.137 0.858 3.974
Seasonal
index 0.895 1.098 1.144 0.864 4.000
Calculating seasonal index
Example:
Seasonal index for Quarter 1 = 0.889/3.974*4.000=0.895
55
Negative trend is also a trend..
unemployed
0
200000
400000
600000
800000
1000000
1200000
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35

More Related Content

Similar to Enterprise_Planning_TimeSeries_And_Components

Analyzing and forecasting time series data ppt @ bec doms
Analyzing and forecasting time series data ppt @ bec domsAnalyzing and forecasting time series data ppt @ bec doms
Analyzing and forecasting time series data ppt @ bec domsBabasab Patil
 
Applied Statistics Chapter 2 Time series (1).ppt
Applied Statistics Chapter 2 Time series (1).pptApplied Statistics Chapter 2 Time series (1).ppt
Applied Statistics Chapter 2 Time series (1).pptswamyvivekp
 
time series.pdf
time series.pdftime series.pdf
time series.pdfcollege
 
Data Science - Part X - Time Series Forecasting
Data Science - Part X - Time Series ForecastingData Science - Part X - Time Series Forecasting
Data Science - Part X - Time Series ForecastingDerek Kane
 
Lecture_03.pdf
Lecture_03.pdfLecture_03.pdf
Lecture_03.pdfjeys3
 
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptxDeepGondaliya3
 
Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
Trend and seasonal component/abshor.marantika/kelompok 12
Trend and seasonal component/abshor.marantika/kelompok 12Trend and seasonal component/abshor.marantika/kelompok 12
Trend and seasonal component/abshor.marantika/kelompok 12Linlin2611
 
Trend and seasonal component/Abshor.Marantika - kelompok 12
Trend and seasonal component/Abshor.Marantika - kelompok 12Trend and seasonal component/Abshor.Marantika - kelompok 12
Trend and seasonal component/Abshor.Marantika - kelompok 12Linlin2611
 
time series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdftime series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdfssuser220491
 
Module 3 - Time Series.pptx
Module 3 - Time Series.pptxModule 3 - Time Series.pptx
Module 3 - Time Series.pptxnikshaikh786
 

Similar to Enterprise_Planning_TimeSeries_And_Components (20)

Time series
Time seriesTime series
Time series
 
Analyzing and forecasting time series data ppt @ bec doms
Analyzing and forecasting time series data ppt @ bec domsAnalyzing and forecasting time series data ppt @ bec doms
Analyzing and forecasting time series data ppt @ bec doms
 
Applied Statistics Chapter 2 Time series (1).ppt
Applied Statistics Chapter 2 Time series (1).pptApplied Statistics Chapter 2 Time series (1).ppt
Applied Statistics Chapter 2 Time series (1).ppt
 
Chapter 18 Part I
Chapter 18 Part IChapter 18 Part I
Chapter 18 Part I
 
time series modeling.pptx
time series modeling.pptxtime series modeling.pptx
time series modeling.pptx
 
time series.pdf
time series.pdftime series.pdf
time series.pdf
 
Data Science - Part X - Time Series Forecasting
Data Science - Part X - Time Series ForecastingData Science - Part X - Time Series Forecasting
Data Science - Part X - Time Series Forecasting
 
Lecture_03.pdf
Lecture_03.pdfLecture_03.pdf
Lecture_03.pdf
 
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx
1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx
 
Time Series Analysis Ravi
Time Series Analysis RaviTime Series Analysis Ravi
Time Series Analysis Ravi
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
 
Time series
Time series Time series
Time series
 
forecast.ppt
forecast.pptforecast.ppt
forecast.ppt
 
Time series mnr
Time series mnrTime series mnr
Time series mnr
 
Trend and seasonal component/abshor.marantika/kelompok 12
Trend and seasonal component/abshor.marantika/kelompok 12Trend and seasonal component/abshor.marantika/kelompok 12
Trend and seasonal component/abshor.marantika/kelompok 12
 
Trend and seasonal component/Abshor.Marantika - kelompok 12
Trend and seasonal component/Abshor.Marantika - kelompok 12Trend and seasonal component/Abshor.Marantika - kelompok 12
Trend and seasonal component/Abshor.Marantika - kelompok 12
 
Moving average.pptx
Moving average.pptxMoving average.pptx
Moving average.pptx
 
BS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptxBS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptx
 
time series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdftime series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdf
 
Module 3 - Time Series.pptx
Module 3 - Time Series.pptxModule 3 - Time Series.pptx
Module 3 - Time Series.pptx
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

Enterprise_Planning_TimeSeries_And_Components

  • 2. 2 Module objectives Introduce time series Components of time series Deseasonalising a time series
  • 3. 3 What is a time series? Essentially, Time Series is a sequence of numerical data obtained at regular time intervals. Occurs in many areas: economics, finance, environment, medicine The aims of time series analysis are  to describe and summarize time series data,  fit models, and make forecasts
  • 4. 4 Why are time series data different from other data? Data are not independent  Much of the statistical theory relies on the data being independent and identically distributed Large samples sizes are good, but long time series are not always the best  Series often change with time, so bigger isn’t always better
  • 5. 5 What Are Users Looking for in an Economic Time Series? Important features of economic indicator series include  Direction  Turning points  In addition, we want to see if the series is increasing/decreasing more slowly/faster than it was before
  • 6. 6 When should time series analysis best be used? We do not assume the existence of deterministic model governing the behaviour of the system considered. Instances where deterministic factors are not readily available and the accuracy of the estimate can be compromised on the need..(be careful!) We will only consider univariate time series
  • 7. 7 Forecasting Horizons Long Term  5+ years into the future  R&D, plant location, product planning  Principally judgement-based Medium Term  1 season to 2 years  Aggregate planning, capacity planning, sales forecasts  Mixture of quantitative methods and judgement Short Term  1 day to 1 year, less than 1 season  Demand forecasting, staffing levels, purchasing, inventory levels  Quantitative methods
  • 8. 8 Examples of Time series data Number of babies born in each hour Daily closing price of a stock. The monthly trade balance of Japan for each year. GDP of the country, measured each year.
  • 9. 9 Time Series example 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
  • 10. 10 Time Series Coordinates (t,x) is established in the 2 axis (1, 44,320) (2, 52,865) (3, 53,092) etc.. Exports 30,000 35,000 40,000 45,000 50,000 55,000 60,000 65,000 70,000 75,000 80,000 1988 1990 1992 1994 1996 1998 2000
  • 11. 11 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 30,000 35,000 40,000 45,000 50,000 55,000 60,000 65,000 70,000 75,000 80,000 1988 1990 1992 1994 1996 1998 2000
  • 12. 12 Importance of time series analysis  Understand the past. What happened over the last years, months?  Forecast the future. Government wants to know future of unemployment rate, percentage increase in cost of living etc. For companies to predict the demand for their product etc.
  • 14. 14 Components of Time Series Trend (Tt ) Seasonal variation (St ) Cyclical variation ( Ct ) Random variation (Rt ) or irregular
  • 15. 15 Components of Time Series Trend (Tt ) Trend: the long-term patterns or movements in the data. Overall or persistent, long-term upward or downward pattern of movement. The trend of a time series is not always linear.
  • 16. 16 Seasonal variation (St ) Regular periodic fluctuations that occur within year. Examples: Consumption of heating oil, which is high in winter, and low in other seasons of year. Gasoline consumption, which is high in summer when most people go on vacation. Components of Time Series
  • 17. 17 -10 -5 0 5 10 15 20 25 30 Seasonal variation (St ) Summer Winter Winter Summer Components of Time Series
  • 18. 18 Example Quarterly with Seasonal Components 0 5 10 15 20 25 0 5 10 15 20 25 30 35 Time Sales
  • 19. 19 Seasonal Components Removed Quarterly without Seasonal Components 0 5 10 15 20 25 0 5 10 15 20 25 30 35 Time Sales Y(t)
  • 20. 20 Why Do Users Want Seasonally Adjusted Data? Seasonal movements can make features difficult or impossible to see
  • 21. 21 Causes of Seasonal Effects Possible causes are  Natural factors  Administrative or legal measures  Social/cultural/religious traditions (e.g., fixed holidays, timing of vacations)
  • 22. 22 Components of Time Series Cyclical variation ( Ct ) • Cyclical variations are similar to seasonal variations. Cycles are often irregular both in height of peak and duration. • Examples: • Long-term product demand cycles. • Cycles in the monetary and financial sectors. (Important for economists!)
  • 23. 23 Cyclical Component Long-term wave-like patterns Regularly occur but may vary in length Often measured peak to peak or trough to trough Sales 1 Cycle Year
  • 24. 24 Irregular Component Unpredictable, random, “residual” fluctuations Due to random variations of  Nature  Accidents or unusual events “Noise” in the time series
  • 25. 25 Causes of Irregular Effects Possible causes  Unseasonable weather/natural disasters  Strikes  Sampling error  Nonsampling error
  • 26. 26 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
  • 27. 27 Not easy to understand the pattern!
  • 28. 28 Our aim is to understand and identify different variations so that we can easily predict the future variations separately and combine together Look how the above complicated series could be understood as follows separately
  • 29. 29
  • 30. 30
  • 31. 31
  • 32. 32
  • 34. 34 Can you imagine how all components aggregate together to form this?
  • 35. 35 Multiplicative Time-Series Model for Annual Data Used primarily for forecasting Observed value in time series is the product of components where Ti = Trend value at year i Ci = Cyclical value at year i Ii = Irregular (random) value at year i i i i i I C T Y   
  • 36. 36 Multiplicative Time-Series Model with a Seasonal Component Used primarily for forecasting Allows consideration of seasonal variation where Ti = Trend value at time i Si = Seasonal value at time i Ci = Cyclical value at time i Ii = Irregular (random) value at time i i i i i i I C S T Y    
  • 37. 37 Smoothing techniques Smoothing helps to see overall patterns in time series data. Smoothing techniques smooth or “iron” out variation to get the overall picture. There are several smoothing techniques of time series.
  • 38. 38 Smoothing techniques We will study : Moving average. Exponential smoothing
  • 39. 39 Smoothing the Annual Time Series 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
  • 40. 40 Moving Averages Used for smoothing A series of arithmetic means over time Result dependent upon choice of L (length of period for computing means) Examples:  For a 3 year moving average, L = 3  For a 5 year moving average, L = 5  Etc.
  • 41. 41 Smoothing techniques: Moving Average (MA)  Odd number of points. Points (k) – length for computing MA  k=3 and so on. 3 3 2 1 1 y y y MA    3 4 3 2 2 y y y MA   
  • 42. 42 Smoothing techniques: Moving Average (MA) k=3 Year Series 3 Point MA 1990 5 1991 6 6 1992 7 1993 8 1994 10 1995 11 1996 12 1997 12 1998 12 12.0 1999 12 12.3 2000 13 12.7 2001 13 1 MA 2 MA
  • 43. 43 Smoothing techniques: Moving Average (MA) Moving Average (3) 3 4 5 6 7 8 9 10 11 12 13 14 1 2 3 4 5 6 7 8 9 10 11 12 Actual Forecast
  • 44. 44 Smoothing techniques: Moving Average (MA) k=5 Year Series 5 Point MA 1990 5 1991 6 1992 7 7.2 1993 8 1994 10 1995 11 1996 12 1997 12 1998 12 1999 12 12.4 2000 13 2001 13
  • 45. 45 Smoothing techniques: Moving Average (MA) Moving Average (5) 0 2 4 6 8 10 12 14 1 2 3 4 5 6 7 8 9 10 11 Actual Forecast
  • 46. 46 Smoothing techniques: Moving Average (MA) We need even numbered MA s for seasonal adjustments  eg: 4 – quarterly data  12 – monthly data
  • 47. 47 Smoothing techniques: Moving Average (MA) Even number of points. Two stages: 1. Obtain MA, centered halfway between t and t-1. 2. To get a trend take the average of two successive estimates. Estimate centered halfway between t and t-1.
  • 48. 48 Smoothing techniques: Moving Average (MA) for k=4. Stage 1. Stage 2. and so on. 4 ) ( 4 3 2 1 1 , 1 y y y y MA     4 ) ( 5 4 3 2 2 , 1 y y y y MA     2 2 , 1 1 , 1 1 MA MA MA  
  • 49. 49 Smoothing techniques: Moving Average (MA) Observation Series MA stage 1 MA stage 2: MA Centered 1 2 3 4 5 6 7 5 6 7 8 10 11 12 6.5 9.0 10.3 7.1 #NA #NA #NA #NA MA1,1 MA1,2 1 MA
  • 50. 50 Measuring the seasonal effect To measure seasonal effect construct seasonal indices. Seasonal indices is a degree to which the seasons differ from one another. Requirement: time series should be sufficiently long to allow to observe seasonal fluctuations.
  • 51. 51 Measuring the seasonal effect Computation:  Calculating MA.  Set the number of periods equal to the number of types of season.  Use multiplicative model:  MA remove St and Rt t t t t t R S C T Y    
  • 52. 52 Measuring the seasonal effect Calculate (step 1) Compute the ratio (step 2): For each type of season calculate the average of the ratios (step 3). The seasonal indices are the average ratios from ratios step 3 adjusted. t t t t t t t t t t R S C T R S C T MA Y        t MA
  • 53. 53 Measuring seasonal effect Year Quarter Hotel Occupan cy Yt Centered MA Ratio Yt/MA Seasonal Index Si 1997 1 0.527 0.895 2 0.660 1.098 3 0.752 0.642 1.171 1.144 4 0.534 0.658 0.811 0.864 1998 1 0.541 0.635 0.852 0.895 2 0.694 0.632 1.098 1.098 3 0.816 0.657 1.241 1.144 4 0.569 0.658 0.864 0.864 1999 1 0.558 0.628 0.889 0.895 2 0.694 0.617 1.124 1.098 3 0.685 0.642 1.068 1.144 4 0.564 0.650 0.867 0.864 2000 1 0.585 0.637 0.918 0.895 2 0.666 0.650 1.023 1.098 3 0.758 0.688 1.101 1.144 4 0.594 0.705 0.843 0.864 2001 1 0.625 0.696 0.898 0.895 2 0.785 0.703 1.116 1.098 3 0.821 1.144 4 0.630 0.864 Step 1 Step 2 Step 3 (calculation see next slide) Contributed by National Academy of Statistical Administration
  • 54. 54 Quarterly ratios Year 1 2 3 4 Total 1997 1.171 0.811 1998 0.852 1.098 1.241 0.864 1999 0.889 1.124 1.068 0.867 2000 0.918 1.023 1.101 0.843 2001 0.898 1.116 Average 0.889 1.090 1.137 0.858 3.974 Seasonal index 0.895 1.098 1.144 0.864 4.000 Calculating seasonal index Example: Seasonal index for Quarter 1 = 0.889/3.974*4.000=0.895
  • 55. 55 Negative trend is also a trend.. unemployed 0 200000 400000 600000 800000 1000000 1200000 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35