Implementing kNearest Neighbor Methods to Predict Car Prices

  • Deshiwa Budilaksana Udayana University
  • I Made Sukarsa Udayana University
  • Anak Agung Ketut Agung Cahyawan Wiranatha Udayana University

Abstract

The demand for automotive in Indonesia has never subsided, considering that the human need for transportation greatly affects people's daily lives. Various attempts are made by manufacturers to produce cars of a quality that is comparable to the costs incurred and following market demand. Prediction is a process that can be done to achieve this goal. One of the prediction methods that can be used in this case is the kNearest Neighbor. The prediction process consists of a preprocessing stage that cleans and filters unnecessary variables, followed by a variable multicollinearity test stage with Variance Inflation Factor (VIF). The multicollinearity test found 4 variables that had a specific influence in predicting the VIF value of these variables, respectively 2.22, 2.08, 1.53, 1.10 for Horse Power, Car Width, Highend, and, Hatchback respectively. The four variables of the VIF test results have a positive correlation with the price variable as the dependent variable. The prediction model is made using 4 variables selected based on the VIF test, to determine the accuracy of the method used, the Linear Regression model and, the kNearest Neighbor through the validation test with Mean Absolute Error (MAE) and R2. The kNearest Neighbor method produces an MAE test of 0.06 and R2 results are 0.843. This can be concluded if the overall kNearest Neighbor method has qualified performance in making predictions with continuous value variables or in other words using the concept of regression.

Published
2021-04-29
How to Cite
BUDILAKSANA, Deshiwa; SUKARSA, I Made; WIRANATHA, Anak Agung Ketut Agung Cahyawan. Implementing kNearest Neighbor Methods to Predict Car Prices. Jurnal Ilmiah Merpati (Menara Penelitian Akademika Teknologi Informasi), [S.l.], p. 58-71, apr. 2021. ISSN 2685-2411. Available at: <https://ojs.unud.ac.id/index.php/merpati/article/view/68139>. Date accessed: 22 nov. 2024. doi: https://doi.org/10.24843/JIM.2021.v09.i01.p06.
Section
Articles

Most read articles by the same author(s)

Obs.: This plugin requires at least one statistics/report plugin to be enabled. If your statistics plugins provide more than one metric then please also select a main metric on the admin's site settings page and/or on the journal manager's settings pages.