Forecasting Gold Return Using Wavelet Analysis

Similar documents
A Wavelet Based Prediction Method for Time Series

Advanced Forecasting Techniques and Models: ARIMA

Studying Achievement

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

Optimization of technical trading strategies and the profitability in security markets

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

Testing for Granger causality between stock prices and economic growth

Predictability of Non-Linear Trading Rules in the US Stock Market Chong & Lam 2010

SPEECH SIGNAL CODING FOR VOIP APPLICATIONS USING WAVELET PACKET TRANSFORM A

Time Series Analysis

Co-integration of Stock Markets using Wavelet Theory and Data Mining

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

A New Method for Electric Consumption Forecasting in a Semiconductor Plant

The Combination Forecasting Model of Auto Sales Based on Seasonal Index and RBF Neural Network

Forecasting of Economic Quantities using Fuzzy Autoregressive Model and Fuzzy Neural Network

STOCK MARKET VOLATILITY AND REGIME SHIFTS IN RETURNS

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

Price volatility in the silver spot market: An empirical study using Garch applications

MULTIPLE REGRESSION AND ISSUES IN REGRESSION ANALYSIS

TEMPORAL CAUSAL RELATIONSHIP BETWEEN STOCK MARKET CAPITALIZATION, TRADE OPENNESS AND REAL GDP: EVIDENCE FROM THAILAND

Software Review: ITSM 2000 Professional Version 6.0.

Wavelet Analysis Based Estimation of Probability Density function of Wind Data

Statistical Tests for Multiple Forecast Comparison

Java Modules for Time Series Analysis

The information content of lagged equity and bond yields

The Effect of Maturity, Trading Volume, and Open Interest on Crude Oil Futures Price Range-Based Volatility

TIME SERIES ANALYSIS

Neural Networks and Wavelet De-Noising for Stock Trading and Prediction

Introduction to Regression and Data Analysis

Time Series Analysis of Household Electric Consumption with ARIMA and ARMA Models

Forecasting the sales of an innovative agro-industrial product with limited information: A case of feta cheese from buffalo milk in Thailand

UK GDP is the best predictor of UK GDP, literally.

Analysis of algorithms of time series analysis for forecasting sales

AN EVALUATION OF THE PERFORMANCE OF MOVING AVERAGE AND TRADING VOLUME TECHNICAL INDICATORS IN THE U.S. EQUITY MARKET

Integrated Resource Plan

College Readiness LINKING STUDY

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

Wavelet analysis. Wavelet requirements. Example signals. Stationary signal 2 Hz + 10 Hz + 20Hz. Zero mean, oscillatory (wave) Fast decay (let)

An Evaluation of Irregularities of Milled Surfaces by the Wavelet Analysis

The Dynamic Co-movements between Oil and Stock Market returns in: The Case of GCC Countries

WAVEFORM DICTIONARIES AS APPLIED TO THE AUSTRALIAN EXCHANGE RATE

AUTOMATION OF ENERGY DEMAND FORECASTING. Sanzad Siddique, B.S.

Statistical Modeling by Wavelets

Impact of Working Capital Management on the Performance of the Firms Listed on the Tehran Stock Exchange

Causes of Inflation in the Iranian Economy

Four Essays on the Empirical Properties of Stock Market Volatility

THE IMPACT OF EXCHANGE RATE VOLATILITY ON BRAZILIAN MANUFACTURED EXPORTS

A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500

1 Example of Time Series Analysis by SSA 1

Sample Size and Power in Clinical Trials

Financial Risk Management Exam Sample Questions/Answers

Co-movement of State s Mortgage Default Rates: A Dynamic Factor Analysis Approach

IT Productivity and Aggregation using Income Accounting

Centre for Central Banking Studies

Module 5: Multiple Regression Analysis

Bayesian probability theory

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

Obesity in America: A Growing Trend

An integrated data compression scheme for power quality events using spline wavelet and neural network

