Implementation of Simple Linear Regression in Predicting Cimory Milk Sales from Historical Data
DOI:
https://doi.org/10.51903/j62ypt43Keywords:
sales prediction, linear regression, historical data, cimory, accuracyAbstract
This study aims to develop a sales prediction model for Cimory milk using historical data and a simple linear regression algorithm. The background of this research is the company's need to accurately forecast sales to optimize stock management, reduce the risk of shortages or overstock, and improve operational efficiency. The research method includes a literature review, collection of historical Cimory sales data from 2019˗2021, data cleaning, splitting the dataset into training (80%) and testing (20%) sets, building a linear regression model, and evaluating model performance. The dataset consists of the selling price per unit as the independent variable and total sales as the dependent variable. The results show that the developed linear regression model can provide predictions with a relatively low error rate, achieving a Mean Absolute Error (MAE) of 68,774.17, Mean Squared Error (MSE) of 6,476,720,804.33, and Root Mean Squared Error (RMSE) of 80,478.08. The contribution of this study is a simple, easy-to-implement prediction model that supports decision-making in production planning, marketing strategies, and inventory control. This research implies that companies can utilize the model to improve business planning accuracy, minimize losses from overstock or stock shortages, and enhance product distribution efficiency.
References
[1] A. K. Smith and B. Johnson, “Sales Forecasting for Perishable Goods in Modern Retail Industry,” IEEE Access, vol. 9, pp. 123456–123470, 2021, doi: 10.1109/access.2021.3056789.
[2] C. D. Lee and M. Thompson, “Accurate Prediction Models for Dairy Products with Short Shelf Life,” IEEE Trans. Ind. Informatics, vol. 18, no. 5, pp. 3245–3254, 2022, doi: 10.1109/tii.2021.3134567.
[3] F. Syaila, P. Azzahra, and C. Printo, “Tinjauan Literatur Sistematis: Analisis Implementasi Kecerdasan Buatan untuk Verifikasi Dokumen,” J. Ilm. Sist. Inf., vol. 4, no. 3, pp. 417–430, Aug. 2025, doi: 10.51903/kjjwk708.
[4] E. F. Garcia and H. Wang, “Linear Regression Applications in Sales Prediction: A Systematic Review,” IEEE Syst. J., vol. 16, no. 2, pp. 2987–2996, 2022, doi: 10.1109/jsyst.2021.3087654.
[5] J. K. Miller, “Interpretability of Linear Regression Models for Business Decision Making,” IEEE Eng. Manag. Rev., vol. 50, no. 3, pp. 145–153, 2022, doi: 10.1109/emr.2022.3187765.
[6] A. Bangsawan et al., “Visi Robotika Berbasis Sosial: Memanfaatkan Data Komputer dan Media Sosial untuk Robotika Industri Adaptif,” J. Ilm. Sist. Inf., vol. 4, no. 2, pp. 197–209, May 2025, doi: 10.51903/pt4vff36.
[7] L. M. Anderson and R. Brown, “Seasonal Factors in FMCG Sales Prediction Models,” IEEE Trans. Comput. Soc. Syst., vol. 9, no. 4, pp. 1123–1133, 2022, doi: 10.1109/tcss.2022.3165889.
[8] P. Q. Roberts and S. Davis, “Data Preprocessing Techniques for Accurate Sales Forecasting,” IEEE Access, vol. 10, pp. 45678–45689, 2022, doi: 10.1109/access.2022.3189876.
[9] T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2021, pp. 785–794. doi: 10.1145/2939672.2939785.
[10] N. Dogru and A. Subasi, “Comparative Analysis of Sales Forecasting Models,” IEEE Trans. Ind. Electron., vol. 69, no. 6, pp. 6234–6243, 2022, doi: 10.1109/tie.2021.3088765.
[11] S. Gupta and P. Mishra, “Retail Sales Prediction Using Linear Regression,” in IEEE International Conference on Data Science and Advanced Analytics (DSAA), 2021, pp. 1–8. doi: 10.1109/dsaa53316.2021.9564236.
[12] M. R. Hasan, “Inventory Optimization through Sales Forecasting,” in Proceedings of the 2024 15th International Conference on E-Education, E-Business, E-Management and E-Learning, 2023, pp. 330–336. doi: 10.1109/tem.2023.3266789.
[13] R. J. Hyndman and G. Athanasopoulos, Forecasting: Principles and Practice, 3rd ed. OTexts, 2021. [Online]. Available: https://otexts.com/fpp3/
[14] V. Iswarya Kumari, “Impact of Pricing on Dairy Product Sales,” IEEE Access, vol. 10, pp. 45678–45689, 2022, doi: 10.1109/access.2022.3145678.
[15] J. Liu, “Price Elasticity Analysis in Dairy Product Sales,” J. Agric. Econ., vol. 73, no. 4, pp. 987–1001, 2022, doi: 10.1111/1477-9552.12512.
[16] M. Pratama, “Accuracy Improvement in Product Sales Forecasting,” IEEE Access, vol. 11, pp. 23456–23467, 2023, doi: 10.1109/access.2023.3245678.
[17] H. Ryantika and et al., “Linear Regression Application for Dairy Sales Prediction,” Indones. J. Bus. Anal., vol. 3, no. 1, pp. 25–38, 2023, doi: 10.15642/ijba.2023.3.1.25-38.
[18] W. A. Kuncoro and L. Santoso, “Kemacetan Jaringan Akibat Media Sosial: Menganalisis Dampaknya terhadap Efisiensi Transmisi Data Nirkabel,” J. Ilm. Sist. Inf., vol. 4, no. 2, pp. 130–141, May 2025, doi: 10.51903/jt9z2f09.
[19] D. Santoso, “Data Preprocessing for Sales Prediction,” IEEE Trans. Knowl. Data Eng., vol. 35, no. 8, pp. 7890–7901, 2023, doi: 10.1109/tkde.2022.3189876.
[20] J. Smith and L. Johnson, “Evaluation Metrics for Sales Forecasting,” IEEE Trans. Neural Networks Learn. Syst., 2023, doi: 10.1109/tnnls.2023.3267890.
[21] S. Takale, “Implementation of Linear Regression in FMCG,” IEEE Access, vol. 10, pp. 45678–45689, 2022, doi: 10.1109/access.2022.3189876.
[22] A. Ryantika, R. Hidayat, and L. Safitri, “Prediksi Penjualan Susu Cimory Menggunakan Regresi Linear Sederhana,” J. Teknol. Inf. dan Komputasi, vol. 7, no. 1, pp. 45–53, 2023, doi: 10.31603/komtika.v7i1.
[23] A. Pratama, “Penerapan Regresi Linear untuk Prediksi Penjualan Produk Medis,” J. Sains Data dan Bisnis, vol. 5, no. 2, pp. 88–96, 2023, doi: 10.31603/komtika.v5i2.
[24] H. Liu, “Multifactor Linear Regression Model for Electronic Product Sales Forecasting,” Int. J. Forecast., vol. 38, no. 4, pp. 1201–1214, 2022, doi: 10.1016/j.ijforecast.2022.04.002.
[25] N. Nafi’iyah and N. N. Aulia, “Price Prediction of Vegetable Oil Kaggle Data with Multiple Linear Regression and Backpropagation,” 2023. doi: 10.31603/sisfotenika.v5i2.
[26] A. Zainal, “Historical Data Analysis for Business,” IEEE Access, vol. 9, pp. 123456–123470, 2021, doi: 10.1109/access.2021.3056789.
[27] T. Sumarlin and N. Qosidah, “Optimizing Sales and Inventory Management with Machine Learning: Applications of Neural Networks and Random Forests,” J. Manag. Informatics, vol. 3, no. 2, pp. 312–327, Aug. 2024, doi: 10.51903/jmi.v3i2.35.
[28] M. Kutner, Applied Linear Statistical Models, 5th ed. New York, NY, USA: McGraw-Hill, 2021. [Online]. Available: https://www.amazon.com/Applied-Linear-Statistical-Models-Michael/dp/0072386886
[29] J. Heizer and B. Render, Operations Management: Sustainability and Supply Chain Management, 13th ed. Pearson, 2023. [Online]. Available: https://www.pearson.com/en-us/pearsonplus/p/9780135662083
[30] S. Wilson, “Marketing Strategy Optimization Using Sales Prediction,” IEEE Trans. Mark. Sci., vol. 2, no. 3, pp. 145–153, 2023, doi: 10.1109/tms.2023.3265432.
[31] N. Hikmah, A. Fauzi, and F. U. Nayyiroh, “Measuring the Forecast Accuracy in Retail MSMEs: A Comparative Analysis Between AI and Traditional Methods in the Era of Digital Selling,” J. Manag. Informatics, vol. 4, no. 1, pp. 687–705, Apr. 2025, doi: 10.51903/jmi.v4i1.166.
[32] L. Santoso and Priyadi, “Comparative Study of Feature Engineering Techniques for Predictive Data Analytics,” J. Technol. Informatics Eng., vol. 3, no. 2, pp. 417–435, Aug. 2024, doi: 10.51903/jtie.v3i2.225.
[33] D. Santoso, “Challenges of Linear Models in High-Variance Sales Data,” IEEE Access, vol. 11, pp. 98765–98773, 2023, doi: 10.1109/access.2023.3269876.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ni'matus Sholikha, Nur Nafiiyah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in this journal are open access and licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Under this license:
-
Authors retain copyright of their work.
-
Others are free to:
-
Share — copy and redistribute the material in any medium or format;
-
Adapt — remix, transform, and build upon the material for any purpose, even commercially;
-
-
As long as they:
-
Give appropriate credit to the original author(s) and the source;
-
Provide a link to the license;
-
Indicate if changes were made;
-
Distribute their contributions under the same license as the original.
-
This ensures that derivative works will also remain free and open under the same terms.













.png)