ARCHIVES

Review Article

Second-Hand Car Price Prediction Model in Nairobi

Brian Onyiego1Emma Anyika2James Obuhuma3

¹ ²Computing and Mathematics, Co-operative University of Kenya, Kenya. ³Computer 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

2025

Restaurant Table Reservation with Food Ordering

2025

A IoT-Driven Smart Commerce: Redefining Consumer Experience and Operational Efficiency in E-Commerce Platforms

2025

Agricultural Products: CVF Yield Prediction Using Ensemble Methods and Machine Learning Models

2025

Identifying and Forecasting Wastewater Pollutions Wring IOT & NLP