Научная статья на тему 'APPLICATION OF ECONOMETRIC MODELING TECHNIQUES FOR FOREIGN EXCHANGE RATE FORECASTING'

APPLICATION OF ECONOMETRIC MODELING TECHNIQUES FOR FOREIGN EXCHANGE RATE FORECASTING Текст научной статьи по специальности «Экономика и бизнес»

CC BY
14
2
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
ECONOMETRIC MODEL / EXCHANGE RATE FORECASTING / REGRESSION ANALYSIS / SUPPORT VECTOR MACHINE (SVM)

Аннотация научной статьи по экономике и бизнесу, автор научной работы — Шанцева А.А.

В период экономической нестабильности способность прогнозировать курс валют становится решающим фактором в ходе принятия решений о хиджировании, инвестициях, финансировании проектов и привлечении заемного капитала. В данной статье приводятся результаты исследования применения математических моделей и эконометрических методов для прогнозирования курса валюты. Прогноз динамики курса пары «доллар США/российский рубль» на I квартал 2016 г. моделируется с помощью регрессии методом опорных векторов. Разработанная модель показывает хорошие результаты и высокую точность прогноза, что делает ее удобным инструментом для валютных трейдеров, инвесторов и спекулянтов.In a turbulent economic environment, being able to forecast the direction of exchange rates is a key factor behind hedging, investment, financing and capital budgeting decisions. The article focuses on the application of econometrics and mathematical modelling techniques for the purpose of forecasting foreign exchange rateы. A Support Vector Regression Model is used to produce a USD/RUB exchange rate forecast for the first quarter of 2016. The model proves to have high predictive power, and therefore it might be of great use for FX market traders, investors and speculators.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «APPLICATION OF ECONOMETRIC MODELING TECHNIQUES FOR FOREIGN EXCHANGE RATE FORECASTING»

1. Федеральная служба государственной статистики. [Электронный ресурс]. Режим доступа: http://www.gks.ru (дата обращения 16.01.2017).

2. Закон РФ «О занятости населения в Российской Федерации» N 1032-1 от 19 апреля 1991 года.

З.Электронная библиотека студента. [Электронный ресурс]. Режим доступа: http://bibliofond.ru// (дата обращения 16.01.2017)

4. Кемеровостат. [Электронный ресурс]. Режим доступа: http://kemerovostat.gks.ru/ (дата обращения 16.01.2017)

5. Регионы России. Социально-экономические показатели 2012. Статистический сборник. - М.: Росстат. - 2012. - 990 с.

6. Росстат. [Электронный ресурс]. Режим доступа: http://www.gks.ru/ (дата обращения 16.01.2017)

7. Архипов А.И., «Экономика», М:Проспект, 2-е издание, 2005 - 840 с.

УДК 519.866

Шанцева А.А. студент магистратуры 1 курса «Международный Финансовый Факультет»

Финансовый Университет при Правительстве Российской Федерации

Гончаренко В.М. научный руководитель, доцент Трегуб И.В., к.тн., д.э.н. научный руководитель Россия, г. Москва ПРИМЕНЕНИЕ ЭКОНОМЕТРИЧЕСКИХ МЕТОДОВ ДЛЯ ПРОГНОЗИРОВАНИЯ КУРСА ВАЛЮТ Аннотация: В период экономической нестабильности способность прогнозировать курс валют становится решающим фактором в ходе принятия решений о хиджировании, инвестициях, финансировании проектов и привлечении заемного капитала. В данной статье приводятся результаты исследования применения математических моделей и эконометрических методов для прогнозирования курса валюты. Прогноз динамики курса пары «доллар США/российский рубль» на I квартал 2016 г. моделируется с помощью регрессии методом опорных векторов. Разработанная модель показывает хорошие результаты и высокую точность прогноза, что делает ее удобным инструментом для валютных трейдеров, инвесторов и спекулянтов.

