Eric Ward Mark Scheuerell Eli Holmes

Slides:



Advertisements
Similar presentations
Time series modelling and statistical trends
Advertisements

Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Part II – TIME SERIES ANALYSIS C1 Introduction to TSA © Angel A. Juan & Carles Serrat - UPC 2007/2008 "If we could first know where we are, then whither.
1 BIS APPLICATION MANAGEMENT INFORMATION SYSTEM Advance forecasting Forecasting by identifying patterns in the past data Chapter outline: 1.Extrapolation.
STAT 497 APPLIED TIME SERIES ANALYSIS
Business Forecasting Chapter 10 The Box–Jenkins Method of Forecasting.
Time Series Analysis Autocorrelation Naive & Simple Averaging
Moving Averages Ft(1) is average of last m observations
Lecture 23: Tues., Dec. 2 Today: Thursday:
Time series analysis - lecture 5
X-12 ARIMA Eurostat, Luxembourg Seasonal Adjustment.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.
Elec471 Embedded Computer Systems Chapter 4, Probability and Statistics By Prof. Tim Johnson, PE Wentworth Institute of Technology Boston, MA Theory and.
© 2003 Prentice-Hall, Inc.Chap 12-1 Business Statistics: A First Course (3 rd Edition) Chapter 12 Time-Series Forecasting.
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
ANCOVA Lecture 9 Andrew Ainsworth. What is ANCOVA?
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
STAT 497 LECTURE NOTES 2.
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Chapter 17 Time Series Analysis and Forecasting ©.
Time series Decomposition Farideh Dehkordi-Vakil.
Week 11 Introduction A time series is an ordered sequence of observations. The ordering of the observations is usually through time, but may also be taken.
Introducing ITSM 2000 By: Amir Heshmaty Far. S EVERAL FUNCTION IN ITSM to analyze and display the properties of time series data to compute and display.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Component Factors of the Time-Series Model Smoothing of Data Series  Moving Averages  Exponential.
Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27.
In Stat-I, we described data by three different ways. Qualitative vs Quantitative Discrete vs Continuous Measurement Scales Describing Data Types.
N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7.
Data Analytics CMIS Short Course part II Extra Material: Forecasting Sam Buttrey December 2015.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
Stats Term Test 4 Solutions. c) d) An alternative solution is to use the probability mass function and.
Geology 6600/7600 Signal Analysis 05 Oct 2015 © A.R. Lowry 2015 Last time: Assignment for Oct 23: GPS time series correlation Given a discrete function.
Introduction to stochastic processes
Eric Ward Mark Scheuerell Eli Holmes Applied Time Series Analysis FISH 507.
Analyses of intervention effects Mark Scheuerell & Eli Holmes FISH 507 – Applied Time Series Analysis 5 March 2015.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Time Series Forecasting Trends and Seasons and Time Series Models PBS Chapters 13.1 and 13.2 © 2009 W.H. Freeman and Company.
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Time Series Analysis By Tyler Moore.
FISH 507 – Applied Time Series Analysis
Data Preliminaries CSC 600: Data Mining Class 1.
An introduction to Dynamic Factor Analysis
Stochastic Process - Introduction
Multiple Random Variables and Joint Distributions
Covariance, stationarity & some useful operators
Time Series Analysis and Its Applications
Online Conditional Outlier Detection in Nonstationary Time Series
An introduction to Dynamic Linear Models
FISH 507 – Applied Time Series Analysis
Lecture 8 ARIMA Forecasting II
TM 745 Forecasting for Business & Technology Dr. Frank Joseph Matejcik
Statistics for Managers using Microsoft Excel 3rd Edition
Chapter 4: Seasonal Series: Forecasting and Decomposition
Statistics 153 Review - Sept 30, 2008
4th Joint EU-OECD Workshop on BCS, Brussels, October 12-13
Hidden Markov Models Part 2: Algorithms
Statistics and Modelling 3.8
Objective of This Course
Chapter 6: Forecasting/Prediction
Chapter 8: Weighting adjustment
Chapter 9 Model Building
Time Series Analysis and Forecasting
Data Preliminaries CSC 576: Data Mining.
Lecturer Dr. Veronika Alhanaqtah
Time Series introduction in R - Iñaki Puigdollers
Model Selection, Seasonal Adjustment, Analyzing Results
Load forecasting Prepared by N.CHATHRU.
BOX JENKINS (ARIMA) METHODOLOGY
Chap 7: Seasonal ARIMA Models
Presentation transcript:

Eric Ward Mark Scheuerell Eli Holmes Applied Time Series Analysis FISH 507 Eric Ward Mark Scheuerell Eli Holmes

Introductions Who are we? Who & why you’re here? What are you looking to get from this class?

Days and Times Lectures Computer lab When: Tues & Thurs from 1:30-2:50 Where: FSH 203 Computer lab When: Thurs from 3:00-3:50 Where: FSH 207

Grading Weekly homework (30% of total) Assigned Thurs at the end of computer lab Due by 5:00 PM the following Tues Based on material from lecture & computer lab Research project & paper (40% of total) Must involve some form of time series model(s) Due by 11:59 PM PST on March 10 Two anonymous peer-reviews (20% of total) One review each for 2 colleague’s papers Due by 11:59 PM PST on March 16

Expectations for final project Research paper or thesis chapter that you can turn into a peer-reviewed publication Ideally a solo effort, but you can work in pairs Focus on applied time series analysis Univariate or multivariate Short format similar to “Report” in Ecology or “Rapid Communication” in CJFAS Max of 20 pages, inclusive of refs, tables, figs, etc 12-pt font, double-spaced throughout

Don’t have any time series data? RAM Legacy http://ramlegacy.marinebiodiversity.ca/ RAM’s Stock-Recruitment Database http://www.mscs.dal.ca/~myers/welcome.html Global Population Dynamics Database http://www3.imperial.ac.uk/cpb/databases/gpdd NOAA NWFSC Salmon Population Summary https://www.webapps.nwfsc.noaa.gov/apex/f?p=261:home:0 SAFS Alaska Salmon Program Lake Washington plankton

Course topics Week 1: Decomposition, covariance, autocorrelation Week 2: Autoregressive & moving-average models, model estimation Week 3: Univariate & multivariate state-space models Week 4: Covariates & seasonal effects; model selection Week 5: Dynamic linear models Week 6: Forecasting & dynamic factor analysis Week 7: Multistage & non-Gaussian models Week 8: Detection of outliers & perturbation analysis Week 9: Spatial effects & hierarchical models Week 10: Presentations of final projects

An introduction to time series and their analysis Mark Scheuerell FISH 507 – Applied Time Series Analysis 3 January 2017

Topics for today (lecture) Characteristics of time series (ts) What is a ts? Classifying ts Trends Seasonality (periodicity) Classical decomposition

What is a time series? A time series (ts) is a set of observations taken sequentially in time A ts can be represented as a set {xt : t = 1,2,3,…,n} = {x1,x2,x3,…,xn} For example, {10,31,27,42,53,15}

Example of a time series MAR(1) Workshop - ESA 2007, San Jose, CA Example of a time series 5 Aug 2007 Number of wild spr/sum Chinook salmon returning to the Snake R

Classification of time series (I) By some index set Interval across real time x(t); t Î [1.1,2.5] Discrete time xt Equally spaced; t = {1,2,3,4,5} Equally spaced w/ missing values; t = {1,2,4,5,6} Unequally spaced; t = {2,3,4,6,9}

