Analisis Prediksi Harga Laptop Menggunakan Algoritma Linear Regression dan Random Forest Regressor
Keywords:
Machine Learning, Prediksi Harga Laptop, Linear Regression, Random Forest Regressor, RegresiAbstract
Laptop prices fluctuate greatly because of varying hardware specifications, making it tough for both buyers and sellers to estimate costs. Utilizing machine learning methods offers a useful way to forecast laptop prices based on their characteristics. This research seeks to examine and compare how well the Linear Regression and Random Forest Regressor algorithms can predict laptop prices. The dataset in use includes multiple laptop specifications such as RAM, CPU, GPU, storage size, display dimensions, and operating system. The research process consisted of data cleaning, analyzing feature correlations, encoding categorical data, dividing the data into training and testing sets, training the models, and assessing their performance. The metrics employed for evaluation were Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and R-Squared (R²). Findings reveal that the Random Forest Regressor surpassed Linear Regression in forecasting laptop prices. Random Forest recorded an MAE of 174. 50, an RMSE of 251. 49, and an R² score of 83. 72%, while Linear Regression achieved an MAE of 277. 16, an RMSE of 354. 12, and an R² score of 67. 72%. Additionally, the Actual vs Predicted analysis showed that the predictions made by Random Forest were more aligned with real laptop prices. Consequently, the Random Forest Regressor is regarded as the more efficient model for predicting laptop prices due to its superior accuracy and enhanced ability to understand complex relationships among the features.
References
Alita, D., & Rahmanto, A. N. (2021). Analisis Komparasi Algoritma Linear Regression dan Random Forest Regressor dalam Memprediksi Nilai Jual Barang Elektronik. Jurnal Teknoinfo, 15(2), 88–96. https://doi.org/10.33365/jti.v15i2.1042
Pratama, M. R., & Sani, R. R. (2023). Komparasi Algoritma Regresi Linier dan Random Forest untuk Estimasi Harga Perangkat Komputer Berbasis Spesifikasi Hardware. Jurnal Informatika dan Rekayasa Perangkat Lunak (JITIKA), 5(1), 12–21. https://doi.org/10.25008/jitika.v5i1.432
Sari, R. P., Anisah, N., & Fitriani, D. (2024). Implementasi Machine Learning untuk Prediksi Harga Laptop Menggunakan Algoritma Regresi Linear Berganda. Jurnal Teknologi Sistem Informasi, 11(1), 45–55. https://doi.org/10.35123/jtsi.v11i1.2024
Septiyanah, & Athalina. (2025). Implementasi Algoritma Random Forest Regression dalam Prediksi Harga Laptop. Jurnal Komputasi dan Informatika, 13(2), 112–122. https://doi.org/10.30872/jki.v13i2.2025
Setiawan, B., & Utami, M. C. (2022). Penerapan Metode Ensemble Learning Random Forest untuk Proyeksi Nilai Pasar Gadget Berdasarkan Atribut Produk. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 6(4), 612–620. https://doi.org/10.29207/resti.v6i4.3910
Wicaksono, A., & Hermawan, T. (2020). Analisis Performa Metrik MAE, RMSE, dan R-Squared pada Model Regresi Machine Learning dalam Menentukan Estimasi Harga Komoditas. Jurnal Ilmu Komputer dan Informatika, 8(3), 204–213. https://doi.org/10.23887/jiki.v8i3.2845
Yusuf, M., & Siregar, A. M. (2023). Pemanfaatan Teknik Preprocessing Data dan Ekstraksi Fitur Kuantitatif untuk Meningkatkan Akurasi Algoritma Prediksi Berbasis Regresi. Jurnal Media Informatika Budidarma, 7(2), 740–749. https://doi.org/10.30865/mib.v7i2.5621
Sari, R. P., Anisah, N., & Fitriani, D. (2024). Implementasi Machine Learning untuk Prediksi Harga Laptop Menggunakan Algoritma Regresi Linear Berganda. Jurnal Teknologi Sistem Informasi, 11(1), 45–55. https://doi.org/10.35123/jtsi.v11i1.2024
Septiyanah, & Athalina. (2025). Implementasi Algoritma Random Forest Regression dalam Prediksi Harga Laptop. Jurnal Komputasi dan Informatika, 13(2), 112–122. https://doi.org/10.30872/jki.v13i2.2025
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Adam Malik Saputra, Remo Teguh Yudianto, Almy Rizky Akbar (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Creative Commons Attribution 4.0 International (CC BY 4.0).


This work is licensed under a