This repository features a Price Predictor that leverages an ARIMA (AutoRegressive Integrated Moving Average) model to forecast product prices based on their price history over the past month. The primary goal is to provide users with insights into short-term fluctuations in product prices, aiding them in making informed decisions about the best time to make a purchase.
The product for the current forecast can be found here
The model uses a standard ARIMA approach to capture short-term trends in product pricing. ARIMA combines autoregression (AR), differencing (I), and moving averages (MA) to create a robust forecasting tool. The result is a predictive model that can anticipate product prices for the next 7 days.
The repository is organized with three main components:
This file is responsible for executing both script.py and script.js. Upon successful execution of script.py, a JSON file (arima_results.json) is generated. This file is then utilized by script.js to plot the price chart on the webpage using Charts.js.
This Python script, upon successful build, creates the arima_results.json file, containing the predicted prices for the upcoming week.
This JavaScript file is responsible for rendering the price chart on the webpage. Users can customize the chart's appearance and behavior by modifying this file.
The deployed code can be found here
Feel free to explore the provided deployment link to see the Price Predictor in action and visualize the predicted product prices.
To run the Price Predictor locally, follow these steps:
- Clone the repository to your local machine.
- Install any necessary dependencies.
- Execute server.js to initiate the prediction process.
- Make sure to refer to the documentation for further details on how to set up and customize the Price Predictor according to your requirements.
Note: To use this forecaster with any other CSV file, update the data source in script.js (line 10) and script.py (line 7) to match the new dataset.
Happy forecasting!