Reza Taleblou
Abstract
In this paper, we evaluate the performance of two machine learning architectures— Recurrent Neural Networks (RNN) and Transformer-based models—on four commodity-based company indices from the Tehran Stock Exchange. The Transformer-based models used in this study include AutoFormer, FEDformer, ...
Read More
In this paper, we evaluate the performance of two machine learning architectures— Recurrent Neural Networks (RNN) and Transformer-based models—on four commodity-based company indices from the Tehran Stock Exchange. The Transformer-based models used in this study include AutoFormer, FEDformer, Informer, and PatchTST, while the RNN-based models consist of GRU and LSTM. The dataset comprises daily observations collected from April 20, 2020, to November 20, 2024. To enhance the generalization power of the models and prevent overfitting, we employ two techniques: splitting the training and test samples, and applying regularization methods such as dropout. Hyperparameters for all models were selected using a visual method. Our results indicate that the PatchTST model outperforms other methods in terms of Root Mean Squared Error (RMSE) for both 1-day and 5-day (1-week) forecasting horizons. The FEDformer model also demonstrates promising performance, particularly for forecasting the MetalOre time series. In contrast, the AutoFormer model performs relatively poorly for longer forecasting horizons, while the GRU and LSTM models yield mixed results. These findings underscore the significant impact of model selection and forecasting horizon on the accuracy of time series forecasts, emphasizing the importance of careful model choice and hyperparameter tuning for achieving optimal performance.
Kamran Pakizeh; Arman Malek; Mahya Karimzadeh khosroshahi; Hasan Hamidi Razi
Abstract
Cryptocurrencies, which are digitally encrypted and decentralized, continue to attract attention of nancial market players across the world. Because of high volatility in cryptocurrency market, predicting price of cryptocurrencies has become one of the most complicated elds in nancial ...
Read More
Cryptocurrencies, which are digitally encrypted and decentralized, continue to attract attention of nancial market players across the world. Because of high volatility in cryptocurrency market, predicting price of cryptocurrencies has become one of the most complicated elds in nancial markets. In this paper, we use Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models to predict price of four well-known cryptocurrencies of Bitcoin (BTC), Ethereum(ETH), Litecoin (LTC), and Ripple (XRP). These models are subdivisions of Articial Intelligence, machine learning and data science. The main aim of this paper is to compare the accuracy of above-mentioned models in forecasting time series data, to nd out which model can better predict price in these four cryptocurrencies. 43 variables consisting of 28 technical indicators and t+10 lags were calculated and appended to the Open, High, Low, Close and Volume (OHLCV) data for selected cryptocurrencies. Applying random forest as feature selection, 25 variables werechosen, 24 of them selected as feature (independent variables) and one as a dependent variable. Each attribute value was converted into a relative standard score, followed by Min-max scaling; we compare models and results of Dieblod Mariano test that is used to examine whether the differences in predictive accuracy with these two models are signi cant, reveal that LSTM reaches better accuracy than GRU for BTC and ETH, but both models convey the same accuracy for LTC and XRP.