SlideShare a Scribd company logo
1 of 25
Download to read offline
TIME SERIES FORECASTING
12-Jan-18 1
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
DECOMPOSITION OF TIME
SERIES
12-Jan-18 2
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Visualizing Seasonality
12-Jan-18 3
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Visualization of Seasonality
Helps to see the nature of seasonality
But does not help in quantification
4
12-Jan-18
Objective of this lesson is to extract time series
components numerically to evaluate their
importance in the historical pattern of the data
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Why Decompose
• To understand revenue generation without the quarterly
effects
̶ De-seasonalize the series
̶ Estimate and adjust by seasonality
• Compare the long-term movement of the series (Trend) vis-a-
vis short-term movement (seasonality) to understand which
has the higher influence
• If revenue for multiple sector are to be compared and if the
sectors show non-uniform seasonality, de-seasonalized series
needs to be compared
5
12-Jan-18
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Seasonality?
Seasonality is the relative increase or decrease of sales
(demand or consumption) every period(quarter or
month or week) compared to the yearly average
6
Heuristic example with 4 quarters
Yearly sale = 400 units
Quarterly average = 100 units
Actual sales
Q1 = 80 units Q2 = 70 units Q3 = 200 units
Q4 = 50 units
Seasonality estimate
Q1 = -20 Q2= -30 Q3 = +100 Q4 = - 50
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Decomposition Model
7
Yt : time series value (actual data) at period t.
St : seasonal component (index) at period t.
Tt : trend cycle component at period t.
It : irregular (remainder) component at period t
Additive model: Observation = Trend + Seasonality + Error
Yt = Tt + St + It
Useful when the seasonal variation is relatively constant over time
Multiplicative model: Observation = Trend * Seasonality * Error
Yt = Tt * St * It
Multiplicative models are more realistic
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet I: Quarterly Revenue
• Quarterly revenue is a sum of Trend, Seasonality and
Irregular component
• Would like to understand relative effects of the 4 quarters
• Would like to understand the long-term movement of the
series, after seasonal effect has been eliminated
• Example of an Additive Seasonality Model
Yt = Tt + St + It
Revenue = Trend + Seasonality + Error
8
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Decomposition in R
IncDec<-stl(Income, s.window='p') constant seasonality
plot(IncDec)
IncDec
IncDec7<-stl(Income, s.window=7) seasonality changes
plot(IncDec7)
IncDec
DeseasonRevenue <- (IncDec7$time.series[,2]+IncDec7$time.series[,3])
ts.plot(DeseasonRevenue, Revenue, col=c("red", "blue"), main="Comparison
of Revenue and Deseasonalized Revenue")
9
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet I: Quarterly Revenue
10
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
12-Jan-18 11
Caselet I: Quarterly Revenue
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
12-Jan-18 12
Deseasonalized
Revenue Seasonal
fluctuation
comparatively
insignificant
than YOY
movement
Caselet I: Quarterly Revenue
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
• Monthly sales is a sum of Trend, Seasonality and Irregular
component
• Would like to understand relative effects of the 12 months
• Would like to understand whether there is at all any
movement of the sales series after the seasonal fluctuations
are eliminated
• Example of an Additive Seasonality Model
Yt = Tt + St + It
Sales = Trend + Seasonality + Error
13
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
12-Jan-18 14
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
12-Jan-18 15
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
12-Jan-18 16
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
• Practically there is no effect of any YOY movement
• The changes we see are almost all due to monthly
fluctuations
17
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet II: Champagne Sales
Critical look at seasonality
• During first part of the
year almost no change
• Sharp drop in sales in
August
• Last 4 months show
steep increase in sales
18
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
12-Jan-18 19
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
• There is a definite upward movement YOY
• Seasonal fluctuations increasing as total volume increases
• Example of an Multiplicative Seasonality Model
Yt = Tt * St * It
Volume= Trend *Seasonality * Error
20
• Need logarithmic transformation to convert into an additive
series
Log(Vol) = log(Trend) + log(Seasonality) + log(Error)
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
12-Jan-18 21
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
12-Jan-18 22
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
Write conclusions on your own:
• Which part contributes more – Trend or Seasonality?
• Which month(s) show high passenger volume compared to
yearly average?
• Which month(s) show low passenger volume compared to
yearly average?
23
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Caselet III: Passenger Volume
Critical look at seasonality
• From Feb passenger
volume starts
increasing
• Jun – Sep shows high
volume
• Jul – Aug has highest
vol
• Dec shows slight
increase
24
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Next Step
Ultimate goal of understanding the time series
components is to forecast for the coming years
In the next lesson we apply forecast by
decomposition, as well as learn about other
forecast methods
25
12-Jan-18
Thank you
haritika74@gmail.com
BABIINTLMAY19001
This file is meant for personal use by haritika74@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.

More Related Content

More from HaritikaChhatwal1

Introduction to R _IMPORTANT FOR DATA ANALYTICS
Introduction to R _IMPORTANT FOR DATA ANALYTICSIntroduction to R _IMPORTANT FOR DATA ANALYTICS
Introduction to R _IMPORTANT FOR DATA ANALYTICSHaritikaChhatwal1
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTHaritikaChhatwal1
 
SESSION 1-2 [Autosaved] [Autosaved].pptx
SESSION 1-2 [Autosaved] [Autosaved].pptxSESSION 1-2 [Autosaved] [Autosaved].pptx
SESSION 1-2 [Autosaved] [Autosaved].pptxHaritikaChhatwal1
 
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdf
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdfWORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdf
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdfHaritikaChhatwal1
 
Epigeum at ntunive singapore MED900.pptx
Epigeum at ntunive singapore MED900.pptxEpigeum at ntunive singapore MED900.pptx
Epigeum at ntunive singapore MED900.pptxHaritikaChhatwal1
 
MED 900 Correlational Studies online safety sake.pptx
MED 900 Correlational Studies online safety sake.pptxMED 900 Correlational Studies online safety sake.pptx
MED 900 Correlational Studies online safety sake.pptxHaritikaChhatwal1
 
Nw Microsoft PowerPoint Presentation.pptx
Nw Microsoft PowerPoint Presentation.pptxNw Microsoft PowerPoint Presentation.pptx
Nw Microsoft PowerPoint Presentation.pptxHaritikaChhatwal1
 
HOWs CORRELATIONAL STUDIES are performed
HOWs CORRELATIONAL STUDIES are performedHOWs CORRELATIONAL STUDIES are performed
HOWs CORRELATIONAL STUDIES are performedHaritikaChhatwal1
 
CHAPTER 4 -TYPES OF BUSINESS.pptx
CHAPTER 4 -TYPES OF BUSINESS.pptxCHAPTER 4 -TYPES OF BUSINESS.pptx
CHAPTER 4 -TYPES OF BUSINESS.pptxHaritikaChhatwal1
 
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptx
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptxCHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptx
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptxHaritikaChhatwal1
 

More from HaritikaChhatwal1 (12)

Introduction to R _IMPORTANT FOR DATA ANALYTICS
Introduction to R _IMPORTANT FOR DATA ANALYTICSIntroduction to R _IMPORTANT FOR DATA ANALYTICS
Introduction to R _IMPORTANT FOR DATA ANALYTICS
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
 
SESSION 1-2 [Autosaved] [Autosaved].pptx
SESSION 1-2 [Autosaved] [Autosaved].pptxSESSION 1-2 [Autosaved] [Autosaved].pptx
SESSION 1-2 [Autosaved] [Autosaved].pptx
 
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdf
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdfWORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdf
WORKSHEET INTRO AND TVM _SESSION 1 AND 2.pdf
 
Epigeum at ntunive singapore MED900.pptx
Epigeum at ntunive singapore MED900.pptxEpigeum at ntunive singapore MED900.pptx
Epigeum at ntunive singapore MED900.pptx
 
MED 900 Correlational Studies online safety sake.pptx
MED 900 Correlational Studies online safety sake.pptxMED 900 Correlational Studies online safety sake.pptx
MED 900 Correlational Studies online safety sake.pptx
 
Nw Microsoft PowerPoint Presentation.pptx
Nw Microsoft PowerPoint Presentation.pptxNw Microsoft PowerPoint Presentation.pptx
Nw Microsoft PowerPoint Presentation.pptx
 
HOWs CORRELATIONAL STUDIES are performed
HOWs CORRELATIONAL STUDIES are performedHOWs CORRELATIONAL STUDIES are performed
HOWs CORRELATIONAL STUDIES are performed
 
DIAS PRESENTATION.pptx
DIAS PRESENTATION.pptxDIAS PRESENTATION.pptx
DIAS PRESENTATION.pptx
 
FULLTEXT01.pdf
FULLTEXT01.pdfFULLTEXT01.pdf
FULLTEXT01.pdf
 
CHAPTER 4 -TYPES OF BUSINESS.pptx
CHAPTER 4 -TYPES OF BUSINESS.pptxCHAPTER 4 -TYPES OF BUSINESS.pptx
CHAPTER 4 -TYPES OF BUSINESS.pptx
 
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptx
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptxCHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptx
CHAPTER 3-ENTREPRENEURSHIP [Autosaved].pptx
 

Recently uploaded

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 

Recently uploaded (20)

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 

TS Decomposition IN data Time Series Fore

  • 1. TIME SERIES FORECASTING 12-Jan-18 1 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 2. DECOMPOSITION OF TIME SERIES 12-Jan-18 2 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 3. Visualizing Seasonality 12-Jan-18 3 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 4. Visualization of Seasonality Helps to see the nature of seasonality But does not help in quantification 4 12-Jan-18 Objective of this lesson is to extract time series components numerically to evaluate their importance in the historical pattern of the data haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 5. Why Decompose • To understand revenue generation without the quarterly effects ̶ De-seasonalize the series ̶ Estimate and adjust by seasonality • Compare the long-term movement of the series (Trend) vis-a- vis short-term movement (seasonality) to understand which has the higher influence • If revenue for multiple sector are to be compared and if the sectors show non-uniform seasonality, de-seasonalized series needs to be compared 5 12-Jan-18 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 6. What is Seasonality? Seasonality is the relative increase or decrease of sales (demand or consumption) every period(quarter or month or week) compared to the yearly average 6 Heuristic example with 4 quarters Yearly sale = 400 units Quarterly average = 100 units Actual sales Q1 = 80 units Q2 = 70 units Q3 = 200 units Q4 = 50 units Seasonality estimate Q1 = -20 Q2= -30 Q3 = +100 Q4 = - 50 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 7. Decomposition Model 7 Yt : time series value (actual data) at period t. St : seasonal component (index) at period t. Tt : trend cycle component at period t. It : irregular (remainder) component at period t Additive model: Observation = Trend + Seasonality + Error Yt = Tt + St + It Useful when the seasonal variation is relatively constant over time Multiplicative model: Observation = Trend * Seasonality * Error Yt = Tt * St * It Multiplicative models are more realistic haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 8. Caselet I: Quarterly Revenue • Quarterly revenue is a sum of Trend, Seasonality and Irregular component • Would like to understand relative effects of the 4 quarters • Would like to understand the long-term movement of the series, after seasonal effect has been eliminated • Example of an Additive Seasonality Model Yt = Tt + St + It Revenue = Trend + Seasonality + Error 8 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 9. Decomposition in R IncDec<-stl(Income, s.window='p') constant seasonality plot(IncDec) IncDec IncDec7<-stl(Income, s.window=7) seasonality changes plot(IncDec7) IncDec DeseasonRevenue <- (IncDec7$time.series[,2]+IncDec7$time.series[,3]) ts.plot(DeseasonRevenue, Revenue, col=c("red", "blue"), main="Comparison of Revenue and Deseasonalized Revenue") 9 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 10. Caselet I: Quarterly Revenue 10 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 11. 12-Jan-18 11 Caselet I: Quarterly Revenue haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 12. 12-Jan-18 12 Deseasonalized Revenue Seasonal fluctuation comparatively insignificant than YOY movement Caselet I: Quarterly Revenue haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 13. Caselet II: Champagne Sales • Monthly sales is a sum of Trend, Seasonality and Irregular component • Would like to understand relative effects of the 12 months • Would like to understand whether there is at all any movement of the sales series after the seasonal fluctuations are eliminated • Example of an Additive Seasonality Model Yt = Tt + St + It Sales = Trend + Seasonality + Error 13 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 14. Caselet II: Champagne Sales 12-Jan-18 14 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 15. Caselet II: Champagne Sales 12-Jan-18 15 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 16. Caselet II: Champagne Sales 12-Jan-18 16 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 17. Caselet II: Champagne Sales • Practically there is no effect of any YOY movement • The changes we see are almost all due to monthly fluctuations 17 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 18. Caselet II: Champagne Sales Critical look at seasonality • During first part of the year almost no change • Sharp drop in sales in August • Last 4 months show steep increase in sales 18 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 19. Caselet III: Passenger Volume 12-Jan-18 19 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 20. Caselet III: Passenger Volume • There is a definite upward movement YOY • Seasonal fluctuations increasing as total volume increases • Example of an Multiplicative Seasonality Model Yt = Tt * St * It Volume= Trend *Seasonality * Error 20 • Need logarithmic transformation to convert into an additive series Log(Vol) = log(Trend) + log(Seasonality) + log(Error) haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 21. Caselet III: Passenger Volume 12-Jan-18 21 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 22. Caselet III: Passenger Volume 12-Jan-18 22 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 23. Caselet III: Passenger Volume Write conclusions on your own: • Which part contributes more – Trend or Seasonality? • Which month(s) show high passenger volume compared to yearly average? • Which month(s) show low passenger volume compared to yearly average? 23 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 24. Caselet III: Passenger Volume Critical look at seasonality • From Feb passenger volume starts increasing • Jun – Sep shows high volume • Jul – Aug has highest vol • Dec shows slight increase 24 haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.
  • 25. Next Step Ultimate goal of understanding the time series components is to forecast for the coming years In the next lesson we apply forecast by decomposition, as well as learn about other forecast methods 25 12-Jan-18 Thank you haritika74@gmail.com BABIINTLMAY19001 This file is meant for personal use by haritika74@gmail.com only. Sharing or publishing the contents in part or full is liable for legal action.