Research on the prediction of stock prices in the food and media sectors based on the random forest algorithm
This article employs the Random Forest model to conduct predictive research on the food and media industries in the Chinese stock market. The data originates from the historical trading data of the Shanghai Stock Exchange Index from January to June 2022, selecting the stock data of three representative companies from each of the two industries. By analyzing data such as the opening date and price, the Random Forest algorithm is used to predict the closing price, with training and testing sets established and a specific splitting stopping criterion adopted. The study aims to verify the general applicability and accuracy of the Random Forest model in predicting the A-share market, and to explore the differences in the prediction results between the food and media industries. The experimental results show that the prediction bias for both industries is small, with no significant difference in the prediction results, and the model fitting effect is good.
Authors
- Guosheng Xie (ORCID: https://orcid.org/0000-0002-4114-9579)
- Yu Sun (ORCID: https://orcid.org/0000-0003-2392-2043)
- Lei Yang (ORCID: https://orcid.org/0000-0002-0354-6960)
- Yuhao Liang (ORCID: https://orcid.org/0009-0008-9516-6594)
- Liwei Tian
Institutions
- Guangdong Institute of Intelligent Manufacturing (CN)
- Cloud Computing Center (CN)
Publication Details
- Published
- 2025-04-28
- DOI
- https://doi.org/10.1117/12.3067233
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00