Lecture 15: Time Series Modeling Steven Skiena. skiena

Similar documents
PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU

Lecture 7: Bounds on Options Prices Steven Skiena. skiena

Some useful concepts in univariate time series analysis

Volatility modeling in financial markets

Lecture 12: The Black-Scholes Model Steven Skiena. skiena

Time Series Analysis

COMP6053 lecture: Time series analysis, autocorrelation.

Estimating Volatility

RELEVANT TO ACCA QUALIFICATION PAPER P3. Studying Paper P3? Performance objectives 7, 8 and 9 are relevant to this exam

16 : Demand Forecasting

Using JMP Version 4 for Time Series Analysis Bill Gjertsen, SAS, Cary, NC

Time Series Analysis

Section A. Index. Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting techniques Page 1 of 11. EduPristine CMA - Part I

Time series forecasting

Time Series - ARIMA Models. Instructor: G. William Schwert

Time Series and Forecasting

Is the Basis of the Stock Index Futures Markets Nonlinear?

Outline: Demand Forecasting

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2015, Mr. Ruey S. Tsay. Solutions to Midterm

Predicting Indian GDP. And its relation with FMCG Sales

Chapter 4: Vector Autoregressive Models

JetBlue Airways Stock Price Analysis and Prediction

4. Simple regression. QBUS6840 Predictive Analytics.

11. Time series and dynamic linear models

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

An introduction to Value-at-Risk Learning Curve September 2003

Ch.3 Demand Forecasting.

Pairs Trading STRATEGIES

Forecasting in supply chains

Module 5: Multiple Regression Analysis

Forecasting methods applied to engineering management

Time Series Analysis

TIME SERIES ANALYSIS & FORECASTING

Week TSX Index

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Regression III: Advanced Methods

Investors and Central Bank s Uncertainty Embedded in Index Options On-Line Appendix

Implied Volatility Skews in the Foreign Exchange Market. Empirical Evidence from JPY and GBP:

TIME SERIES ANALYSIS

Wooldridge, Introductory Econometrics, 3d ed. Chapter 12: Serial correlation and heteroskedasticity in time series regressions

Financial Risk Management Exam Sample Questions/Answers

Time Series Analysis: Basic Forecasting.

Option Pricing Asymmetry Dallas Brozik, Marshall University

ER Volatility Forecasting using GARCH models in R

Lecture 2: ARMA(p,q) models (part 3)

Sales forecasting # 2

Advanced Forecasting Techniques and Models: ARIMA

Lecture 19: Introduction to NP-Completeness Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

On Black-Scholes Equation, Black- Scholes Formula and Binary Option Price

Time Series Analysis and Forecasting

Time Series Analysis

How to assess the risk of a large portfolio? How to estimate a large covariance matrix?

Time Series Analysis

2.2 Elimination of Trend and Seasonality

Valuing Stock Options: The Black-Scholes-Merton Model. Chapter 13

Univariate Time Series Analysis; ARIMA Models

ITSM-R Reference Manual

Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model

Time Series Laboratory

Time Series Analysis of Aviation Data

Non-Stationary Time Series andunitroottests

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

THE IMPACT OF EXCHANGE RATE VOLATILITY ON BRAZILIAN MANUFACTURED EXPORTS

Simple Methods and Procedures Used in Forecasting

Chapter 9: Univariate Time Series Analysis

Least Squares Estimation

Univariate Time Series Analysis; ARIMA Models

State Space Time Series Analysis

Centre for Central Banking Studies

Promotional Forecast Demonstration

Time Series Forecasting Techniques

Forecasting the first step in planning. Estimating the future demand for products and services and the necessary resources to produce these outputs

Java Modules for Time Series Analysis

The Best of Both Worlds:

Working Papers. Cointegration Based Trading Strategy For Soft Commodities Market. Piotr Arendarski Łukasz Postek. No. 2/2012 (68)

Big Data, Socio- Psychological Theory, Algorithmic Text Analysis, and Predicting the Michigan Consumer Sentiment Index

Modeling Volatility of S&P 500 Index Daily Returns:

Chapter Seven. Multiple regression An introduction to multiple regression Performing a multiple regression on SPSS

A model to predict client s phone calls to Iberdrola Call Centre

Chapter 27 Using Predictor Variables. Chapter Table of Contents

Sensex Realized Volatility Index

Example: Boats and Manatees

Software Review: ITSM 2000 Professional Version 6.0.

A Primer on Forecasting Business Performance

Board of Governors of the Federal Reserve System. International Finance Discussion Papers. Number 600. First version: December 1997

Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem

Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay

Integrated Resource Plan

8. Time Series and Prediction

Module 3: Correlation and Covariance

Modeling a Foreign Exchange Rate

Pattern Recognition and Prediction in Equity Market

Is the Forward Exchange Rate a Useful Indicator of the Future Exchange Rate?

Moving averages. Rob J Hyndman. November 8, 2009

