Keywords

1 Introduction

The near-breakdown of the European Exchange Rate Mechanism in 1992–1993, the Latin American Tequila Crisis following Mexico’s peso devaluation in 1994–1995 and the Asian financial crisis in 1997–1998 were several episodes of currency turmoil in 1990s [1]. In view of Asian’s currency turmoil, Thailand, Korea, Indonesia and also Malaysia were among the countries that were affected. A strong currency is able to form a shield against any possible problem with the economy of a country.

Malaysia Ringgit denoted as MYR is the national currency of Malaysia federation. The three letter system of codes in ISO 4217 is introduced by the international organization for standardization to define the currency [2]. Besides that, currency trades in pairs, therefore, Malaysia deals a lot with China, Singapore, Japan, European Union, United States, Thailand, Korea, Indonesia, Taiwan and Australia [3]. Foreign exchange rate is the monetary value of one currency in terms of another currency. Foreign exchange rate has become more volatile during the past decades. It also gives big influence on the whole economy and the country itself. Foreign exchange transaction nowadays involves greater foreign exchange risk.

According to [4], the foreign exchange risk refers to the risk that the value of trading return may change due to the fluctuation of exchange rate. It can occur because of the international obligations span time between the day of transactions and payment. Value at risk (VaR) is the most popular method in the risk management department. VaR can simply be defined as a measure of potential loss of some risk value associated with the general market movements over a defined period of time with a given confidence interval.

One of the earliest past researches in VaR of exchange rates was by [5] that examined the model of conditional autoregressive VaR (CAViaR) that was proposed by [6]. A study [7] states the risk value for currency market can be predicted by using the variance covariance model. It concludes that the proposed model is approved of its accuracy in valuation the risk of the forex market. Nevertheless, VaR is essential and most of the models calculate the VaR for the current time. Hence, to be able to forecast the VaR accurately can lead to better decisions.

In this study, the focus is on the VaR method using parametric approach. The objectives of this study are to integrate the VaR model with the GBM model in order to compute the VaR for currencies for different confidence levels, to forecast the foreign exchange rate, for example, between CNY, SGD, JPY, EUR, USD, THB, KRW, IDR, TWD and AUD with MYR using GBM model and to identify the feasibility of the integrated VaR model with the GBM model.

2 Mathematical Models

Parametric and non-parametric models are the most common model in VaR method. The study applies the parametric model based on statistical parameter of the risk factor distribution. This model considers the rate of returns of foreign exchange rate as the risk factor that follows a normal distribution curve as in Eq. (1) below [8,9,10]:

$$ v = AS(\mu \delta t - \sigma \delta t^{{\frac{1}{2}}} \cdot \alpha (1 - c)). $$
(1)

Based on the above VaR model, the terms A and S are the number of portfolios and the foreign exchange rate respectively. It is followed by the terms

$$ \mu \delta t - \sigma \delta t^{{\frac{1}{2}}} \alpha (1 - c). $$

The quantity \( \mu \delta t \) refers to the average annual return µ of the foreign exchange rate with the timestep \( \delta t \) is equal to 1/252. The quantity σ in the term \( \sigma \delta t^{{\frac{1}{2}}} \) is the standard deviation with timestep \( \delta t^{{\frac{1}{2}}} \). The last term \( \alpha (1 - c) \) is the value of quartiles of the standard normal variable in a given confidence level c as in Table 1.

Table 1. The value of lower quartile of normal distribution

The study computes the VaR on foreign exchange rate using the above parameters.

From the historical data, the relative daily return of the \( i^{th} \) day, \( R_{i} \) is computed using equation below [9, 11]:

$$ R_{i} = \frac{{S_{i + 1} - S_{i} }}{{S_{i} }} $$
(2)

where \( S_{i} \) is the foreign exchange rate on the \( i^{th} \) day. Then, the values of the average daily return \( \mu \delta t \) are calculated using equation as below [10, 11, 15]:

$$ \mu \delta t = \overline{R} = \frac{1}{M}\sum\limits_{i = 1}^{M} {R_{i} } $$
(3)

where M is the number of foreign exchange rate return. Then, the standard deviation of daily return \( \sigma \delta t^{{\frac{1}{2}}} \) is calculated based on

