Second-Hand Car Price Prediction Model in Nairobi

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.

Authors

Publication Details

Journal
Indian Journal of Computer Science and Technology
Published
2025-10-04
DOI
https://doi.org/10.59256/indjcst.20250403019
Primary Topic
Energy, Environment, and Transportation Policies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Second-Hand Car Price Prediction Model in Nairobi

Emma Anyika, Brian Onyiego, James Obuhuma
Indian Journal of Computer Science and Technology
Energy, Environment, and Transportation Policies
article

Second-Hand Car Price Prediction Model in Nairobi

Emma Anyika, Brian Onyiego, James Obuhuma
article en

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.

Indian Journal of Computer Science and Technology
Openalex Percentile: Top 82%
Energy, Environment, and Transportation Policies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.