Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 10 No. 8 (2026): Kohesi: Jurnal Sains dan Teknologi, ISSN 3025-1311

APPLICATION OF WEB-BASED SIMPLE LINEAR REGRESSION ALGORITHM FOR FORECASTING GOODS STOCK IN RETAIL SMALL AND MEDIUM ENTERPRISES USING PHP PROGRAMMING LANGUAGE

Submitted
January 29, 2026
Published
2026-01-29

Abstract

Inventory management is a critical challenge for Micro, Small, and Medium Enterprises (MSMEs). A common issue faced is the imbalance of stock (overstock or stockout), which directly impacts financial stability. This study aims to apply the Simple Linear Regression algorithm as a forecasting tool, integrated directly into a PHP-based Point of Sale (POS) system. Unlike common machine learning implementations that require Python or separate servers, this research focuses on a native PHP implementation suitable for shared hosting environments used by MSMEs. Data was collected from historical sales records and processed through calculation stages: variable determination, slope and intercept calculation, and forecasting. The results show that this lightweight implementation successfully provides accurate stock recommendations for the next period without burdening the server infrastructure. This confirms that basic predictive analytics can be effectively implemented in a web-based environment for low-resource businesses.

References

  1. [1] Montgomery, D. C., Peck, E. A., & Vining, G. G. (2021). Introduction to Linear Regression Analysis (6th ed.). Hoboken, NJ: Wiley.
  2. [2] Turban, E., Aronson, J. E., & Liang, T. P. (2005). Decision Support Systems and Intelligent Systems (7th ed.). Upper Saddle River, NJ: Pearson Prentice Hall.
  3. [3] Makridakis, S., Wheelwright, S. C., & Hyndman, R. J. (1998). Forecasting: Methods and Applications (3rd ed.). New York: John Wiley & Sons.
  4. [4] Heizer, J., & Render, B. (2017). Operations Management: Sustainability and Supply Chain Management (12th ed.). Pearson.
  5. [5] Pressman, R. S., & Maxim, B. R. (2019). Software Engineering: A Practitioner's Approach (9th ed.). McGraw-Hill Education.

Similar Articles

51-60 of 177

You may also start an advanced similarity search for this article.