Data Analytics CMIS Short Course part II Extra Material: Forecasting Sam Buttrey December 2015.

Slides:



Advertisements
Similar presentations
A.S. 3.8 INTERNAL 4 CREDITS Time Series. Time Series Overview Investigate Time Series Data A.S. 3.8 AS91580 Achieve Students need to tell the story of.
Advertisements

DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Decomposition Method.
Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Economics 20 - Prof. Anderson1 Stationary Stochastic Process A stochastic process is stationary if for every collection of time indices 1 ≤ t 1 < …< t.
STAT 497 APPLIED TIME SERIES ANALYSIS
Stationary Stochastic Process
Chapter 7 Demand Forecasting in a Supply Chain Forecasting -4 Adaptive Trend Adjusted Exponential Smoothing Ardavan Asef-Vaziri References: Supply Chain.
Exponential Smoothing Methods
Time Series Analysis Autocorrelation Naive & Simple Averaging
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” behaviour.
Moving Averages Ft(1) is average of last m observations
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
MOVING AVERAGES AND EXPONENTIAL SMOOTHING
Economics 20 - Prof. Anderson
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Data = Truth + Error A Paradigm for Any Data. Finding Truth in Forecasting 1.Smoothing: Truth can be “approximated” by averaging out data. 2.Standard.
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” beaviour.
Business Forecasting Chapter 5 Forecasting with Smoothing Techniques.
MOVING AVERAGES AND EXPONENTIAL SMOOTHING. Forecasting methods: –Averaging methods. Equally weighted observations –Exponential Smoothing methods. Unequal.
Fall, 2012 EMBA 512 Demand Forecasting Boise State University 1 Demand Forecasting.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.
Constant process Separate signal & noise Smooth the data: Backward smoother: At any give T, replace the observation yt by a combination of observations.
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
Winter’s Exponential smoothing
MS Production and Service Systems Operations Forecasting
STAT 497 LECTURE NOTES 7 FORECASTING.
Samuel H. Huang, Winter 2012 Basic Concepts and Constant Process Overview of demand forecasting Constant process –Average and moving average method –Exponential.
Forecasting and Statistical Process Control MBA Statistics COURSE #5.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Forecasting supply chain requirements
Holt’s exponential smoothing
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Time Series Forecasting Chapter 16.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Time Series Forecasting Chapter 13.
Time series data: each case represents a point in time. Each cell gives a value for each variable for each time period. Stationarity: Data are stationary.
Time Series 1.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 27 Time Series.
1 DSCI 3023 Forecasting Plays an important role in many industries –marketing –financial planning –production control Forecasts are not to be thought of.
Time Series Analysis and Forecasting
It’s About Time Mark Otto U. S. Fish and Wildlife Service.
Statistics and Modelling 3.1 Credits: 3 Internally Assessed.
INTERNAL ACHIEVEMENT STANDARD 3 CREDITS Time Series 1.
Time-Series Forecasting Overview Moving Averages Exponential Smoothing Seasonality.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 5: Exponential Smoothing (Ch. 8) Material.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
ECE-7000: Nonlinear Dynamical Systems 2. Linear tools and general considerations 2.1 Stationarity and sampling - In principle, the more a scientific measurement.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 14 l Time Series: Understanding Changes over Time.
Components of Time Series Su, Chapter 2, section II.
ISEN 315 Spring 2011 Dr. Gary Gaukler. Forecasting for Stationary Series A stationary time series has the form: D t =  +  t where  is a constant.
Times Series Forecasting and Index Numbers Chapter 16 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
Demand Management and Forecasting Chapter 11 Portions Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 7: Time Series Analysis and Forecasting 1 Priyantha.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 13 Time.
Chapter 11 – With Woodruff Modications Demand Management and Forecasting Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Chapter 3 Lecture 4 Forecasting. Time Series is a sequence of measurements over time, usually obtained at equally spaced intervals – Daily – Monthly –
Time Series Forecasting Trends and Seasons and Time Series Models PBS Chapters 13.1 and 13.2 © 2009 W.H. Freeman and Company.
Welcome to MM305 Unit 5 Seminar Dr. Bob Forecasting.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Analysis of Time Series
Time Series Analysis By Tyler Moore.
Statistics for Managers using Microsoft Excel 3rd Edition
Statistics Time Series
Exponential Smoothing
BUSINESS MATHEMATICS & STATISTICS.
Forecasting - Introduction
Chap 4: Exponential Smoothing
TIME SERIES MODELS – MOVING AVERAGES.
Presentation transcript:

