time-series-analysis
Analyze time-ordered data — decomposition, stationarity, forecasting models, changepoint detection, and proper temporal validation. Use when the order of observations matters.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- time-series-analysis
- category
- ai-research
- description
- Analyze time-ordered data — decomposition, stationarity, forecasting models, changepoint detection, and proper temporal validation. Use when the order of observations matters.
03 SKILL.md 正文
Time Series Analysis
Time series data has memory: today's value depends on yesterday's. Analysis must respect that — in modeling (autocorrelation, seasonality, trends), in validation (never shuffle time), and in forecasting (uncertainty grows with horizon).
Overview
Start by understanding the series: plot it, decompose into trend/seasonality/residuals, check stationarity. Model the structure you find — classical methods (ARIMA family, exponential smoothing) for well-behaved series, machine learning for complex patterns with enough data. Validate with time-based splits only: train on the past, test on the future, rolling forward. Forecast with intervals, because point forecasts without uncertainty are wishes.
When to use
- Forecasting: demand, traffic, prices, sensor readings, resource usage.
- Detecting changes: changepoints, anomalies, regime shifts in temporal data.
- Understanding temporal structure: seasonality, trends, cycles, autocorrelation.
- Evaluating any model on time-ordered data (validation must respect time).
Core concepts
- Decomposition: trend + seasonal + residual. Seeing the components separately reveals what to model — and what's just noise.
- Stationarity: constant mean/variance over time. Many methods assume it; differencing or detrending achieves it. Test (ADF/KPSS), don't assume.
- Autocorrelation: correlation with past values (ACF/PACF plots guide model order). Ignoring it leaves predictable structure on the table — or worse, in the residuals.
- Classical models: ARIMA/SARIMA for autocorrelated series with seasonality; exponential smoothing for trend/seasonal patterns; each with well-understood diagnostics.
- ML approaches: gradient boosting on lag features, deep models for long complex series. Powerful with enough data; hungry and opaque without it.
- Temporal validation: rolling-origin backtesting — train on past, predict future, roll forward. Random splits leak the future and lie about performance.
Practical workflow
- Plot the series; decompose; check stationarity and seasonality. Understand before modeling.
- Establish baselines: naive (last value), seasonal naive, moving average. Many "advanced" models lose to these.
- Fit candidate models; diagnose residuals — they should look like white noise. Structure left in residuals means structure unmodeled.
- Backtest with rolling origins across multiple windows; compare on horizon-appropriate metrics (MAE, sMAPE, quantile loss).
- Forecast with prediction intervals; communicate how uncertainty widens with horizon.
- Monitor in production: detect drift and changepoints; retrain on a schedule, not on hope.
Time series checklist:
[ ] Plotted + decomposed; stationarity tested
[ ] Naive/seasonal-naive baselines beaten
[ ] Residuals diagnosed (white noise?)
[ ] Rolling-origin backtest, multiple windows
[ ] Intervals reported, not just point forecasts
[ ] Retraining + drift monitoring planned
Common pitfalls
- Shuffled validation: random train/test splits on time data. The model "predicts" the past from the future. Always split by time.
- Skipping baselines: complex models that lose to seasonal naive. Baselines first, always.
- Ignoring residuals: fitting without checking what's left. Residual structure is the model telling you what it missed.
- Point forecasts only: "demand will be 1,200." With what uncertainty? Intervals are the honest product.
- Stationarity assumed: applying ARIMA to a trending series without differencing. Test and transform.
- Lookahead leakage: features computed with future information (centered moving averages, full-series normalization). Every feature must be computable at forecast time.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).