How guifagundes01/vending-machine-sales-forecasting works
Project type and purpose
• This is a data‐processing and time‐series forecasting pipeline written in Python.
• It ingests vending machine sales data, applies three forecasting techniques (Moving Average, Exponential Smoothing, ARIMA), analyzes model performance, and writes results to an output directory.
File structure
• Top level:
• vending_machine_sales.csv – raw input data
• forecasting scripts: moving_average.py, exponential_smoothing.py, arima_forecasting.py
• “top‐products” variants: top10_products_ma.py, top10_products_exponential_smoothing.py, top_products_arima.py
• comparison & analysis: all_methods_forecast_summary.py, forecasting_model_analysis.py, analyze_vending_machines.py
• output/ directory organized by method and subfolders for summaries and per‐product forecasts
• requirements.txt defines external libraries
• No web front end or database; filesystem is the primary I/O.
README for additional insights
• Confirms the three forecasting methods and step‐by‐step usage instructions.
• All outputs are saved under output/, including CSV summaries and plain‐text results.
a. Main components
1. Data Ingestion (reads CSV)
2. Preprocessing (shared code or in‐script data wrangling using pandas/numpy)
3. Forecasting Modules (three separate scripts)
4. Top‐N Forecasting Modules (per‐method variants)
5. Analysis Module (model performance, comparisons)
6. Output Store (filesystem under output/)
7. External Libraries (pandas, numpy, statsmodels, pmdarima, matplotlib, seaborn)
b. Relationships and interactions
• Data Ingestion → Preprocessing → Forecasting Modules → Output Store
• Forecasting Modules feed results into Analysis Module
• Analysis Module reads outputs from each method and writes comparison summaries back to Output Store
• Top‐N Forecasting Modules are specialized forecasting modules that branch off the main forecasting stage
c. Architectural patterns
• Pipeline pattern: a linear sequence of data processing stages
• Modular design: each forecasting method in its own script, analysis in separate modules
d. Relevant technologies
• Python 3.8+ runtime
• pandas / numpy for data manipulation
• statsmodels / pmdarima for statistical modeling
• matplotlib / seaborn for any plotting (if extended)