Data Analytics CMIS Short Course part II Extra Material: Forecasting Sam Buttrey December 2015

Some Notes On Time Series Time Series data are collected over time and show time dependency We could include time as a covariate in a regular model, but usually its effect is non- linear (or periodic) A big branch of statistics handles data from time series Spatial data is different, though lots of varies in both both time and space

Two Approaches 1.Time domain: A process evolving over time: X 1, X 2, …, X t, … –Usually numeric rather than categorical –Usually assumed to be sampled regularly Many models assume stationarity: joint dist’n of X’s is unchanged over time and mixing: long-term dependence decays If that’s not so, we might transform our original series into a stationary one

Frequency Example 2.Frequency domain: characterize vibration signature (spectrum) –E.g. rotating machinery Find changes in spectrum that might indicate change in machinery health Identifying spectrum is tricky: adjacent frequencies similar… Represent data by Fourier series (sines, cosines) and select a subset –Shades of principal componenets

Exponential Smoothing Often our goal is to predict the next observation, or the next few, as accurately as possible Consider data with no trend, periodicity A natural predictor is a moving average, perhaps with weights decreasing as you go backwards in time: Predict X t+1 by a 1 X t + a 2 X t–1 + a 3 X t–2 … where the a’s add up to 1

Exponential Smoothing

Smoothing plan #1

Implementation Example: Nile data (class ts ) HoltWinters(Nile, beta=FALSE, gamma=FALSE) ses () {forecast} What do predictions look like? –If no new observations are available, we predict in a (horizontal) line with constant y

Modeling Trend Example: uspop Exponential smoothing always lags behind a series with trend or periodicity In “double exponential smoothing,” there are two smoothers:  for level L as before,  for trend T Set L 1 = X 1, T 1 = X 2 – X 1

Double Expo Smoothing

Periodicity For periodicity, keep a set of seasonal effects with one common smoother  E.g., after observing a December, smooth on (This obs – Est’d Dec. effect) Use that to update level and trend Then predict January with Lt+1 + Tt+1 + Est’d January effect… …And then go back and update your estimate of the December effect for next year – triple exponential smoothing

Holt Winters Seasonal Method Triple exponential smoothing is also called the “Holt-Winters” method Example: retail sales –Lots of data is periodic (esp. monthly, quarterly), so this approach is widely used –How to get SE’s for prediction? –So far, no formal modelling or inference!

Prediction Intervals Forecast library Hyndman describes fifteen sorts of expo. smoothing model –Trend: none, additive, additive damped, multiplicative, multiplicative damped –Seasonal: none, additive, multiplicative For some, given iid N(0,  2 ) noise, we can write down prediction intervals For others, simulate, say, 1000 paths and use that range…BUT

Prediction Intervals I, personally, am always wary of prediction intervals for time series They assume the model is more-or-less correct now, and that it will continue to be correct into the future And why should it be? Stuff happens –“Black swans”: Unpredictable, high impact, rationalized after the fact Ex.: hw() on the first 200 entries of “retail”

Final Thoughts Time series models fill an important niche, but lots of issues regarding real-life problems remain It’s important to include outside (“exogenous”) information Extensions: multivariate outcomes, categorical outcomes, irregular sampling, exogenous regressors… Predict at your own risk