Forecasting Stock Prices using a Weightless Neural Network. Nontokozo Mpofu

A Neural Network and Web-Based Decision Support System for Forex Forecasting and Trading

CS Introduction to Data Mining Instructor: Abdullah Mueen

Least Squares Estimation

Understanding the Impact of Weights Constraints in Portfolio Theory

Khalid Sayood and Martin C. Rost Department of Electrical Engineering University of Nebraska

Forecasting methods applied to engineering management

Examining the Relationship between ETFS and Their Underlying Assets in Indian Capital Market

Genetic algorithms for solving portfolio allocation models based on relative-entropy, mean and variance

Performing Unit Root Tests in EViews. Unit Root Testing

Chapter 6: Multivariate Cointegration Analysis

Time Series Analysis

PIXEL-LEVEL IMAGE FUSION USING BROVEY TRANSFORME AND WAVELET TRANSFORM

Department of Economics

Chapter 4: Vector Autoregressive Models

Online Ensembles for Financial Trading

THE UNIVERSITY OF CHICAGO, Booth School of Business Business 41202, Spring Quarter 2014, Mr. Ruey S. Tsay. Solutions to Homework Assignment #2

JPEG compression of monochrome 2D-barcode images using DCT coefficient distributions

MGT 267 PROJECT. Forecasting the United States Retail Sales of the Pharmacies and Drug Stores. Done by: Shunwei Wang & Mohammad Zainal

ITSM-R Reference Manual

Contemporaneous Spill-over among Equity, Gold, and Exchange Rate Implied Volatility Indices

Market Efficiency and Stock Market Predictability

The relation between news events and stock price jump: an analysis based on neural network

HYBRID WAVELET ARTIFICIAL NEURAL NETWORK MODEL FOR MUNICIPAL WATER DEMAND FORECASTING

Turkey s Energy Demand

Dynamic Relationship between Interest Rate and Stock Price: Empirical Evidence from Colombo Stock Exchange

WAVELETS AND THEIR USAGE ON THE MEDICAL IMAGE COMPRESSION WITH A NEW ALGORITHM

Sachin Patel HOD I.T Department PCST, Indore, India. Parth Bhatt I.T Department, PCST, Indore, India. Ankit Shah CSE Department, KITE, Jaipur, India

Interpreting Market Responses to Economic Data

Prediction of Stock Price usingautoregressiveintegrated Moving AverageFilter Arima P,D,Q

Course Objective This course is designed to give you a basic understanding of how to run regressions in SPSS.

Do Commodity Price Spikes Cause Long-Term Inflation?

Econometric Modelling for Revenue Projections

3 Results. σdx. df =[µ 1 2 σ 2 ]dt+ σdx. Integration both sides will form

TIME SERIES ANALYSIS

Forecasting sales and intervention analysis of durable products in the Greek market. Empirical evidence from the new car retail sector.

A Prediction Model for Taiwan Tourism Industry Stock Index

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

Correlational Research. Correlational Research. Stephen E. Brock, Ph.D., NCSP EDS 250. Descriptive Research 1. Correlational Research: Scatter Plots

Volatility modeling in financial markets

Charles University, Faculty of Mathematics and Physics, Prague, Czech Republic.

Transcription:

World Applied Sciences Journal 19 (2): 276-280, 2012 ISSN 1818-4952; IDOSI Publications, 2012 DOI: 10.5829/idosi.wasj.2012.19.02.933 Forecasting Gold Return Using Wavelet Analysis Mahdi Nouri, Ali Reza Oryoie and Saman Fallahi Department of Economics, University of Tehran, Iran Abstract: This article shows the effect of wavelet analysis on forecasting performance from two perspectives of directional accuracy and the magnitude of the forecast errors. Wavelet analysis is used for decomposing gold return series into some subseries with distinct properties and data generating processes. Then each subseries is forecasted by a recursive ARIMA-GARCH in which the parameter estimates are updated recursively in light of new observations and its regressors are chosen recursively based on Akaike's Information Criterion regarding statistical significance of all coefficients. Next, the predicted values of each subseries are added to get the final forecast. Key words: Prediction Gold Return Wavelet Decomposition Recursive ARIMA-GARCH INTRODUCTION light of new observations and its regressors are then chosen recursively based on Akaike's Information Forecasting financial assets prices is very important Criterion regarding statistical significance of all for speculators, investors, policy makers, banks and coefficients. Finally, theses forecasts will be added companies. Gold is one the most important financial together to obtain the forecasts of the original series. It assets. Similar to most financial asset prices, gold price will be shown that this method will result in much better series has complex features like nonstationarity, forecasts from two perspectives of directional accuracy nonlinearity and high volatility, making its price forecast and the magnitude of the forecast errors. really complicated. Many attempts have been made for This method improves forecasting performance forecasting gold price. For instance, Antonino Parisi, highly because each time series (signal) consists of some Franco Parisi and David Diaz [1] have used a rolling neural subseries and each subseries has its own properties, network model to forecast one-step-ahead sign variations information and data generating process. Therefore, to in gold price. In another attempt, Khashei, Hejazi and forecast the time series under consideration (original time Bijari [2] have used a hybrid method based on Artificial series), it would be better to forecast the subseries Neural Network and fuzzy regression models for gold separately and then add the forecasts to get the forecast price forecast. These studies have predicted future gold of the original time series. prices based on the original level of the gold price series, It seems that using wavelet analysis for the purpose while the original level of the gold price and, more of forecasting has been firstly proposed by Tan et al. [3]. generally, financial asset prices often have complex There are four distinctions between the work of Tan et al. characters like nonlinearity, nonstationarity and and the research undertaken here. First, in this research, heteroskedasticity. These characters make the forecasting a criterion called entropy has been used to determine the difficult. Here, to deal with these complexities, the original number of decomposition levels, while no criterion was level of the gold return will be decomposed and then used in Tan s work. Second, in the current research, a reconstructed into an approximation and a detail series recursive ARIME-GARCH method was used for the using wavelet analysis. The approximation series purpose of forecasting in which coefficients and indicates the main trend of the original series and the regressors were recursively changed and chosen based detail series shows the noises of the original series. The on a model selection criterion, whereas a simple ARIMA approximation and detail series will be then independently and a simple GARCH has been used respectively for forecasted by a recursive ARIMA-GARCH method in forecasting the approximation and the detail series in the which the parameter estimates are updated recursively in work of Tan et al. [3]. The advantages of this method Corresponding Author: Mahdi Nouri, Kargar-e-Shomali Avenue, Faculty of Economics, University of Tehran, Tehran, Iran. 276