Ключевые слова: эконометрическая модель, прогнозирование курса валют, регрессионный анализ, метод опорных векторов, финансовое моделирование

APPLICATION OF ECONOMETRIC MODELING TECHNIQUES

FOR FOREIGN EXCHANGE RATE FORECASTING

Abstract: In a turbulent economic environment, being able to forecast the direction of exchange rates is a key factor behind hedging, investment, financing and capital budgeting decisions. The article focuses on the application of econometrics and mathematical modelling techniques for the purpose of forecasting foreign exchange rateu. A Support Vector Regression Model is used to produce a USD/RUB exchange rate forecast for the first quarter of 2016. The model proves to have high predictive power, and therefore it might be of great use for FX market traders, investors and speculators.

Key words: econometric model, foreign exchange rate, exchange rate forecasting, regression analysis, support vector regression (SVR), support vector machine (SVM)

INTODUCTION

Many entities have an interest in being able to forecast the direction of exchange rates. Whether you are a business or a trader, having an exchange rate forecast to guide your decision making can be very important to minimize risks and maximize returns. Exchange rate forecasts are a key factor for a wide variety of decisions taken by businesses, including: hedging decisions, short-term financing decisions, short-term investment decisions, capital budgeting decisions, earnings assessments, and long-term financing decisions. [7]

What is more, exchange rate forecasting is very important to evaluate the benefits and risks attached to the international business environment. International transactions are usually settled in the near future; therefore, exchange rate forecasts are necessary to evaluate the foreign denominated cash flows involved in international transactions. [8]

Over the recent years, forecasting the exchange rates has become a burning issue for the Russian economy: in November 2014, the Bank of Russia took a step towards a free float ruble by abolishing the dual currency soft peg, as well as automatic interventions. [6] At present, Russia employs a floating exchange rate regime, which means that the ruble exchange rate against foreign currencies is set by the market, i.e. the ratio between the demand for foreign currency and its supply in the FX market. Any factors disturbing this ratio initiate exchange rate fluctuations.

The Bank of Russia's decision to set the rate free came only days after the rouble had suffered its biggest weekly drop in 11 years, amid fears that Russia could face a self-fulfilling currency crisis. After that, the ruble became extremely volatile. In June, the ruble's three-month implied volatility, a measure of exchange-rate swings, was at 20 percent, the highest globally, according to data compiled by Bloomberg. [5] Throughout the year, the "price" range of dollar was from 49 to 70 rubles. In a turbulent economic environment like this, a reliable exchange rate forecast would increase the confidence of Russian businesses; it would also contribute to the accuracy, reliability and efficiency of micro- and

macroeconomic planning and forecasting.

However, forecasting the exchange rate is a huge problem. Firstly, it is not clear what factors are the key determinants of the exchange rate. Exchange rate dynamics may be influenced by changes in export and import prices, inflation levels and interest rates in Russia and other states, economic growth rates, investors' sentiment and expectations in Russia and world-wide, changes in monetary policies pursued by central banks in Russia and other countries. [10] Clearly, it is practically impossible to account for all of them. Moreover, the accuracy and reliability of exchange rate forecasts based on commonly used forecasting models (particularly linear ones) is really doubtful. In fact, many researchers point out that short-term movements in exchange rate are unpredictable and cannot be projected in a systematic fashion. [2] The situation in the Russian foreign exchange market in 2015 seems to provide the perfect opportunity to check whether some modern mathematical modelling techniques actually work in a turbulent environment and can resolve the problem of exchange rate forecasting.

METHODOLOGY

