SADNA – Ad Auction lecture #3 Time Series Yishay Mansour Mariano Schain.

Slides:



Advertisements
Similar presentations
Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Advertisements

1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 5th Ed. Chapter 15: Analyzing and.
Exponential Smoothing Methods
Time Series Analysis Autocorrelation Naive & Simple Averaging
Moving Averages Ft(1) is average of last m observations
Forecasting 5 June Introduction What: Forecasting Techniques Where: Determine Trends Why: Make better decisions.
Analyzing and Forecasting Time Series Data
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
MOVING AVERAGES AND EXPONENTIAL SMOOTHING
Cycles and Exponential Smoothing Models Materials for this lecture Lecture 4 Cycles.XLS Lecture 4 Exponential Smoothing.XLS Read Chapter 15 pages
T T18-05 Trend Adjusted Exponential Smoothing Forecast Purpose Allows the analyst to create and analyze the "Trend Adjusted Exponential Smoothing"
Prediction and model selection
CHAPTER 4 MOVING AVERAGES AND SMOOTHING METHODS (Page 107)
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Statistical Forecasting Models
Business Forecasting Chapter 5 Forecasting with Smoothing Techniques.
Slides 13b: Time-Series Models; Measuring Forecast Error
MOVING AVERAGES AND EXPONENTIAL SMOOTHING. Forecasting methods: –Averaging methods. Equally weighted observations –Exponential Smoothing methods. Unequal.
CHAPTER 18 Models for Time Series and Forecasting
Time Series Forecasting– Part I
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.
Winter’s Exponential smoothing
Chapter 2 Chapter 2 Forecasting McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall7-1 Chapter 7: Forecasting.
The Importance of Forecasting in POM
Time-Series Analysis and Forecasting – Part V To read at home.
Linear Trend Lines Y t = b 0 + b 1 X t Where Y t is the dependent variable being forecasted X t is the independent variable being used to explain Y. In.
SLR w SI = Simple Linear Regression with Seasonality Indices
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Operations Management
3-1Forecasting William J. Stevenson Operations Management 8 th edition.
3-1Forecasting. 3-2Forecasting FORECAST:  A statement about the future value of a variable of interest such as demand.  Forecasts affect decisions and.
Holt’s exponential smoothing
DSc 3120 Generalized Modeling Techniques with Applications Part II. Forecasting.
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.
1 DSCI 3023 Forecasting Plays an important role in many industries –marketing –financial planning –production control Forecasts are not to be thought of.
DAVIS AQUILANO CHASE PowerPoint Presentation by Charlie Cook F O U R T H E D I T I O N Forecasting © The McGraw-Hill Companies, Inc., 2003 chapter 9.
Time Series Analysis and Forecasting
HW1 Q5: One Possible Approach First, let the population grow At some point, start harvesting the growth –Annual catch = annual growth In year 30, catch.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 5: Exponential Smoothing (Ch. 8) Material.
Lesson 4 -Part A Forecasting Quantitative Approaches to Forecasting Components of a Time Series Measures of Forecast Accuracy Smoothing Methods Trend Projection.
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
4-1 Operations Management Forecasting Chapter 4 - Part 2.
Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
Dynamic Models, Autocorrelation and Forecasting ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
MGS3100_03.ppt/Feb 11, 2016/Page 1 Georgia State University - Confidential MGS 3100 Business Analysis Time Series Forecasting Feb 11, 2016.
Cycles and Exponential Smoothing Models Materials for this lecture Lecture 10 Cycles.XLS Lecture 10 Exponential Smoothing.XLSX Read Chapter 15 pages
1 1 Chapter 6 Forecasting n Quantitative Approaches to Forecasting n The Components of a Time Series n Measures of Forecast Accuracy n Using Smoothing.
3-1Forecasting CHAPTER 3 Forecasting McGraw-Hill/Irwin Operations Management, Eighth Edition, by William J. Stevenson Copyright © 2005 by The McGraw-Hill.
1-1 Logistics Management LSM 730 Dr. Khurrum S. Mughal Lecture 22.
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.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 3 Forecasting.
Demand Management and Forecasting Chapter 11 Portions Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Forecast 2 Linear trend Forecast error Seasonal demand.
Analysis of financial data Anders Lundquist Spring 2010.
Chapter 15 Forecasting. Forecasting Methods n Forecasting methods can be classified as qualitative or quantitative. n Such methods are appropriate when.
Statistics 350 Lecture 2. Today Last Day: Section Today: Section 1.6 Homework #1: Chapter 1 Problems (page 33-38): 2, 5, 6, 7, 22, 26, 33, 34,
3-1Forecasting Weighted Moving Average Formula w t = weight given to time period “t” occurrence (weights must add to one) The formula for the moving average.
Chapter 3 Lecture 4 Forecasting. Time Series is a sequence of measurements over time, usually obtained at equally spaced intervals – Daily – Monthly –
T T18-02 Weighted Moving Average Forecast Purpose Allows the analyst to create and analyze the "Weighted Moving Average" forecast for up to 5.
Short-Term Forecasting
Forecasting techniques
Cycles and Exponential Smoothing Models
Forecasting - Introduction
Forecasting Plays an important role in many industries
Presentation transcript:

