Compare Linear regression, Decision Tree Regressor, and Random Forest Regressor based on python, a restaurant company on Kaggle as a case
DOI:
https://doi.org/10.54691/bcpbm.v36i.3449Keywords:
Logistics, forecast, python, regressor.Abstract
The fastest-developed computer language around the world is python because it is easy to use. Most of the linear regression methods currently used for traffic prediction cannot explain the accuracy differences between methods. In this study, the idea of constructing a regression model, decision tree regressor, and random forest regressor is described by analyzing the sales volume, region, and time of a take-out company, and the accuracy difference between the three different models with the same data is compared. It is concluded that the random forest regression volume has the highest accuracy among the three, and the results are obtained by bringing them into the original data for experiments. Although the linear regression model improves the scientific and rational nature of logistics forecasting. It provides a decision basis for enterprises to forecast sales volume. However, if only the linear regression model is used for forecasting, it is still not accurate enough. It needs to be combined with other methods for experiments to further improve accuracy, scientificity, and rationality. In the paper, the basic knowledge of statistics is used to create three different linear regressions through python and find which one is the most accurate. R2 score, MSE, and RMSE are explained. Based on the study, when firms do the prediction of their business or any other projects, if the data set have the linear regression relationship, they could choose the Random Forest through python directly as it is the most precise among them.
Downloads
References
Pingouin: statistics in Python by Raphael Vallat1, journal of open source software DOI: 10.21105/joss.01026
Wagner, S. M. Innovation management in the German transportation industry. Journal of Business Logistics, 2008, 29(2): 215.
Zhang, L. Regional Object Flow Forecasting Method Simulation in the Internet of Things Environment. Computer Simulation, 2018, 35(8): 410-414.
Smith, C. D., Mentzer, J. T. User influence on the relationship between forecast accuracy, application, and logistics performance. Journal of business logistics, 2010, 31(1): 159.
Hui, Y., Bo, W., Cui, S., Yan, R. C. Logistics Forecasting Based on Support Vector Machine: A Case Study of Chengdu.Transportation Standardization, 2014, 42(15).
Hu, B. Y., Wang, X. K., Chen, Y. Capacity prediction of logistics park based on double improved gray Markov model. Journal of Dalian Maritime University, 2011, 37(1): 91-94.
Khalyasmaa, A. Prediction of Solar Power Generation Based on Random Forest Regressor Model. International Multi-Conference on Engineering, Computer and Information Sciences (SIBIRCON), 2019.
Mrabet, Z. E. Random Forest Regressor-Based Approach for Detecting Fault Location and Duration in Power Systems. the Special Issue Cybersecurity and Privacy-Preserving in Modern Smart GridSensors. 2022, 22(2): 458.
Ploberger, W., Kramer, W., Kontrus, K. A New test For Structural stability in the linear regression model. Journal of Economics, 40(1989): 307-318.
Rathore, S. S., Kumar, S. A Decision Tree Regression based Approach for the Number of Software Faults Prediction. ACM SIGSOFT Software Engineering Notes, 2016, 41(1).
Khalyasmaa, A. Prediction of Solar Power Generation Based on Random Forest Regressor Model. International Multi-Conference on Engineering, Computer and Information Sciences (SIBIRCON), 2019.






