Performance Comparison of Random Forest and XGBoost Algorithms for Used Car Price Prediction Using a Kaggle Dataset
DOI:
https://doi.org/10.59934/jaiea.v6i1.2710Keywords:
Machine Learning; Random Forest; XGBoost; Used Car Price Prediction; Kaggle DatasetAbstract
Accurate prediction of used car prices plays an essential role in supporting fair vehicle valuation and informed decision-making within the automotive market. This study aims to compare the performance of the Random Forest and XGBoost algorithms for predicting used car prices using a publicly available Kaggle dataset. The proposed methodology includes data collection, data preprocessing, feature encoding, model training, and model evaluation. The dataset is divided into training and testing subsets to ensure an objective assessment of predictive performance. Both algorithms are evaluated using Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and the Coefficient of Determination (R² Score). The comparative analysis is intended to identify the algorithm that provides superior prediction accuracy and better generalization capability. The findings of this research are expected to contribute to the development of reliable machine learning models for used car price prediction and provide valuable insights for buyers, sellers, and automotive businesses.
Downloads
References
J. Matematika Dan Ilmu Pengetahuan Alam LLDikti Wilayah, P. Hasan Putra, B. Purba, Y. Agustina Dalimunthe, and J. Teknik, “Random forest and decision tree algorithms for car price prediction,” 2023.
T. L. Nikmah, R. M. Syafei, R. Muzayanah, and A. Salsabila, “Prediction Of Used Car Prices Using K-Nearest Neighbour, Random Forest And Adaptive Boosting Algorithm,” 2023. [Online]. Available: https://ejournal.ptti.web.id/index.php/icoca/index
M. B. V Ramana and A. Govardhini, “CAR PRICE PREDICTION USING RANDOM FOREST ALGORITHM,” Journal of Nonlinear Analysis and Optimization, vol. 15, p. 2024.
T. Qian, “Used Car Price Prediction by Using XGBoost,” 2023.
J. Huang, “Price Prediction and Analysis of Price Influencing Factors for Second-hand Car Sales in AutoTrader Based on XGBoost Algorithm,” World Scientific Research Journal, vol. 11, p. 2025, doi: 10.6911/WSRJ.202509_11(9).0006.
Y. Zheng, “Machine Learning Optimization and Challenges in Used Car Price Prediction,” ITM Web of Conferences, vol. 70, p. 04032, 2025, doi: 10.1051/itmconf/20257004032.
C. M. Krisnanda, K. Dwi Usmanto, and J. J. Kristanto, “EVALUATION OF THE C4.5 DECISION TREE AND RANDOM FOREST CLASSIFICATION ALGORITHMS IN PREDICTING DIABETES,” 2026.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