Classification of time series (II) By underlying process Discrete (eg, total # of fish caught per trawl) Continuous (eg, salinity, temperature)

Classification of time series (III) By number of values recorded Univariate/scalar (eg, total # of fish caught) Multivariate/vector (eg, # of each spp of fish caught)

Classification of time series (IV) By type of values recorded Integer (eg, # of fish in 5 min trawl = 2413) Rational (eg, fraction of unclipped fish = 47/951) Real (eg, fish mass = 10.2 g) Complex (eg, cos[2π*2.43] + i sin[2π*2.43])

Statistical analyses of time series Most statistical analyses are concerned with estimating properties of a population from a sample Time series analysis, however, presents a different situation Although we could vary the length of an observed sample, it is often impossible to make multiple observations at a given time For example, one can’t observe today’s closing price of Microsoft stock more than once This makes conventional statistical procedures, based on large sample estimates, inappropriate

Examples of time series MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007 increasing flat decreasing increasing How would we describe this ts?

Examples of time series MAR(1) Workshop - ESA 2007, San Jose, CA Examples of time series 5 Aug 2007 “Regular” cycle How would we describe this ts?

What is a time series model? A time series model for {xt} is a specification of the joint distributions of a sequence of random variables {Xt} of which {xt} is thought to be a realization For example, “white” noise: xt = wt and wt ~ N(0,1) autoregressive: xt = xt-1 + wt and wt ~ N(0,1)

Iterative approach to model building Also known as the “Box-Jenkins Approach” Postulate general class of models Identify candidate model Estimate parameters Diagnostics: is model adequate? Use model for forecasting or control No Yes

Classical decomposition of time series MAR(1) Workshop - ESA 2007, San Jose, CA Classical decomposition of time series 5 Aug 2007 Classical decomposition of an observed time series is a fundamental approach in time series analysis The idea is to decompose a time series {xt} into a trend (mt), a seasonal component (st), and a remainder (et) xt = mt + st + et

Linear filtering of time series MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007 Beginning with the trend (mt), we need a means for extracting a “signal” A common method is to use linear filters For example, moving averages with equal weights (FYI, this is what Excel does)

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Linear filtering of time series MAR(1) Workshop - ESA 2007, San Jose, CA Linear filtering of time series 5 Aug 2007 Consider case where season is based on 12 months & ts begins in January (t=1) Monthly averages over year will result in t = 6.5 for mt (which is not good) One trick is to average (1) the average of Jan-Dec & (2) the average of Feb-Jan

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA Example of linear filtering 5 Aug 2007 Data from http://www.ncdc.noaa.gov/

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Decomposition of time series MAR(1) Workshop - ESA 2007, San Jose, CA Decomposition of time series 5 Aug 2007 Now that we have an estimate of mt, we can get estimate of st simply by subtraction:

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Decomposition of time series MAR(1) Workshop - ESA 2007, San Jose, CA Decomposition of time series 5 Aug 2007 Now that we have an estimate of st, we can get estimate of et simply by subtraction:

Example of linear filtering MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Notes on decomposition MAR(1) Workshop - ESA 2007, San Jose, CA Notes on decomposition 5 Aug 2007 Obtaining a “model” for a ts via decomposition is easy, but… You don’t get a formula with which to obtain forecasts Let’s look at an alternative

Example of linear trend fitting MAR(1) Workshop - ESA 2007, San Jose, CA Example of linear trend fitting 5 Aug 2007 A simple method for trend extraction is to use linear regression Note: the t index here could be a non- integer in cases with seasonal data

Example of linear trend fitting MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Decomposition of time series MAR(1) Workshop - ESA 2007, San Jose, CA Decomposition of time series 5 Aug 2007 Another means for extracting a trend is via nonparametric regression models (eg, LOESS) see R pkg stl

Moving on with decomposition MAR(1) Workshop - ESA 2007, San Jose, CA Moving on with decomposition 5 Aug 2007 We have decomposed our time series into a trend plus remainder (st + et) xt = (-135.6 + 0.0715t) + st + et Now let’s consider the seasonal part

Example of linear trend fitting MAR(1) Workshop - ESA 2007, San Jose, CA Example of linear trend fitting 5 Aug 2007 One method is to use fixed effects (eg, ANOVA)

Example of linear trend fitting MAR(1) Workshop - ESA 2007, San Jose, CA Example of linear trend fitting 5 Aug 2007 Adding in a model for season (ie, quarters) This is the “floor” function So, for example, if q = 10.25:

Example of linear trend fitting MAR(1) Workshop - ESA 2007, San Jose, CA Example of linear trend fitting 5 Aug 2007 Our final decomposition model

Example of trend + season fitting MAR(1) Workshop - ESA 2007, San Jose, CA 5 Aug 2007

Are the residuals stationary? MAR(1) Workshop - ESA 2007, San Jose, CA Are the residuals stationary? 5 Aug 2007 The goal with decomposition is to reduce the time series to a trend, season & stationary residuals

Iterative approach to model building Postulate general class of models Identify candidate model Estimate parameters Diagnostics: is model adequate? Use model for forecasting or control No Yes

MAR(1) Workshop - ESA 2007, San Jose, CA Summary 5 Aug 2007 This was a brief overview—there is lots of stuff we didn’t cover Please ask for help/guidance if you’re looking for more details, other R code, etc