JURNAL TEKNOLOGI DAN ILMU KOMPUTER PRIMA (JUTIKOMP)
Vol. 9 No. 1 (2026): Jurnal Teknologi dan Ilmu Komputer Prima (JUTIKOMP)

Comparative Analysis of Linear Regression Algorithms and Random Forest for Skincare Product Sales Prediction of Skincare Products on the Tokopedia Marketplace

Brian Colin Chang (Universitas Prima Indonesia)
Widodo Tjiawie (Universitas Prima Indonesia)
Jervis Patrick (Universitas Prima Indonesia)
Justine Thorino (Universitas Prima Indonesia)
Delima Sitanggang (Universitas Prima Indonesia)



Article Info

Publish Date
30 Apr 2026

Abstract

This study aims to evaluate and compare the performance of Linear Regression and Random Forest algorithms in predicting skincare product sales on the Tokopedia platform. Accurate sales predictions play a strategic role for businesses, particularly in pricing policy formulation, product positioning, and more efficient inventory management. The data used included 7,217 skincare products with six main variables, which were then expanded into 21 features through preprocessing and feature engineering stages, including product type extraction, main benefits, seller characteristics, location tier, and price position category. The model was developed and tested using a training and testing data split with a ratio of 80:20. The analysis results showed that the Random Forest algorithm performed better than Linear Regression. In the test data, Random Forest achieved an R² value of 0.2115 with an RMSE of 32,754.23 and an MAE of 12,073.59. In contrast, Linear Regression only obtained an R² of 0.0245 with an RMSE of 36,431.74 and an MAE of 14,688.99. Although the R² value is relatively low, the results are still realistic considering the complexity of e-commerce sales behavior, which is influenced by various external factors. Feature importance analysis shows that price and price per unit are the most dominant factors, followed by rating, number of product benefits, brand category, and product type. Based on these findings, Random Forest is recommended as a more suitable model to support skincare product sales predictions on Tokopedia, mainly due to its ability to capture non-linear patterns and interactions between features. This study is expected to contribute to the development of data-driven marketing strategies, particularly in pricing, multi-benefit product development, and skincare portfolio management on marketplace platforms.

Copyrights © 2026






Journal Info

Abbrev

JUTIKOMP

Publisher

Subject

Computer Science & IT

Description

JuTIKom PRIMA(Jurnal Teknologi dan Ilmu Komputer Prima) adalah jurnal yang di fokuskan Terhadap bidang ilmu Teknologi dan Ilmu Komputer. Tujuan jurnal adalah untuk mengakomodir para dosen dan mahasiswa baik dalam lingkungan kampus Universitas Prima Indonesia maupun dari kampus berbeda jurnal ini ...