Deciding which of thousands of market signals to ignore and which to act on poses a challenging problem which potentially lends itself well to techniques in machine learning. Support Vector Regression models, also known as Support Vector Machines, have been shown to outperform a number of learning algorithms in FX prediction [9]. The nonlinear predictive power and input size independent generalization error afforded by SVMs make them well suited to high dimensional classification problems [9]. Of the learning algorithms applied to FX forecasting in the literature, hybrid combining models, such as Genetic Algorithm SVMs, achieve the best overall results. On theoretical grounds, it has been shown that SVMs have a few interesting properties which may support the notion that SVMs generally perform better than ANNs. However, on empirical grounds, based on experimentation results, no solid conclusion could be drawn regarding which model performed the best on the EUR/USD data set. [1] Therefore, I decided to apply support vector regression to see whether it yields adequate results. To measure the accurateness of the forecast, I used the root mean standard error (RMSE). In fact, RMSE is the most popular indicator which enables researchers to see whether the model produces accurate forecasts; the higher the RMSE, the less accurate the forecasting model. [8]

The basic idea of the SVM is finding a maximum margin classifier that separates a training set between positive and negative classes, based on a discriminant function that maximizes the geometric margin. The model selection for the prediction models is generally based on the bias-variance dilemma, which denotes the trade-off between the amount of variation within different estimators on different values of a specific data set (variation) and the difference between the estimator's expected value and the true value of the parameter being estimat ed (bias). [1]

Although SVM was originally introduced for classification purposes, SVMs can easily be extended to the task of regression and time series prediction, for which the focus of this research lies on. The constrained optimization problem is transformed to minimizing a certain cost function q as a function of the soft-margin constant C. This cost function q has at most £ deviation, also known as the tube size of the SVM, from the actual values yi for all . The cost function is defined as [1]:

1 1ST