$$ \sigma \delta t^{{\frac{1}{2}}} = \sqrt {\frac{1}{(M - 1)}\sum\limits_{i = 1}^{M} {((\log \,S_{i} - \log \,S_{i - 1} )^{2} } } . $$
(4)

The quantity \( \sigma \) is the log volatility.

Equations (3) and (4) are used to calculate the VaR in Eq. (1). By using Eq. (1), the VaR is calculated for one day holding period v(1) for five different confidences. In order to compute the future VaR in foreign exchange trading, the study focused on using the historical data and the foreign exchange rate Malaysia Ringgit was chosen as the domestic currency. The study [13] focused on secondary data that was obtained from the session at 12.00 pm and used the middle rate of data. The data had information on the foreign exchange rate among various countries.

VaR can also be calculated using the root function v(h) as below [14]:

$$ v(h) = v(1) \cdot \sqrt h $$
(5)

where h is equal to the number of the holding period.

This study proposes to forecast VaR by using the forecast foreign exchange rate. In order to find the forecast value of the foreign exchange rate, the equation of the log normal random walk is used [8, 9, 11, 12] as follows:

$$ S(t) = S(0)\,e^{{[\mu - \frac{1}{2}\,\sigma^{2} ]t + \sigma (x(t) - x(0))}} $$
(6)

where S(0) is actual foreign exchange rate at t = 0, µ is equal to drift, σ is equal to volatility, t is equal to timestep and x(t) is equal to the random number at time t.

Here, the study integrates VaR model with GBM model. It substitutes Eq. (6) into (1) with A = 1. An integrated VaR is

$$ v(t) = A(S(0)\,e^{{[\mu - \frac{1}{2}\,\sigma^{2} ]t + \sigma (x(t) - x(0))}} ) \cdot (\mu \delta t - \sigma \delta t^{{\frac{1}{2}}} \cdot \alpha (1 - c)) $$
(7)

where the forecast foreign exchange rate is used in order to forecast the VaR accurately.

In order to verify this model, the study compared both values of VaR calculated using the forecast and the actual foreign exchange rate by using the mean absolute percentage error (MAPE) as a model of accuracy in Eq. (8) [11]:

$$ E = \sum\limits_{t = 1}^{n} {\frac{{\left| {\left( {\frac{{e_{t} }}{{y_{t} }}} \right)*100} \right|}}{n}} $$
(8)

where n is the effective data points and \( \left| {\left( {\frac{{e_{t} }}{{y_{t} }}} \right)*100} \right| \) is the absolute percentage error with, \( e_{t} = y_{t} - \hat{y}_{t} \), \( y_{t} \) is the actual value and \( \hat{y}_{t} \) is the forecast value. In order to judge the accuracy of the model, a scale based on the MAPE measure was used as in Table 2.

Table 2. A scale of judgement of forecast accuracy.

Therefore the study compares the VaR of the historical data and the VaR of forecast foreign exchange rates.

3 Methodology

The integrated model of VaR and GBM that produces Eq. (8) can be verified by using the foreign exchange rate data.

3.1 Data Collection

There are many currencies in the world, but in this study only eleven currencies were selected. The countries that had been chosen were Malaysia (MYR), China (CNY), Singapore (SGD), Japan (JPY), European Union (EUR), United State (USD), Thailand (THB), Korea (KRW), Indonesia (IDR), Taiwan (TWD) and Australia (AUD). These are the countries that deal regularly with Malaysia in international trading, investment and others [15, 16].

In order to calculate the VaR and forecast the foreign exchange rate, the rates that had been chosen are Malaysia Ringgit as the domestic currency. The study focused on secondary data because it was more reliable than other sources. The data were obtained from [13] that had provided three sessions of data which were taken at 9.00 am, 12.00 pm and 5.00 pm. There are slight differences of foreign exchange rates between the three sessions. It also provided three different types of rate, which were buying rate, middle rate and selling rate. The study focused on the session at 12.00 pm and used the middle rate of data. According to the interview with the senior executive of foreign exchange at Bank Negara Malaysia, the session at 12.00 pm is the most active trading time in Malaysian market.

In this study, the data were obtained from 2nd May 2013 until 27th August 2014. All the historical data within the covered period was used to calculate the VaR. For the forecast foreign exchange rate, data from 2nd May 2013 until 30th May 2014 was considered as input data that was used to generate initial forecasts. Data from 2nd June 2014 until 27th August 2014 was used as comparison with forecasting values. From the historical data, the study analyzed its characteristic and performance for each currency.

3.2 Computation of Value at Risk Using Parametric Approach

In order to analyze the risk in foreign exchange rate, the VaR using the parametric approach was selected. The VaR measures were expressed in terms of currency, which is Ringgit Malaysia (RM). The probability of maximum loss is usually about 10% and it depends on the degree of choosing confidence level. The degrees of the confidence level of this stage are 99.9%, 99%, 97.5%, 95% and 90%.

Firstly, the study used one day VaR as the holding period and thirteen months historical data to calculate the VaR. The VaR today can be calculated using the previous historical data. Then, the study calculated the average of VaR from the 90% until 99.9% confidence level. The currency is ranked in decreasing order to identify the most risky country in foreign exchange trading pairs. Secondly, the study analyzed and compared the VaR for different holding periods. The chosen holding periods are 1-day, 5-days, 20-days, 40-days and 60-days with the fixed confidence level of 99%. The study calculated the VaR by shifting the 13 months historical data usage using Eq. (1). It shifted the historical data usage by 5, 20, 40 and 60 days in order to calculate VaR today for the next 5, 20, 40 and 60 days respectively, and the results were compared with the VaR calculation using the root function (5).

3.3 Identify the Feasibility of Integrated Value at Risk Model with the Geometric Brownian Motion Model

At this stage, the aim was to measure the feasibility of integrating VaR model with GBM model. The VaR model for foreign exchange rate was calculated using (1). The VaR calculation method by shifting the historical data was selected. The VaR was calculated using a confidence level of 99% and different holding periods that are 1-day, 5-days, 20-days, 40-days and 60-days. Therefore, the study compared the VaR that uses totally historical data (HD) and the VaR from mixed data with the GBM forecast rate. The model of accuracy, MAPE in (8) was selected and the result was analyzed based on Table 2.

4 Results and Discussion

4.1 Analysis of Data

It was found that the most volatile currency was AUD and the less volatile was KRW. This could be shown from the value of \( R^{2} \) and movement of the currencies itself. The upward movement of the currencies means that the currency is depreciating while the downward movement means that the currency becomes a little stronger currency. The movement of the foreign exchange rates affects the daily profit and loss. IDR had shown a different pattern of daily returns from the other currencies. The daily returns produced were equal for certain dates. The normal distribution of daily returns produced did not provide a right fit to the foreign exchange data, but at the same time it still maintained the bell shape curve. All currencies produced the short and wide curve since the value of standard deviation is large within the covered period.

4.2 Value at Risk Using the Parametric Approach

Parametric approach is the simplest and convenient method to compute the VaR. The study applied the value of lower quartiles of the normal distribution of returns to calculate VaR of the foreign exchange rates. The study compute the 1-day VaR using Eq. (1) for five confidence levels, which are 90%, 95%, 97.5%, 99% and 99.9%. All the steps were repeated in order to calculate the VaR for SGD, JPY, EUR, USD, THB, KRW, IDR, TWD and AUD and rank them. The result is shown in Table 3.

Table 3. VaR of 1-day holding period

Table 3 shows the results of VaR for all currencies. Here, there exists a linear relationship between VaR and confidence levels. The largest confidence level within the period will produce the largest VaR. Moreover, the VaR for all currencies show a rapid growth of the movement between 99% and 99.9% confidence levels. Overall, the changes in VaR with respect to the change in the confidence levels are the same for all the foreign exchange rate at any time t. The study also ranks the currencies from larger to smaller risk in order to know the risky currency. The most risky currency within the covered period is JPY. Then, followed by the AUD, IDR, EUR, USD, CNY, KRW, TWD, THB and SGD. Based on the average of VaR the study ranked the currencies from larger to smaller risk in order to know the risky currency. Table 4 shows the currency rank.

Table 4. Currency rank

Even though, the JPY is a more risky currency, Japan was still on the top three of Malaysian trading partners due to the demand and supply of certain products at that time.

Then, the study computes the VaR for different holding periods. From the model of parametric approach in (1), the study calculated the 1 day of VaR, v(1). It shifted the historical data usage by 5, 20, 40 and 60 days in order to calculate VaR for the next 5, 20, 40 and 60 days respectively. The VaR using shifted historical data, HD and VaR using root function (RF) are calculated using Eqs. (1) and (5) respectively.

From the results of the MAPE, the large value of error and the study concludes that the RF model in (5) for different holding periods is inaccurate forecast for foreign exchange rate for both confidence levels. Besides that, the study finds that VaR of HD and RF is not close to each other for both confidence levels. It found that the graph of VaR using the HD method is smooth for the 95% and 99% confidence level for all currencies. In conclusion, the VaR calculate using HD is more reliable in order to obtain the actual VaR in the real situation. In the real situation, the VaR depends on the fluctuation of the foreign exchange rate. The VaR that is computed from Eq. (5) is only for 1-day holding period because the square root rule is very unreliable over a longer horizon for the foreign exchange rates. The VaR from the parametric approach with the shifted data decreases as holding period increases. The VaR using the root function by [20] increases with the increasing holding period. Therefore, RF model does not portray the real situation of risk on a definite holding period.

4.3 Future Foreign Exchange Rate Using the Geometric Brownian Motion Model

GBM model is a model of time series data that deals with the randomness. Based on the assumption of GBM model, the randomness of the data must be normally distributed in order to get accurate forecast value. The study assumes that the length of input data gives the different value of accuracy. The study found that the value of MAPE for ten currencies with 13 observations is less than 5%. The MAPE of GBM model is highly accurate for all observations. The time span for forecast value was less than one year and highly accurate for the initial three months. Although the result produced was highly accurate for all observations, the study must obtain the best of duration of daily data used in getting the most accurate forecast. The result of best duration of daily data for each currency is shown in Table 4. The MAPE accuracy model produces almost the same results of the best durations.

Based on Table 5, the duration of observation may be different among the ten currencies. The best duration of observations to forecast CNY is to use 6 months observations, SGD and TWD use 5 months observations, JPY and KRW use 1 month observation, EUR, USD and AUD use 2 months observations, IDR was 3 months observations and lastly the longest observations is 12 months for THB. Table 6 shows the forecast foreign rate for the currencies using the best durations for CNY, SGD, JPY, EUR and USD.

Table 5. The best duration of observations
Table 6. The forecast value of foreign exchange rate using the best durations of CNY, SGD, JPY, EUR and USD

4.4 Feasibility of Integrated Value at Risk Model with Geometric Brownian Motion Model

This study integrates VaR model with the GBM model in order to forecast the VaR. It means that the study calculates the VaR from the distribution of returns that includes the GBM forecast foreign exchange rate. All the steps to compute the VaR is similar for VaR using HD, but now, the data usage includes the forecast GBM foreign exchange rate.

In this section, the study uses confidence level of 99% with the holding period of 1-day, 5-days, 20-days, 40-days and 60-days. The historical data used from 2nd May 2013 to 27th August 2014 while the use of forecast GBM foreign exchange rates were from 2nd June 2014 until 27th August 2014. The steps of integrating the VaR with GBM model are shown in Fig. 1.

Fig. 1.
figure 1

Historical data for GBM forecast

There are two non-working days in a week. Hence, 5-days, 20-days, 40-days, and 60-days of the holding periods mean a duration on 1 week, 1 month, 2 months, and 3 months respectively. Based on the Fig. 1, the overall historical data used to calculate VaR was from 2nd May 2013 until 27th August 2014. The historical data used to calculate 1-day VaR was from 2nd May 2013 until 30th May 2014. For 5-days VaR, the historical data used was from 9th May 2013 until 6th June 2014. Then, for 20-days VaR was from 31st May 2013 until 27th June 2014. Followed by the 40-days VaR was from 28th June 2013 until 30th July 2014. Lastly, 60-days VaR was from 26th July 2013 until 27th August 2014.

The study compares the VaR using actual historical data and the VaR that integrates the forecast GBM foreign exchange rate in Eq. (7). The MAPE is used to determine the accuracy of the forecast VaR model. Tables 7, 8 and 9 show the results of VaR using actual and forecast exchange rates of 10 currencies with the error values.

Table 7. VaR using actual and forecast exchange rates of CNY, SGD, JPY and EUR
Table 8. VaR using actual and forecast exchange rates of USD, THB, KRW and IDR
Table 9. VaR using actual and forecast exchange rates of TWD and AUD

Based on Tables 7, 8 and 9, the MAPE of VaR with GBM increases proportionally with the holding periods. The VaR with HD decreases while the VaR with GBM increases within the holding period. The 1-day VaR is the same for both the actual and the forecast exchange rate because both use the same value of the initial exchange rate. The 5-days and 20-days VaR produce highly accurate forecast, which are 3% and 9% respectively. For 40-day VaR and 60-days VaR, the study concludes that VaR with GBM are reasonable forecast. The movement of VaR with GBM is close for the 1-day, 5-days and 20-days holding period than after that the forecast VaR diverges from the VaR that uses HD.

5 Conclusion and Recommendation

The use of input data can affect the forecast values and in forecasting the foreign exchange rate, the duration of input data is determined for each of the considered currencies. There are currencies that are sharing the best duration of input data. The best duration of input data chosen is based on the lowest MAPE.

The study is able to forecast VaR for one month holding period for most of the country currencies. The VaR using forecast exchange rate is closer to the VaR using HD due to the better forecasting GBM model in currency. Each currency had produced different accuracy of MAPE since the VaR was depending on their foreign exchange rate.

The prediction of the future foreign exchange rate is important in order to know the future performance of the country and to be able to manage the foreign exchange risk in trading. As a developing country, Malaysia must be able to manage the foreign exchange risk.

It is recommended to use other VaR models and other forecasting model [15] in calculating the foreign exchange. In order to hedge the foreign exchange risk, the study recommends doing a swap currency and this needs more quantitative research in swap derivatives.