<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>Evaluating and Forecasting Conventional Gasoline Price Fluctuations Using Garch Models with Two Distributions and Machine Learning Methods</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Roshanpour</surname><given-names>Reza</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Parsanejad</surname><given-names>Mohammadreza</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Asgari</surname><given-names>Sorya</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<contrib contrib-type="author"><name><surname>Hashtroodi Mahmoodi</surname><given-names>Fatemeh</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<aff id="aff1">Departmant of Management, Economics and Progress Engineering, Iran University Science and Technology, Tehran, Iran.</aff>
<aff id="aff2">Department of Accounting, Economic and Accounting Faculty, Central Tehran Branch, Islamic Azad University, Tehran, Iran.</aff>
</contrib-group>
<abstract><p>Conventional gasoline price can affect the government and society as a strategic commodity in the community. Conventional gasoline price fluctuations have economic, political, social, cultural, and environmental effects. Thus, the prediction of its volatility is essential but there is not any study to examine the price fluctuations. This study aims to hybridize and propose different Garch models based on two distributions and various algorithms in machine learning, such as random forest, ridge regression, Support Vector Regression (SVR), and elastic-net for predicting weekly gasoline price volatility. The results depict Garch and GJRgarch models based on t-student distribution can predict volatility. The combination of ridge regression and GJRgarch model can better predict volatility for the seven-step-ahead. The RMSE scale has been used to compare results that the scale value is 0.01475 in the hybrid method. In fact, combining the ridge regression with t-student-GJRgarch model has the slightest error prediction or the most accuracy among different Garch models and machine learning algorithms.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Garch models</kwd><kwd>Machine learning</kwd><kwd>Gasoline price</kwd><kwd>Volatility</kwd><kwd>Distribution</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1"><label>1</label><title>Introduction</title>
<p>Fuel prices are highly volatile, creating significant challenges and uncertainties for the global economy. gasoline is a strategic product in the household goods basket. Whether households like it or not, it affects them <xref ref-type="bibr" rid="ref-1">[1]</xref>. The fluctuation in gasoline prices effectively influences society&apos;s welfare level <xref ref-type="bibr" rid="ref-2">[2]</xref>, <xref ref-type="bibr" rid="ref-3">[3]</xref>. In other words, the volatility of gasoline price has two effects; the first effect is to affect the price of transportation, and the second effect is to increase the price of other goods, and therefore, inflation enlarges <xref ref-type="bibr" rid="ref-4">[4]</xref>. Also, gasoline price shocks can change one-year household inflation expectations <xref ref-type="bibr" rid="ref-5">[5]</xref>. It can affect the consumption of society and even the policies of policymakers and investors <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>In this context, research has been performed on the long-run relation between gasoline price and other factors, including taxation, exchange rate, and crude price variation by the NARDL model <xref ref-type="bibr" rid="ref-7">[7]</xref>, <xref ref-type="bibr" rid="ref-8">[8]</xref>. Also, Error Correction Models (ECM) have been utilized to predict retailed gasoline prices in China from 2019 to 2050 based on international crude oil prices <xref ref-type="bibr" rid="ref-9">[9]</xref>. Another study examined price transmission from crude oil to gasoline <xref ref-type="bibr" rid="ref-10">[10]</xref>. The hybrid method introduced by Escribano and Wang <xref ref-type="bibr" rid="ref-11">[11]</xref> contains random forest and cointegrated with international oil prices and exchange rates to weekly predicted gasoline prices. Moreover, considering asymmetry with structural beaks was examined in the Russian gasoline market, and the results revealed no asymmetry between the gasoline prices and the crude oil prices in the long run <xref ref-type="bibr" rid="ref-12">[12]</xref>.</p>
<p>Regarding causality and volatility spillovers, Hammoudeh et al. <xref ref-type="bibr" rid="ref-13">[13]</xref> have investigated petroleum prices, gasoline, and heating oil in different locations and obtained results demonstrating the cointegration tests of each of them offer that spot and futures contracts suggest little benefits for long-run commodity portfolio diversification. In this regard, it is vital to forecast conventional gasoline prices accurately. However, no studies examine the volatility of traditional gasoline prices. Most studies have investigated the volatility of other commodities, including crude oil price and gas. Several articles have addressed just modeling and forecasting oil prices and tried to increase the prediction accuracy by various methods <xref ref-type="bibr" rid="ref-14">[14–16]</xref>. Regarding the new method of predicting, a comparison has also been performed between AdaBoost-LSTM and AdaBoost-GRU to make better forecasting performance for oil price prediction, which the AdaBoost-GRU is superior to predict <xref ref-type="bibr" rid="ref-17">[17]</xref>. Another research utilized the MRN networks to predict, and results showed that this method could be flexible for forecasting at various horizons <xref ref-type="bibr" rid="ref-18">[18]</xref>.</p>
<p>Regarding optimization algorithms, the LSTM approach based on the Salp Swarm Algorithm (SSA) was utilized to predict <xref ref-type="bibr" rid="ref-19">[19]</xref>. Also, a dynamic ensemble learning based on the nondominated sorting genetic algorithm II was used to calculate a prediction for crude oil <xref ref-type="bibr" rid="ref-20">[20]</xref>. In summary, by reviewing energy prices, including natural gas, crude oil, electricity, and carbon in the systematic decade review, the researches are as follows: to hybridize basic model, data cleaning method, and optimizer <xref ref-type="bibr" rid="ref-21">[21]</xref>. Garch models have performed different studies under different distributions, including the volatility of the S&amp;P 500 index and the evaluation of daily returns in the Istanbul stock exchange by Garch et.al methods with ANN <xref ref-type="bibr" rid="ref-22">[22]</xref>, <xref ref-type="bibr" rid="ref-23">[23]</xref>.</p>
<p>This paper&apos;s innovation is forecasting the volatility of weekly gasoline prices using the family of Autoregressive Conditional Heteroscedasticity (ARCH) models based on two distributions and various machine learning algorithms. In other words, this paper aims to fill the gap in the research on gasoline price volatility.</p>
<p>Since fluctuation is an unobservable variable, it has to be estimated, and then conditional variance or fluctuation is combined into machine learning algorithms as an input. To address the volatility of gasoline prices, different models of Garch have been utilized, such as GARCH, GJRGARCH, and EGARCH <xref ref-type="bibr" rid="ref-24">[24– 26]</xref>. The remainder of this paper is organized as follows. Section 2 presents the description of data and the statistical characteristics of sample data. Section 3 discusses a general description of GARCH classes and explains various algorithms in machine learning. Section 4 contains the results, and the final section, Section 5, includes some concluding remarks.</p>
</sec>
<sec id="sec-2"><label>2</label><title>Data</title>
<p>The data in this research consists of 1932 weekly price observations of weekly U.S. Gulf coast conventional gasoline regular spot price FOB (Dollars per gallon) from 1986/6/6 to 2023/9/6. The data has been downloaded from the U.S. energy information admiration. Descriptive statistics for the conventional gasoline price have been summarized in <xref ref-type="table" rid="tab1">Table 1</xref>. It shows a significant difference between the maximum and minimum values, which depict high volatility in the series. The mean and the corresponding data variance are small, but the kurtosis in the table is so high that the price distribution is not normally distributed. Also, the Jarque-Bera test is rejected because the probability of the null hypothesis of normality in the data distribution is less than 0.05.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Descriptive statistics for conventional gasoline price.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,573,537.1,721.7"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>We also assessed the data graph, and the skewness is positive in <xref ref-type="fig" rid="fig1">Fig. 1</xref>. It demonstrates a red curve when the data are not distributed symmetrically to the left and right sides of the mean on a bell curve. In other words, the distribution is positively skewed when its tail is more pronounced on the right side than on the left.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>The graph of descriptive statistics.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,341.9,537.1,517.4"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>We applied the Augment Dickey-Fuller (ADF) test to examine the unit root test and study stationary data. According to the ADF test, ProbProb. &gt; 0.05, and the null hypothesis of stationary is rejected <xref ref-type="table" rid="tab2">Table 2</xref>. In other words, the ADF test&apos;s p-value is more than the significant level (0.05), which the null hypothesis will reject. Therefore, outputs infer that the time series is not stationary, and it has to take the first difference to stationary the data.</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Stationary test.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,172.5,537.1,232.3"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p><xref ref-type="fig" rid="fig2">Fig. 2</xref> shows that the raw data are not stationary, and <xref ref-type="fig" rid="fig3">Fig. 3</xref> represents the raw data after the first difference.</p>
<fig id="fig2"><label>Figure 2</label><caption><p>The raw data of gasoline price (None-stationary).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:66,619.6,537.1,778.9"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<fig id="fig3"><label>Figure 3</label><caption><p>The raw data of gasoline price (Stationary with taking the first difference).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:66,463,537.1,605.2"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-3"><label>3</label><title>Methodology</title>
<sec id="sec-4"><label>3.1</label><title>Garch Models</title>
<p>The purpose of the garch model is to model the variance when the variance of the residuals is not constant in a sequence of values. The fundamental assumption of a linear regression model is equal variance, but this assumption is rejected in different models. The behavior of values is non-linear, chaotic, and dynamic. The conditional variance equations of the three models have been described in Eqs. (1)-(3). In each equation, σ ̂2 t refers to the conditional variance, εt−1 is the term of the error of the first lag, and α0, αi, βj, γi are the parameters to be estimated from the maximization of the sample log-likelihood function.</p>
<sec id="sec-5"><label>3.1.1</label><title>GARCH (p,q)</title>
<p>σ ̂2 t = α0 + ∑ αi ε2 t−1 + ∑ βj σ2 j−1 (1)</p>
<p>i=1 j=1</p>
<p>σ ̂2 t is the conditional variance to which a squared ARCH (ε2 t−1) is added. In other words, the conditional variance of the variable depends on the previous lags and the squared lag residuals. The Garch model has some limitations because the parameters must be positive in the conditional equation, and ∑p i=1 αi + ∑q j=1 βj are expected to be less than one <xref ref-type="bibr" rid="ref-27">[27]</xref>.</p>
</sec>
<sec id="sec-6"><label>3.1.2</label><title>GJR-garch (p,q)</title>
<p>σ ̂2 t = α0 + ∑p i=1 αiε2 t−i + γiε2 t−idt−1 + ∑q j=1 βj σ ̂2 t−j (2)</p>
<p>Where dt−1 is a dummy variable:</p>
<p>1, if ε2 t−1 &lt; 0, dt−1 = { 2 0, if εt−1 ≥ 0</p>
<p>And γ refers to the coefficient that measures the impact of news. The rest of the parameters in the equation remain the same as those of the GARCH model.</p>
</sec>
<sec id="sec-7"><label>3.1.3</label><title>EGARCH (p,q)</title>
<p>p r q</p>
<p>2 εt−1 ut−k 2 log σ ̂t = α0 + ∑ α | | + ∑ γk + ∑ βj log σ ̂t−j (3) σt−1 σt−k</p>
<p>i=1 k=1 j=1</p>
<p>εt−1 is the term of the error of the first lag. Unlike the Garch model, the EGarch model has no restrictions <xref ref-type="bibr" rid="ref-28">[28]</xref>. In the equation, γk shows the leverage effects that depict the asymmetry of the model. If γk ≠ 0, the effect is asymmetric, and if γk = 0, the effect is symmetric. In this regard, if γk &lt; 0, it shows the existence of a leverage effect. It means that bad news reinforces the volatility. Conversely, if γk &gt; 0, it indicates the presence of leverage effect, and it denotes that negative shocks at time t−1 have a weaker impact on the variance at time t than positive shocks.</p>
</sec>
</sec>
<sec id="sec-8"><label>3.2</label><title>Gaussian Distribution</title>
<p>When estimating Garch models, the Gaussian or normal distribution is used. One must maximize the log-likelihood function to estimate the conditional mean, variance, and density function <xref ref-type="bibr" rid="ref-29">[29]</xref>.</p>
</sec>
<sec id="sec-9"><label>3.3</label><title>Student’s Distribution</title>
<p>Student or T-student distribution is utilized when financial time series have fat tails. The T-student distribution corresponds to the normal distribution when the degree of freedom is infinite <xref ref-type="bibr" rid="ref-30">[30]</xref>.</p>
<p>To define the orders of the model, this process is made by considering the AC and the PAC for each case</p>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Regarding the AC and the PAC for the data,</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:4:66,224.5,537.1,377"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>The best model will be chosen based on the outputs of this analysis. However, to increase the accuracy of the analysis, the information criteria have been considered. <xref ref-type="table" rid="tab4">Table 4</xref> depicts each case, which presents the lowest value of information criteria as the best one.</p>
<table-wrap id="tab4"><label>Table 4</label><caption><p>Information criteria.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:4:66,76.8,537.1,137.5"/><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,616.5,537.1,756.2"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>The order of ACs is four, and PACs is three. In this regard, (4,3) has the lowest value of information criteria, and all the inverse roots lie inside the unit circle Fig. 5. The residuals, shown in <xref ref-type="table" rid="tab5">Table 5</xref>, are white noise and a positive point in the ARIMA (4,1,3) because there is no information in the residuals. Therefore, the ARIMA (4,1,3) has satisfied the stability conditions, and the error terms are white noise.</p>
<fig id="fig4"><label>Figure 4</label><caption><p>Inverse roots of AR/MA polynomial(s).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,394.2,537.1,556.6"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<table-wrap id="tab5"><label>Table 5</label><caption><p>The correlogram of residuals in ARIMA (4,1,3).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,209.9,537.1,356.6"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>To examine conditional heteroscedasticity, the null hypothesis of heteroskedasticity is rejected by ProbProb. &lt;0.05. <xref ref-type="table" rid="tab6">Table 6</xref> presents the data as not being homoscedastic. Thus, it has to model the volatility for the data.</p>
<table-wrap id="tab6"><label>Table 6</label><caption><p>ARCH test results–Evidence of heteroskedasticity in the model.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,100.1,537.1,147.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>The Garch models will be calculated to compare the results and examine fluctuations in <xref ref-type="table" rid="tab7">Tables 7</xref>-9.</p>
<table-wrap id="tab7"><label>Table 7</label><caption><p>GARCH Model Estimations – Estimated parameters of GARCH, GJR-GARCH, and EGARCH models under normal and t-student distributions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,531.1,578.6,743.2"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab8"><label>Table 8</label><caption><p>Variance Equation Estimations–Estimated variance equations for GARCH, GJR-GARCH, and EGARCH models with different distributions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,259.9,537.1,482.8"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab9"><label>Table 9</label><caption><p>Model Selection Criteria – Comparison of GARCH models based on Akaike, Schwarz, and Hannan-Quinn information criteria.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,93.9,537.1,216.7"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-10"><label>3.4</label><title>Machine Learning Models</title>
<sec id="sec-11"><label>3.4.1</label><title>Random forest</title>
<p>Random forest method based on decision trees is an ensemble learning method for classification and regression <xref ref-type="bibr" rid="ref-31">[31]</xref>. A random forest tree, which is based on a structure consisting of many decision trees, grows and aggregates regression trees for the predictions of each tree. This method is suitable for overfitting decision trees in the training set. Random forest has one stage more than bagging, which usually causes the performance of random forest to be better than that of the decision tree. The method utilizes bagging and random subspace to decrease the variance of the model <xref ref-type="bibr" rid="ref-32">[32]</xref>. The combination of bagging and random subspace helps to generate appropriate diversity in the model. In this regard, the random subspace method can increase diversity among trees by restricting trees to work on different random subsets of the predictor space, and bagging can examine additional diversity by constructing each tree in the forest from a bootstrap dataset sample.</p>
</sec>
<sec id="sec-12"><label>3.4.2</label><title>Ridge regression</title>
<p>The least square method aims to estimate variables when the relation between variables is linear. However, the least square estimates have high variance, which can become overfitting in the model. A small change in the training data can generate a large change in the coefficients <xref ref-type="bibr" rid="ref-33">[33]</xref>. Ridge regression estimates the coefficients in linear models where the independent variables are correlated <xref ref-type="bibr" rid="ref-34">[34]</xref>. This method can control the extent of coefficients by imposing a penalty for the error function. The penalty is a trade-off between the variance and bias that reduces the effects of multicollinearity and variance to increase prediction accuracy in the model.</p>
</sec>
<sec id="sec-13"><label>3.4.3</label><title>Support vector regression</title>
<p>Support Vector Regression (SVR) is a supervised machine-learning algorithm based on the Support Vector Machine <xref ref-type="bibr" rid="ref-35">[35]</xref>. This algorithm depicts sample data as points in space, and the points are separated using a hyperplane. Due to some characteristics of SVR, this method can be used for incomplete data and outliers <xref ref-type="bibr" rid="ref-36">[36]</xref>. The algorithm is a method to estimate a function that is mapped from an input to an output based on training data. The SVR considers kernel functions, which calculate the similarity among two observations in non-linear problems. SVR aims to map the vectors of regressor x onto a high-dimensional space using some fixed transformation.</p>
</sec>
<sec id="sec-14"><label>3.4.4</label><title>Elastic net</title>
<p>The elastic net method is a hybrid regression that utilizes penalties to improve the regularization of statistical models. Regularization contributes to solving the overfitting problem in the model. This procedure combines the lasso and ridge regression methods by learning to reduce loss function <xref ref-type="bibr" rid="ref-37">[37]</xref>. In this regard, two stages contain the lasso and regression algorithms to find the elastic net estimator. If first finds the ridge regression coefficients, perform the second step by utilizing a lasso sort of shrinkage of the coefficients. Also, the elastic net determines models that variable selection can be too dependent on data and unstable.</p>
</sec>
<sec id="sec-15"><label>3.4.5</label><title>Prediction performance metrics</title>
<p>To evaluate prediction accuracy, the Root Mean Square Error (RMSE) scale is utilized for examination, which is calculated as follows;</p>
<p>RMSE = √(1/n) ∑n i=1(yi−̂ yi)2,</p>
<p>where y ̂i indicates the predicted value, and yi depicts the actual value.</p>
</sec>
</sec>
</sec>
<sec id="sec-16"><label>4</label><title>Results</title>
<p><xref ref-type="table" rid="tab8">Table 8</xref> indicates all the parameters are statistically significant in Garch, GJRGarch, and EGarch models. In other words, the parameters significantly differ from zero, highlighting the models&apos; high validity. The best conditional volatility model is EGarch because EGarch indicates significant parameters and has the smallest information criteria while having the biggest maximum likelihood <xref ref-type="table" rid="tab8">Table 8</xref> and <xref ref-type="table" rid="tab9">Table 9</xref>. Also, the γ coefficient in the EGarch indicates the leverage effect. It shows the news effect in the model, and γ &gt; 0 depicts that positive news is more destabilizing than negative news. The EGarch is exponential Garch; the parameters can be negative and positive. However, the residuals of EGarch with normal and T-student distribution have an Arch effect; hence, this model is refused <xref ref-type="table" rid="tab12">Table 12</xref> and <xref ref-type="table" rid="tab13">Table 13</xref>. Also, all estimations in the mean equation are insignificant for EGarch <xref ref-type="table" rid="tab7">Table 7</xref>.</p>
<p>The γ coefficient in the GJRGarch is not equal to zero (γ ≠ 0) with the normal and the T-student distribution. This means that the impact of news on the series is asymmetric. This model is accepted because this model has no Arch effect in the residuals in both the normal distribution <xref ref-type="table" rid="tab10">Table 10</xref> and the T-student distribution</p>
<table-wrap id="tab11"><label>Table 11</label><caption><p>However, the normal-GJRGarch is rejected for the mean equation because its coefficient is insignificant. All coefficients are insignificant except Garch with T-student distribution and GJRGarch with T-student distribution in Table 7. Therefore, the mean equation is statistically significant in T-student-Garch and T-student-GJRGarch.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,401,537.1,436.8"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>In the Garch model, whether the normal distribution is normal or not, all parameters are significant and positive. Also, the Garch model has no Arch effect <xref ref-type="table" rid="tab14">Table 14</xref> and <xref ref-type="table" rid="tab15">Table 15</xref>. The T-student Garch model is accepted because the mean equation is just as significant in the T-student-Garch model.</p>
<table-wrap id="tab10"><label>Table 10</label><caption><p>ARCH LM test for GJRgarch–normal distribution.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,470.4,537.1,496.2"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab12"><label>Table 12</label><caption><p>ARCH LM test for egarch-normal distribution.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,356.3,537.1,383.4"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab13"><label>Table 13</label><caption><p>ARCH LM test for egarch – t-student distribution.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,298.2,537.1,324"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab14"><label>Table 14</label><caption><p>ARCH LM test for garch – normal distribution.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,238.1,537.1,264.6"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab15"><label>Table 15</label><caption><p>ARCH LM test for garch – t-student distribution.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,179.1,537.1,206.5"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>All coefficients of both T-student-Garch and T-student-GJRGarch in the mean equation are significant. Therefore, Garch(1,1) and GJRGarch(1,1) are the best way to model the conditional fluctuations of conventional gasoline in the case of the T-student distribution. <xref ref-type="table" rid="tab16">Table 16</xref> depicts the hybridized machine learning with Garch and GJRGarch; the RMSE is considered a criterion. The RMSE criterion to predict the seven-step-ahead in the primary model (Garch and GJRGarch) is equal. This means that the results are identical when forecasting seven-ahead in two models. However, with machine learning, the results are changed, and the criterion can decrease. In other words, machine learning can better forecast seven-step-ahead. The criterion to evaluate random forest, ridge regression, SVR, and elastic-net is RMSE, the slightest RMSE of ridge regression in the GJRGarch model. The ridge regression is the best to forecast conditional variance than the primary model and other machine learning algorithms (<xref ref-type="table" rid="tab16">Table 16</xref>). In this regard; the T-student-GJRGarch-ridge regression model has the most accuracy among algorithms to predict seven-step-ahead.</p>
<table-wrap id="tab16"><label>Table 16</label><caption><p>Hybrid ML with GARCH &amp; GJR-GARCH.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,590.8,537.1,679"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab17"><label>Table 17</label><caption><p>Index of notations and abbreviations.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,445.9,537.1,564.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-17"><label>5</label><title>Conclusion</title>
<p>The trend of this search is to evaluate gasoline price volatility based on different Garch models and machine learning methods. This study presents an effective model to predict volatility. Seven of the hybrid models were performed in several stages. In the first stage, comparative research was conducted on fluctuations based on different Garch models with two distributions, Garch, EGarch, and GJRGarch. All models were based on T-student and normal distribution. All the Garch models considered are evaluated to predict fluctuations. Two models were selected based on economic theories, which were significant to estimating all parameters, including Garch and GJRGarch, based on T-student distribution. These models can better forecast volatility than other models. In the second stage, the mentioned models were utilized to predict the seven-step-ahead. The rose scale to predict the seven-step-ahead was 0.08052, which means the scale value was equal in the two models. In the next stage, the machine learning algorithms were used to predict the horizon, which was seven steps more precisely. Conditional variance was entered as an input to machine learning algorithms. The purpose of entering input into algorithms is to analyze volatility. The RMSE scale was also examined in all algorithms, and the scale was the slightest in all algorithms except the support machine vector. There were more RMSE metrics in SVR than in the primary model and other algorithms. The RMSE metrics in ridge regression were less than other algorithms and the primary model with a close look. The scale of ridge regression in GJRGarh was 0.01475, which was the slightest in all. Therefore, the hybrid model ridge regression-GJRGarch based on T-student distribution can better decrease prediction error to forecast volatility for seven-step-ahead. In other words, the proposed model is more accurate than another model and algorithms to predict the seven-step-ahead. Other Garch models based on different distributions and algorithms in machine learning can be investigated to evaluate volatility in future research.</p>
<sec id="sec-18"><title>Ethical statement</title>
<p>I. This material is the authors&apos; original work, which has not been previously published elsewhere.</p>
<p>II. The paper is not currently being considered for publication elsewhere.</p>
<p>III. The paper reflects the authors&apos; research and analysis wholly and truthfully.</p>
<p>IV. The results are appropriately placed in prior and existing research context.</p>
<p>V. All sources used are correctly disclosed (Correct citation).</p>
<p>VI. All authors have been personally and actively involved in substantial work leading to the paper, and will take public responsibility for its content.</p>
</sec>
</sec>
<sec id="sec-19"><title>Conflicts of Interest</title>
<p>The authors declare that they have no known competing financial interests or personal relationships that could have appeared to affect the work reported in this research. Also, the authors declare that no funds, grants, or other support were received during the preparation of this manuscript.</p>
</sec>
<sec id="sec-20"><title>Acknowledgments</title>
<p>The authors wish to convey their appreciation to everyone and every institution that played a role in completing this study. We extend special gratitude to our colleagues for their insightful contributions and engaging discussions, and to the reviewers for their valuable feedback and recommendations.</p>
</sec>
<sec id="sec-21"><title>Author Contribution</title>
<p>Every author made a meaningful contribution to the conception, design, and implementation of this research. Reza Roshanpour was in charge of collecting and analyzing the data, Mohammadreza Parsanejad assisted with the theoretical framework, while Sorya Asgari and Fatemeh Hashtroodi Mahmoodi participated in writing and revising the manuscript. All authors have reviewed and approved the final manuscript version.</p>
</sec>
<sec id="sec-22"><title>Data Availability</title>
<p>For access to the dataset, please reach out to the corresponding author.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Setyawan, D. (2014). The impacts of the domestic fuel increases on prices of the Indonesian economic sectors. Energy procedia, 47, 47–55. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.egypro.2014.01.195">https://doi.org/10.1016/j.egypro.2014.01.195</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Kpodar, K., &amp; Liu, B. (2022). The distributional implications of the impact of fuel price increases on inflation. Energy economics, 108, 105909. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eneco.2022.105909">https://doi.org/10.1016/j.eneco.2022.105909</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Norouzia, N. (2019). Short-term and long-term effects of fuel carrier’s price rise on consumer price inflation in Iran. Technology transfer and entrepreneurship, 1–13. <ext-link ext-link-type="uri" xlink:href="https://B2n.ir/ww5979">https://B2n.ir/ww5979</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Jansen, D. J., &amp; Jonker, N. (2018). Fuel tourism in Dutch border regions: Are only salient price differentials relevant? Energy economics, 74, 143–153. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eneco.2018.05.036">https://doi.org/10.1016/j.eneco.2018.05.036</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Kilian, L., &amp; Zhou, X. (2020). Oil prices, gasoline prices and inflation expectations: A new model and new facts. <ext-link ext-link-type="uri" xlink:href="https://hdl.handle.net/10419/223588">https://hdl.handle.net/10419/223588</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Rodrigues, N., Losekann, L., &amp; Silveira Filho, G. (2018). Demand of automotive fuels in Brazil: Underlying energy demand trend and asymmetric price response. Energy economics, 74, 644–655. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eneco.2018.07.005">https://doi.org/10.1016/j.eneco.2018.07.005</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Bagnai, A., &amp; Ospina, C. A. M. (2015). Long-and short-run price asymmetries and hysteresis in the Italian gasoline market. Energy policy, 78, 41–50. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.enpol.2014.12.017">https://doi.org/10.1016/j.enpol.2014.12.017</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Bagnai, A., &amp; Ospina, C. A. M. (2016). “Asymmetric asymmetries” in Eurozone markets gasoline pricing. The journal of economic asymmetries, 13, 89–99. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jeca.2016.03.004">https://doi.org/10.1016/j.jeca.2016.03.004</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Ou, S., Lin, Z., Xu, G., Hao, X., Li, H., Gao, Z., Bouchard, J. (2020). The retailed gasoline price in China: Time-series analysis and future trend projection. Energy, 191, 116544. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.energy.2019.116544">https://doi.org/10.1016/j.energy.2019.116544</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Bastianin, A., Galeotti, M., &amp; Manera, M. (2014). Forecasting the oil-gasoline price relationship: Do asymmetries help? Energy economics, 46, S44-S56. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eneco.2014.08.006">https://doi.org/10.1016/j.eneco.2014.08.006</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Escribano, Á., &amp; Wang, D. (2021). Mixed random forest, cointegration, and forecasting gasoline prices. International journal of forecasting, 37(4), 1442–1462. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.ijforecast.2020.12.008">https://doi.org/10.1016/j.ijforecast.2020.12.008</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Kolesnikova, A., &amp; Fantazzini, D. (2021). Asymmetry and hysteresis in the Russian gasoline market: The rationale for green energy exports. Energy policy, 157, 112466. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.enpol.2021.112466">https://doi.org/10.1016/j.enpol.2021.112466</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Hammoudeh, S., Li, H., &amp; Jeon, B. (2003). Causality and volatility spillovers among petroleum prices of WTI, gasoline and heating oil in different locations. The north american journal of economics and finance, 14(1), 89–114. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/S1062-9408(02)00112-2">https://doi.org/10.1016/S1062-9408(02)00112-2</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>An, J., Mikhaylov, A., &amp; Moiseev, N. (2019). Oil price predictors: machine learning approach. International journal of energy economics and policy, 9(5), 1–6. <ext-link ext-link-type="uri" xlink:href="https://www.econjournals.net.tr/index.php/ijeep/article/view/7597">https://www.econjournals.net.tr/index.php/ijeep/article/view/7597</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Gabralla, L. A., Jammazi, R., &amp; Abraham, A. (2013). Oil price prediction using ensemble machine learning. In 2013 International conference on computing, electrical and electronic engineering (ICCEEE) (pp. 674–679). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICCEEE.2013.6634021">https://doi.org/10.1109/ICCEEE.2013.6634021</ext-link></mixed-citation></ref>
<ref id="ref-16"><label>16</label><mixed-citation>Gumus, M., &amp; Kiran, M. S. (2017). Crude oil price forecasting using XGBoost. In 2017 International conference on computer science and engineering (UBMK) (pp. 1100-1103). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/UBMK.2017.8093500">https://doi.org/10.1109/UBMK.2017.8093500</ext-link></mixed-citation></ref>
<ref id="ref-17"><label>17</label><mixed-citation>Busari, G. A., &amp; Lim, D. H. (2021). Crude oil price prediction: A comparison between AdaBoost-LSTM and AdaBoost-GRU for improving forecasting performance. Computers &amp; chemical engineering, 155, 107513. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compchemeng.2021.107513">https://doi.org/10.1016/j.compchemeng.2021.107513</ext-link></mixed-citation></ref>
<ref id="ref-18"><label>18</label><mixed-citation>Orojo, O., Tepper, J., McGinnity, T. M., &amp; Mahmud, M. (2019). A multi-recurrent network for crude oil price prediction. In 2019 IEEE symposium series on computational intelligence (SSCI) (pp. 2940-2945). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/SSCI44817.2019.9002841">https://doi.org/10.1109/SSCI44817.2019.9002841</ext-link></mixed-citation></ref>
<ref id="ref-19"><label>19</label><mixed-citation>Jovanovic, L., Jovanovic, D., Bacanin, N., Jovancai Stakic, A., Antonijevic, M., Magd, H., … &amp; Zivkovic, M. (2022). Multi-step crude oil price prediction based on lstm approach tuned by salp swarm algorithm with disputation operator. Sustainability, 14(21), 14616. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/su142114616">https://doi.org/10.3390/su142114616</ext-link></mixed-citation></ref>
<ref id="ref-20"><label>20</label><mixed-citation>Hao, J., Feng, Q., Yuan, J., Sun, X., &amp; Li, J. (2022). A dynamic ensemble learning with multi-objective optimization for oil prices prediction. Resources policy, 79, 102956. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.resourpol.2022.102956">https://doi.org/10.1016/j.resourpol.2022.102956</ext-link></mixed-citation></ref>
<ref id="ref-21"><label>21</label><mixed-citation>Lu, H., Ma, X., Ma, M., &amp; Zhu, S. (2021). Energy price prediction using data-driven models: A decade review. Computer science review, 39, 100356.<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cosrev.2020.100356">https://doi.org/10.1016/j.cosrev.2020.100356</ext-link></mixed-citation></ref>
<ref id="ref-22"><label>22</label><mixed-citation>Lahmiri, S., &amp; Boukadoum, M. (2015). An ensemble system based on hybrid EGARCH-ANN with different distributional assumptions to predict S&amp;P 500 intraday volatility. Fluctuation and noise letters, 14(01), 1550001. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1142/S0219477515500017">https://doi.org/10.1142/S0219477515500017</ext-link></mixed-citation></ref>
<ref id="ref-23"><label>23</label><mixed-citation>Bildirici, M., &amp; Ersin, Ö. Ö. (2009). Improving forecasts of GARCH family models with the artificial neural networks: An application to the daily returns in Istanbul stock exchange. Expert systems with applications, 36(4), 7355–7362. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eswa.2008.09.051">https://doi.org/10.1016/j.eswa.2008.09.051</ext-link></mixed-citation></ref>
<ref id="ref-24"><label>24</label><mixed-citation>Engle, R. F. (1982). Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation. Econometrica: Journal of the econometric society, 987–1007. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/1912773">https://doi.org/10.2307/1912773</ext-link></mixed-citation></ref>
<ref id="ref-25"><label>25</label><mixed-citation>Glosten, L. R., Jagannathan, R., &amp; Runkle, D. E. (1993). On the relation between the expected value and the volatility of the nominal excess return on stocks. The journal of finance, 48(5), 1779–1801. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/j.1540-6261.1993.tb05128.x">https://doi.org/10.1111/j.1540-6261.1993.tb05128.x</ext-link></mixed-citation></ref>
<ref id="ref-26"><label>26</label><mixed-citation>Nelson, D. B. (1991). Conditional heteroskedasticity in asset returns: A new approach. Econometrica: journal of the econometric society, 347–370. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/2938260">https://doi.org/10.2307/2938260</ext-link></mixed-citation></ref>
<ref id="ref-27"><label>27</label><mixed-citation>Uğurlu, E. (2019). Research data analysis using EViews: An empirical example of modeling volatility. In Research data access and management in modern libraries (pp. 292–324). IGI Global. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.4018/978-1-5225-8437-7.ch014">https://doi.org/10.4018/978-1-5225-8437-7.ch014</ext-link></mixed-citation></ref>
<ref id="ref-28"><label>28</label><mixed-citation>Thomas, S., &amp; Mitchell, H. (2005). GARCH modeling of high-frequency volatility in Australia’s national electricity market. System, 1–39. <ext-link ext-link-type="uri" xlink:href="https://B2n.ir/fy4358">https://B2n.ir/fy4358</ext-link></mixed-citation></ref>
<ref id="ref-29"><label>29</label><mixed-citation>Cover, T. M. (1999). Elements of information theory. John Wiley &amp; Sons. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/047174882X">https://doi.org/10.1002/047174882X</ext-link></mixed-citation></ref>
<ref id="ref-30"><label>30</label><mixed-citation>Hurst, S. (1995). The characteristic function of the Student t distribution. <ext-link ext-link-type="uri" xlink:href="https://B2n.ir/fu2748">https://B2n.ir/fu2748</ext-link></mixed-citation></ref>
<ref id="ref-31"><label>31</label><mixed-citation>Breiman, L. (2001). Random forests. machine learning. Machine learning, 45, 5–32. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1023/A:1010933404324">https://doi.org/10.1023/A:1010933404324</ext-link></mixed-citation></ref>
<ref id="ref-32"><label>32</label><mixed-citation>Dudek, G., Fiszeder, P., &amp; Kobus Pawełand Orzeszko, W. (2024). Forecasting cryptocurrencies volatility using statistical and machine learning methods: A comparative study. Applied soft computing, 151, 111132. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.asoc.2023.111132">https://doi.org/10.1016/j.asoc.2023.111132</ext-link></mixed-citation></ref>
<ref id="ref-33"><label>33</label><mixed-citation>James, G., Witten, D., Hastie, T., &amp; Tibshirani, R. (2013). An introduction to statistical learning (Vol. 112, No. 1). New York: Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-031-38747-0">https://doi.org/10.1007/978-3-031-38747-0</ext-link></mixed-citation></ref>
<ref id="ref-34"><label>34</label><mixed-citation>Hilt, D. E., &amp; Seegrist, D. W. (1977). Ridge, a computer program for calculating ridge regression estimates (Vol. 236). Department of agriculture, forest service, northeastern forest experiment. <ext-link ext-link-type="uri" xlink:href="https://research.fs.usda.gov/treesearch/19260">https://research.fs.usda.gov/treesearch/19260</ext-link></mixed-citation></ref>
<ref id="ref-35"><label>35</label><mixed-citation>Vapnik, V., Golowich, S., &amp; Smola, A. (1996). Support vector method for function approximation, regression estimation and signal processing. Advances in neural information processing systems, 9. <ext-link ext-link-type="uri" xlink:href="https://B2n.ir/rt8212">https://B2n.ir/rt8212</ext-link></mixed-citation></ref>
<ref id="ref-36"><label>36</label><mixed-citation>Gavrishchaka, V. V, &amp; Ganguli, S. B. (2003). Volatility forecasting from multiscale and high-dimensional market data. Neurocomputing, 55(1–2), 285–305. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/S0925-2312(03)00381-3">https://doi.org/10.1016/S0925-2312(03)00381-3</ext-link></mixed-citation></ref>
<ref id="ref-37"><label>37</label><mixed-citation>Zou, H., &amp; Hastie, T. (2005). Regularization and variable selection via the elastic net. Journal of the royal statistical society series b: Statistical methodology, 67(2), 301–320. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/j.1467-9868.2005.00503.x">https://doi.org/10.1111/j.1467-9868.2005.00503.x</ext-link></mixed-citation></ref>
</ref-list></back>
</article>