[web:reg] ARMA Excel Add-In



Similar documents
Vector Autoregressions (VARs): Operational Perspectives

Chapter 8: Regression with Lagged Explanatory Variables

SPEC model selection algorithm for ARCH models: an options pricing evaluation framework

Cointegration: The Engle and Granger approach

Usefulness of the Forward Curve in Forecasting Oil Prices

PRESSURE BUILDUP. Figure 1: Schematic of an ideal buildup test

NETWORK TRAFFIC MODELING AND PREDICTION USING MULTIPLICATIVE SEASONAL ARIMA MODELS

AP Calculus AB 2007 Scoring Guidelines

THE PRESSURE DERIVATIVE

Mathematics in Pharmacokinetics What and Why (A second attempt to make it clearer)

Morningstar Investor Return

Duration and Convexity ( ) 20 = Bond B has a maturity of 5 years and also has a required rate of return of 10%. Its price is $613.

Why Did the Demand for Cash Decrease Recently in Korea?

11/6/2013. Chapter 14: Dynamic AD-AS. Introduction. Introduction. Keeping track of time. The model s elements

Time Series Analysis Using SAS R Part I The Augmented Dickey-Fuller (ADF) Test

The Transport Equation

Newton s Laws of Motion

Chapter 8 Student Lecture Notes 8-1

WHAT ARE OPTION CONTRACTS?

Principal components of stock market dynamics. Methodology and applications in brief (to be updated ) Andrei Bouzaev, bouzaev@ya.

DEMAND PULL AND SUPPLY PUSH

Hedging with Forwards and Futures

Stock Price Prediction Using the ARIMA Model

Stability. Coefficients may change over time. Evolution of the economy Policy changes

Chapter 7. Response of First-Order RL and RC Circuits

INTRODUCTION TO FORECASTING

The naive method discussed in Lecture 1 uses the most recent observations to forecast future values. That is, Y ˆ t + 1

A Note on Using the Svensson procedure to estimate the risk free rate in corporate valuation

Improvement in Forecasting Accuracy Using the Hybrid Model of ARFIMA and Feed Forward Neural Network

Fakultet for informasjonsteknologi, Institutt for matematiske fag

AP Calculus BC 2010 Scoring Guidelines

Improving timeliness of industrial short-term statistics using time series analysis

DOES TRADING VOLUME INFLUENCE GARCH EFFECTS? SOME EVIDENCE FROM THE GREEK MARKET WITH SPECIAL REFERENCE TO BANKING SECTOR

Forecasting and Information Sharing in Supply Chains Under Quasi-ARMA Demand

ACTUARIAL FUNCTIONS 1_05

2.2 Time Series Analysis Preliminaries Various Types of Stochastic Processes Parameters of Univariate and Bivariate Time Series

Software implementation and testing of GARCH models

Strictly as per the compliance and regulations of:

Acceleration Lab Teacher s Guide

RC (Resistor-Capacitor) Circuits. AP Physics C

Optimal Real-Time Scheduling for Hybrid Energy Storage Systems and Wind Farms Based on Model Predictive Control

4 Convolution. Recommended Problems. x2[n] 1 2[n]

cooking trajectory boiling water B (t) microwave time t (mins)

PROFIT TEST MODELLING IN LIFE ASSURANCE USING SPREADSHEETS PART ONE

Statistical Analysis with Little s Law. Supplementary Material: More on the Call Center Data. by Song-Hee Kim and Ward Whitt

Measuring macroeconomic volatility Applications to export revenue data,

Lecture 2: Telegrapher Equations For Transmission Lines. Power Flow.

Mortality Variance of the Present Value (PV) of Future Annuity Payments

Working Paper A fractionally integrated exponential model for UK unemployment

RESTRICTIONS IN REGRESSION MODEL

Key Words: Steel Modelling, ARMA, GARCH, COGARCH, Lévy Processes, Discrete Time Models, Continuous Time Models, Stochastic Modelling

How To Write A Demand And Price Model For A Supply Chain

A Probability Density Function for Google s stocks

APPLICATION OF Q-MEASURE IN A REAL TIME FUZZY SYSTEM FOR MANAGING FINANCIAL ASSETS

CALCULATION OF OMX TALLINN

Purchasing Power Parity (PPP), Sweden before and after EURO times

4. International Parity Conditions

Skewness and Kurtosis Adjusted Black-Scholes Model: A Note on Hedging Performance

Modelling and Forecasting Volatility of Gold Price with Other Precious Metals Prices by Univariate GARCH Models

Measuring the Services of Property-Casualty Insurance in the NIPAs

Forecasting Sales: A Model and Some Evidence from the Retail Industry. Russell Lundholm Sarah McVay Taylor Randall

The Kinetics of the Stock Markets

MTH6121 Introduction to Mathematical Finance Lesson 5

Appendix A: Area. 1 Find the radius of a circle that has circumference 12 inches.

Volatility in Returns of Islamic and Commercial Banks in Pakistan

Individual Health Insurance April 30, 2008 Pages

Supplementary Appendix for Depression Babies: Do Macroeconomic Experiences Affect Risk-Taking?

UNIVARIATE TIME SERIES FORECASTING

Permutations and Combinations

DYNAMIC ECONOMETRIC MODELS Vol. 7 Nicolaus Copernicus University Toruń Ryszard Doman Adam Mickiewicz University in Poznań

Table of contents Chapter 1 Interest rates and factors Chapter 2 Level annuities Chapter 3 Varying annuities

TEMPORAL PATTERN IDENTIFICATION OF TIME SERIES DATA USING PATTERN WAVELETS AND GENETIC ALGORITHMS

Time Series Analysis for Predicting the Occurrences of Large Scale Earthquakes

Version. General Certificate of Education (A-level) January Mathematics MPC4. (Specification 6360) Pure Core 4. Final.

1 HALF-LIFE EQUATIONS

Forecasting, Ordering and Stock- Holding for Erratic Demand

MACROECONOMIC FORECASTS AT THE MOF A LOOK INTO THE REAR VIEW MIRROR

Random Walk in 1-D. 3 possible paths x vs n. -5 For our random walk, we assume the probabilities p,q do not depend on time (n) - stationary

I. Basic Concepts (Ch. 1-4)

Chapter 1 Overview of Time Series

Lectures # 5 and 6: The Prime Number Theorem.

Full-wave Bridge Rectifier Analysis

Does Capital Punishment Have a Deterrence Effect on the Murder Rate? Issues and Evidence

The stock index futures hedge ratio with structural changes

ANALYTIC PROOF OF THE PRIME NUMBER THEOREM

The Relationship between Stock Return Volatility and. Trading Volume: The case of The Philippines*

Stochastic Optimal Control Problem for Life Insurance

Developing Equity Release Markets: Risk Analysis for Reverse Mortgage and Home Reversion

A DCC Analysis of Two Stock Market Returns Volatility with an Oil Price Factor: An Evidence Study of Singapore and Thailand s Stock Markets

Return Calculation of U.S. Treasury Constant Maturity Indices

OPERATION MANUAL. Indoor unit for air to water heat pump system and options EKHBRD011ABV1 EKHBRD014ABV1 EKHBRD016ABV1

Working Paper No Net Intergenerational Transfers from an Increase in Social Security Benefits

The Impact of Flood Damages on Production of Iran s Agricultural Sector

Chapter 1.6 Financial Management

A Note on the Impact of Options on Stock Return Volatility. Nicolas P.B. Bollen

Chapter 2 Problems. 3600s = 25m / s d = s t = 25m / s 0.5s = 12.5m. Δx = x(4) x(0) =12m 0m =12m

Volatility Forecasting Techniques and Volatility Trading: the case of currency options

A Re-examination of the Joint Mortality Functions

Modeling Tourist Arrivals Using Time Series Analysis: Evidence From Australia

Transcription:

[web:reg] ARMA Ecel Add-In [web:reg] Kur Annen www.web-reg.de annen@web-reg.de Körner Sr. 30 41464 Neuss - Germany -

[web:reg] arma Ecel Add-In [web:reg] ARMA Ecel Add-In is a XLL for esimaing and forecas AR(I)MA models wih Ecel. You do no have o know anyhing abou numerical mehods o use [web:reg] ARMA Ecel Add-In us insall i and use i wih Ecel. Reuiremens Oeraing Sysem: Windows 95, 98, ME, 2000, XP Microsof Ecel 97, 2000 or XP Seu and Insallaion To insall he [web:reg] ARMA Add-In you mus download and eecue he seu rogram from my web age and follow han he insallaion insrucions. Funcions [web:reg] ime series funcions The following ime series funcions are available. The ouu will be a range of he series size. Noe ha #N/A will be reurned for observaions for which lagged values are no available. diff(ime series as range, d as ineger) difflog(ime series, d as ineger) diffs(ime series as range, d as ineger, s as ineger) diffslog(ime series as range, d as ineger, s as ineger) d'h order difference d'h order difference of he logarihm d'h order difference wih a seasonal difference s d'h order difference wih a seasonal difference s of he logarihm If he values are no numbers or he values are no osiive using difflog or diffslog #N/A will be reurned. All ime series funcions are array-funcion. Firs selec an emy range which is of he same dimension as he ime series ha should be differenced. Then wrie he funcion you wan o use. A his oin, do no ress Ener. Raher, hold down he Shif and he Crl Keys and hen ress Ener. Eamle diff(a2:a102,1) will ouu he difference of he ime series Range A2:A102. 2

