Question
Walmart reports quarterly revenue after quarter-end, while monthly retail sales data is available earlier. The project asks whether retail sales data can improve a pre-earnings estimate of Walmart revenue beyond what Walmart's own seasonal history already predicts.
Method
The baseline uses Walmart's historical quarter-to-quarter seasonal growth medians. For each transition such as Q1→Q2 or Q3→Q4, the model estimates a median growth rate from prior data and applies it to the previous quarter's revenue.
The enhanced model adds a deseasoned retail signal. Quarterly retail sales are compared against the expected seasonal pattern, and the residual retail surprise is used alongside the baseline forecast. All results are evaluated in a walk-forward setup to avoid future information leakage.
Seasonality and structural break checks
The baseline works because Walmart revenue has stable quarter-to-quarter seasonal structure. Q1→Q2, Q2→Q3, Q3→Q4, and Q4→Q1 transitions show persistent seasonal growth patterns, making a seasonal median forecast a hard baseline to beat.
COVID quarters were excluded from the final training and evaluation window because the retail-to-Walmart relationship visibly broke during 2020–2021. Including COVID produces a coefficient sign flip in the deseasoned retail feature, which is a structural-break warning rather than a normal regime shift.
Results
| Model | R² | RMSE | MAE | MAPE |
|---|---|---|---|---|
| Baseline: seasonal median only | 0.970 | $3.79B | $2.62B | 1.77% |
| Reg3: deseasoned retail + baseline | 0.978 | $3.26B | $2.16B | 1.44% |
| Improvement | +0.8pp | -14% | -18% | -0.33pp |
Model stability diagnostics
Excluding COVID quarters makes the deseasoned retail coefficient more stable, though it still varies over time. This supports the interpretation that the signal is real but modest, and that structural breaks remain the main deployment risk.
Interpretation
The seasonal baseline is already strong, which makes the incremental signal hard to prove. Even so, the deseasoned retail feature improves RMSE, MAE, and MAPE on the walk-forward sample. The edge is real but modest rather than transformational.
Main caveats
- Retail data revisions may overstate real-time accuracy because the available FRED series is revised.
- The sample is small by machine-learning standards, even with walk-forward testing.
- Structural breaks: COVID quarters were removed because the retail-to-Walmart relationship broke visibly during 2020–2021. A future shock, category-mix change, recession, or competitive disruption could create a similar break and reduce live model reliability.