SADNA – Ad Auction lecture #3 Time Series Yishay Mansour Mariano Schain

Pg-dvd Pg-null null-dvd null-null

Bounded Window Parameter W Take the average of the last W samples – Smooth the samples – Larger W – smoother outcome – Smaller W – better following recent trends Computationally – Requires keeping last W samples – Simple update: S t+1  S t - y t-W /W + y t /W

Exponential Weight Moving average Parameter 0 < α < 1 Formula: S t+1  αy t + (1- α)S t Effect of α: – Smaller α: larger weight to history – Large α: short reaction to trend – Effective window size: 1/ α Why “exponential”: S t+1 = α ∑ (1- α) j y t-j

Discussion Setting up the parameters: – α = depends on the stability of the data Can be found by minimizing objective function R t = y t – S t Minimize MSE = min α ∑ R t 2 – why MSE ? Note S t+1 = S t + α R t – S 1 = undefined (need to initialize somehow) Problems: – Trend

Double Exponential Smoothing Handles trend Parameters: α, γ Formula: S t+1  αy t + (1- α)(S t + b t ) equivalent: S t+1  S t + α(y t - (S t + b t )) b t+1  γ (S t+1 - S t ) + (1- γ) b t Motivation – S t tracks the smoothed point – b t tracks the smoothed slope Forecasting: F t+1 = S t + b t

Double Exponential Smoothing Simple Example: – y t = t – Then: b t = 1 and S t =t-1 Residual Analysis – R t = y t – S t – Again S t+1 = S t + α R t Why not: b t+1  γ (y t – y t-1 ) + (1- γ) b t

Triple Exponential Smoothing Handles seasonality of cycle L – (Holt-Winters) Parameters: α, β, γ Formula: S t+1  αy t /I t + (1- α)(S t + b t ) b t+1  γ (S t+1 - S t ) + (1- γ) b t I t+1  β y t / S t + (1- β)I t-L F t+1  (S t + b t ) I t-L

Triple Exponential Smoothing Average and trend as before I t should be cyclic – cycle size L (how to find it?) – measures that ratio of current value to average. Illustrative: I=2 I=1 I=0.5 I=1 I=2

Linear Regression: Basics Simple model to fit the data Basic example a 1 X 1 + … + a p X p Goal: minimize square error (MSE) ∑ t (a 1 X 1 t + … + a p X p t – Y t ) 2 – The constants are the X’s and Y’s – We are solving for the coefficients: a’s

Linear Regression What counts as linear ?! – a 0 + a 1 x – a 0 + a 1 x + a 2 x 2 + a 3 x 3 – a 1 x 1 + a 2 x 2 + a 3 x 1 x 2 + a 4 x a 5 x 2 2 – a 1 log x 1 + a 2 exp(x 2 ) – a 0 + a 1 a 0 x 1 – a + x/a

Linear Regression: Computation Simple case: ax + b Minimize ∑ t (a x t + b – y t ) 2 Need to solve for a and b ∑ t 2 (a x t + b – y t ) x t = 0 ∑ t 2 (a x t + b – y t ) =0 The equations: a*avg(x 2 ) +b*avg(x) = avg (xy) a * avg(x) + b = avg(y) The Solution

Non-Linear Regression We need to optimize the MSE Now the derivatives are not linear – in the a’s Need a more complicate solver There are software out there that do it – non-linear fitting procedures

Autoregressive Model (AR) A model of the current value – given previous observed values Model – X t = c 0 + a 1 X t-1 + a 2 X t-2 + … + a p X t-p + ε t usually ∑ a i < 1 c 0 = (1- ∑ a i ) E[X] – Need to solve for the coefficients – Simple linear regression

Moving Average Model (MA) A model of the current value – given previous unobserved residuals Model: – X t = μ + ε t - b 1 ε t-1 - b 2 ε t-2 - … - b q ε t-q This is a linear regression in the residuals ε’s PROBLEM: we do not observe the residuals directly – non-linear fitting procedures

ARIMA(p,q) Combines – an autoregressive model (AR) p values back – a moving average (MA) q values back Model: X t = c 0 + a 1 X t-1 + a 2 X t-2 + … + a p X t-p + ε t - b 1 ε t-1 - b 2 ε t-2 - … - b q ε t-q

Detecting change When is there a shift Consider the Residuals – R t = y t – F t Stable residuals  No change Much higher residuals  maybe change In the simulation: detect a burst

How can you use this Understand the concepts Understand the alternatives There is enough software you can use – you will need to select the model – specify the input – understand what the output means If you use software, remember: – document which software you use – document where you use it