Comparison of Linear Regression and Random Forest Algorithms for Premium Rice Price Prediction (Case Study: West Java)

Authors

  • Irfan Rasyid Muchtar Universitas Mercubuana, Indonesia
  • Afiyati Afiyati Universitas Mercu Buana, Indonesia

DOI:

https://doi.org/10.59141/jist.v5i7.1184

Keywords:

Premium Rice Prices, Linear Regression, Random Forest

Abstract

The staple food commodity that is crucial to the Indonesian society is rice. Rice often experiences fluctuations in prices. These fluctuations can be predicted using machine learning methods. The aim of this research is to evaluate the accuracy of machine learning algorithms in predicting the premium rice prices in the West Java Province, Indonesia. Two methods used in this study are Linear Regression and Random Forest. The dataset used consists of 6096 records from the Indonesian Food Commodity Management Agency. The evaluation results show that the Random Forest algorithm has an accuracy rate of 98.69%, while the Linear Regression algorithm has an accuracy rate of 95.08%. Based on these results, it is concluded that the Random Forest algorithm is more effective in predicting premium rice prices in the West Java Province compared to the Linear Regression algorithm.

Downloads

Published

2024-07-17

How to Cite

Muchtar, I. R., & Afiyati, A. (2024). Comparison of Linear Regression and Random Forest Algorithms for Premium Rice Price Prediction (Case Study: West Java). Jurnal Indonesia Sosial Teknologi, 5(7), 3122–3132. https://doi.org/10.59141/jist.v5i7.1184