CalRecycle: rebuilding the recycling fund's forecasts
Forecast accuracy up more than 35%, by choosing the best model for each sales series.
- CalRecycle, research data specialist
- 2026
- Data science
Background
California's Beverage Container Recycling Fund takes in the redemption value paid on drink containers, about $1.5 billion a year, and pays it back out when containers are returned for recycling.1
Its reports project how many containers will be sold and returned, and small misses matter: a 1% change in the money coming in moves the fund balance by about $15.3 million a year.1
For FY 2024-25, the fund was projected in May 2024 to end at $140.2 million, and in January 2025 at $455.8 million. It ended at $822.4 million.231
In 2026, as a research data specialist, I rebuilt the program's sales, returns and fee forecasts.
Data and method
The old forecasts came from a legacy suite of ARIMA models.4
4CalRecycle forecasting pipeline and its backtests, 2026. Compared with the legacy model in use, ARIMA(1,0,1)(0,1,1)[12]. Against the best legacy model for each series, the cuts are 26.6% (MAPE) and 12.3% (MASE). Private CalRecycle work, no public page.
I rebuilt forecasting as a four-phase Python pipeline on statsforecast, in which each sales, returns and fee series picks from up to 11 statistical models.4
Each model is tested by rolling-origin cross-validation: it forecasts 18 months ahead from many past starting points, and each series keeps the model that forecast best.4
Before fitting, the pipeline handles policy and data shocks: a flag for the COVID period, changepoint detection, and adjustments for SB 1013, which added wine and spirits containers from January 1, 2024.41
The raw data came from SQL Server, Access and 4 GB system exports, loaded into Parquet behind a test harness so errors surface before they reach a published forecast.4
To compare old and new, I backtested both on the 24 high-volume series where the legacy models were also tested, over the same 18-month horizon.4
Result
On the 24 high-volume series, the average forecast miss fell by more than a third against the legacy model the program used.4
14.0% average miss 18 months ahead, down from 22.1%4
36.7% less error than the legacy model4
The miss is MAPE: the average gap between forecast and actual, as a share of the actual. A second measure, MASE, fell 30.7%.4
Recommendation
Flag the COVID period and compare trends before and after it, judge every model on backtests and a held-out year, and re-run the model selection once a year.
What did not work
I tested whether averaging the top models (mean, median and error-weighted ensembles) would do better on 12 hard-to-forecast series. They beat the single best model on only 5 of 12 in cross-validation and 2 of 12 on the 2025 holdout, so each series kept a single model.5
5CalRecycle forecasting pipeline log, Mar 26, 2026. No public page.
What I did
I rebuilt the forecasting and ran the backtests, directing Claude Code and Codex to build the pipeline, with golden-file regression checks on every change.4
Next project
SF Fire Credit Union: crediting marketing across the whole journey