Stock Price Prediction of Walmart Based on Combination of SVM and LS-SVM Models

Authors

  • Chenguang Yan

DOI:

https://doi.org/10.54691/bcpbm.v38i.3716

Keywords:

Stock Price Prediction; Support Vector Machine; Least Square Support Vector Machine; Technical Indicators; Machine Learning.

Abstract

One of the most significant operations in the finance sector is stock trading. The stock market is an essential part in the economy of a country and serves as the indicators of the situation of a country’s economy as the stock prices go up or down. Therefore, stock price prediction, the behavior of attempting to predict the potential worth of a corporation or any financial instruments successfully, will maximize investor’s gain, enhance market’s confidence, and help government policymakers to make economic decisions. In order to forecast the price of a stock, a machine learning approach is constructed in this study. The suggested algorithm includes random forest, support vector machine (SVM), and least square support vector machine (LS-SVM). In particular, the random forest is employed to select the most important features from the technical indicators calculated for stock price prediction. The SVM and the LS-SVM models are employed to predict the daily stock prices. Besides, R-Squared (R²), mean squared error (MSE) and mean absolute error (MAE) are used for model evaluation. According to the results, both SVM and LS-SVM models can predict stock price well, but both algorithms are not suitable for large datasets, and overfitting problem exists. These results shed light on guiding further exploration of stock price predictions.

Downloads

Download data is not yet available.

References

Hegazy O, Soliman Omar S, and Salam Mustafa A. A Machine Learning Model for Stock Market Prediction. International Journal of Computer Science and Telecommunications, vol. 4, no. 12, December 2013, pp. 17-23.

Shah V H. Machine learning techniques for stock prediction. Foundations of Machine Learning| Spring, 2007, 1(1): 6-12.

Reddy V K S. Stock market prediction using machine learning. International Research Journal of Engineering and Technology (IRJET), 2018, 5(10): 1033-1035.

Tao X, Renmu H, Peng W, et al. Input dimension reduction for load forecasting based on support vector machines. 2004 IEEE International Conference on Electric Utility Deregulation, Restructuring and Power Technologies. Proceedings. IEEE, 2004, 2: 510-514.

Burges C J C. A tutorial on support vector machines for pattern recognition. Data mining and knowledge discovery, 1998, 2(2): 121-167.

Smola A J, Schölkopf B. A tutorial on support vector regression. Statistics and computing, 2004, 14(3): 199-222.

Müller K R, Smola A J, Rätsch G, et al. Predicting time series with support vector machines. International conference on artificial neural networks. Springer, Berlin, Heidelberg, 1997: 999-1004..

Luca Gabriele De. Advantages and Disadvantages of Neural Networks against SVMs. Retreieved from: Baeldung on Computer Science, 20 June 2022, https://www.baeldung.com/cs/ml-ann-vs-svm

Vapnik V. The nature of statistical learning second edition, Springer, 1999.

Alvarez Meza A M, Daza Santacoloma G, Acosta Medina C D, et al. Parameter selection in least squares-support vector machines regression oriented, using generalized cross-validation. Dyna, 2012, 79(171): 23-30.

Support Vector Machine (SVM) Algorithm – Javatpoint, www.javatpoint.com, Retreived from: https://www.javatpoint.com/machine-learning-support-vector-machine-algorithm.

Data of Walmart on yahoo finance. Retreived from: https://finance.yahoo.com/quote/WMT?p=WMT&.tsrc=fin-srch

Tarver Evan. Benefits of Investing in Walmart. Investopedia, Investopedia, 13 July 2022, Retreived from: https://www.investopedia.com/articles/markets/092115/these-are-benefits-investing-walmart.asp

Downloads

Published

2023-03-02

How to Cite

Yan, C. (2023). Stock Price Prediction of Walmart Based on Combination of SVM and LS-SVM Models. BCP Business & Management, 38, 363-371. https://doi.org/10.54691/bcpbm.v38i.3716