scieee AI-readable full text Open interactive document viewer

A hybrid Bayesian-network proposition for forecasting the crude oil price

Fazelabdolabadi, Babak

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Fazelabdolabadi, Babak Article A hybrid Bayesian-network proposition for forecasting the crude oil price Financial Innovation Provided in Cooperation with: Springer Nature Suggested Citation: Fazelabdolabadi, Babak (2019) : A hybrid Bayesian-network proposition for forecasting the crude oil price, Financial Innovation, ISSN 2199-4730, Springer, Heidelberg, Vol. 5, Iss. 1, pp. 1-21, https://doi.org/10.1186/s40854-019-0144-2 This Version is available at: https://hdl.handle.net/10419/237174 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ RESEARCH Open Access A hybrid Bayesian-network proposition for forecasting the crude oil price Babak Fazelabdolabadi Correspondence: [email protected] Center for Exploration and Production Studies and Research, Research Institute of Petroleum Industry (RIPI), 14665-1998, Tehran, Iran Abstract This paper proposes a hybrid Bayesian Network (BN) method for short-term forecasting of crude oil prices. The method performed is a hybrid, based on both the aspects of classification of influencing factors as well as the regression of the out-of- sample values. For the sake of performance comparison, several other hybrid methods have also been devised using the methods of Markov Chain Monte Carlo (MCMC), Random Forest (RF), Support Vector Machine (SVM), neural networks (NNET) and generalized autoregressive conditional heteroskedasticity (GARCH). The hybrid methodology is primarily reliant upon constructing the crude oil price forecast from the summation of its Intrinsic Mode Functions (IMF) and its residue, extracted by an Empirical Mode Decomposition (EMD) of the original crude price signal. The Volatility Index (VIX) as well as the Implied Oil Volatility Index (OVX) has been considered among the influencing parameters of the crude price forecast. The final set of influencing parameters were selected as the whole set of significant contributors detected by the methods of Bayesian Network, Quantile Regression with Lasso penalty (QRL), Bayesian Lasso (BLasso) and the Bayesian Ridge Regression (BRR). The performance of the proposed hybrid-BN method is reported for the three crude price benchmarks: West Texas Intermediate, Brent Crude and the OPEC Reference Basket. Keywords: Bayesian networks, Random Forest, Markov chain Monte Carlo, Support vector machine Introduction The price of crude oil has a pivotal role in the global economy and remains at the core of energy markets. As such, its fluctuations have the potential to impact economic developments worldwide. The ability to forecast the priceofcrudeoilisthereforeausefultoolin the management of most industrial sectors (Shin et al. 2013). Nevertheless, crude oil price forecasting has been a challenging task, owing to its complex behavior resulting from the confluent influence of several factors on the crude oil market. In specific, the nonlinear features exhibited in the dynamics of oil price volatilities present a quandary for predictive techniques, making the issue of (long-term) crude price forecasting open to finance research. A wealth of literature exists on the topic of forecasting crude oil prices. These articles are myriad, both in terms of the types of models and the number of methods being used concurrently. Some studies use an approach with a single method (non-hybrid) and some are defined by several methods (hybrid). In this regard, the generalized autoregressive © The Author(s). 2019 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. Financia l Innovation Fazelabdolabadi Financial Innovation (2019) 5:30 https://doi.org/10.1186/s40854-019-0144-2 conditional heteroskedasticity (GARCH) was amongst the first methods used because of its ability to capture time-varying variance or volatility (Agnolucci 2009;Arourietal. 2012;Cheong2009; Fan et al. 2008a; Hou and Suardi 2012;Kangetal.2009;Mohammadi and Su 2010; Narayan and Narayan 2007;Sadorsky2006; Wei et al. 2010). We attempted to perform the GARCH model as a hybrid method by combining with other models, such as the stochastic volatility (SV) model, the implied volatility (IV) model and the support vector machine (SVM) model. The neural network (NNET) method has been another approach for crude price forecasting (Azadeh et al. 2012; Ghaffari and Zare 2009; Movagharnejad et al. 2011; Shin et al. 2013; Wang et al. 2012; Yu et al. 2008; Zhang et al. 2008). However, it reportedly bears the disadvantage of over-fitting, local minima and weak generalization capability (Zhang et al. 2015). For this sake, its hybrid usage has been recommended for the purposes of crude price forecasting. Some authors opted to use the SVM model for price prediction, taking advantage of its suitability for modeling small-sized data samples with nonlinear behavior (Guo et al. 2012). Others have reported on the merits of the wavelet technique for crude price forecasting (Yousefi et al. 2005) with one major shortcoming being its sensitivity to the sample size. However, the recent literature advocates for the use of hybrid methods to improve on the accuracy of price forecasting. The use of the best of each technique in a hybrid framework has been enhanced by combining the soft-computing or econometric method or both (Fan et al. 2008b; Xiong et al. 2013). The reader is referred to the excellent review by Zhang et al. (2015) for a more complete assessment of past research on oil price forecasting. The motivation behind the present work was to exploit the potential of Bayesian network (BN) theory, in the context of crude price prediction, by constructing a network over decomposed price components. As such, the present article contributes to the existing literature in this field by proposing a novel hybrid method within a Bayesian network framework. In addition, this article reports results on other devised hybrid methods, using Random Forest (RF), Markov Chain Monte Carlo (MCMC), NNET and SVM. The rest of the article is organized as follows. The next section will detail the methods being used. A description of the results is provided in the third section, which will be followed by some concluding remarks. Methodology The hybrid methodology followed in this article takes advantage of several concepts, which are introduced in this section. Bayesian network A Bayesian network is an implementation of a graphical model, in which nodes represent (random) variables and arrows represent probabilistic dependencies between the nodes (Korb and Nicholson 2004). The BN’s graphical structure is a directed acyclic graph (DAG) that enables estimation of the joint probability distribution. For each variable, DAG defines a factorization of the joint probability distribution into a set of local probability distributions, where the form of factorization is given by the BN’sMarkov property, assuming a variable to be solely dependent on its parents (Scutari 2010). In this Fazelabdolabadi Financial Innovation (2019) 5:30 Page 2 of 21 sake, the BN methodology initially seeks to find a DAG structure amongst the variables being considered. The two classifications of the BN-structure-learning process either treat the issue by analyzing the probabilistic relationships supervised by the Markov property of Bayesian networks with conditional independence tests and subsequently constructing a graph that satisfies the corresponding d-separation statements (constraint-based algorithms), or by assigning a score to each BN candidate and maximizing it with a heuristic algorithm (score-based algorithms) (Scutari 2010). By taking advantage of the fundamental properties of the Bayesian networks, approximate inference (on an unknown value) is attainable. This approach should be able to avoid the curse of dimensionality due to its usage of local distributions (Nagarajan et al. 2013). Given the established BN network structure, the stochastic simulation can be applied to generate a large number of cases from the distribution network, from which the posterior probability of a target node is estimated. In this regard, the two prominent algorithms are logic sampling (LS) and likelihood weighting (LW). The LS algorithm generates a case by selecting values for each node, weighted by the probability of the values occurring at random. The nodes are traversed from the parent (root) nodes down to children (leaf) nodes. As a consequence, at each step, the weighting probability is either the prior or the Conditional Probability Table entry for the sampled parent values. A representation of all the nodes in the BN is created later on, once the full structure is visited. The collection of instantiation data enables estimation of the posterior probability for node X given evidence E (Appendix 1). The LW algorithm is similar to the former with a slight modification: adding the fractional likelihood of the evidence combination to the run count, instead of one (Appendix 2). Empirical mode decomposition (EMD) As a signal develops over time, a time-series may possess several temporal features. As such, exploring its characteristic behavior at different time scales should be informative. The Empirical Mode Decomposition (EMD) (Huang et al. 1998) separates the original signal into two parts: a fast-varying symmetric oscillation and a slow-varying local mean. The former constitutes the Intrinsic Mode Functions (IMF) of the original signal while the latter captures its residue. A repetitive sifting process is then implemented in order to extract the residue and the IMFs (Appendix 3). The process terminates once no more oscillations can be separated from the last residue. The EMD method has a stronger local representative capability compared to the wavelet transform and is more effective in processing non-linear or non-stationary signals (Hong 2011). In this work, the EMD implementation was made using the EMD package (Kim and Oh 2009; Kim and Oh 2014). Quantile regression with lasso penalty (QRL) Consider a problem of regression on a data set {(x i ,y i ); 1 ≤i≤n;x i ,y i ∈ℜ p } of size N, with predictors x and response values y. The conditional ξth quantile function, f(x) ξ,is defined such that P(Y ≤fξ(X) X = x) = ξ, for 0 < ξ< 1. Additionally, the absolute loss function, (r)ρξ, can be defined as (Koenker and Bassett 1978; Wu and Liu 2009): Fazelabdolabadi Financial Innovation (2019) 5:30 Page 3 of 21 ρξrðÞ¼f ξr −1−ξðÞr r>0 otherwise ð1Þ The ξth conditional quantile function can be obtained by minimizing the following (Koenker 2004): min fξX n i¼1 ρξyi−fξxi ðÞ  þλΞfξ  ð2Þ , where λ≥0 is a regularization parameter and () ξΞf, is a roughness penalty of the ξ f function. Assuming the conditional quantile function to be a linear function of the regressor x –as it is in the case of linear quantile regression –the function can be written as f ξ (x)=x T β ξ with β ξ =(β ξ,1 ,β ξ,2 ,…,β ξ,p ) T . There are several recommendations for the penalty function in eq. 2. The Least Absolute Shrinkage and Selection Operator (Lasso) (Tibshirani 1996; Tibshirani 2011) treats this minimization case by constraining the L1-norm of the coefficients. In other words, the (classical) Lasso formulation considers a form of Pp i¼1jβξ;ijas the penalty function. Alternatively, the functional form considered for the penalty function may account for an L2 norm constraint, the Ridge Regression method. The solution should yield a set of {β} regression parameters for the problem of interest. The rqPen package (Sherwood and Maidman 2016) was used for the QRL implementation in this work. Bayesian lasso (BLasso) and Bayesian ridge regression (BRR) Recall the original problem of finding the regression parameters βfor the model in eq. 3: y¼μ1nþXβþεð3Þ where y is the n × 1 vector of responses, μis the overall mean, X is the n × p matrix of standardized regressors and εis the n × 1 vector of independent and identically distributes normal errors with mean 0 and unknown variance 2σ. Lasso achieves a solution for βby minimizing eq. 4through L1-penalized least squares. As such, the method should have a Bayesian interpretation, viewing the lasso estimate as the mode of the posterior distribution of β(Hans 2009). min β ~ y−XβðÞ T~ y−XβðÞþλX p i¼1 βi  ~ y¼y−y1n ð4Þ Assuming a conditional Laplace prior on β,πðβjσ2Þ¼Qp i¼1λ 2ffiffiffiffi σ2 pe−λjβij=ffiffiffiffi σ2 pand a scale invariant prior on σ 2 ,πðσ2Þ¼1 σ2a hierarchical representation of the full model is suggested as (Park and Casella 2008): yμ;X;β;σ2Nnμ1nþXβ;σ2In  βσ 2;τ2 1;τ2 2;…;τ2 pNp0p;σ2Dτ  Dτ ¼diag τ2 1;…;τ2 p  σ2;τ2 1;…τ2 pπσ 2  dσ2Y p i¼1 λ2 2e−λ2τ2 i=2dτ2 i ð5Þ Consequently, a basis is formed for an efficient Gibbs sampler from the Bayesian posterior distribution, updating each parameter one at a time conditioned on all other parameters, with the block updating of the regression Fazelabdolabadi Financial Innovation (2019) 5:30 Page 4 of 21 parameters. The Bayesian concept can be also extended to the ridge regression—the Bayesian Ridge Regression (BRR) method—with an altered formulation for the priors. The reader is, however, referred to the seminal work of Park and Casella (2008) for comprehensive details of the techniques. The monomvn package (Gramacy 2016) was used to implement the BLasso/BRR methods in this work. Markov chain Monte Carlo (MCMC) Based on an assumption of a multivariate Gaussian () NK prior on β, and an inverse Gamma (IG) prior on the conditional error variance ε(eq. 6), the MCMC method uses Gibbs sampling to evaluate the posterior distribution of a linear regression model, enabling Bayesian inference on the regression parameters: y¼Xβþε εN0;σ2  βNKb0;B−1 0  σ2IG c0 2;d0 2  ð6Þ In this work, the parameters used during MCMC implementation were (0.001, 0.001) c0 = d0 = for shape factor/scale parameter of the inverse gamma prior on σ2, and (0, 0) b0 = B0 = for the mean/precision of the prior on β, respectively. The latter choice corresponds to a case of putting an improper uniform prior on β. A comprehensive treatment of the MCMC method can be found in Robert and Casella (2004). The MCMC implementation was made using the R Language package, MCMCpack (Martin et al. 2011). Random Forest (RF) Developed upon the seminal work of Breiman (2001), the Random Forest (RF) method is an extension of classification and regression trees with a modified leaning algorithm, that is, selecting a random subset of the features at each candidate split during the learning process. The algorithm exploits trees that use a subset of the observations through bootstrapping techniques. For each tree grown on a bootstrap sample, the error rate for observations left out of the bootstrap sample is monitored as the out-of- bag (OOB) error rate, the accuracy of which indicates the RF predictor accuracy. The Random Forest algorithm seeks to improve on bagging by de-correlating the trees, implementing random feature selection at each node for the set of splitting variables (Meyer et al. 2003). As such, the RF algorithm works with two main input parameters: the number of trees and the number of variables. However, an in-depth description of the method can be found in other useful literature (Breiman 2001). For the development of results presented herein, the number of trees to grow was set to 500, in accordance with the large-value recommendation in the literature (Breiman 2001; Micheletti et al. 2014). The choice for the number of trees, however, was rendered after conducting a series of runs over a grid in the range of [100–1100] (for the number of trees) and [10–32] (for the number of variables randomly sampled) to select the optimum values with minimum mean squared residuals. This resulted in the number of variables randomly sampled as candidate at each split to be set to a 32, corresponding to the maximum number of variables available. The RF implementation was accomplished using the randomForest package (Liaw and Wiener 2002). Fazelabdolabadi Financial Innovation (2019) 5:30 Page 5 of 21 The proposed hybrid forecasting methodology The hybrid methodology proposed herein exploits the characteristics of the IMFs as its mainstream. In other words, the predicted crude oil price at any future point in time is assessed based on the summation of the corresponding IMFs and the residue. Hence, forecasts of the IMFs/residue are required in the time step(s) ahead. The regression forecast is attempted based on the two types of regressors, namely internal and external, for each IMF/residue. The internal regressors were considered to be those previous values of an IMF/residue, to which the current value depends, which is determined through the Partial Autocorrelation of the decomposed signal, whereas the external regressors were considered to be the technical indicators, the volatility index (VIX), and the implied oil volatility index (OVX). In this regard, the technical indicators taken into account have been the Aroon indicator (aroon), the Commodity Channel Index (CCI), the Double Exponential Moving Average (DEMA), the Exponential Moving Average (EMA), the Moving Average Convergence/Divergence (MACD), the Relative Strength Index (RSI), the Simple Moving Average (SMA), the Traders Dynamic Index (TDI) and the Triple Exponentially Smoothed Moving Average (TRIX). The proposed methodology is hybrid in two different ways: classification and regression. The initial classification step involves the determination of the set of significant regressors, from the pool of regressors described using BN (constrained/scored), QRL, BLasso and as its methods, where the criterion of significance differs for each method. In the BLasso/BRR classification, for instance, a regressor is considered significant when the estimated posterior probability of the individual component’s regression coefficient is returned as nonzero. In the BN scenario, on the other hand, significance is recognized in the strength of the corresponding arch—an arch strength coefficient of equal to or less than 0.05 when a conditional independence test is applied (constrained BN), or a strength coefficient of less than zero threshold, when network scores are applied (scored BN) (Scutari 2010). The final set of significant regressors is selected as the whole set of significant parameters, determined by the BN-QRL-BLasso-BRR methods, for each IMF/residue. Table 1 Different predictive strategies tested Name Strategy Method-1 RF + GARCH Method-2 SVM + GARCH Method-3 MCMC+GARCH Method-4 NNET+GARCH Method-5 BN + GARCH Method-6 RF Method-7 SVM Method-8 MCMC Method-9 NNET Method-10 BN Fazelabdolabadi Financial Innovation (2019) 5:30 Page 6 of 21 Fig. 1 The Intrinsic Mode Functions- IMF.1 (a), IMF.2 (b), IMF.3 (c), IMF.4 (d), IMF.5 (e), IMF.6 (f), IMF.7 (g)- and the residue (h), decomposed from WTI price data by the EMD method Fazelabdolabadi Financial Innovation (2019) 5:30 Page 7 of 21 The second regression step, being hybrid in essence, involves predicting the IMFs/residue from their corresponding regressors, in the time steps ahead. For this reason, several strategies were devised and later tested for efficiency (Table 1). The first five methods take advantage of the presence of time-varying feature in the decomposed IMF signals. Under such circumstances, the GARCH model is used to forecast the time-varying IMF components, while the rest of the IMFs as well as the residue are predicted by the conjugate model listed. In thesecondfivestrategies,theIMFsaswellastheresiduearecomputedbya candidate model, in the time steps ahead, regardless of the time-varying aspect of some of the IMFs. The procedures of the proposed hybrid method can be summarized as follows: (1) Apply the EMD method to the original crude price series. Decompose the series into its IMFs and the residue. (2) Extract the significant regressors for each IMF and residue by taking the whole set of significant regressors determined by the BN-QRL-BLasso- BRR methods. (3) Under Schemes 1–5inTable1, if the corresponding IMF presents the feature of time variation, use the GARCH model to predict its future value. Use the conjugate model in the scheme to predict the future values of other IMFs and the residue based on the regressors determined in stage 2. (4) Under Schemes 6–10 in Table 1, use the candidate model prescribed to forecast the future values of the IMFs and residue, based on the regressors determined in stage 2. (5) Construct the final forecasted crude oil price by summing the future values IMFs and the residue. The general specification of the mean/variance in the GARCH model considered in Schemes 1–5 of Table 1is as follows, respectively: Table 2 Descriptive statistics of the IMFs/residue of WTI, in the period between 06-July-2007 and 25-February-2019 Name augmented Dickey– Fuller (ADF) a Kwiatkowski-Phillips- Schmidt-Shin (KPSS) b Jarque–Bera Kurtosis mean Standard Deviation IMF.1 −15.24 (0.01) 0.22 (0.1) 3781.20 (0.000) 8.567 0.0035 0.92 IMF.2 −16.79 (0.01) 0.03 (0.1) 3917.50 (0.000) 8.66 0.0008 0.97 IMF.3 −13.84 (0.01) 0.022 (0.1) 901.49 (0.000) 5.711 −0.0066 1.567 IMF.4 −8.63 (0.01) 0.062 (0.1) 81.49 (0.184) 3.622 −0.1983 2.266 IMF.5 −7.82 (0.02) 0.180 (0.1) 564.44 (0.000) 5.139 −0.1187 6.445 IMF.6 −3.70 (0.01) 0.276 (0.1) 878.23 (0.000) 5.682 0.2289 7.557 IMF.7 −2.30 (0.45) 1.519 (0.01) 244.24 (0.000) 2.127 −1.2018 10.844 RES −1.83 (0.64) 20.624 (0.01) 366.29 (0.000) 1.755 76.7498 16.129 a Alternative hypothesis: Data is stationary b Null hypothesis: Data is level stationary Fazelabdolabadi Financial Innovation (2019) 5:30 Page 8 of 21 independence test. While in the score-based case, a score equivalent Gaussian posterior density criterion was applied. For a BN inference, predictions were obtained by applying the LW algorithm and extracting the expected value of the conditional distribution of 500 simulation results. All the available nodes in the structure were taken as evidence in that situation except the node related to the variable being predicted. The crude price forecasting was attempted from periods of time ten days ahead. To test the performance of the methods, three random training sets were used with a common beginning date of July 6, 2007 and ending dates of January 3, 2017, March 27, 2017 and February 8, 2019, respectively. In each case, the hybrid methods were used to predict the crude prices for the ten out-of-sample days immediately ahead. The average of the errors incurred is reported in Tables 9,10 and 11. According to the results, Method-10 shows conspicuously better performance when compared with the other methods, in all three statistics measured (MAE, RMSE and MAPE). The superior performance of Method-10 is not merely bounded to a single market, rather it is demonstrated over the three price types (WTI, BRENT and ORB). Furthermore, the predictive accuracy of Method-10 is compared by using a Diebold-Mariano test against other techniques. Table 12 lists the Diebold-Mariano statistics for the 10-day forecast of WTI/BRENT/ORB, assessing the alternative hypothesis that Method-10 is more accurate than the method Table 9 The average errors of the 10-days-ahead forecasts of WTI Name MAE RMSE MAPE (%) Method-1 1.75 2.13 0.03 Method-2 1.79 2.16 0.03 Method-3 2.58 3.32 0.04 Method-4 3.02 3.37 0.05 Method-5 1.87 2.34 0.03 Method-6 0.95 1.17 0.01 Method-7 1.28 1.52 0.02 Method-8 7.26 7.88 0.12 Method-9 1.92 2.14 0.03 Method-10 0.75 0.81 0.01S Table 10 The average errors of the 10-days-ahead forecasts of BRENT Name MAE RMSE MAPE (%) Method-1 18.59 32.08 0.28 Method-2 18.79 32.14 0.29 Method-3 18.16 31.86 0.28 Method-4 20.17 33.23 0.32 Method-5 19.05 32.62 0.29 Method-6 0.96 1.19 0.01 Method-7 1.19 1.47 0.01 Method-8 19.98 23.91 0.30 Method-9 4.39 5.17 0.06 Method-10 0.96 1.20 0.01 Fazelabdolabadi Financial Innovation (2019) 5:30 Page 15 of 21 of choice, clearly demonstrating the superior accuracy of the proposed hybrid technique. A close inspection of the results also indicates that, overall, Methods 6–10 achieve a better predictive success than Methods 1–5, which incorporate the GARCH model. However, this should not rule out the application of GARCH in hybrid price forecasting models. The extracted Bayesian networks indicate that both OVX and VIX are influential on different layers of IMF or the residue, which accounts for their impact on the value of future crude prices. In addition, the established BN structure shows the previous-time technical indicators to affect different layers of IMF and the residue of the decomposed price signal. The proposed hybrid methodology was chosen for short-term prediction of crude prices, owing to the short-term viability of the regressors employed. The method, however, deserves further investigation and merits being tested for its long-term forecasting capability, for example incorporating regressors with longer life spans. Conclusions The performance of the hybrid Bayesian network proposition was outstanding compared to the other devised hybrid models, in all of the three crude price types (WTI, BRENT and ORB) and against all of the three statistical benchmarks (MAE, Table 11 The average errors of the 10-days-ahead forecasts of ORB Name MAE RMSE MAPE (%) Method-1 0.74 0.89 0.01 Method-2 1.29 1.42 0.01 Method-3 3.07 3.17 0.04 Method-4 2.06 2.25 0.03 Method-5 0.68 0.82 0.01 Method-6 0.55 0.63 0.00 Method-7 0.91 1.06 0.01 Method-8 23.60 26.96 0.36 Method-9 2.97 3.56 0.04 Method-10 0.49 0.58 0.00 Table 12 The Diebold-Mariano statistics for 10-day forecast of WTI/BRENT/ORB, for the alternative hypothesis that Method-10 is better in terms of accuracy versus the method of choice WTI BRENT ORB Method-1 1.93 (0.04) 1.39 (0.09) 1.45 (0.08) Method-2 1.99 (0.03) 1.39 (0.09) 2.80 (0.01) Method-3 2.17 (0.02) 1.38 (0.09) 5.89 (0.00) Method-4 3.32 (0.00) 1.44 (0.09) 3.47 (0.00) Method-5 1.85 (0.04) 1.41 (0.08) 1.55 (0.07) Method-6 1.05 (0.01) 0.06 (0.10) 0.33 (0.03) Method-7 2.20 (0.02) 0.87 (0.20) 1.90 (0.04) Method-8 4.56 (0.00) 2.35 (0.02) 3.06 (0.00) Method-9 2.70 (0.01) 2.48 (0.01) 3.14 (0.00) Fazelabdolabadi Financial Innovation (2019) 5:30 Page 16 of 21 RMSE and MAPE). The BN demonstrated that the volatility indices (OVX, VIX) are influential on different decomposed signals of the crude price, affecting the level-ahead price values. The predictive power of the hybrid methods adopting GARCH was shown to be inferior to the other methods, which apply regressions to all of the layers of the decomposed signal for crude price forecasting. Since the proposed hybrid method makes use of regressors with short-term life spans (i.e., technical indicators, OVX, VIX and past price values), the method remains a valid option for short-term forecasting. The question of its capability in handling longterm price forecasts is yet to be answered by the future research using parameters with longer-term viability. Appendix 1 The Logic sampling algorithm Consider an established Bayesian Network. Assume Xto be node in this BN structure, and Eas a given evidence. The Logic sampling algorithm for estimation of the posterior probability of node Xgiven evidence E=e, is computed by the following procedure (Korb and Nicholson 2004): Fazelabdolabadi Financial Innovation (2019) 5:30 Page 17 of 21 Appendix 2 The Likelihood weighing algorithm Consider an established Bayesian Network. Assume Xto be node in this BN structure, and Eas a given evidence. The Likelihood weighing algorithm for estimation of the posterior probability of node Xgiven evidence E=e, is computed by the following procedure (Korb and Nicholson 2004): Fazelabdolabadi Financial Innovation (2019) 5:30 Page 18 of 21 Appendix 3 The Empirical Mode Decomposition algorithm Consider a time series, f(t), with treferring to time. The EMD fractionation of the original data is made following the below steps (Huang et al. 1998): Fazelabdolabadi Financial Innovation (2019) 5:30 Page 19 of 21 Abbreviations aroon: Aroon indicator; Blasso: Bayesian Lasso; BN: Bayesian Network; BRENT: Brent crude; BRR: Bayesian Ridge Regression; CCI: Commodity Channel Index; DAG: Directed acyclic graph; DEMA: Double Exponential Moving Average; EMA: Exponential Moving Average; EMD: Empirical Mode Decomposition; GARCH: Generalized autoregressive conditional heteroskedasticity; IMF: Intrinsic Mode Functions; IV: Implied volatility; KSVM: Kernel Support Vector Machine; LS: Logic sampling; LW: Likelihood weighting; MACD: Moving Average Convergence/Divergence; MAE: Mean absolute error; MAPE: Mean absolute percentage error; MCMC: Markov Chain Monte Carlo; NNET: Neural Networks; OOB: out-of-bag; ORB: OPEC Reference Basket; OVX: Implied Oil Volatility Index; QRL: Lasso penalty; RF: Random Forest; RMSE: Root Mean Square Error; RSI: Relative Strength Index; SMA: Simple Moving Average; SV: Stochastic volatility; SVM: Support Vector Machine; TDI: Traders Dynamic Index; TRIX: Triple Exponentially Smoothed Moving Average; VIX: Volatility Index; WTI: West Texas Intermediate Acknowledgements Not applicable. Author’s contributions The work was solely done by the corresponding author, Babak Fazelabdolabadi. The author read and approved the final manuscript. Funding Not applicable. Availability of data and materials Not applicable. Competing interests The author declares that he has no competing interests. Received: 18 November 2018 Accepted: 10 June 2019 References Agnolucci P (2009) Volatility in crude oil futures: a comparison of the predictive ability of GARCH and implied volatility models. Energy Econ 31:316–321. https://doi.org/10.1016/j.eneco.2008.11.001 Arouri MEH, Lahiani A, Lévy A, Nguyen DK (2012) Forecasting the conditional volatility of oil spot and futures prices with structural breaks and long memory models. Energy Econ 34:283–293. https://doi.org/10.1016/j.eneco.2011.10.015 Azadeh A, Moghaddam M, Khakzad M, Ebrahimipour V (2012) A flexible neural network-fuzzy mathematical programming algorithm for improvement of oil price estimation and forecasting. Comput Ind Eng 62:421–430. https://doi.org/10.1016/j. cie.2011.06.019 Breiman L (2001) Random forests. Mach Learn 45(1):5–32. https://doi.org/10.1023/A:1010933404324 Cheong CW (2009) Modeling and forecasting crude oil markets using ARCH-type models. Energy Policy 37:2346–2355. https://doi.org/10.1016/j.enpol.2009.02.026 Fan Y, Liang Q, Wei YM (2008b) A generalized pattern matching approach for multistep prediction of crude oil price. Energy Econ 30(3):889–904. https://doi.org/10.1016/j.eneco.2006.10.012 Fan Y, Zhang YJ, Tsai H-T, Wei YM (2008a) Estimating ‘value at risk’of crude oil price and its spillover effect using the GED approach. Energy Econ 30(6):3156–3171. https://doi.org/10.1016/j.eneco.2008.04.002 Ghaffari A, Zare S (2009) A novel algorithm for prediction of crude oil price variation based on soft computing. Energy Econ 31:531–536. https://doi.org/10.1016/j.eneco.2009.01.006 Ghalanos A. 2015. rugarch: Univariate GARCH models. R package version 1.3-6. Gramacy R.B. 2016. monomvn: Estimation for Multivariate Normal and Student-t Data with Monotone Missingness. R package version 1.9-6. http://CRAN-R-project.org/package=monomvn. Accessed 25 Feb 2019 Guo XP, Li DC, Zhang AH (2012) Improved support vector machine oil price forecast model based on genetic algorithm optimization parameters. AASRI Procedia 1:525–530. https://doi.org/10.1016/j.aasri.2012.06.082 Hans C (2009) Bayesian lasso regression. Biometrika 96(4):835–845. https://doi.org/10.1093/biomet/asp047 Hansen KD, Gentry J, Long L, Gentleman R, Falcon S, Hahne F, Sarkar D (2008) Rgraphviz: provides plotting capabilities for R graph objects. R package version 2:14.0 Hong L (2011) Decomposition and forecast for financial time series with high-frequency based on empirical mode decomposition. Energy Procedia 5:1333–1340. https://doi.org/10.1016/j.egypro.2011.03.231 Hou A, Suardi S (2012) A nonparametric GARCH model of crude oil price return volatility. Energy Econ 34:618–626. https:// doi.org/10.1016/j.eneco.2011.08.004 Huang NE, Shen Z, Long SR, Wu MC, Shih HH, Zhang Q, Yen N, Tung CC, Liu HH (1998) The empirical mode decomposition and Hilbert Spectrum for nonlinear and nonstationary time series analysis. Proc R Soc London Ser A 454:903–995. https:// doi.org/10.1098/rspa.1998.0193 Huang NE, Wu Z (2008) A review on Hilbert-Huang transform: method and its applications to geophysical studies. Rev Geophys 46:RG2006. https://doi.org/10.1029/2007RG000228 Kang SH, Kang SM, Yoon SM (2009) Forecasting volatility of crude oil markets. Energy Econ 31:119–125. https://doi.org/10.1 016/j.eneco.2008.09.006 Karatzoglou A, Smola A, Hornik K, Zeileis A (2004) Kernlab –an S4 package for kernel methods in R. J Stat Softw 11(9):1–20 http://www.jstatsoft.org/v11/i09/ Kim D, Oh H (2009) A package for empirical mode decomposition and Hilbert Spectrum. The R Journal 1:30–46 Kim D., Oh H., 2014. EMD: Empirical Mode Decomposition and Hilbert Spectral Analysis. R package version 1.5.7. Fazelabdolabadi Financial Innovation (2019) 5:30 Page 20 of 21 Koenker R (2004) Quantile regression for longitudinal data. J Multivar Anal 91:74–89. https://doi.org/10.1016/j.jmva.2004.05.006 Koenker R, Bassett G (1978) Regression quantiles. Econometrica 46:33–50. https://doi.org/10.2307/1913643 Korb K, Nicholson A (2004) Bayesian artificial intelligence, CRC Press, London Kuhn M., Wing J., Weston S., Williams A., Keefer C., Engelhardt A., Cooper T., Mayer Z., Kenkel B., Benesty M., Lescarbeau R., Ziem A., Scrucca L., Tang Y., Candan C. 2016. Caret: Classification and Regression Training. R package version 6.0-68. URL http://CRAN.R-project.org/package=caret. Accessed 25 Feb 2019 Liaw A, Wiener M (2002) Classification and regression by randomForest. R News 2(3):18–22 Martin AD, Quinn KM, Park J (2011) MCMCpack: Markov chain Monte Carlo in R. J Stat Softw 42(9):1–21 http://www.jstatsoft. org/v42/i09/ McTaggart R., Daroczi G., Leung C. 2016. Quandl: API Wrapper for Quandl.com. R package version 2.8.0. http://CRAN.R-project. orh/package=Quandl. Accessed 25 Feb 2019 Meyer D., Dimitriadou E., Hornik K., Weingessel A., Leisch F. 2015. e1071: Misc Functions of the Department of Statictics, Probability Theory Group (Formerly: E1071), TU Wien. R package version 1.6-7. http://www.CRAN.R- project.org/package=e1071. Accessed 25 Feb 2019 Meyer D, Leisch F, Hornik K (2003) The support vector machine under test. Neurocomputing 55(1–2):169–186. https://doi. org/10.1016/S0925-2312(03)00431-4 Micheletti N, Foresti L, Robert S, Leuenberger M, Pedrazzini A, Jaboyedoff M, Kanevski M (2014) Machine learning feature selection methods for landslide susceptibility mapping. Math Geosci 46:33–57. https://doi.org/10.1007/s11004-013-9511-0 Mohammadi H, Su L (2010) International evidence on crude oil price dynamics: applications of ARIMA-GARCH models. Energy Econ 32:1001–1008. https://doi.org/10.1016/j.eneco.2010.04.009 Movagharnejad K, Mehdizadeh B, Banihashemi M, Kordkheili MS (2011) Forecasting the differences between various commercial oil prices in the Persian Gulf region by neural network. Energy 36:3979–3984. https://doi.org/10.1016/j. energy.2011.05.004 Nagarajan R, Scutari M, Lèbre S (2013) Bayesian Networks in R with Applications in Systems Biology. Springer-Verlag, New York Narayan PK, Narayan S (2007) Modelling oil price volatility. Energy Policy 35:6549–6553. https://doi.org/10.1016/j.enpol.2007.07.020 Park T, Casella G (2008) The Bayesian lasso. J Am Stat Assoc 103(482):681–686. https://doi.org/10.1198/016214508000000337 Robert C, Casella G (2004) Monte Carlo statistical methods, 2nd edn. Springer-Verlag, New York Sadorsky P (2006) Modeling and forecasting petroleum futures volatility. Energy Econ 28:467–488. https://doi.org/10.1016/j. eneco.2006.04.005 Scutari M (2010) Learning Bayesian networks with the bnlearn R package. J Stat Softw 35(3):1–22 http://www.jstatsoft.org/v35/i03 Scutari M (2017) Bayesian network constraint-based structure learning algorithms: parallel and optimized implementations in the bnlearn R package. J Stat Softw 77(2):1–20. https://doi.org/10.18637/jss.v077.i02 Sherwood B., Maidman A. 2016. rqPen: Penalized Quantile Regression. R package version 1.4. http://CRAN.R-project.org/ package=rqPen. Accessed 25 Feb 2019 Shin H, Hou T, Park K, Park CK, Choi S (2013) Prediction of movement direction in crude oil prices based on semi-supervised learning. Decis Support Syst 55:348–358. https://doi.org/10.1016/j.dss.2012.11.009 Tibshirani R (1996) Regression shrinkage and selection via the lasso. J R Stat Soc Ser B 58:267–288. https://doi.org/10.2307/2346178 Tibshirani R. 2011. Regression shrinkage and selection via the lasso: a retrospective. 73 (3) 273–282. DOI:https://doi.org/1 0.1111/j.1467-9868.2011.00771.x Trapletti A., Hornik K. 2015. tseries: Time Series Analysis and Computational Finance. R package version 0.10–34 Ulrich J. 2016. TTR: Technical Trading Rules. R package version 0.23-1. http://CRAN.R-project.org/package=TTR. Accessed 25 Feb 2019 Wang J, Pan HP, Liu FJ (2012) Forecasting crude oil price and stock price by jump stochastic time effective neural network model. J Appl Math 2012:1–15. https://doi.org/10.1155/2012/646475 Wei Y, Wang YD, Huang DS (2010) Forecasting crude oil market volatility: further evidence using GARCH-class models. Energy Econ 32:1477–1484. https://doi.org/10.1016/j.eneco.2010.07.009 Wu Y, Liu Y (2009) Variable selection in quantile regression. Stat Sin 19:801–817 Xiong T, Bao YK, Hu ZY (2013) Beyond one-step-ahead forecasting: evaluation of alternative multi-step-ahead forecasting models for crude oil prices. Energy Econ 40:405–415. https://doi.org/10.1016/j.eneco.2013.07.028 Yousefi S, Weinreich I, Reinarz D (2005) Wavelet-based prediction of oil prices. Chaos, Solitons Fractals 25(2):265–275. https:// doi.org/10.1016/j.chaos.2004.11.015 Yu L, Wang S, Lai KK (2008) Forecasting crude oil price with an EMD-based neural network ensemble learning paradigm. Energy Econ 30:2623–2635. https://doi.org/10.1016/j.eneco.2008.05.003 Zhang J, Zhang Y, Zhang L (2015) A novel hybrid method for crude oil price forecasting. Energy Econ 49:649–659. https:// doi.org/10.1016/j.eneco.2015.02.018 Zhang X, Lai KK, Wang SY (2008) A new approach for crude oil price analysis based on empirical mode decomposition. Energy Econ 30:905–918. https://doi.org/10.1016/j.eneco.2007.02.012 Publisher’sNote Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Fazelabdolabadi Financial Innovation (2019) 5:30 Page 21 of 21