Best Selling Product Sales Prediction Using K-Nearest Neighbors (KNN) Algorithm

Purpose: This research aims to evaluate the performance of the K-Nearest Neighbor (KNN) algorithm in predicting product sales based on historical data. The data includes product price information, sales amount in the previous month, product category, promotion, and seasonal factors. This research involves several experiments with various K values and the application of data normalization to optimize prediction accuracy. Methods/Study design/approach: The KNN algorithm was chosen for its simplicity and ability to handle multivariate data. Results/Findings: The results show that the value of K=7 is the optimal parameter for this dataset, with a Root Mean Squared Error (RMSE) value of 110. Normalizing the data is proven to improve the model's accuracy, reducing the RMSE value by about 10% compared to the unnormalized data. Product price, previous sales amount, and promotion features significantly contribute to sales prediction. Novelty/Originality/Value: This research is expected to provide insight for companies that want to use machine learning to predict product sales and support business decision-making.

Authors

Publication Details

Journal
JCOSIS (Journal Computer Science and Information Systems)
Published
2024-11-10
DOI
https://doi.org/10.61567/jcosis.v1i2.214
Primary Topic
Customer churn and segmentation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Best Selling Product Sales Prediction Using K-Nearest Neighbors (KNN) Algorithm

Vina Ayumi, Marissa Utami
JCOSIS (Journal Computer Science and Information Systems)
Customer churn and segmentation
article

Best Selling Product Sales Prediction Using K-Nearest Neighbors (KNN) Algorithm

Vina Ayumi, Marissa Utami
article en

Abstract

Purpose: This research aims to evaluate the performance of the K-Nearest Neighbor (KNN) algorithm in predicting product sales based on historical data. The data includes product price information, sales amount in the previous month, product category, promotion, and seasonal factors. This research involves several experiments with various K values and the application of data normalization to optimize prediction accuracy. Methods/Study design/approach: The KNN algorithm was chosen for its simplicity and ability to handle multivariate data. Results/Findings: The results show that the value of K=7 is the optimal parameter for this dataset, with a Root Mean Squared Error (RMSE) value of 110. Normalizing the data is proven to improve the model's accuracy, reducing the RMSE value by about 10% compared to the unnormalized data. Product price, previous sales amount, and promotion features significantly contribute to sales prediction. Novelty/Originality/Value: This research is expected to provide insight for companies that want to use machine learning to predict product sales and support business decision-making.

JCOSIS (Journal Computer Science and Information Systems)Vol. 1(2)
Openalex Percentile: Top 54%
Customer churn and segmentation
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.

Best Selling Product Sales Prediction Using K-Nearest Neighbors (KNN) Algorithm — Vina Ayumi, Marissa Utami · JCOSIS (Journal Computer Science and Information Systems) (2024) | TGRS Research Map | TGRS