SlideShare a Scribd company logo
1 of 33
Forecasting
Models
With
Trend and Seasonal Effects
Types of Seasonal Models
• Two possible models are:
Additive Model
yt = Tt + St + εt
Multiplicative Model
yt = TtStεt
Trend Effects
Seasonal Effects
Random Effects
Additive Model
Regression Forecasting Procedure
• Suppose a time series is modeled as having k seasons
(Here we illustrate k = 4 quarters)
– Problem is modeled with k-1 (4-1 = 3) dummy variables, S1, S2, and
S3 corresponding to seasons 1, 2, and 3 respectively.
The combination of 0’s and 1’s for each of the dummy variables at each
period indicate the season corresponding to the time series value.
– Season 1: S1 = 1, S2 = 0, S3 = 0
– Season 2: S1 = 0, S2 = 1, S3 = 0
– Season 3: S1 = 0, S2 = 0, S3 = 1
– Season 4: S1 = 0, S2 = 0, S3 = 0
• Multiple regression is then done on with t, S1, S2, and S3 as
the independent variables and the time series values yt as
the dependent variable.
yt = β0 + β1t + β2S1 + β3S2 + β4S3 + εt
Tt St εt
Example
Troy’s Mobil Station
• Troy owns a gas station in a vacation resort city
that has many spring and summer visitors.
– Due to a steady increase in population Troy feels that
average sales experience long term trend.
– Troy also knows that sales vary by season due to the
vacationers.
• Based on the last 5 years data below with sales in
1000’s of gallons per season, Troy needs to
predict total sales for next year (periods 21, 22, 23,
and 24). YEAR
SEASON 1 2 3 4 5
FALL 3497 3726 3989 4248 4443
WINTER 3484 3589 3870 4105 4307
SPRING 3553 3742 3996 4263 4466
SUMMER 3837 4050 4327 4544 4795
Scatterplot of Time Series
Gasoline Sales Over Five Year Period
3000
3200
3400
3600
3800
4000
4200
4400
4600
4800
5000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Period
Gasoline
Sales
(1000's
gallons)
Fall
Winter
Spring
Summer
General Pattern: Winter less than Fall, Spring more than
Winter, Summer more than Spring, Fall less than Summer
The Model
• There is also apparent long term trend.
• The form of the model then is:
yt = β0 + β1t + β2F + β3W + β4S + εt
Spring
Winter
Fall
The Excel Input
Add Dummy Variables
Not Fall, In Winter, not Spring
In Fall, not Winter, not Spring
Not Fall, not Winter, In Spring
Not Fall, not Winter, not Spring
Pattern Repeats
Regression Intput
Regression Output
Low p-value for F-test
Low p-values for all t-tests
Conclusion
Good model – all factors significant
• The forecasting additive model is:
Ft = 3610.625 + 58.33t – 155F – 323W –
248.27S
• Forecasts for year 6 are produced as follows:
• F(Year 6, Fall) = 3610.625+58.33(21) – 155(1) – 323(0) –
248.27(0)
• F(Year 6, Winter) = 3610.625+58.33(22) – 155(0) – 323(1) –
248.27(0)
• F(Year 6, Spring) = 3610.625+58.33(23) – 155(0) – 323(0) –
248.27(1)
• F(Year 6, Summer) = 3610.625+58.33(24) – 155(0) – 323(0)
– 248.27(0)
Troy’s Mobil Station –
Performing the forecast
The Forecasts
=$G$17+$G$18*B22+$G$19*C22+$G$20*D22+$G$21*E22
Drag F22 down to F25
=SUM(F22:F25)
What if Some of the p-values are high?
• Would not just eliminate Spring or Winter
• A test exists to decide if adding the
dummy variables add value to the model
H0: 2 = 3 = 4 = 0
HA: At least one of these ’s ≠ 0
• Run 2 models:
– Full: Time + (3) Seasonal Variables
– Reduced: Time Only
• Test --- Reject H0 (Accept HA) if F > F,3,DFE(Full)
F = ((SSEREDUCED-SSEFULL)/3)/MSEFULL
• So if F >F,3,DFE(Full) ---Include seasonal variables
Multiplicative Model
Classical Decomposition Approach
• The time series is first decomposed into
its components (trend, seasonal
variation).
• After these components have been
determined, the series is re-composed by
multiplying the components.
• Smooth the time series to
remove random effects and
seasonality and isolate trend.
• Calculate moving averages to
get values for Tt for each
period t.
• Determine “period factors” to
isolate the (seasonal)(error)
factors.
• Calculate the ratio yt/Tt.
• Determine the “unadjusted
seasonal factors” to eliminate
the random component from the
period factors
Classical Decomposition
• Average all the yt/Tt that
correspond to the same season.
• Determine the “adjusted
seasonal factors”.
Calculate:
[Unadjusted seasonal factor]
[Average seasonal factor]
• Determine “Deseasonalized data
values”.
Calculate:
yt
[Adjusted seasonal factors]t
• Determine a deseasonalized
trend forecast.
Classical Decomposition (Cont’d)
Use linear regression on the
deseasonalized time series.
Calculate:
(Desesonalized values) 
[Adjusted seasonal factors]).
• Determine an “adjusted
seasonal forecast”.
• The CFA is the exclusive bargaining agent
for public Canadian college faculty.
• Membership in the organization has grown
over the years, but in the summer months
there was always a decline.
• To prepare the budget for the 2001 fiscal
year, a forecast of the average quarterly
membership covering the year 2001 was
required.
CANADIAN FACULTY
ASSOCIATION (CFA)
CFA - Solution
• Membership records from 1997 through 2000
were collected and graphed.
YEAR PERIOD QUARTER
AVERAGE
MEMBERSHIP
1997 1 1 7130
2 2 6940
3 3 7354
4 4 7556
1998 5 1 7673
6 2 7332
7 3 7662
8 4 7809
1999 9 1 7872
10 2 7551
11 3 7989
12 4 8143
2000 13 1 8167
14 2 7902
15 3 8268
16 4 8436
1997 1998 1999 2000
The graph exhibits long term trend
The graph exhibits seasonality pattern
First moving average period is
centered at quarter (1+4)/ 2 = 2.5
Centered moving average of the first
two moving averages is
[7245.01 + 7380.75]/2 = 7312.875
• Smooth the time series to
remove random effects and
seasonality.
Calculate moving averages.
Step 1:
Isolating the Trend Component
Average membership for the first 4 periods
= [7130+6940+7354+7556]/4 = 7245.01
Second moving average period
is centered at quarter (2+5)/ 2 = 3.5
Average membership for periods [2, 5]
= [6940+7354+7556+7673]/4 = 7380.75
Centered location is t = 3
Trend value at period 3, T3
=AVERAGE(C3:C6,C4:C7)
Drag down to D16
Since yt =TtStεt, then the period factor, Stεt is given by
Stet = yt/Tt
Step 2
Determining the Period Factors
• Determine “period factors”
to isolate the
(Seasonal)(Random error)
factor.
Calculate the ratio yt/Tt.
Example:
In period 7 (3rd quarter of 1998):
S7ε7= y7/T7 = 7662/7643.875 = 1.002371
=C5/D5
Drag down to E16
This eliminates the random factor from the period factors, Stεt This
leaves us with only the seasonality component for each season.
Example: Unadjusted Seasonal Factor for the third quarter.
S3 = {S3,97 e3,97 + S3,98 e3,98 + S3,99 e3,99}/3 = {1.0056+1.0024+1.0079}/3 = 1.0053
Step 3
Unadjusted Seasonal Factors
• Determine the “unadjusted
seasonal factors” to eliminate
the random component from
the period factors
Average all the yt/Tt that
correspond to the same
season.
=AVERAGE(E3,E7,E11,E15)
Drag down to F6
Paste Special(Values)
Copy F3:F6
Average seasonal factor =
(1.01490+.96580+1.00533+1.01624)/4=1.00057
Step 4
Adjusted Seasonal Factors
• Determine the “adjusted
seasonal factors” so that
average adjusted factor is 1
Calculate:
Unadjusted seasonal factors
Average seasonal factor
Quarter
1
2
3
4
Unadjusted
Seasonal Factor
1.01490
.96580
1.00533
1.01624
Adjusted
Seasonal Factor
1.014325
.965252
1.004759
1.015663
Unadjusted Seasonal Factors/1.00057
F3/AVERAGE($F$3:$F$6)
Drag down to G18
Step 5
The Deseasonalized Time Series
Deseasonalized series value for Period 6
(2nd quarter, 1998)
y6/(Quarter 2 Adjusted Seasonal Factor) =
7332/0.965252 = 7595.94
• Determine “Deseasonalized
data values”.
Calculate:
yt
[Adjusted seasonal factors]t
=C3/G3
Drag to cell H18
Step 6
The Time Series Trend Component
• Regress on the Deseasonalized Time Series
• Determine a deseasonalized forecast from
the resulting regression equation
(Unadjusted Forecast)t = 7069.6677 + 78.4046t
Period (t)
17
18
19
20
Unadjusted Forecast (t)
8402.55
8480.95
8559.36
8637.76
Run regression
Deseason vs. Period
=$L$18+$L$19*B19
Drag to cell I22
Step 7
The Forecast
Re-seasonalize the forecast by multiplying
the unadjusted forecast by the adjusted
seasonal factor for each period.
Unadjusted
Forecast (t)
8402.55
8480.95
8559.36
8637.76
Period
17
18
19
20
Adjusted
Forecast (t)
8522.92
8186.26
8600.09
8773.06
Adjusted
Seasonal Factor
1.014325
.965252
1.004759
1.015663
=I19*G3
Drag down to J22
Seasonally
Adjusted
Forecasts
Review
• Additive Model for Time Series with Trend and
Seasonal Effects
– Use of Dummy Variables
• 1 less than the number of seasons
– Use of Regression
• Modified F test if all p-values not < .05
• Multiplicative Model for Time Series with Trend
and Seasonal Effects
– Determine a set of adjusted period factors to
deseasonalize data
– Do regression to obtain unadjusted forecasts
– Reseasonalize results to give seasonally adjusted
forecasts.
• Excel

More Related Content

Similar to Forecasting-Seasonal Models.ppt

demand forecasting
demand forecasting demand forecasting
demand forecasting kranthi MSD
 
Winters Method
Winters MethodWinters Method
Winters Method3abooodi
 
Statistics assignment and homework help service
Statistics assignment and homework help serviceStatistics assignment and homework help service
Statistics assignment and homework help serviceTutor Help Desk
 
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docx
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docxSalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docx
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docxjeffsrosalyn
 
Home Work; Chapter 8; Forecasting Supply Chain Requirements
Home Work; Chapter 8; Forecasting Supply Chain RequirementsHome Work; Chapter 8; Forecasting Supply Chain Requirements
Home Work; Chapter 8; Forecasting Supply Chain RequirementsShaheen Sardar
 
Forcasting Techniques
Forcasting TechniquesForcasting Techniques
Forcasting Techniquessharonulysses
 
Depreciation and its types
Depreciation and its typesDepreciation and its types
Depreciation and its typesManikandanSettu
 
Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?ADEMU_Project
 

Similar to Forecasting-Seasonal Models.ppt (20)

8134485.ppt
8134485.ppt8134485.ppt
8134485.ppt
 
Econometics - lecture 22 and 23
Econometics - lecture 22 and 23Econometics - lecture 22 and 23
Econometics - lecture 22 and 23
 
Time series
Time series Time series
Time series
 
demand forecasting
demand forecasting demand forecasting
demand forecasting
 
Forecasting 5 6.ppt
Forecasting 5 6.pptForecasting 5 6.ppt
Forecasting 5 6.ppt
 
Winters Method
Winters MethodWinters Method
Winters Method
 
Dimensional Analysis.pptx
Dimensional Analysis.pptxDimensional Analysis.pptx
Dimensional Analysis.pptx
 
Assignmen (1)
Assignmen (1)Assignmen (1)
Assignmen (1)
 
Statistics assignment and homework help service
Statistics assignment and homework help serviceStatistics assignment and homework help service
Statistics assignment and homework help service
 
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docx
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docxSalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docx
SalesyearQ1Q2Q3Q43.569199510004.1521995.25000000000001003.9981995.50.docx
 
Home Work; Chapter 8; Forecasting Supply Chain Requirements
Home Work; Chapter 8; Forecasting Supply Chain RequirementsHome Work; Chapter 8; Forecasting Supply Chain Requirements
Home Work; Chapter 8; Forecasting Supply Chain Requirements
 
Forcasting Techniques
Forcasting TechniquesForcasting Techniques
Forcasting Techniques
 
Moving average.pptx
Moving average.pptxMoving average.pptx
Moving average.pptx
 
