跳到正文
cccskills
免费在 GitHub 公开

time-series-analysis

Temporal pattern detection and forecasting. Use when analyzing trends over time, detecting seasonality, identifying anomalies in time series, or building simple forecasting models for planning.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md2.8 KB
  • assets/ts_report_template.md2.2 KB
  • references/ts_patterns_guide.md3.7 KB
  • scripts/ts_analyzer.py7.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Time Series Analysis

When to use

  • Building a forecast for operational planning (staffing, inventory, infrastructure capacity)
  • Identifying whether a trend is genuine or driven by seasonality
  • Detecting anomalies in a metric stream (traffic spikes, revenue dips, error rate surges)
  • Providing a "what would have happened" baseline for measuring initiative impact
  • Presenting year-over-year growth in a way that accounts for seasonal patterns

Process

  1. Load and inspect the time series — confirm regular intervals (fill gaps if needed), check for obvious data quality issues (negative values, zeros in non-zero series), and identify the natural granularity (daily, weekly, monthly).
  2. Test for stationarity — run an ADF test. If non-stationary (trend or seasonality present), note this — it informs decomposition and model choice rather than blocking analysis. See references/ts_patterns_guide.md.
  3. Decompose into components — separate the time series into trend, seasonal, and residual using additive or multiplicative decomposition. Measure the strength of each component (0–1). Strong seasonality (>0.6) means raw values are misleading without seasonal adjustment.
  4. Detect anomalies — flag points more than 3 standard deviations from the rolling median. Investigate the top 5 anomalies against the event log (product releases, campaigns, incidents). Use scripts/ts_analyzer.py --detect-anomalies.
  5. Fit a forecast model — fit an ARIMA model (or simpler moving average if data is short). Validate on a held-out 20% test set and report MAPE. Generate point estimates and 95% confidence intervals for the forecast horizon.
  6. Produce the analysis report — summarise trend direction and strength, seasonal patterns and their business implications, anomaly findings, and the forecast with uncertainty. Use assets/ts_report_template.md.

Inputs the skill needs

  • Time series data: date column + one numeric metric column, minimum 2 full seasonal cycles
  • Granularity of the data (daily, weekly, monthly)
  • Forecast horizon required (days, weeks, months ahead)
  • Event log or change log for anomaly investigation
  • Business context: what drives this metric, known seasonal patterns

Output

  • scripts/ts_analyzer.py — decomposes, detects anomalies, and fits an ARIMA forecast; outputs charts and CSV
  • references/ts_patterns_guide.md — stationarity, seasonality types, model selection guide, and common pitfalls
  • assets/ts_report_template.md — report template: characteristics, decomposition summary, anomaly list, forecast table, insights

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Rigorous A/B test statistical analysis. Use when analyzing experiment results, calculating statistical significance, checking for sample ratio mismatch, or validating test design before launch.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

Track and document analytical assumptions and decisions. Use when making analytical choices, documenting trade-offs, ensuring transparency, or creating audit trails for analytical work.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

Structured, reproducible analysis documentation. Use when documenting analysis findings, creating analysis notebooks, ensuring reproducibility, or building analysis archives for future reference.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

Structure analysis approach before starting work. Use when receiving new analysis requests, breaking down complex questions into steps, or planning iterative analysis workflows.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

Pre-delivery quality assurance for analysis work. Use when reviewing analysis before sharing with stakeholders, checking for completeness, validating assumptions, or ensuring clarity of recommendations.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

Post-analysis learning and process improvement. Use when completing major analysis projects, documenting lessons learned, or improving team analytical practices.

中文简介正在准备中。当前显示原文说明。

nimrodfisher/data-analytics-skills4812026年9月25日 更新

查看 nimrodfisher 的全部技能

报告此技能的问题