algo-forecast-prophet

Solid

"Build forecasting models with Meta's Prophet for business time series with holidays and changepoints. Use this skill when the user needs user-friendly time series forecasting, handling of missing data and holidays, or automatic changepoint detection — even if they say 'forecast with Prophet', 'business forecast', or 'easy time series model'.".

AI & Automation 22 stars 8 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 82/100

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

Skill Content

# Prophet Forecasting ## Overview Prophet (Meta) decomposes time series into trend + seasonality + holidays + error. Uses an additive (or multiplicative) model fitted with Stan. Handles missing data, outliers, and holiday effects natively. Designed for business time series at daily/weekly granularity. ## When to Use **Trigger conditions:** - Forecasting business metrics (sales, traffic, engagement) at daily/weekly frequency - Data with strong seasonal patterns and known holiday effects - Need quick, reasonable forecasts without deep time series expertise **When NOT to use:** - For high-frequency data (sub-hourly) — Prophet is designed for daily+ - When you need causal/explanatory models (Prophet is descriptive) - For very short time series (< 2 seasonal cycles) ## Algorithm ``` IRON LAW: Prophet Is an Additive Regression Model, NOT Classical Time Series y(t) = g(t) + s(t) + h(t) + ε(t) - g(t): piecewise linear or logistic trend with automatic changepoints - s(t): Fourier series for yearly/weekly/daily seasonality - h(t): user-specified holiday effects Prophet does NOT model autocorrelation in residuals. If residuals are autocorrelated, the uncertainty intervals will be too narrow. ``` ### Phase 1: Input Validation Prepare DataFrame with columns: ds (datestamp), y (metric). Add regressor columns if available. Specify: country holidays, custom holidays, growth type. **Gate:** Data formatted, minimum 2 full seasonal cycles. ### Phase 2: Core Algorithm 1. Choose growth m...

Details

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

Similar Skills

Semantically similar based on skill content — not just same category