TESTING THE ASSUMPTIONS OF AGE-TO-AGE FACTORS. Abstract

Time Series Analysis. 1) smoothing/trend assessment

Introduction to Options Trading. Patrick Ceresna, MX Instructor

STATISTICAL DATA ANALYSIS COURSE VIA THE MATLAB WEB SERVER

Studying Achievement

ICC September 2009 Original: French. Study. International Coffee Council 103 rd Session September 2009 London, England

Transcription:

Lecture 15: Time Series Modeling Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena

Modeling and Forecasting We seek to construct a model of a function so as to forecast future values of it. Certain models are proposed on theoretical grounds from first principles. If stock prices are defined by an unbiased random walk, the best forecast is the last observation, F n = S n 1. Other models are constructed by fitting observed time series data.

Statisticians vs. Computer Scientists There is tension between the way different disciplines view the world of modeling/forecasting. Statisticians are concerned with the limits of what can rigorously be inferred from data. Computer Scientists are concerned with building the best model they can, regardless of whether it can be justified. We will first explore standard statistical time series models before introducing data mining/pattern recognition methods.

A Model Building Strategy Model selection / specification identifies the right class of models from observation or a priori knowledge of the time series Model fitting finds the best possible estimates for the parameters underlying the model. Model diagnosis / evaluation assesses how well the model fits the original data and whether it can be improved. The principle of parsimony states a model should use the smallest number of parameters to represent it adequately. Anything can be fit by an nth degree polynomial.

Estimating Volatility Volatility is a measure of the uncertainty of prices in a given market. The deviation from expectation in a series of observations is typically measured by its standard deviation σ. The more points we observe, the more accurate our estimation of σ, if it isn t changing. If it is changing, the more recent observations should receive higher weight.

EWMA models for Volatility Prediction Exponential moving average models are often used for volatility prediction, V n = λv n 1 + (1 λ)v n 1 where V is the predicting volatility and V the observed volatility. Volatility is fairly stable, as shown by the fact that the last 30 to 90 days still has predictive power. Thus the exponential decay must be small. The RiskMetrics model uses λ 0.944 for volatility estimation.

Estimating the Parameter Such exponenetial weighting can be used to smooth a series of observations, once one has selected the parameter. The least squares method / regression can be generally be used to find the coefficients best defining a linear function of history, as will be discussed with respect to autoregressive functions. However, the coefficients here are not independent, λ i. Binary search / trial-and-error (for M A(1) models) against some gold standard or more sophisticated numerical methods are needed.

Volatility Index The Chicago Board Options Exchange Volatility Index (VIX) is an important measure of the market s expectation of volatility over the next 30 day period. It is computed as a weighted blend of prices for options on a given stock index (primarily the S&P 500 index). Recall that all parameters of the Black-Scholes formula are directly observable except volatility. The implied volatility can be computed given the other parameters, including the current options price. The VIX is quoted in percentage points, and translates to the expected movement in the index over the next 30-day period, on an annualized basis.

VIX Securities VIX-based derivatives include actively traded future contracts and options. The price of a contract is 1,000 times the index; call and put options are offered at a variety of strike prices. A VIX at 15 implies an annual 15% change, or 15%/ 12 = 4.33% over the next 30 day period, meaning that there is a 68% likelihood (one standard deviation) that the absolute value of the 30-day return will be 4.33%.

VIX Index The VIX hit a record of 81.17 on October 16, 2008. Looking at the graph, one can conclude that (1) volatility shows a high degree of short-term correlation, (2) is subject to sudden shocks, and (3) reverts to a fairly consistent mean level in quiet times.

Autoregressive (AR) Models A simple autoregressive model to capture a significant lag-1 autocorrelation is r t = φ 0 + φ 1 r t 1 + a t where {a t } is assumed to be a white noise series with mean zero and σ a 2. The autocorrelation function of white noise should be near zero. The order of the model is the number of terms of history; this is an AR(1) model, which can readily be generalized into AR(p) models for arbitrary p.

Building Autoregressive Models For a given return series and desired history, the φ i parameters can be found using the least squares method. Build an (n p) (p + 1) matrix where the lth column is the lag-(l 1) return series. If p n, we have a complete linear system, and Gaussian elimination will set all of the parameters. When p n, we can find the φ coefficients which minimize least-square errors. A model has likely captured enough history if the autocorrelation function of the residuals is small.

Capturing Seasonality We seek to limit the history in an autoregressive model to minimize the number of parameters needed. Seasonal effects can be captured using a few appropriate longer terms: r t = φ 0 + φ 1 r t 1 + φ 2 r t 7 + φ 3 r t 365 + a t

Forecasting with Autoregressive Models The value of the model at the next time step can be easily predicted by plugging in terms. r t = φ 0 + φ 1 r t 1 The observed variance of the residual terms provides error bounds on the reliability of our forecast. By plugging the predicted next value into the model and repeating, we can forecast indefinitely into the future but the error bounds on our predictions will deteriorate.