algo-forecast-exponential

Solid

"Apply exponential smoothing methods for time series forecasting with weighted moving averages. Use this skill when the user needs simple, robust forecasts, implement Holt-Winters for seasonal data, or build lightweight forecasting without complex models — even if they say 'simple forecast', 'moving average prediction', or 'smoothing method'.".

AI & Automation 22 stars 8 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Exponential Smoothing ## Overview Exponential smoothing assigns exponentially decreasing weights to past observations. Three variants: Simple (SES, level only), Holt (level + trend), Holt-Winters (level + trend + seasonality). ETS framework (Error-Trend-Seasonality) provides a unified statistical model. Fast, interpretable, and competitive with complex models for short horizons. ## When to Use **Trigger conditions:** - Quick forecasting with minimal configuration - Short-horizon forecasts (1-2 seasonal cycles ahead) - Data with clear level, trend, and/or seasonal components **When NOT to use:** - For long-range forecasts (uncertainty accumulates too fast) - When external regressors are important (use regression or ML models) ## Algorithm ``` IRON LAW: Smoothing Parameters Control the Bias-Variance Trade-Off α (level), β (trend), γ (seasonality) range [0,1]. - α near 1: react quickly to changes, noisy forecasts (high variance) - α near 0: smooth forecasts, slow to adapt (high bias) Optimize via minimizing MSE on training data (or use information criteria). Never hand-pick smoothing parameters without validation. ``` ### Phase 1: Input Validation Identify components: level only (SES), level+trend (Holt), level+trend+seasonality (Holt-Winters). Determine: additive vs multiplicative trend/seasonality. **Gate:** Component structure identified, seasonal period known. ### Phase 2: Core Algorithm **Holt-Winters (additive):** 1. Initialize: level₀ = mean(first season), tren...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category