Time Series Analysis -- An Introduction -- AMS 586 Week 2: 2/4,6/2014.

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Forecasting.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
STATISTICS Joint and Conditional Distributions
STATISTICS HYPOTHESES TEST (I)
STATISTICS Univariate Distributions
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Variance Estimation in Complex Surveys Third International Conference on Establishment Surveys Montreal, Quebec June 18-21, 2007 Presented by: Kirk Wolter,
UNITED NATIONS Shipment Details Report – January 2006.
SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
CALENDAR.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
Marian Scott SAGES, March 2009
1 Correlation and Simple Regression. 2 Introduction Interested in the relationships between variables. What will happen to one variable if another is.
Time-series analysis.
Solve Multi-step Equations
Simple Linear Regression 1. review of least squares procedure 2
Autoregressive Integrated Moving Average (ARIMA) models
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Stationary Time Series
Contributed by National Academy of Statistical Administration
Module 4. Forecasting MGS3100.
PP Test Review Sections 6-1 to 6-6
EU Market Situation for Eggs and Poultry Management Committee 21 June 2012.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Copyright © 2013, 2009, 2006 Pearson Education, Inc.
Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1 Section 5.5 Dividing Polynomials Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
Subtraction: Adding UP
Rational Functions and Models
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Experimental Design and Analysis of Variance
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Simple Linear Regression Analysis
Multiple Regression and Model Building
Energy Generation in Mitochondria and Chlorplasts
16. Mean Square Estimation
9. Two Functions of Two Random Variables
Probabilistic Reasoning over Time
DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Time Series Building 1. Model Identification
Time-Series Analysis and Forecasting – Part III
STAT 497 APPLIED TIME SERIES ANALYSIS
Analyzing stochastic time series Tutorial
© 2003 Prentice-Hall, Inc.Chap 12-1 Business Statistics: A First Course (3 rd Edition) Chapter 12 Time-Series Forecasting.
Lecture 4 Time-Series Forecasting
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
Time Series “The Art of Forecasting”. What Is Forecasting? Process of predicting a future event Underlying basis of all business decisions –Production.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
Introduction to Time Series Analysis
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Component Factors of the Time-Series Model Smoothing of Data Series  Moving Averages  Exponential.
Components of Time Series Su, Chapter 2, section II.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
“The Art of Forecasting”
Presentation transcript:

Time Series Analysis -- An Introduction -- AMS 586 Week 2: 2/4,6/2014

Objectives of time series analysis Data description Data interpretation Modeling Control Prediction & Forecasting

Time-Series Data Numerical data obtained at regular time intervals The time intervals can be annually, quarterly, monthly, weekly, daily, hourly, etc. Example: Year: 2005 2006 2007 2008 2009 Sales: 75.3 74.2 78.5 79.7 80.2

Time Plot A time-series plot (time plot) is a two-dimensional plot of time series data the vertical axis measures the variable of interest the horizontal axis corresponds to the time periods

Time-Series Components Trend Component Seasonal Component Cyclical Component Irregular /Random Component Regular periodic fluctuations, usually within a 12-month period Repeating swings or movements over more than one year Erratic or residual fluctuations Overall, persistent, long-term movement

Trend Component Long-run increase or decrease over time (overall upward or downward movement) Data taken over a long period of time Sales Upward trend Time

Trend Component Trend can be upward or downward (continued) Trend can be upward or downward Trend can be linear or non-linear Sales Sales Time Time Downward linear trend Upward nonlinear trend

Seasonal Component Short-term regular wave-like patterns Observed within 1 year Often monthly or quarterly Sales Summer Winter Summer Fall Winter Spring Fall Spring Time (Quarterly)

Cyclical Component Long-term wave-like patterns Regularly occur but may vary in length Often measured peak to peak or trough to trough 1 Cycle Sales Year

Irregular/Random Component Unpredictable, random, “residual” fluctuations “Noise” in the time series The truly irregular component may not be estimated – however, the more predictable random component can be estimated – and is usually the emphasis of time series analysis via the usual stationary time series models such as AR, MA, ARMA etc after we filter out the trend, seasonal and other cyclical components

Two simplified time series models In the following, we present two classes of simplified time series models Non-seasonal Model with Trend Classical Decomposition Model with Trend and Seasonal Components The usual procedure is to first filter out the trend and seasonal component – then fit the random component with a stationary time series model to capture the correlation structure in the time series If necessary, the entire time series (with seasonal, trend, and random components) can be re-analyzed for better estimation, modeling and prediction.

Non-seasonal Models with Trend Stochastic process random noise Xt = mt + Yt

Classical Decomposition Model with Trend and Season seasonal component trend Stochastic process random noise Xt = mt + st + Yt