(recursively changing coefficients and regressors) in the signal to shifted and compressed or stretched forms of the process of forecasting have been fully explained in wavelet and it shows the match between the signal and Pesaran and Timmermann [4]. Third, in this research, the analyzing function. The larger the absolute value of forecasting performance has been assessed from two the number Inn, the more the similarity. To maximize Inn, aspects of the magnitude of the forecast errors and after choosing a specific wavelet, the wavelet is directional accuracy and also a statistical test was continuously shifted from the beginning of the signal to conducted to determine whether or not the forecast errors the end by increasing b. Then, it is stretched by are statistically reduced, while in the work undertaken by increasing a and again it is shifted from the beginning to Tan et al. [3], no test were done to check whether or not the end. This process is repeated for all scales in order to the forecast errors are statistically reduced and also the maximize Inn. It is worth saying that the bigger the scale forecast errors were not assessed from the aspect of factor a, the more stretched the wavelet and shifting a directional accuracy, which is more important than the wavelet means delaying its onset. For example, delaying magnitude of the forecast errors in the financial markets by b is shown by (t b) (see Mallat [6]). (see Pesaran and Timmermann [4]). Forth, Tan et al. [3] The calculation of the CWT at every possible scale worked on forecasting electricity price, while the Gold and position needs a huge amount of work. To reduce the price was forecasted in this study. Electricity volatility is number of the calculations, only a subset of scales and less than the volatility of the gold price, making its price positions is chosen. This is exactly the concept of the forecasting an easy job compared to the Gold price Discrete Wavelet Transform (DWT). An algorithm for forecasting. Gold is one of the most volatile financial doing this scheme was developed by Mallat [7]. The assets of the world. DWT is used to produces two types of coefficients The remainder of this paper is organized as follows: called ca (approximation coefficients) and cd (detail section 2 describes the methodology which is used for coefficients). The detail coefficients are small and consist forecasting gold return. Section 3 presents the empirical of a high-frequency noise, whereas the approximation results and Section 4 summarizes the article. coefficients contain much less noise compared to the original signal. This decomposition can be continued by MATERIALS AND METHODS decomposing the approximation itself to an approximation and a detail and so on. Figure 1 graphically shows this It seems what we call wavelet is first mentioned by process. This process can be continued indefinitely, but Alfred Haar in 1909 for the first time. However, the there is a criterion to determine an appropriate number of concept of wavelets was first stated by Jean Morlet and decomposition levels. This criterion is called entropy, the team at the Marseille Theoretical Physics Center which should be minimized to give the optimum level. working under Alex Grossmann in France and it was There are several entropy criteria such as Shannon, developed by Y. Meyer and his colleagues. For more threshold, energy and etc. In this study, the Shannon details about the history and the concepts of wavelets see entropy was used (Coifman and Wickerhauser [7]). Hubbard [5]. After decomposing the original signal to the There are two major wavelet transforms including coefficients, the coefficients are converted to some series Continuous Wavelet Transform (CWT) and Discrete which their summation results in the original signal. This Wavelet Transform (DWT). The CWT uses inner process is called reconstruction and it is undertaken products to measure the similarity between a signal (time using a method called Inverse Discrete Wavelet series) and an analyzing function. The analyzing function Transform (IDWT). (Strang and Nguyen [9]). The is a wavelet and it is denoted by and the signal is mathematical relation of the reconstruction process is denoted by f(t). The inner product is described as shown as Equation 2. Equation 1 with scale parameter a>0 and position parameter b: + 1 1 t b f ( t) = Inn( a, b, (t)) db da 0 2 a b a (2) Innab (,, + 1 t b (t)) = f( t) dt (1) a a Where Inn(a, b, (t)) is obtained from Equation 1. Where Inn(a, b, (t)) is called the CWT coefficients. It is Figure 1 displays the process of the decomposition of a a function of the values of scale, position and the series. DWT is used to decompose the original series to wavelet which is chosen for analyzing. It compares the coefficients ca3, cd3, cd2 and cd1; and IDWT is used to 277

