ARCHIVES

Review Article

Second-Hand Car Price Prediction Model in Nairobi

Brian Onyiego1 Emma Anyika2 James Obuhuma3
1 2Computing and Mathematics, Co-operative University of Kenya, Kenya. 3Computer Science, Maseno University, Kenya.

Published Online: September-December 2025

Pages: 100-104

Abstract

The second-hand car market in Kenya has grown significantly, but traditional valuation methods remain subjective and inconsistent, creating inefficiencies and information gaps between buyers and sellers. These approaches often ignore the combined impact of brand, model, and year of manufacture, mileage, and engine size on resale prices. Machine learning offers a more accurate and transparent alternative. This study applied Linear Regression, Random Forest, and XGBoost to a dataset of 28,000 vehicle listings from SBT Japan. After extensive preprocessing, models were evaluated using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R². Linear Regression performed poorly, while ensemble models produced stronger results. Random Forest achieved a testing R² of 0.816 with an MAE of Ksh 683,303, XGBoost reached a testing R² of 0.837 with an MAE of Ksh 672,930, and a Voting Ensemble combining both models performed best, with a testing R² of 0.840, an MAE of Ksh 649,487, and the lowest RMSE of Ksh 1,069,036.

Related Articles

2025

Transforming Cyber-Physical Systems: Machine Learning for Secure and Efficient Solutions

2025

Exploring AI Techniques for Quantum Threat Detection and Prevention

2025

Maturity Models for Business Intelligence: An Overview

2025

INSPIRO: An AI Driven Institution Auditor

2025

Adaptive AI Framework for Anomaly Detection and DDoS Mitigation in Distributed Systems

2025

Predictive Modeling for College Admission Using Machine Learning and Statistical Methods

Share Article

X
LinkedIn
Facebook
WhatsApp

Or copy link

https://test.indjcst.com/archives/10.59256/indjcst.20250403019

*Instagram doesn't support direct link sharing from web. Copy the link and share it in your Instagram story or post.