COMPARATIVE ANALYSIS OF LINEAR REGRESSION AND RANDOM FOREST FOR USED CAR PRICE PREDICTION
Abstract
Manual estimation is often subjective and prone to human bias because the used car market has a complex pricing structure with non-linear depreciation. Objective: This study conducted a comparative analysis between Linear Regression and Random Forest algorithms to develop a more objective pricing model. Methods: The Kaggle dataset contains 5,000 entries indicating features such as manufacturer, model, engine size, and mileage for this study. The methodology included data cleaning, feature engineering, and outlier removal using the IQR method. For training and testing, the data was split 80:20. Results: "Year of Manufacture" was identified as the feature that most significantly influences price, and the evaluation results showed a significant difference in performance. Linear Regression achieved 82.33% accuracy, while Random Forest achieved 99.60% accuracy. Conclusion: Random Forest captures non-linear patterns and complex relationships in used car pricing better than Linear Regression, although it remains quite reliable for general trends.
Keywords
References
L. Bukvić, J. P. Škrinjar, T. Fratrović, dan B. Abramović, ”Price Prediction and Classification of Used-Vehicles Using Supervised Machine Learning,” Sustainability, vol. 14 Desember 2022, pp. 1-17, 2022.
A. Zhu, ”Pre-Owned Car Price Prediction Using Machine Learning Techniques,” Proceedings of the 1st International Conference on Data Analysis and Machine Learning, vol. 1, pp. 356-360, 2024.
A. J. Winata, "Prediksi Harga Mobil Bekas Menggunakan Algoritma Gradient Boosting Machine dan Random Forest," Jurnal Inovasi Pendidikan Kreatif, vol. 5 Desember 2024, pp. 454-463, 2024.
R. Yohanes dan D. Lasut, "Web-Based used Car Price Prediction Application with Linear Regression Method," Bit-Tech , vol. 7 April 2025, pp. 687-695, 2025.
Dewi, B. E. S., Haikal, S., Sulistyowati, H. S., Fitriani, R., & Pranowo K, D. (2024). Penerapan machine learning menggunakan algoritma random forest untuk prediksi harga mobil bekas. Jurnal TRIDI: Teknologi Informatika & Komputer, 2(1), 20-31.
I. Amansyah, J. Indra, E. Nurlaelasari, dan A. R. Juwita, "Prediksi Penjualan Kendaraan Menggunakan Regresi Linear: Studi Kasus pada Industri Otomotif di Indonesia," INNOVATIVE: Journal Of Social Science Research, vol. 4 2024, pp. 1199-1216, 2024.
Y. Chen, C. Li, dan M. Xu, "Business Analytics for Used Car Price Prediction with Statistical Models," Advances in Economics, Business and Management Research, vol. 203 2021, pp. 542-547, 2021.
E. K. Khotimah, D. I. Swasono, dan G. W. Fajarianto, "Forecasting Used Car Prices Using Machine Learning," IT Journal Research and Development (ITJRD), vol. 9 Maret 2025, pp. 123-139, 2025.
N. O. Idris dan F. Pontoiyo, "Evaluasi Model Machine Learning untuk Prediksi Harga Mobil dengan Perbandingan Ensemble dan Regresi Linear," Jurnal Ilmu Komputer dan Sistem Informasi (JIRSI), vol. 4 Januari 2025, pp. 129-143, 2025.
E. Hasibuan dan A. Karim, "Implementasi Machine Learning untuk Prediksi Harga Mobil Bekas dengan Algoritma Regresi Linear Berbasis Web," Jurnal Ilmiah KOMPUTASI, vol. 21 Desember 2022, pp. 595-602, 2022.
M. A. A. Syukur dan M. Faisal, "Penerapan Model Regresi Linear Untuk Estimasi Mobil Bekas Menggunakan Bahasa Python," EULER: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 11 Desember 2023, pp. 182-191, 2023.
M. A. Saputra, Martanto, dan U. Hayati, "Estimasi Harga Mobil Bekas Toyota Yaris Menggunakan Algoritma Regresi Linier," Jurnal Mahasiswa Teknik Informatika, vol. 8 April 2024, pp. 1696-1700, 2024.
A. Sajad dan Nurmalitasari, "Analisis Faktor - Faktor Yang Mempengaruhi Harga Mobil Bekas Menggunakan Metode Regresi Linier," Prosiding Seminar Nasional Teknologi Informasi dan Bisnis (SENATIB) 2023, vol. 2023 Juli 2023, pp. 266-270, 2023.
E. Priande dan G. M. Zamroni, "Pengembangan Sistem Prediksi Harga Mobil Bekas OLX Menggunakan Algorithma Random Forest," Jurnal Sarjana Teknik Informatika, vol. 12 Februari 2024, pp. 1-8, 2024.
A. Ernawati dan A. Karim, "Komparasi Kinerja Algoritma Random Forest dan C4.5 untuk Klasifikasi Harga Mobil," Buletin Ilmiah Informatika Teknologi, vol. 3 September 2024, pp. 25-32, 2024.
N. Pal, P. Arora, D. Sundararaman, P. Kohli, dan S. S. Palakurthy, "How much is my car worth? A methodology for predicting used cars prices using Random Forest," Future of Information and Communications Conference (FICC), 2018.
D. A. Budiono, K. S. Utomo, K. J. Wibowo, dan M. J. Wiradinata, "Used Car Price Prediction Model: A Machine Learning Approach," International Journal of Computer and Information System (IJCIS), vol. 05 Maret 2024, pp. 59-66, 2024.
M. I. D. Attaqi dan J. S. Wibowo, "Prediksi Harga Mobil Bekas Berdasarkan Tipe Penjual dan Jenis Kendaraan Menggunakan Regresi Linier," ELKOM (Jurnal Elektronika dan Komputer), vol. 18 Juli 2025, pp. 25-37, 2025.
B. Kriswantara dan R. Sadikin, "Used Car Price Prediction with Random Forest Regressor Model," JISICOM (Journal of Information Systems, Informatics and Computing), vol. 6 Juni 2022, pp. 40-49, 2022.
S. Uluturk, "Regression Analysis for Predicting Prices of Used Cars: A Study Utilizing Data from Car Trading Website," MSc Research Project, National College of Ireland, 2024.
P. A. Azhar, M. A. Pratama, dan R. Fitriani, "Prediksi Harga Mobil Audi Bekas Menggunakan Model Regresi Linear dengan Framework Streamlit," Journal of Technology and Informatics (JoTI), vol. 6 Oktober 2024, pp. 22-28, 2024.
J. Gao, "Second-hand car price prediction based on multiple linear regression and random forest," Proceedings of the Quantum Machine Learning: Bridging Quantum Physics and Computational Simulations CONFMPCS 2024, 2024, pp. 31-40, 2024.
A. A. Maulana, K. Latifah, dan N. D. Saputro, "Implementasi Algoritma Random Forest Regression Untuk Estimasi Harga Mobil Bekas Merek Toyota," Jurnal Informatika Teknologi dan Sains (JINTEKS), vol. 7 Agustus 2025, pp. 1294-1303, 2025.
B. E. S. Dewi, S. Haikal, H. S. Sulistyowati, R. Fitriani, dan D. P. K, "Penerapan Machine Learning Menggunakan Algoritma Random Forest Untuk Prediksi Harga Mobil Bekas," Jurnal Tridi (Teknologi Informatika & Komputer), vol. 2 2024, pp. 20-31, 202
DOI: http://dx.doi.org/10.22441/collabits.v3i1.37646
Refbacks
- There are currently no refbacks.
Journal Collabits
| Print ISSN: 3062-8601 | |
| Online ISSN: 3046-6709 |
Sekretariat
Fakultas Ilmu Komputer
Universitas Mercu Buana
Jl. Raya Meruya Selatan, Kembangan, Jakarta 11650
Tlp./Fax: +62215871335
http://publikasi.mercubuana.ac.id/index.php/collabits
e-mail: [email protected]

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