ca3 ca2 Original signal ca1 cd3 cd2 cd1 Fig. 1: The process of the decomposition of a signal convert the coefficients to series A3, D3, D2 and D1 respectively. The summation of these series is then computed to obtain the original signal (i.e. Original signal = A3+D3+D2+D1). In here, for instance, A3 is called third-level approximation and D3 is called third-level detail and so on. After finding the approximation and the details, they are all independently forecasted using an appropriate forecasting model. The forecasted values are all then added together to get the forecasted value of the original series. For forecasting the approximation series and each detail series, we used a recursive ARIMA-GARCH in which the parameter estimates were updated recursively in light of new observations and also its regressors were chosen recursively based on Akaike's Information Criterion [10] regarding statistical significance of all coefficients. The ARIMA model is widely used in forecasting time series. It is generalization of a simple autoregressive model (AR) that uses three tools for modeling serial correlation in the time series under consideration. The first tool is an AR term; the second tool is an integration order term; and the last tool is a moving average term (MA) (see Hamilton [11] for more details). It is possible to use an ARIMA model for forecasting, but in an ARIMA model, it is assumed that the error of the model includes zero mean and constant variance. However, financial time series are usually highly volatile, so the assumptions are not often met. To deal with this problem, financial economists suggest the application of a generalized autoregressive conditional heteroskedastic model (GARCH). This is the reason why a combination of ARIMA and GARCH models was used in this study (see Enders [12] for more details about GARCH models). To compare the forecasting performance of the concerned methods, two criteria were used. Mean Square Prediction Error (MSPE) and another criterion whose focus is on the correct forecast of the direction of change in the variable under consideration. The latter criterion is computed as follows, first, a series is made that takes the value of unity if the direction of change in the log price is forecasted correctly and zero otherwise. Then the number of times that the direction is correctly forecasted is divided by the total number of the forecasts. In financial markets, directional accuracy is more important than the magnitude of the forecast errors. Because, investors usually are interested in forecasting the sign of return not necessarily the magnitude of the return, so the latter criterion appears to be a more important than the former. To test whether or not the MSPEs of two forecasting models are statistically equal, a F-statistic is usually used, which is calculated like. If 2 2 2 i = 1i 2i 1i 2i z e [ e ( f f ) ] MSPE of model 1 ( l arg er MSPE) F = MSPE of model 2 ( smaller MSPE ) the two MSPEs of two models are equal, the value of F will be one and there is not a meaningful difference between the forecasting performances of the models. This test needs the following assumptions. First, the forecast errors should have a normal distribution with zero mean. Second, the forecast errors should be serially uncorrelated. Third, the errors should be contemporaneously uncorrelated. However, these assumptions are rarely met in practice. Clark and West [13] proposed a procedure which does not require the assumptions. Let s denote respectively the forecasts and the forecast errors of the model without wavelet decomposition as f 1i and e 1i and the forecasts and the forecast errors of the model with wavelet decomposition as f 2i and e 2i. Then, a variable like z i is defined as follows: Under the null hypothesis of equal MSPEs (the same forecasting performance from the aspect of magnitude), z i should be zero. To see whether it is zero or not, regress it on a constant and check the t-statistic for the constant. Consider that the test is one-sided. If the constant is not statistically different from zero, MSPEs will be zero, implying the MSPEs will be equal. RESULTS AND DISCUSSION To show the effect of wavelet decomposition on forecasting performance, monthly observations on gold price from December 31, 1389 to August 31, 2011 (a total (3) 278

Table 1: Numerical Results Forecasting return Proportion of correct signs MSPE T-statistic (Clark-West test) Without wavelet decomposition 63% 0.00188 5.89 (0.000) Using wavelet decomposition 86% 0.00034 Note: probability value stated in () Fig. 2: Graphical Representation of Results of 261 months) were used. As already mentioned, we used a recursive modeling approach to compute one-stepahead GARCH model to obtain A ˆ1 and D ˆ1 Finally, the one-stepahead forecasts of the returns were computed by Aˆ 1+ Dˆ 1. forecasts of gold returns. Our forecasting model was a recursive ARIMA-GARCH in which the parameter estimates were updated recursively in light of new observations. Also, its regressors were chosen recursively based on AIC regarding statistical significance of all coefficients at the 10% significance level. The first forecast was computed in April 30, 2003 and the observations before this date were used as a preliminary training period for estimation. The number of forecasts was 100. For decomposing the return series, we used Daubechies wavelet of order 3. There are many different wavelets such as Daubechies, Biorthogonal, Coiflet, Morlet, Meyer, Haar and etc (Radunovi [14]). It seems that Daubechies of order 3 visually matches with gold returns better than the others. To decide how many levels the return should be decomposed, the Shannon entropy criterion was used. The criterion resulted in 1 decomposition level. Therefore, we only built the firstlevel approximation, A1 and the first-level detail, D1. Then, they were forecasted using the recursive ARIMA- 279 Numerical results were presented in Table 1. As seen, the directional accuracy of the forecasting model has increased from 63% to 86% (23% increase), implying a substantial improvement in forecasting performance. Moreover, the MSPE has also improved so that its value was reduced from 0.00188 to 0.00034. This means that the forecast errors have become 5.5 times smaller. This significant decrease in the forecast errors was confirmed using the Clark-West test. As seen in Table 1, the null hypothesis of equal MSPEs has been rejected at all conventional levels, so we can strongly claim that MSPE has decreased. In addition, the forecasted and the actual values were depicted by the red lines and the black lines respectively in Figure 2. Panel A of Figure 2 is related to model 1 (i.e. forecasting the original series) and panel B is related to model 2 (i.e. forecasting the components of the original series after decomposition). Figure 2 shows that the forecasted values have really got closer to the actual values after wavelet decomposition. It could be, therefore, concluded that the application of wavelet decomposition certainly led to much better forecasts.