q(c) = -WwW2 + C-) L£(yi,yO

i=i

L£(yi,yD = \lyI-ytl-£ if

L 0 otherwise

The vector yf is the predicted outcome for the desired outcome yt. If the absolute difference between the predicted outcome and the desired outcome is equal or larger than s , measured by the s-insensitive loss function L£(yi,y:f), the

penalty function C - Yi=1L£(yi,yf), also known as the empirical risk, increases

and penalizes that error by the amount of the soft-margin constant C. Introducing the slack variables and <ff, that denote errors larger than +s and —£ respectively, the constrained optimization problem is now defined as [1]:

n

1

f)

q(c)=1\\w\\2 + C^i + î;D,

minimize w, „ _____

2

i=1

subject to: yt — (w. xt) — bt < £ +

-yi + (w.xi) + bi<£ + %i,

^M > 0.

DATA ANALYSIS & MODEL RESULTS

I performed SVR analysis in R Statistics (using CRAN e1071 package). I used the USDRUB_TOD as the index for my analysis. USDRUB_TOD is the instrument which enables the trader to buy or sell US dollars (in lots) for Russian rubles, with the deal being executed on the day of trading ("today"). That's one of the most short-term instruments on MOEX.

The input range for the model included 226 observations of the daily closing values of USDRUB_TOD in 2015. The summary statistics of the dataset is given in Table 1.

Table 1. SVR model input statistics

Data type closing USDRUB TOD, daily

Number of observations 226

Mean value, RUB 61.57

Daily volatility (standard deviation), % 1.81

Sources: MOEX official website, author

These values were used as a training dataset of n = 226 points. The result was a non-linear fitted line with a root mean squared error of approximately 1.68 rubles, which is a really good fit. However, that was the untrained version. In order to improve the performance of the support vector regression, I tried to select the best parameters for the model. Initially, I performed an epsilon-regression, but I did not set any value for epsilon, so it took a default value of 0.1. There is also a cost parameter which can be changed to avoid overfitting. [3] Therefore, I used the grid search method, that is - trained a lot of models for the different couples of epsilon and cost, improving the RMSE, and chose the best one. The trained model has the following properties:

• SVM-Type: eps-regression

• SVM-Kernel: radial

• cost: 256

• gamma: 1

• epsilon: 0.1

• Number of Support Vectors: 142

Training enabled to improve the accuracy of the fit: RMSE of the tuned model was 1.47 rubles. The tuned SVR model is depicted on Chart 1.

Chart 1. Tuned SVR model

0 50 100 150 200

X

Source: author

Finally, the tuned model was used to generate a forecast for the first quarter of 2016. The input values included 62 USDRUB_TOD observations; the summary statistics of the dataset is presented in Table 2.

Table 2. Tuned SVR model forecast input statistics

Data type closing USDRUB TOD, daily

Number of observations 62

Mean value, RUB 74.46

Daily volatility (standard deviation), % 1.81

Source: MOEX official website; author

These input values were put to the tuned SVR model to produce the projected values of Y. The forecast is plotted against the actual data on Chart 2.

Chart 2. Testing the SVR model: forecasted & actual values for Q1 2016

* *

. # • •• ♦ * * • . • * * , • • •** *

-

0 10 20 30 40 50 60

X

Source: author

As follows from the chart, the model produces a non-linear range of predicted values for USDRUB_TOD for the first quarter of 2016. On the whole the predicted values are a bit less than those observed in reality, but the fitted line matches the general trend and the forecast for the end of the quarter matches the reality in a pretty accurate manner. The RMSE of the forecast equals 5.68 rubles. CONCLUSION

As follows from my empirical research, Support Vector Regression model provides rather accurate exchange rate forecasts - even in an extremely turbulent environment. This technique provides an opportunity to overcome the problem of selection of factors that should be included in the model and at the same time involves complex algorithms to achieve the best results. The model also does not depend on the quality of inputs and does not contain intrinsic contradictions. Previous research indicates that feature and kernel selection are key determinants of an SVM's predictive power. [1]

It should be noted, however, that SVR models appear to be the most efficient in the short-term or mid-term horizons, particularly when the testing sample is small. Therefore, the quantity of input points might affect the results. To apply the model for long-term datasets, one should make sure that the training set is sufficiently large for the model to provide adequate results. In addition,

although the exchange rate values predicted by the SVR model are really close to the actual figures, the model still tends to soothe extremities and level off harsh swings in the market trend. Moreover, the model developed in this article is a time series one: rather than reflecting some economic laws or relationships, it just matches the trend over time. Therefore, it cannot be used for analyzing key factors that determine the exchange rate, as well as for regulatory or policy making purposes. However, it is a very handy method for traders, speculators, FX market analysts and all other economic agents that require a reliable exchange rate forecast. Thus, I strongly believe that new complex forecasting techniques for foreign exchange rate forecasting, like SVR, have a bright future ahead of them.

Literature:

1. Alamili, M. Exchange Rate Prediction using Support Vector Machines // LAP LAMBERT Academic Publishing. 2011.

2. Department of Treasury and Finance of Western Australia. Exchange Rate Forecasting Review // Government of Western Australia. 2009.

3. Kowalczyk A. Support Vector Regression with R, 2014 // SVM Tutorial

4. Ping-Feng Pai, Chih-Shen Lin, Wei-Chiang Hong, Chen-Tung Chen A Hybrid Support Vector Machine Regression for Exchange Rate Prediction. // Information and Management Sciences. 2006.

5. Robinson J. Russia Free-Float Skeptics Gather as Ruble Seen on Shorter Leash // Bloomberg. 2015.

6. Russian Central Bank declares change in policy and lets ruble float freely // Russia Beyond the Headlines. 2014.

7. Suslov, M., Tregub, I. Modeling the currency exchange rate. Methods and principles // Economics. 2015. №1. pp. 67-70

8. Susmel R., Kalimipalli M. Switching Stochastic Volatility and the Short-Term Interest Rates // Journal of Empirical Finance. 2004. №11.

9. Ulrich C., Seese D., Chalup S. Foreign Exchange Trading with Support Vector Machines, Advances in Data Analysis // Berlin. 2007.

10.Политика валютного курса Банка России // Официальный сайт Банка России. 2015.

УДК 339.138

Шапагатов С. Р. студент Батанова М.В. студент Валиуллова Р.И. студент Перевезенцева Е.Д.

студент

Тольяттинский Государственный Университет

Россия, г. Тольятти

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.