An introduction to Dynamic Linear Models

Slides:



Advertisements
Similar presentations
Forecasting Using the Simple Linear Regression Model and Correlation
Advertisements

Regresi Linear Sederhana Pertemuan 01 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Time series analysis - lecture 5
Multivariate Data Analysis Chapter 4 – Multiple Regression.
Quantitative Business Analysis for Decision Making Simple Linear Regression.
Ch. 14: The Multiple Regression Model building
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Introduction to Linear Regression.  You have seen how to find the equation of a line that connects two points.
Introduction to Regression Analysis, Chapter 13,
Chapter 6 (cont.) Regression Estimation. Simple Linear Regression: review of least squares procedure 2.
Relationship Between Commodities and Currency Pair Realized Variance Derrick Hang Econ 201FS April 28, 2010.
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Correlation & Regression
3. Multiple Regression Analysis: Estimation -Although bivariate linear regressions are sometimes useful, they are often unrealistic -SLR.4, that all factors.
Regression and Correlation Methods Judy Zhong Ph.D.
Chapter 11 Simple Regression
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
Review of Building Multiple Regression Models Generalization of univariate linear regression models. One unit of data with a value of dependent variable.
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
Univariate Linear Regression Problem Model: Y=  0 +  1 X+  Test: H 0 : β 1 =0. Alternative: H 1 : β 1 >0. The distribution of Y is normal under both.
SWBAT: Calculate and interpret the residual plot for a line of regression Do Now: Do heavier cars really use more gasoline? In the following data set,
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 18 Introduction to Simple Linear Regression (Data)Data.
Statistical Data Analysis 2010/2011 M. de Gunst Lecture 9.
Lecturer: Ing. Martina Hanová, PhD. Business Modeling.
Introduction to Multilevel Analysis Presented by Vijay Pillai.
Individual observations need to be checked to see if they are: –outliers; or –influential observations Outliers are defined as observations that differ.
Gaussian Process Networks Nir Friedman and Iftach Nachman UAI-2K.
Introduction to stochastic processes
Eric Ward Mark Scheuerell Eli Holmes Applied Time Series Analysis FISH 507.
Hypothesis Testing Example 3: Test the hypothesis that the average content of containers of a particular lubricant is 10 litters if the contents of random.
BUSINESS MATHEMATICS & STATISTICS. Module 6 Correlation ( Lecture 28-29) Line Fitting ( Lectures 30-31) Time Series and Exponential Smoothing ( Lectures.
Analyses of intervention effects Mark Scheuerell & Eli Holmes FISH 507 – Applied Time Series Analysis 5 March 2015.
Introduction Many problems in Engineering, Management, Health Sciences and other Sciences involve exploring the relationships between two or more variables.
Stockholm, Sweden24-28 March 2014 Introduction to MAR(1) models for estimating community interactions This lecture follows largely from: Ives AR, Dennis.
Hierarchical models. Hierarchical with respect to Response being modeled – Outliers – Zeros Parameters in the model – Trends (Us) – Interactions (Bs)
STA302/1001 week 11 Regression Models - Introduction In regression models, two types of variables that are studied:  A dependent variable, Y, also called.
Applications of Dynamic Linear Models Mark Scheuerell FISH 507 – Applied Time Series Analysis 24 February 2015.
Longitudinal Data & Mixed Effects Models Danielle J. Harvey UC Davis.
Predicting Energy Consumption in Buildings using Multiple Linear Regression Introduction Linear regression is used to model energy consumption in buildings.
An introduction to Dynamic Factor Analysis
Bayesian estimation for time series models
The simple linear regression model and parameter estimation
Chapter 11: Linear Regression and Correlation
Simple Linear Regression
Covariance, stationarity & some useful operators
FW364 Ecological Problem Solving Class 6: Population Growth
Eric Ward Mark Scheuerell Eli Holmes
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
Linear Regression.
FISH 507 – Applied Time Series Analysis
Simple Linear Regression - Introduction
Introduction to Econometrics
Simple Linear Regression
Residuals The residuals are estimate of the error
Regression Models - Introduction
Multiple Regression Models
BASIC REGRESSION CONCEPTS
From GLM to HLM Working with Continuous Outcomes
The Multiple Regression Model
FORECASTING 16-Jan-19 Dr.B.Sasidhar.
Simple Linear Regression
Ch11 Curve Fitting II.
CHAPTER 12 More About Regression
Longitudinal Data & Mixed Effects Models
Time Series introduction in R - Iñaki Puigdollers
Topic 11: Matrix Approach to Linear Regression
Introduction to Regression Modeling
Regression Models - Introduction
FORECASTING 11-Dec-19 Dr.B.Sasidhar.
Presentation transcript:

An introduction to Dynamic Linear Models Mark Scheuerell FISH 507 – Applied Time Series Analysis 31 January 2017

Dynamic linear models (DLMs) DLMs are another form of MARSS model But, their underlying structure is different from others we’ve examined General idea is to allow for “evolution” of parameters over time Can be univariate (yt) or multivariate (yt) in the response

References for DLMs Petris G, Petrone S, Campagnoli P. 2009. Dynamic Linear Models with R. Springer, New York Pole A, West M, Harrison J. 1994 Applied Bayesian Forecasting and Time Series Analysis. Chapman & Hall, New York Cottingham KL, Rusak JA, Leavitt PR. 2000. Increased ecosystem variability and decreased predictability following fertilisation: evidence from paleolimnology. Ecol. Lett. 3: 340-348 Lamon EC, Carpenter SR, Stow CA. 1998. Forecasting PCB concentrations in Lake Michigan salmonids: a dynamic linear model approach. Ecol. Appl. 8: 659-668 Scheuerell MD, Williams JG. 2005. Forecasting climate-induced changes in the survival of Snake River spring/summer Chinook salmon. Fish. Ocean. 14: 448- 457 Schindler DE, Rogers DE, Scheuerell MD, Abrey CA. 2005. Effects of changing climate on zooplankton and juvenile sockeye salmon growth in southwestern Alaska. Ecology 86: 198-209

Simple linear regression Let’s begin with static (simple) linear regression with Gaussian errors The idea is that the ith observation is function of an intercept and explanatory variable(s) Importantly, the index i has no explicit/implicit meaning—shuffling (yi, Fi) pairs has no effect on parameter estimation or interpretation

Linear regression in matrix form We can write the model in matrix notation where &

Dynamic linear model* In a dynamic linear model, the regression parameters change over time, so we write (static) as (dynamic) Subscript t explicitly acknowledges implicit info in time ordering of data Relationship between y and F is unique at every t *univariate in the response

In practice, we will typically make G time invariant Constraining a DLM Close examination of the DLM reveals an apparent complication for parameter estimation With only 1 obs at each t, we could only hope to estimate 1 parameter (with no uncertainty)! To address this, we will constrain the regression parameters to be dependent from t to t+1 In practice, we will typically make G time invariant & often set G = I

DLM in matrix form* State or “evolution” equation Observation equation Determines how parameters change over time Observation equation Relates explanatory variable(s) to the observation *univariate in the response

DLM in MARSS notation State or “evolution” equation DLM: MARSS: Observation equation DLM: MARSS:

Contrast in covariate effects Note: DLMs include covariate effects in obs eqn much differently than other forms of MARSS models DLM: DLM in MARSS: Other MARSS:

Different forms of DLMs The univariate regression model is just one example of a DLM—other forms include: Stochastic “level” (intercept) Stochastic “growth” (trend, bias) Seasonal effects (fixed, harmonic)

The most simple univariate DLM Stochastic “level” (intercept-only) DLM A random walk with observation error MARSS

The most simple univariate DLM

The most simple multivariate DLM Multiple observations of a single random walk

Another simple multivariate DLM Multiple observations of multiple random walks

Univariate DLM for level & growth Stochastic “level” with deterministic “growth” DLM Random walk with drift MARSS

Univariate DLM for level & growth Stochastic “level” with stochastic “growth” Level: Growth: Level: Growth: Level: Growth:

Univariate DLM for level & growth Stochastic “level” with stochastic “growth” Level: Growth: DLM: MARSS:

Univariate DLM for level & trend Observation eqn for stochastic “level” and “growth” Obs: Define: DLM: MARSS:

Univariate DLM for regression Stochastic “intercept” with stochastic “slope” Intercept: Slope: DLM: MARSS:

Univariate DLM for regression Observation eqn for stochastic “intercept” and “slope” Obs: Define: DLM: MARSS:

Forecasting with univariate DLM DLMs are often used in a forecasting context where we are interested in a prediction at time t conditioned on data up through time t-1 Beginning with the distribution of q at time t-1 conditioned on data through time t-1: Then, the predictive distribution for qt given y1:t-1 is: And, the one-step ahead predictive distribution for yt given y1:t-1 is:

Forecasting with univariate DLM DLMs are often used in a forecasting context where we are interested in a prediction at time t conditioned on data up through time t-1 Beginning with the distribution of q at time t-1 conditioned on data through time t-1: Don’t worry! MARSS will make this easy for you. Then, the predictive distribution for qt given y1:t-1 is: And, the one-step ahead predictive distribution for yt given y1:t-1 is:

Diagnostics for DLMs Just as we have seen for other models, diagnostics are an important part of fitting DLMs When forecasting, we are often interested in the forecast errors (et = observedt - forecastt) In particular, DLMs have the following assumptions: 1) 2) We can check (1) with a QQ-plot and (2) with an ACF

Multivariate DLM Here we will examine multiple responses at once, so we need a multivariate DLM First, the obs eqn becomes

Multivariate DLM – obs eqn =

Multivariate DLM – obs eqn = +

Multivariate DLM – obs eqn

Multivariate DLM – evolution eqn The evolution eqn becomes

Multivariate DLM – evolution eqn = +

Multivariate DLM – evolution eqn

Multivariate DLM – evolution eqn For k < n “groups”

Topics for lab Fitting univariate DLM regression model with MARSS Examining “evolution” of parameters Examining model fit Model diagnostics