rishini commited on
Commit
00ae263
·
verified ·
1 Parent(s): 6dafdb5

Add statistical models comparison report

Browse files
Files changed (1) hide show
  1. MODEL_COMPARISON.md +76 -0
MODEL_COMPARISON.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # M5 Forecasting: Statistical Models Comparison
2
+
3
+ ## Performance Summary
4
+
5
+ | Model | RMSE | MAE | MAPE | Model Size | Repo |
6
+ |----------------|-----------|-----------|---------|------------|------|
7
+ | **SARIMAX** | 2759.70 | 2260.25 | 4.98% | 85.30 MB | [rishini/NPN-sarimax](https://huggingface.co/rishini/NPN-sarimax) |
8
+ | **Prophet** | 4860.67 | 4038.73 | 8.73% | 0.18 MB | [rishini/NPN-prophet](https://huggingface.co/rishini/NPN-prophet) |
9
+ | **ARIMA** | 6459.70 | 4852.62 | 10.48% | 6.56 MB | [rishini/NPN-arima](https://huggingface.co/rishini/NPN-arima) |
10
+ | **LightGBM** (per-series) | N/A (WRMSSE=145.56) | | | 106.1 MB | [rishini/NPN](https://huggingface.co/rishini/NPN) |
11
+
12
+ ## Key Findings
13
+
14
+ ### 1. SARIMAX Wins (Best Accuracy)
15
+ - **Lowest RMSE**: 2,759.70 (4.98% MAPE)
16
+ - **Best fit**: SARIMAX(2,1,1)(1,1,1,7) captures weekly seasonality
17
+ - **Exogenous boost**: SNAP indicators and event dummies improve predictions
18
+ - **Trade-off**: Largest model file (85MB) due to complex state space representation
19
+
20
+ ### 2. Prophet (Best Interpretability)
21
+ - **RMSE**: 4,860.67 (8.73% MAPE)
22
+ - **Strengths**: Fast training, automatic seasonality detection, built-in uncertainty intervals
23
+ - **Weaknesses**: Underperforms on aggregate-level predictions
24
+ - **Trade-off**: Smallest model (180KB), fastest to deploy
25
+
26
+ ### 3. ARIMA (Baseline Simplicity)
27
+ - **RMSE**: 6,459.70 (10.48% MAPE)
28
+ - **Best config**: ARIMA(3,1,1) with deterministic trend
29
+ - **Strengths**: Simple, interpretable, smallest non-Prophet model
30
+ - **Weaknesses**: No seasonality, no exogenous variables, poorest fit
31
+
32
+ ### 4. LightGBM (Per-Series Champion)
33
+ - **WRMSSE**: 145.56 (beats naive baselines by 55-69%)
34
+ - **Advantage**: Predicts all 30,490 series individually
35
+ - **Trade-off**: Not directly comparable (different granularity)
36
+
37
+ ## Why SARIMAX Outperforms?
38
+
39
+ 1. **Weekly Seasonality**: Retail demand has strong 7-day cycles (weekends higher)
40
+ 2. **Exogenous Signals**: SNAP eligibility and events directly impact demand
41
+ 3. **Autocorrelation**: Captures persistence in sales patterns
42
+ 4. **Differencing**: (d=1) removes trend, focusing on changes
43
+
44
+ ## Why These Models Don't Beat LightGBM?
45
+
46
+ | Aspect | LightGBM | Statistical Models |
47
+ |--------|----------|-------------------|
48
+ | Granularity | 30,490 individual series | 1 aggregate series |
49
+ | Features | 34 engineered features | 6-12 basic features |
50
+ | Flexibility | Non-linear relationships | Linear/AR/MA assumptions |
51
+ | Cross-series learning | Store/dept/item interactions | No sharing across series |
52
+ | Deployment | 40 per-store models | 3 aggregate models |
53
+
54
+ The statistical models operate on **aggregate** sales (total ~34,000/day), while LightGBM models each of the **30,490 individual series** with specialized features. The statistical approach serves as a solid baseline but cannot match the per-series precision of gradient boosting.
55
+
56
+ ## Model Selection Guide
57
+
58
+ Use **SARIMAX** when:
59
+ - You need the best statistical baseline
60
+ - Exogenous variables (events, promotions) are important
61
+ - Weekly seasonality dominates
62
+
63
+ Use **Prophet** when:
64
+ - Fast experimentation is needed
65
+ - Interpretability is key
66
+ - Multiple seasonalities exist
67
+
68
+ Use **ARIMA** when:
69
+ - Simple baseline is sufficient
70
+ - No strong seasonality
71
+ - Minimal computational budget
72
+
73
+ Use **LightGBM** when:
74
+ - Maximum accuracy is required
75
+ - Per-series predictions needed
76
+ - GPU is available