Stock Price Forecasting with Support Vector Regression Using Firefly Algorithm Optimization
Keywords:
forecasting, time series, stock price, support vector regression, firefly algorithm
Abstract
Stock prices have a fluctuating nature; that is, they can change in a short time. Therefore, it is necessary to analyze and anticipate the risks that will occur by forecasting stock prices. The method that can be used to predict stock prices is Support Vector Regression (SVR), which has the advantage of not requiring certain assumptions to be used, being able to overcome overfitting, training time is faster, and being able to predict time series-based data such as stock prices. However, because the parameters are difficult to determine, SVR requires the help of an optimization method to find the optimal parameters, namely the Firefly Algorithm (FA) method. The combination of SVR-FA is also considered to have the advantage of producing a smaller error value than the combination of other methods. The stock data used is PT's daily stock data. Indofood Sukses Makmur Tbk. and USD-IDR exchange rate data from January 1st, 2012, to January 31st, 2022. This study aims to obtain information on the accuracy of results in forecasting the stock price of PT through the best combination of values and several parameters. The best accuracy results are obtained by combining 100 SVR iterations, 10 FA iterations, and 40 individual firefly numbers with a MAPE testing accuracy of <1% and 0.6796%, which can provide good forecasting results.
Published
2025-07-17
How to Cite
Pradjaningsih, A., & Romadhoni, L. H. R. (2025). Stock Price Forecasting with Support Vector Regression Using Firefly Algorithm Optimization. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-2387
Issue
Section
Research Articles
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).