Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

algo-forecast-arima算法预测 arima

Agent Skill

algo-forecast-arima 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

404

周安装

17

GitHub Stars

125

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algo-forecast-arima(算法预测 arima)
来源仓库:https://github.com/asgard-ai-platform/skills
仓库路径:skills/algo-forecast-arima
安装命令:
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-forecast-arima
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-forecast-arima

简介

用于单变量时间序列预测,结合自回归、差分与移动平均建模趋势周期。

  • 适用于销售、需求等具有明显趋势或季节性的业务指标预测。
  • 使用时需确保数据平稳并通过 ACF/PACF 确定 p,d,q 参数组合。
  • 不适合多变量或多步超前预测任务,应选用机器学习替代方案。
  • algo-forecast-arima 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

ARIMA Time Series Model

Overview

ARIMA(p,d,q) combines autoregression (AR), differencing (I), and moving average (MA) for time series forecasting. Seasonal variant: SARIMA(p,d,q)(P,D,Q,s). Requires stationary data (achieved through differencing). Best for univariate series with clear trend/seasonality patterns.

When to Use

Trigger conditions:

  • Forecasting univariate time series (sales, demand, traffic)
  • Data has clear trend and/or seasonal patterns
  • Need interpretable model with statistical properties

When NOT to use:

  • For multivariate forecasting with many external features (use ML models)
  • For very long-range forecasts (ARIMA confidence intervals widen rapidly)
  • For irregular/event-driven data (use causal models)

Algorithm

IRON LAW: ARIMA Requires STATIONARY Data
Non-stationary data (trend, changing variance) violates ARIMA assumptions.
Test stationarity with ADF test (p < 0.05 = stationary).
If non-stationary: difference the series (d=1 usually suffices).
If still non-stationary after d=2, ARIMA may not be appropriate.

Phase 1: Input Validation

Check: regular time intervals, no missing values (impute if needed), minimum 50 observations (ideally 2+ full seasonal cycles). Test stationarity with ADF test. Gate: Data is regular, sufficient length, stationarity assessed.

Phase 2: Core Algorithm

  1. Stationarity: ADF test. If p > 0.05, difference (d=1). Retest.
  2. Parameter selection: Examine ACF/PACF plots. Or use auto_arima (AIC-based grid search).

- p (AR terms): PACF cutoff lag - q (MA terms): ACF cutoff lag - d: number of differences needed

  1. Fit model: Maximum likelihood estimation
  2. Forecast: Generate predictions with confidence intervals

Phase 3: Verification

Check residuals: should be white noise (no autocorrelation). Ljung-Box test (p > 0.05 = no autocorrelation). Residuals normally distributed. Gate: Residuals pass Ljung-Box test, no remaining patterns.

Phase 4: Output

Return forecasts with confidence intervals.

Output Format

{
  "forecasts": [{"period": "2025-04", "forecast": 1250, "lower_95": 1100, "upper_95": 1400}],
  "model": {"order": [1,1,1], "seasonal_order": [1,1,1,12], "aic": 520.3},
  "metadata": {"training_periods": 60, "forecast_horizon": 12}
}

Examples

Sample I/O

Input: 12 monthly observations with upward trend: [10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32]

Step 1: First difference = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] (constant → stationary, d=1 sufficient)

Step 2: ARIMA(0,1,0) random walk with drift μ=2 is the simplest fitting model.

Expected forecast (ARIMA(0,1,0) with drift=2):

  • Period 13: 32 + 2 = 34
  • Period 14: 32 + 4 = 36
  • Period 15: 32 + 6 = 38

Verify: differenced series is constant (2) → no AR/MA terms needed. Residuals are exactly 0 → perfect fit (toy example). On real data, residuals should pass Ljung-Box (p > 0.05).

Edge Cases

InputExpectedWhy
No trend, no seasonalityARIMA(p,0,q)No differencing needed
Strong trend onlyARIMA(p,1,q)Single difference removes linear trend
Multiple seasonalitiesARIMA may struggleConsider Prophet or TBATS instead

Gotchas

  • Over-differencing: d=2 when d=1 suffices introduces unnecessary noise. Check if first difference is stationary before differencing again.
  • Auto-ARIMA isn't magic: AIC-based selection can pick overfit models. Always check residual diagnostics regardless of auto selection.
  • Confidence intervals widen fast: Multi-step forecasts accumulate uncertainty. Don't trust point forecasts beyond 2-3 seasonal cycles.
  • Calendar effects: Business days, holidays, and leap years affect monthly/weekly data. ARIMA doesn't handle these natively — add regressors or use Prophet.
  • Structural breaks: ARIMA assumes the data-generating process is stable. COVID, market shocks, or policy changes break this assumption.

References

  • For ACF/PACF interpretation guide, see references/acf-pacf.md
  • For SARIMA seasonal parameter selection, see references/seasonal-arima.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.27%
按下载量换算55

Claude

29.25%
按下载量换算41

Cursor

19.23%
按下载量换算27

Gemini CLI

9.47%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills