SlideShare une entreprise Scribd logo
1  sur  27
Analysis of Time Series

                       For AS90641

                           Part 2
                      Extra for Experts




September 2005            Created by Polly Stuart   1
Contents
• This resource is designed to suggest
  some ways students could meet the
  requirements of AS 90641.
• It shows some common practices in
  New Zealand schools and suggests
  other simplified statistical methods.
• The suggested methods do not
  necessarily reflect practices of Statistics
  New Zealand.

                                            2
Aims
• This presentation (and the next) takes
  you through some extra types of
  analysis you could try for time series
  data.
• It also makes suggestions for writing
  your report
• You will need to open the spreadsheet:
  Example sales.xls
• Choose the worksheet labeled
  Clothing.
                                           3
Beginnings
 • You have already learned a basic
   analysis of a time series and how to
   isolate some components.
 • We are now going to do a more
   complex analysis.
 • Before doing any analysis you need to:
    – Graph the raw data
    – Identify the components of the data
    – Decide on the best method of
      analysis.                             4
Look at :              the trend
                       the seasonal component
                       the irregular component
                        C l o t hi ng and so f t g o o d s sal es

       $(million)
 550
 500
 450

 400
 350

 300
 2500
       Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar    Mar
       1991   1992   1993   1994   1995   1996   1997   1998   1999   2000   2001   2002   2003

                                                                                                  5
Step 1: Using Indexes
Indexes show how prices have changed over time.
They show the percentage increase in prices since
a base period. The index for the base period is
usually 1000.
An index of 1150 shows that prices have increased
15 percent since the base period.
You can use indexes to ‘deflate’ time series data
which contains dollar values.
Statistics New Zealand indexes include:
Consumers Price Index     Labour Cost Index
Food Price Index          Farm Expenses Price Index   6
Consumers Price Index
• The Consumers Price Index (CPI)
  measures the change in prices of a
  specific basket of goods and services in
  New Zealand.
• For retail sales of clothing this is an
  appropriate index to use as clothing is
  included in the ‘basket’ of goods priced.
• Open the CPI worksheet and copy the
  series into the next column of the clothing
  worksheet.
  Look at the CPI data. Which is the base period? How
  do you know?                                          7
If the value of sales from clothing shops are
increasing over time there several possible
reasons:
 • Prices have increased because of inflation
 • The number of people in the population is growing
   so there are more possible customers needing
   clothes
 • Sales are actually increasing because people are
   buying more clothing
 • Something else?


To help find out if total sales are increasing
because of inflation we can turn the sales into
constant 1999 dollars using the value of the CPI
for each year.                                  8
Constant dollars
The present base period for the Consumers
Price Index (CPI) is 1999.
Assume that the CPI now is 1150.
  In 1999, $100 could buy the same amount as:

     1150
          100 $115           can buy now
     1000
    Now, $100 can buy the same amount as:

     1000
          100 $86.96         could buy in 1999
     1150
                                                 9
Calculate your deflated value




                                          We will
                                          use
                                          constant
                                          1999
                                          dollars
                           Use this
                                          for the
                           formula to
                                          rest of
                           calculate
                                          this
                           the value in
                                          exercise.
                           constant
                           1999
                           dollars.             10
Step 2: Deciding on an appropriate
model
 • Some data follows an additive model
   where:
   Data value = trend + seasonal +
   irregular
 • Other data follows a multiplicative
   model where:
   Data value = trend x seasonal x
   irregular

                                         11
Additive
When the size of the
                                  Series for which an additive series is
seasonal                                      appropriate
                       250
component stays        200
about the same as      150

the trend changes,     100


then an additive       50

                        0
method is usually      Mar 1991       Mar 1992        Mar 1993    Mar 1994

best.                                  Original series
                                       Trend series




                                                                             12
Multiplicative
                          Series for which a multiplicative model is appropriate
When the size of
                   300
the seasonal       250

component          200
                   150
increases as the   100
trend increases,    50

then a              0
                   Mar 1991       Mar 1992            Mar 1993      Mar 1994
multiplicative                      Original series
method may be                       Trend series

better.


                                                                                   13
Look again at the graph below
• Which model seems more suitable?
In the previous PowerPoint we used an additive
  model and we will do this also for this data
(An example of using a multiplicative model is
  given at the end of the third presentation).

                      C l o t hi ng a nd s o f t g o o d s r e t a i l t r a d e


          $million
   550
   500
   450
   400
   350
   300
   250
      0Mar      Mar     Mar   Mar    Mar    Mar    Mar    Mar    Mar    Mar   Mar   Mar   Mar
         1991   1992   1993   1994   1995   1996   1997   1998   1999 2000    2001 2002 2003
                                                                                                14
Step 3: Analyse the data
• Do the spreadsheet analysis as far as
  calculating the seasonally adjusted
  data.
• Use the constant dollar values for your
  analysis.



                                            15
Your spreadsheet should look like this:




                                          16
Step 4: Describe and justify your
model for the trend

• Try some different models for the
  moving average.
• Decide which one will give a sensible
  forecast.



                                          17
Trend
  Describe what you can see.
                                                                  y = -0.0864x + 381.6
                            Clothing and softgoods sales
           $(m illion)
     500                                                                   Clothing
                                                                           1999
     450                                                                   dollars
                                                                           Estimated
     400                                                                   trend
     350                                                                   Linear
                                                                           (Estimated
     300                                                                   trend)
     250
       0
        Mar          Mar    Mar    Mar     Mar     Mar      Mar
       1991         1993   1995   1997    1999    2001     2003




  Does this linear trend model look sensible?

                                                                                         18
• Many trends cannot be modelled by a single
  straight line
• A quadratic model may be tempting…
                                                        y = 0.1097x 2 - 5.572x + 431.66
                           Clothing and softgoods sales
         $(m illion)
   500                                                                     Clothing
                                                                           1999
   450                                                                     dollars
                                                                           Estimated
   400                                                                     trend
   350                                                                     Poly.
                                                                           (Estimated
   300                                                                     trend)
   2500
      Mar          Mar    Mar     Mar     Mar     Mar        Mar
     1991         1993   1995    1997    1999    2001       2003



    But is it realistic?
                                                                                          19
• Remember the shape of a parabola.
• Do you think that sales (in constant dollars)
  are going to grow at that rate?

                                                       y = 0.1097x 2 - 5.572x + 431.66
                           Clothing and softgoods sales
      $(m illion)
   600                                                                     Clothing
   550                                                                     1999
   500                                                                     dollars
                                                                           Estimated
   450                                                                     trend
   400
                                                                           Poly.
   350                                                                     (Estimated
   300                                                                     trend)
   2500
      Mar    Mar     Mar    Mar    Mar    Mar    Mar
     1991   1993    1995   1997   1999   2001   2003




                                                                                         20
• An option is to use a linear model over the
  trend at the end of the series.
• This is likely to give the most realistic forecast.

            Clothing and softgoods sales from 1998
                                           y = 4.3368x + 335.87
         $(million)
      500                                              Clothing
                                                       1999
      450                                              dollars
      400                                              Estimated
      350                                              trend

      300
                                                       Linear
      250
        0                                              (Estimated
                                                       trend)
         Mar   Mar     Mar   Mar     Mar   Mar
        1998   1999   2000   2001   2002   2003

                                                                    21
Step 5: Describing the seasonal
component
• A graph can help you to see the patterns more
  clearly.




                                             22
Seasonal sales patterns
         $(m illion)
 50


  0
   Mar 1991              Mar 1995       Mar 1999   Mar 2003



 -50




Describe the patterns you can see.
You can also identify amounts easily from the
graph.
                                                              23
Step 6: Analysing the irregular
component
• There is always random variation in a
  time series, the irregular component.
• When a very unusual event happens it
  may cause a spike in the data, called an
  outlier.
• This can distort the trend and seasonal
  component values.
• The larger the spike the more distortion.
• It is useful to calculate the irregular
  component and look for outliers.            24
Subtract the values in the ‘Seasonal’
column from the ‘Seasonal and Irregular’
column. A graph is often useful.




                                           25
Outliers
  Highlight the date and irregular columns for
  the graph.
                            Irregular Com ponent
    $ m i l l i on 19 9 9

         15

        10

          5

         0
          Mar 1991            Mar 1995       Mar 1999   Mar 2003
         -5

       -10



   Both the pattern of the irregular component
   and any extreme values are worth
   commenting on.                                                  26
This is not the end!

Continue the analysis and
 write a report on retail
     clothing sales.
Some ideas are given in the
   next presentation,
       Reporting.


                              27

Contenu connexe

Tendances

Presentation 3
Presentation 3Presentation 3
Presentation 3uliana8
 
Lesson08_new
Lesson08_newLesson08_new
Lesson08_newshengvn
 
Time Series
Time SeriesTime Series
Time Seriesyush313
 
Classical decomposition
Classical decompositionClassical decomposition
Classical decompositionAzzuriey Ahmad
 
Deseasonalizing Forecasts
Deseasonalizing ForecastsDeseasonalizing Forecasts
Deseasonalizing Forecastsahmad bassiouny
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisChandra Kodituwakku
 
Lesson08_static11
Lesson08_static11Lesson08_static11
Lesson08_static11thangv
 
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...Simplilearn
 
Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
Demand forecasting by time series analysis
Demand forecasting by time series analysisDemand forecasting by time series analysis
Demand forecasting by time series analysisSunny Gandhi
 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingMaruthi Nataraj K
 

Tendances (20)

Presentation 3
Presentation 3Presentation 3
Presentation 3
 
Lesson08_new
Lesson08_newLesson08_new
Lesson08_new
 
1634 time series and trend analysis
1634 time series and trend analysis1634 time series and trend analysis
1634 time series and trend analysis
 
Time Series
Time SeriesTime Series
Time Series
 
Classical decomposition
Classical decompositionClassical decomposition
Classical decomposition
 
Deseasonalizing Forecasts
Deseasonalizing ForecastsDeseasonalizing Forecasts
Deseasonalizing Forecasts
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysis
 
Forecasting
ForecastingForecasting
Forecasting
 
Time Series Analysis Ravi
Time Series Analysis RaviTime Series Analysis Ravi
Time Series Analysis Ravi
 
Lesson08_static11
Lesson08_static11Lesson08_static11
Lesson08_static11
 
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
 
Time series mnr
Time series mnrTime series mnr
Time series mnr
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
 
time series analysis
time series analysistime series analysis
time series analysis
 
Demand forecasting by time series analysis
Demand forecasting by time series analysisDemand forecasting by time series analysis
Demand forecasting by time series analysis
 
Forcast2
Forcast2Forcast2
Forcast2
 
Time series
Time seriesTime series
Time series
 
Time Series Decomposition
Time Series DecompositionTime Series Decomposition
Time Series Decomposition
 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and Forecasting
 
Time series slideshare
Time series slideshareTime series slideshare
Time series slideshare
 

En vedette

En vedette (6)

Time series
Time seriesTime series
Time series
 
Time series Forecasting
Time series ForecastingTime series Forecasting
Time series Forecasting
 
Time series
Time seriesTime series
Time series
 
Time Series Analysis: Theory and Practice
Time Series Analysis: Theory and PracticeTime Series Analysis: Theory and Practice
Time Series Analysis: Theory and Practice
 
Time Series Analysis
Time Series AnalysisTime Series Analysis
Time Series Analysis
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 

Similaire à Analysis of time series

Uses of consumer price index number
Uses of consumer price index numberUses of consumer price index number
Uses of consumer price index numberNadeem Uddin
 
Assumptions: Check yo'self before you wreck yourself
Assumptions: Check yo'self before you wreck yourselfAssumptions: Check yo'self before you wreck yourself
Assumptions: Check yo'self before you wreck yourselfErin Shellman
 
Index Numbers Lecture#10 1.5.23.pptx
Index Numbers Lecture#10 1.5.23.pptxIndex Numbers Lecture#10 1.5.23.pptx
Index Numbers Lecture#10 1.5.23.pptxssuserd5965e
 