[web:reg] arma funcion This funcion esimaes he arameers of an ARMA(,) model. arma needs as arameers a ime series as a range, he order of auoregressive erms as ineger, he order of moving average erms as ineger, and if you wan an consan erm ino he model an boolean as rue. arma(ime series as range, as Ineger, as Ineger, c as bool) Afer esimaing his funcions reurns he residual, he arameers, useful saisics, imulse resonse funcion and forecas evoluion in a range of he size ( T ) ma( + + c,3). The firs arameer will be ouued in column 2 and row 1. The order of arameer are consan, auoregressive arameers and moving average arameers. Ouu consan -> AR-coeffiens -> MA- coeffiens Residual coefficien 1 coefficien (++c) Residual +1 sd. error 1 sd. error (++c) -sa. 1 -sa (++c) P-Value 1 P-Value (++c) invered roos (if c = invered roos 1 invered invered roos false. else #N/A) roos R-suared Mean deenden var #N/A #N/A Adused R-suared S.D. deenden var #N/A #N/A S.E. of regression Akaike info crierion #N/A #N/A Sum suared resid Schwarz crierion #N/A #N/A Log likelihood Durbin-Wason sa #N/A #N/A Imulse Resonse Forecas (T=1) #N/A #N/A (T=1) #N/A #N/A Residual T Imulse Resonse (T=observaions-10- ) Forecas (T=observaions-10- ) #N/A #N/A The esimaion emloys an efficien non linear echniue (Levenber Maruard algorihm). The derivaes will be comued by finie differencing mehods. The maimum of ieraions is 500 and he convergence is 0.0001. Moving average erms will be backcased Eamle arma(a2:a102,2,0,false) will esimaes an AR(2) model wihou consan. 1 Ecel does no know comle numbers. On his accoun he invered AR/MA roos are Srings. 3

[web:reg] ARMA form The ouu of he funcion is difficul for many ersons o recognize. For his reason I inegraed a VBA form. The inu is simlified and he ouus is formaed and diagrams will be creaed. When insalled, [web:reg] ARMA Ecel Add-In adds a new menu iem o Ecel's main menu. Sar he Add in by clicking on [web:reg] -> univariae ime series -> ARMA- Esimaion in Ecel. The following dialog aears: In here, you ell he rogram abou he daa ha we would like o esimae. If here is he name of he ime series in he firs row, you are going o ell his, by clicking on he "Label" checkbo. Eiher you could secify he model manual or he Add-In fis he bes model by using informaion crieria. You could also secify he ime horizon of he imulse resonse funcion and forecas. The esimaion resul will be dislayed in a new workshee. 4

Furher noes [web:reg] ARMA Ecel Add-In was wrien by Kur Annen. This rogram is freeware. Bu I would highly areciae if you could give me credi for my work by roviding me wih informaion abou ossible oen osiions as an economis. My focus as an economis is on economerics and dynamic macroeconomics. If you like he rogram, lease send me an email. This Add-In was wrien in C/C++/Assembler and comiled wih MinGW 2. The Levenberg-Maruard algorihm was aken from he MINPACK 3 ackage ranslaed by f2c. Each 30 esimaion aears my visied card. Do no ask lease wheher I can remove his. I would like hank Roland Grube 4 for designing he new [web:reg] logo. 2 Before you ask, why he XLL-file is so large. From MinGW - Freuenly Asked Quesions C++ rograms using he Sandard Temlae Library (ie/ #include <iosream>) cause a large ar of he library o be saically linked ino he binary. The need o saically link he sdc++ ino he binary is wo fold. Firs MSVCRT.dll does no conain C++ sdlib consrucs. Second he legal imlicaions of generaing a libsdc++.dll are resriced by he licensing associaed wih he library. 3 MINPACK is a numerical library wrien in Forran 4 Roland is one of my bes friends - www.rgec.com 5

Brief inroducion in AR(I)MA models Time series arise in many fields, including economics and finance. A ime series is defined as a vecor of observaions made a regulary ime oins = 1,2, K, T. Ideally, one would like o describe hese ime series wih mahemaically models o do, e.g. redicions for fuure. A widely oular class of generaing rocess, or models, are he AR(I)MA models. The acronym AR(I)MA sands for Auo- Regressive Inegraed Moving Average. Lags of he differenced ime series aearing in he model are called auoregressive erms, lags of he errors are called moving average, and a ime series which needs o be differenced o made be saionary is said o be an inegraed ime series. Is he ime series saionary i is ossible o reresen i by an ARMA model. Noe lease ha he heory of AR(I)MA model is based on saionary. Using he backshif oeraor L ( ) d = 1 L d secifies he d-h order of difference of he ime series X. An ARMA(,) model can be eressed as: φ 1 1 K φ = ε + θ1ε 1 + K+ θ ε 5 or eressed by he backshif oeraor Φ ( L) = Θ( L) ε where Φ ( L) = and 1 φ = 1 L Θ ( L) = = 0 θ L b0 = 1 = one has an auoregressive, AR ( ), model if = 0 MA If 0 average, denoed ( ) he model is a moving. The error erms are, of course no direcly observable, bu a model is said o be inverible if he original errors an be re-consruced from he observed. Mahemaically a ARMA model is be inverible if he roos of he euaion 6 ( ) = 0 is greaer han one. Θ z all lie ouside he uni circle or he absolue value of each roo If he roos of he euaion ( ) = 0 Φ z all lie ouside he uni circle he model is saionary. If only one of he roos is in absolue value greaer one he difference sysem is elosive. 5 ofen a consan µ will be included φ 1 1 K φ = µ + ε + θ1ε 1 + K+ 6 z migh be a comle number θ ε 6

A saionary ARMA (, ) rocess has an ( ) of he ( ) MA reresenaion. The coefficiens MA reresenaion could be calculaed recursively and are called imulse resonse funcion. The imulse resonse funcion gives he answer of he uesion: wha is he effec on given a uni shock a ime s. Noe lease if here is only a ure MA ( ) rocess he effec holds only unil s +. The effec of ARMA, rocess converges o zero if he ime series is an AR ( ) or an ( ) saionary. Forecas Normally ARMA models are used o forecas a ime series. A very simle mehod for forecasing ARMA models is: T + h φ1 T + h 1 + K+ φ + h + ε T θ1ε T + h 1 K = θ ε T + h As you can see course, zero for Esimaing T + h can easily be udaed. The oimal forecas for T h h >. Esimaing an ( ) is alicable. Unforunaely, an MA ( ) or an (, ) ( > 0) ε is, of AR model is really simle, because he model is linear and OLS ARMA is non linear in naure, and reuires an ieraive rocedure o resolve he arameers. A very good algorihm in esimaing non-linear model is he Levenberg-Maruard algorihm. Idenifying he order of and The Bo Jenkins rocedure for idenifying he orders of and is very difficul and will no be described. A simle and oular rocedure is o minimize Akaike or Schwarz Informaion crieria. These crierions forms a rade-off beween he fi of he model (which lowers he sum of suared residuals) and he model's comleiy, which is measured by he numbers of arameers. 7