Non-seasonal Models with Trend There are two basic methods for estimating/eliminating trend: Method 1: Trend estimation (first we estimate the trend either by moving average smoothing or regression analysis – then we remove it) Method 2: Trend elimination by differencing

Method 1: Trend Estimation by Regression Analysis Estimate a trend line using regression analysis Use time (t) as the independent variable: Year Time Period (t) Sales (X) 2004 2005 2006 2007 2008 2009 1 2 3 4 5 20 40 30 50 70 65 In least squares linear, non-linear, and exponential modeling, time periods are numbered starting with 0 and increasing by 1 for each time period.

Least Squares Regression Without knowing the exact time series random error correlation structure, one often resorts to the ordinary least squares regression method, not optimal but practical. The estimated linear trend equation is: Year Time Period (t) Sales (X) 2004 2005 2006 2007 2008 2009 1 2 3 4 5 20 40 30 50 70 65

Linear Trend Forecasting One can even performs trend forecasting at this point – but bear in mind that the forecasting may not be optimal. Forecast for time period 6 (2010): Year Time Period (t) Sales (X) 2004 2005 2006 2007 2008 2009 2010 1 2 3 4 5 6 20 40 30 50 70 65 ??

Method 2: Trend Elimination by Differencing

Trend Elimination by Differencing If the operator ∇ is applied to a linear trend function: Then we obtain the constant function: In the same way any polynomial trend of degree k can be removed by the operator:

Classical Decomposition Model (Seasonal Model) with trend and season where

Classical Decomposition Model Method 1: Filtering: First we estimate and remove the trend component by using moving average method; then we estimate and remove the seasonal component by using suitable periodic averages. Method 2: Differencing: First we remove the seasonal component by differencing. We then remove the trend by differencing as well. Method 3: Joint-fit method: Alternatively, we can fit a combined polynomial linear regression and harmonic functions to estimate and then remove the trend and seasonal component simultaneously as the following:

Method 1: Filtering (1). We first estimate the trend by the moving average: If d = 2q (even), we use: If d = 2q+1 (odd), we use: (2). Then we estimate the seasonal component by using the average , k = 1, …, d, of the de-trended data: To ensure: we further subtract the mean of (3). One can also re-analyze the trend from the de-seasonalized data in order to obtain a polynomial linear regression equation for modeling and prediction purposes.

Method 2: Differencing Define the lag-d differencing operator as: We can transform a seasonal model to a non-seasonal model: Differencing method can then be further applied to eliminate the trend component.

Method 3: Joint Modeling As shown before, one can also fit a joint model to analyze both components simultaneously:

Detrended series P. J. Brockwell, R. A. Davis, Introduction to Time Series and Forecasting, Springer, 1987

Time series – Realization of a stochastic process {Xt} is a stochastic time series if each component takes a value according to a certain probability distribution function. A time series model specifies the joint distribution of the sequence of random variables.

White noise - example of a time series model

Gaussian white noise

Stochastic properties of the process STATIONARITY Once we have removed the seasonal and trend components of a time series (as in the classical decomposition model), the remainder (random) component – the residual, can often be modeled by a stationary time series. * System does not change its properties in time * Well-developed analytical methods of signal analysis and stochastic processes

WHEN A STOCHASTIC PROCESS IS STATIONARY? {Xt} is a strictly stationary time series if f(X1,...,Xn)= f(X1+h,...,Xn+h), where n1, h – integer Properties: * The random variables are identically distributed. * An idependent identically distributed (iid) sequence is strictly stationary.

Weak stationarity {Xt} is a weakly stationary time series if EXt =  and Var(Xt) = 2 are independent of time t Cov(Xs, Xr) depends on (s-r) only, independent of t

Autocorrelation function (ACF)

ACF for Gaussian WN

Xt  1Xt-1 ...  pXt-p= Zt + 1Zt-1 +...+ pZt-p ARMA models Time series is an ARMA(p,q) process if Xt is stationary and if for every t: Xt  1Xt-1 ...  pXt-p= Zt + 1Zt-1 +...+ pZt-p where Zt represents white noise with mean 0 and variance 2 The Left side of the equation represents the Autoregressive AR(p) part, and the right side the Moving Average MA(q) component.

Examples

Exponential decay of ACF MA(1) sample ACF AR(1)

More examples of ACF

Reference Box, George and Jenkins, Gwilym (1970) Time series analysis: Forecasting and control, San Francisco: Holden-Day. Brockwell, Peter J. and Davis, Richard A. (1991). Time Series: Theory and Methods. Springer-Verlag. Brockwell, Peter J. and Davis, Richard A. (1987, 2002). Introduction to Time Series and Forecasting. Springer. We also thank various on-line open resources for time series analysis.