Break-Even-Analysis.pptx
Break-Even-Analysis.pptxBreak-Even-Analysis.pptx
Break-Even-Analysis.pptxMdSabujHossen2
 
Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02MD ASADUZZAMAN
 
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
 

Similaire à Analysis of time series (8)

Financial modeling for startups
Financial modeling for startupsFinancial modeling for startups
Financial modeling for startups
 
Uses of consumer price index number
Uses of consumer price index numberUses of consumer price index number
Uses of consumer price index number
 
Assumptions: Check yo'self before you wreck yourself
Assumptions: Check yo'self before you wreck yourselfAssumptions: Check yo'self before you wreck yourself
Assumptions: Check yo'self before you wreck yourself
 
Index Numbers Lecture#10 1.5.23.pptx
Index Numbers Lecture#10 1.5.23.pptxIndex Numbers Lecture#10 1.5.23.pptx
Index Numbers Lecture#10 1.5.23.pptx
 
Break-Even-Analysis.pptx
Break-Even-Analysis.pptxBreak-Even-Analysis.pptx
Break-Even-Analysis.pptx
 
Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02
 
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
 
Financial modeling for startups
Financial modeling for startupsFinancial modeling for startups
Financial modeling for startups
 

Dernier

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
#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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 

Dernier (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
#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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 

Analysis of time series

  • 1. Analysis of Time Series For AS90641 Part 2 Extra for Experts September 2005 Created by Polly Stuart 1
  • 2. Contents • This resource is designed to suggest some ways students could meet the requirements of AS 90641. • It shows some common practices in New Zealand schools and suggests other simplified statistical methods. • The suggested methods do not necessarily reflect practices of Statistics New Zealand. 2
  • 3. Aims • This presentation (and the next) takes you through some extra types of analysis you could try for time series data. • It also makes suggestions for writing your report • You will need to open the spreadsheet: Example sales.xls • Choose the worksheet labeled Clothing. 3
  • 4. Beginnings • You have already learned a basic analysis of a time series and how to isolate some components. • We are now going to do a more complex analysis. • Before doing any analysis you need to: – Graph the raw data – Identify the components of the data – Decide on the best method of analysis. 4
  • 5. Look at : the trend the seasonal component the irregular component C l o t hi ng and so f t g o o d s sal es $(million) 550 500 450 400 350 300 2500 Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 5
  • 6. Step 1: Using Indexes Indexes show how prices have changed over time. They show the percentage increase in prices since a base period. The index for the base period is usually 1000. An index of 1150 shows that prices have increased 15 percent since the base period. You can use indexes to ‘deflate’ time series data which contains dollar values. Statistics New Zealand indexes include: Consumers Price Index Labour Cost Index Food Price Index Farm Expenses Price Index 6
  • 7. Consumers Price Index • The Consumers Price Index (CPI) measures the change in prices of a specific basket of goods and services in New Zealand. • For retail sales of clothing this is an appropriate index to use as clothing is included in the ‘basket’ of goods priced. • Open the CPI worksheet and copy the series into the next column of the clothing worksheet. Look at the CPI data. Which is the base period? How do you know? 7
  • 8. If the value of sales from clothing shops are increasing over time there several possible reasons: • Prices have increased because of inflation • The number of people in the population is growing so there are more possible customers needing clothes • Sales are actually increasing because people are buying more clothing • Something else? To help find out if total sales are increasing because of inflation we can turn the sales into constant 1999 dollars using the value of the CPI for each year. 8
  • 9. Constant dollars The present base period for the Consumers Price Index (CPI) is 1999. Assume that the CPI now is 1150. In 1999, $100 could buy the same amount as: 1150 100 $115 can buy now 1000 Now, $100 can buy the same amount as: 1000 100 $86.96 could buy in 1999 1150 9
  • 10. Calculate your deflated value We will use constant 1999 dollars Use this for the formula to rest of calculate this the value in exercise. constant 1999 dollars. 10
  • 11. Step 2: Deciding on an appropriate model • Some data follows an additive model where: Data value = trend + seasonal + irregular • Other data follows a multiplicative model where: Data value = trend x seasonal x irregular 11
  • 12. Additive When the size of the Series for which an additive series is seasonal appropriate 250 component stays 200 about the same as 150 the trend changes, 100 then an additive 50 0 method is usually Mar 1991 Mar 1992 Mar 1993 Mar 1994 best. Original series Trend series 12
  • 13. Multiplicative Series for which a multiplicative model is appropriate When the size of 300 the seasonal 250 component 200 150 increases as the 100 trend increases, 50 then a 0 Mar 1991 Mar 1992 Mar 1993 Mar 1994 multiplicative Original series method may be Trend series better. 13
  • 14. Look again at the graph below • Which model seems more suitable? In the previous PowerPoint we used an additive model and we will do this also for this data (An example of using a multiplicative model is given at the end of the third presentation). C l o t hi ng a nd s o f t g o o d s r e t a i l t r a d e $million 550 500 450 400 350 300 250 0Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 14
  • 15. Step 3: Analyse the data • Do the spreadsheet analysis as far as calculating the seasonally adjusted data. • Use the constant dollar values for your analysis. 15
  • 16. Your spreadsheet should look like this: 16
  • 17. Step 4: Describe and justify your model for the trend • Try some different models for the moving average. • Decide which one will give a sensible forecast. 17
  • 18. Trend Describe what you can see. y = -0.0864x + 381.6 Clothing and softgoods sales $(m illion) 500 Clothing 1999 450 dollars Estimated 400 trend 350 Linear (Estimated 300 trend) 250 0 Mar Mar Mar Mar Mar Mar Mar 1991 1993 1995 1997 1999 2001 2003 Does this linear trend model look sensible? 18
  • 19. • Many trends cannot be modelled by a single straight line • A quadratic model may be tempting… y = 0.1097x 2 - 5.572x + 431.66 Clothing and softgoods sales $(m illion) 500 Clothing 1999 450 dollars Estimated 400 trend 350 Poly. (Estimated 300 trend) 2500 Mar Mar Mar Mar Mar Mar Mar 1991 1993 1995 1997 1999 2001 2003 But is it realistic? 19
  • 20. • Remember the shape of a parabola. • Do you think that sales (in constant dollars) are going to grow at that rate? y = 0.1097x 2 - 5.572x + 431.66 Clothing and softgoods sales $(m illion) 600 Clothing 550 1999 500 dollars Estimated 450 trend 400 Poly. 350 (Estimated 300 trend) 2500 Mar Mar Mar Mar Mar Mar Mar 1991 1993 1995 1997 1999 2001 2003 20
  • 21. • An option is to use a linear model over the trend at the end of the series. • This is likely to give the most realistic forecast. Clothing and softgoods sales from 1998 y = 4.3368x + 335.87 $(million) 500 Clothing 1999 450 dollars 400 Estimated 350 trend 300 Linear 250 0 (Estimated trend) Mar Mar Mar Mar Mar Mar 1998 1999 2000 2001 2002 2003 21
  • 22. Step 5: Describing the seasonal component • A graph can help you to see the patterns more clearly. 22
  • 23. Seasonal sales patterns $(m illion) 50 0 Mar 1991 Mar 1995 Mar 1999 Mar 2003 -50 Describe the patterns you can see. You can also identify amounts easily from the graph. 23
  • 24. Step 6: Analysing the irregular component • There is always random variation in a time series, the irregular component. • When a very unusual event happens it may cause a spike in the data, called an outlier. • This can distort the trend and seasonal component values. • The larger the spike the more distortion. • It is useful to calculate the irregular component and look for outliers. 24
  • 25. Subtract the values in the ‘Seasonal’ column from the ‘Seasonal and Irregular’ column. A graph is often useful. 25
  • 26. Outliers Highlight the date and irregular columns for the graph. Irregular Com ponent $ m i l l i on 19 9 9 15 10 5 0 Mar 1991 Mar 1995 Mar 1999 Mar 2003 -5 -10 Both the pattern of the irregular component and any extreme values are worth commenting on. 26
  • 27. This is not the end! Continue the analysis and write a report on retail clothing sales. Some ideas are given in the next presentation, Reporting. 27