forecast-accuracy-review
它能做什么
这项技能审查需求预测的质量,以及预测流程是否真正带来价值。适合希望获得真实准确度数据、而不只是模型评分的供应和需求规划人员。
适用场景
- ✓当你想知道需求预测的实际准确程度时。
- ✓当你怀疑某个预测工具或流程是否值得投入精力时。
- ✓当你需要查看每个产品组的准确度和偏差结果的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/operations/forecast-accuracy-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的需求预测准确度,并告诉我它是否优于直接使用上个月的销量。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会分析需求模式,将其与朴素基准进行比较,对过去的周期运行滚动回测,并使用 WMAPE 和偏差等指标为结果打分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Forecast Accuracy Review
A forecast is only worth what it adds over the free alternative: shipping last period's number. Every review must answer "how many points does this process add over naive?" before any model discussion.
Required data
Per-SKU demand history at the planning bucket (usually monthly): sku, period, qty. If evaluating an existing forecast, also the forecast values with their creation dates (to avoid hindsight leakage). 18+ periods per SKU for a meaningful backtest; flag SKUs with less.
Workflow
- Profile the demand first. Per SKU compute mean, CV and zero-period share; classify smooth / erratic / intermittent / lumpy (defaults: CV 0.5 and 1.0 boundaries, intermittency at >25% zero periods - state them, adjust to natural breaks). Accuracy expectations differ by class; never report one blended number alone.
- Set the benchmarks. Naive (last period) always; seasonal naive when 2+ full seasons exist. These are non-negotiable controls.
- Backtest rolling-origin. One-step-ahead forecasts for each of the last 6+ periods, expanding window, using only data before each origin. A single train/test split is one lucky draw - do not accept it.
- Score with honest metrics:
- WMAPE = sum(|error|) / sum(actual) - the volume-weighted headline
- Bias = sum(error) / sum(actual) - direction; a fine WMAPE with persistent bias is quietly building excess stock or stockouts
- MAPE only as a footnote, and always disclose how many zero-actual periods it dropped
- Deliver the FVA verdict. FVA = WMAPE(naive) - WMAPE(candidate), per segment and overall. Negative FVA means the process destroys value - say it plainly.
- Validate. Recompute WMAPE for one model directly from the raw backtest rows and confirm it matches the table before presenting.
Pitfalls to check explicitly
- MAPE with zeros: undefined on zero-actual periods; silently dropping them fakes precision on intermittent SKUs.
- MAPE asymmetry rewards under-forecasting (errors capped at 100% below, unbounded above).
- Aggregation mix: a good total can hide terrible A-item accuracy; always show the value-weighted cut.
- Lumpy segments: if WMAPE > ~100%, the honest recommendation is an inventory-policy answer (buffers, MTO), not a better model.
- Hindsight leakage: forecasts must predate actuals; check timestamps when auditing an existing process.
Output format
- Scoreboard table: model x (WMAPE, bias, MAPE-footnote), sorted by WMAPE
- FVA statement: "the process adds/destroys X points vs naive" - overall and per segment
- Segment table (pattern x best approach)
- Two or three recommendation sentences tied to segments, not globals
Worked example with five baseline models and charts: https://github.com/gulmezeren2-byte/forecast-accuracy-lab
Source: industrial-engineering-ai-skills by Eren Gulmez (MIT). The full method pack - entry skill, role agents, data-hygiene rules and artifact templates - lives there.
常见问题
什么是朴素基准?
就是直接把上一期的数字当作预测值。这项技能要求在评判任何模型之前先做这一比较。
为什么不只报告一个准确度数字?
不同需求类型的准确度不同,因此这项技能会按产品类别分别报告结果。
我需要多少历史数据?
每个产品约需 18 个周期才能进行有意义的回测。这项技能会标记历史数据较少的产品。
详情
作者的原始描述
Evaluate demand-forecast quality honestly - WMAPE, bias and Forecast Value Added against a naive benchmark over a rolling-origin backtest. Use when the user mentions forecast accuracy, MAPE, demand planning performance, tahmin doğruluğu, talep tahmini, or asks whether a forecasting process or tool is worth it. Differentiator - judges the process (value added vs doing nothing), not just the model.
热度
- GitHub 星标
- 33k
- 排名
- #8865
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。