CONCLUSION 4. Pesaran, M.H. and A. Timmermann, 1995. Predictability of Stock Returns: robustness and In this research, gold return was decomposed and economic significance. Journal of Finance, then reconstructed using a wavelet transform into some 50: 1201-1228. series. Then, one-step-ahead forecasts of the series were 5. Hubbard, B.B., 1996. The world according to computed using a recursive ARIMA-GARCH in which the wavelets, AK Peters, Wellesley. The French original parameter estimates were updated recursively in light of version is titled Ondes et Ondelettes. La saga d'un new observations and also its regressors were chosen outil mathématique, Pour la Science. recursively based on the AIC regarding statistical 6. Mallat, S., 1999. A wavelet tour of signal processing. significance of all coefficients. The forecasts were then California: Academic Press. added together to obtain the forecasted values of the 7. Mallat, S., 1989. A theory for multiresolution signal original returns. Using a separate strategy, the original decomposition: the wavelet representation. IEEE return was forecasted using the same forecasting model Pattern Anal. and Machine Intell, 11: 674-693. without any wavelet analysis. Finally, it was shown that 8. Coifman, R.R. and M.V. Wickerhauser, 1992. Entropyforecasting using wavelet analysis intensively increased based algorithms for best basis selection. IEEE Trans. forecasting performance utilizing comparisons undertaken on Inf. Theory, 38: 713-718. between the directional accuracy of the forecasts, MSPEs 9. Strang, G. and T. Nguyen, 1996. Wavelets and Filter and a statistical test proposed by Clark and West on the Banks, Wellesley-Cambridge Press: Wellesley, MA. forecast errors. 10. Akaike, H., 1973. Information theory and the extension of the maximum likelihood principle, REFERENCES In: B.N. Petrov and F. Csaki, (Eds.), Proceedings of the Second International Symposium on Information 1. Parisi Antonino, Parisi Franco and Diaz David, 2008. Theory, Budapest: Hungary, pp: 267-281. Forecasting Gold Price Changes: Rolling and 11. Hamilton, J.D., 1994. Time series analysis. Princeton: Recursive Neural Network Models. Journal of Princeton University. Multinational Financial Management, 18(5): 477-487. 12. Enders, W., 2010. Applied Econometrics Time Series. 2. Khashei, Mehdi, Hejazi, Seyed Reza and Bijari, New Jersey: John Wiley and Sons. Mehdi, 2008. A new hybrid artificial neural networks 13. Clark, T. and K. West, 2006. Using out of sample and fuzzy regression model for time series Mean Square Error Prediction Errors to test the forecasting. Fuzzy Sets and Systems, 159: 769-786. martingale difference Hypothesis. Journal of 3. Tan, Z., J. Zhang, J. Wang and J. Xu, 2010. Day- Econometrics, 135: 155-86. ahead electricity price forecasting using wavelet 14. Radunovi, D.P., 2009. Wavelets: from math to transform combined with ARIMA and GARCH practice. Springer Verlag: Berlin Heidelberg. models. Applied Energy, 87: 3606-3610. 280