timeseries1.ppt
timeseries1.ppttimeseries1.ppt
timeseries1.ppt
 
Describing Data: Numerical Measures
Describing Data: Numerical MeasuresDescribing Data: Numerical Measures
Describing Data: Numerical Measures
 
Time series
Time seriesTime series
Time series
 
lecture2.pdf
lecture2.pdflecture2.pdf
lecture2.pdf
 
Adj Exp Smoothing
Adj Exp SmoothingAdj Exp Smoothing
Adj Exp Smoothing
 
Depreciation and its types
Depreciation and its typesDepreciation and its types
Depreciation and its types
 
Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?
 

Recently uploaded

Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
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
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
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
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
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
 
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
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
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
 

Recently uploaded (20)

Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.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
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
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
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
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...
 
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
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
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
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 

Forecasting-Seasonal Models.ppt

  • 2. Types of Seasonal Models • Two possible models are: Additive Model yt = Tt + St + εt Multiplicative Model yt = TtStεt Trend Effects Seasonal Effects Random Effects
  • 3. Additive Model Regression Forecasting Procedure • Suppose a time series is modeled as having k seasons (Here we illustrate k = 4 quarters) – Problem is modeled with k-1 (4-1 = 3) dummy variables, S1, S2, and S3 corresponding to seasons 1, 2, and 3 respectively. The combination of 0’s and 1’s for each of the dummy variables at each period indicate the season corresponding to the time series value. – Season 1: S1 = 1, S2 = 0, S3 = 0 – Season 2: S1 = 0, S2 = 1, S3 = 0 – Season 3: S1 = 0, S2 = 0, S3 = 1 – Season 4: S1 = 0, S2 = 0, S3 = 0 • Multiple regression is then done on with t, S1, S2, and S3 as the independent variables and the time series values yt as the dependent variable. yt = β0 + β1t + β2S1 + β3S2 + β4S3 + εt Tt St εt
  • 4. Example Troy’s Mobil Station • Troy owns a gas station in a vacation resort city that has many spring and summer visitors. – Due to a steady increase in population Troy feels that average sales experience long term trend. – Troy also knows that sales vary by season due to the vacationers. • Based on the last 5 years data below with sales in 1000’s of gallons per season, Troy needs to predict total sales for next year (periods 21, 22, 23, and 24). YEAR SEASON 1 2 3 4 5 FALL 3497 3726 3989 4248 4443 WINTER 3484 3589 3870 4105 4307 SPRING 3553 3742 3996 4263 4466 SUMMER 3837 4050 4327 4544 4795
  • 5. Scatterplot of Time Series Gasoline Sales Over Five Year Period 3000 3200 3400 3600 3800 4000 4200 4400 4600 4800 5000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Period Gasoline Sales (1000's gallons) Fall Winter Spring Summer General Pattern: Winter less than Fall, Spring more than Winter, Summer more than Spring, Fall less than Summer
  • 6. The Model • There is also apparent long term trend. • The form of the model then is: yt = β0 + β1t + β2F + β3W + β4S + εt Spring Winter Fall
  • 8. Add Dummy Variables Not Fall, In Winter, not Spring In Fall, not Winter, not Spring Not Fall, not Winter, In Spring Not Fall, not Winter, not Spring Pattern Repeats
  • 10. Regression Output Low p-value for F-test Low p-values for all t-tests Conclusion Good model – all factors significant
  • 11. • The forecasting additive model is: Ft = 3610.625 + 58.33t – 155F – 323W – 248.27S • Forecasts for year 6 are produced as follows: • F(Year 6, Fall) = 3610.625+58.33(21) – 155(1) – 323(0) – 248.27(0) • F(Year 6, Winter) = 3610.625+58.33(22) – 155(0) – 323(1) – 248.27(0) • F(Year 6, Spring) = 3610.625+58.33(23) – 155(0) – 323(0) – 248.27(1) • F(Year 6, Summer) = 3610.625+58.33(24) – 155(0) – 323(0) – 248.27(0) Troy’s Mobil Station – Performing the forecast
  • 13. What if Some of the p-values are high? • Would not just eliminate Spring or Winter • A test exists to decide if adding the dummy variables add value to the model H0: 2 = 3 = 4 = 0 HA: At least one of these ’s ≠ 0 • Run 2 models: – Full: Time + (3) Seasonal Variables – Reduced: Time Only • Test --- Reject H0 (Accept HA) if F > F,3,DFE(Full) F = ((SSEREDUCED-SSEFULL)/3)/MSEFULL • So if F >F,3,DFE(Full) ---Include seasonal variables
  • 14. Multiplicative Model Classical Decomposition Approach • The time series is first decomposed into its components (trend, seasonal variation). • After these components have been determined, the series is re-composed by multiplying the components.
  • 15. • Smooth the time series to remove random effects and seasonality and isolate trend. • Calculate moving averages to get values for Tt for each period t. • Determine “period factors” to isolate the (seasonal)(error) factors. • Calculate the ratio yt/Tt. • Determine the “unadjusted seasonal factors” to eliminate the random component from the period factors Classical Decomposition • Average all the yt/Tt that correspond to the same season.
  • 16. • Determine the “adjusted seasonal factors”. Calculate: [Unadjusted seasonal factor] [Average seasonal factor] • Determine “Deseasonalized data values”. Calculate: yt [Adjusted seasonal factors]t • Determine a deseasonalized trend forecast. Classical Decomposition (Cont’d) Use linear regression on the deseasonalized time series. Calculate: (Desesonalized values)  [Adjusted seasonal factors]). • Determine an “adjusted seasonal forecast”.
  • 17. • The CFA is the exclusive bargaining agent for public Canadian college faculty. • Membership in the organization has grown over the years, but in the summer months there was always a decline. • To prepare the budget for the 2001 fiscal year, a forecast of the average quarterly membership covering the year 2001 was required. CANADIAN FACULTY ASSOCIATION (CFA)
  • 18. CFA - Solution • Membership records from 1997 through 2000 were collected and graphed. YEAR PERIOD QUARTER AVERAGE MEMBERSHIP 1997 1 1 7130 2 2 6940 3 3 7354 4 4 7556 1998 5 1 7673 6 2 7332 7 3 7662 8 4 7809 1999 9 1 7872 10 2 7551 11 3 7989 12 4 8143 2000 13 1 8167 14 2 7902 15 3 8268 16 4 8436 1997 1998 1999 2000 The graph exhibits long term trend The graph exhibits seasonality pattern
  • 19. First moving average period is centered at quarter (1+4)/ 2 = 2.5 Centered moving average of the first two moving averages is [7245.01 + 7380.75]/2 = 7312.875 • Smooth the time series to remove random effects and seasonality. Calculate moving averages. Step 1: Isolating the Trend Component Average membership for the first 4 periods = [7130+6940+7354+7556]/4 = 7245.01 Second moving average period is centered at quarter (2+5)/ 2 = 3.5 Average membership for periods [2, 5] = [6940+7354+7556+7673]/4 = 7380.75 Centered location is t = 3 Trend value at period 3, T3
  • 21. Since yt =TtStεt, then the period factor, Stεt is given by Stet = yt/Tt Step 2 Determining the Period Factors • Determine “period factors” to isolate the (Seasonal)(Random error) factor. Calculate the ratio yt/Tt. Example: In period 7 (3rd quarter of 1998): S7ε7= y7/T7 = 7662/7643.875 = 1.002371
  • 23. This eliminates the random factor from the period factors, Stεt This leaves us with only the seasonality component for each season. Example: Unadjusted Seasonal Factor for the third quarter. S3 = {S3,97 e3,97 + S3,98 e3,98 + S3,99 e3,99}/3 = {1.0056+1.0024+1.0079}/3 = 1.0053 Step 3 Unadjusted Seasonal Factors • Determine the “unadjusted seasonal factors” to eliminate the random component from the period factors Average all the yt/Tt that correspond to the same season.
  • 24. =AVERAGE(E3,E7,E11,E15) Drag down to F6 Paste Special(Values) Copy F3:F6
  • 25. Average seasonal factor = (1.01490+.96580+1.00533+1.01624)/4=1.00057 Step 4 Adjusted Seasonal Factors • Determine the “adjusted seasonal factors” so that average adjusted factor is 1 Calculate: Unadjusted seasonal factors Average seasonal factor Quarter 1 2 3 4 Unadjusted Seasonal Factor 1.01490 .96580 1.00533 1.01624 Adjusted Seasonal Factor 1.014325 .965252 1.004759 1.015663 Unadjusted Seasonal Factors/1.00057
  • 27. Step 5 The Deseasonalized Time Series Deseasonalized series value for Period 6 (2nd quarter, 1998) y6/(Quarter 2 Adjusted Seasonal Factor) = 7332/0.965252 = 7595.94 • Determine “Deseasonalized data values”. Calculate: yt [Adjusted seasonal factors]t
  • 29. Step 6 The Time Series Trend Component • Regress on the Deseasonalized Time Series • Determine a deseasonalized forecast from the resulting regression equation (Unadjusted Forecast)t = 7069.6677 + 78.4046t Period (t) 17 18 19 20 Unadjusted Forecast (t) 8402.55 8480.95 8559.36 8637.76
  • 30. Run regression Deseason vs. Period =$L$18+$L$19*B19 Drag to cell I22
  • 31. Step 7 The Forecast Re-seasonalize the forecast by multiplying the unadjusted forecast by the adjusted seasonal factor for each period. Unadjusted Forecast (t) 8402.55 8480.95 8559.36 8637.76 Period 17 18 19 20 Adjusted Forecast (t) 8522.92 8186.26 8600.09 8773.06 Adjusted Seasonal Factor 1.014325 .965252 1.004759 1.015663
  • 32. =I19*G3 Drag down to J22 Seasonally Adjusted Forecasts
  • 33. Review • Additive Model for Time Series with Trend and Seasonal Effects – Use of Dummy Variables • 1 less than the number of seasons – Use of Regression • Modified F test if all p-values not < .05 • Multiplicative Model for Time Series with Trend and Seasonal Effects – Determine a set of adjusted period factors to deseasonalize data – Do regression to obtain unadjusted forecasts – Reseasonalize results to give seasonally adjusted forecasts. • Excel