afrexai-demand-forecastingBuild demand forecasts using time series, causal models, and expert judgment for planning, inventory, and capacity decisions with scenario analysis.
Install via ClawdBot CLI:
clawdbot install 1kalin/afrexai-demand-forecastingBuild accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.
Best for: Established products with 24+ months of history.
Decompose into: Trend + Seasonality + Cyclical + Residual
Moving Average (3-month):
Forecast = (Month_n + Month_n-1 + Month_n-2) / 3
Weighted Moving Average:
Forecast = (0.5 Γ Month_n) + (0.3 Γ Month_n-1) + (0.2 Γ Month_n-2)
Exponential Smoothing (Ξ± = 0.3):
Forecast_t+1 = Ξ± Γ Actual_t + (1-Ξ±) Γ Forecast_t
Best for: Products where external factors drive demand.
Key drivers to model:
Demand = Ξ²β + Ξ²β(Price) + Ξ²β(Marketing) + Ξ²β(Season) + Ξ²β(Economic) + Ξ΅
Best for: New products, market disruptions, limited data.
Methods:
Combine methods using confidence-weighted average:
| Method | Weight (Mature Product) | Weight (New Product) |
|--------|------------------------|---------------------|
| Time Series | 50% | 10% |
| Causal | 30% | 20% |
| Judgmental | 20% | 70% |
| Metric | Formula | Target |
|--------|---------|--------|
| MAPE | Avg(|Actual - Forecast| / Actual) Γ 100 | <15% |
| Bias | Ξ£(Forecast - Actual) / n | Near 0 |
| Tracking Signal | Cumulative Error / MAD | -4 to +4 |
| Weighted MAPE | Revenue-weighted MAPE | <10% for top SKUs |
| Segment | Volume | Variability | Approach |
|---------|--------|-------------|----------|
| AX | High | Low | Auto-replenish, tight safety stock |
| AY | High | Medium | Statistical + review quarterly |
| AZ | High | High | Collaborative planning, buffer stock |
| BX | Medium | Low | Statistical, periodic review |
| BY | Medium | Medium | Hybrid model |
| BZ | Medium | High | Judgmental + safety stock |
| CX | Low | Low | Min/max rules |
| CY | Low | Medium | Periodic review |
| CZ | Low | High | Make-to-order where possible |
Safety Stock = Z Γ Ο_demand Γ β(Lead Time)
Where:
Z = Service level factor (95% = 1.65, 98% = 2.05, 99% = 2.33)
Ο_demand = Standard deviation of demand
Lead Time = In same units as demand period
For each forecast, generate three scenarios:
| Scenario | Probability | Assumptions |
|----------|-------------|-------------|
| Bear | 20% | -15% to -25% vs base. Recession, market contraction, competitor disruption |
| Base | 60% | Historical trends + known pipeline. Most likely outcome |
| Bull | 20% | +15% to +25% vs base. Market expansion, product virality, competitor exit |
| Industry | Typical MAPE | Forecast Horizon | Key Driver |
|----------|-------------|-----------------|------------|
| CPG/FMCG | 20-30% | 3-6 months | Promotions, seasonality |
| Retail | 15-25% | 1-3 months | Trends, weather, events |
| Manufacturing | 10-20% | 6-12 months | Orders, lead times |
| SaaS | 10-15% | 12 months | Pipeline, churn, expansion |
| Healthcare | 15-25% | 3-6 months | Regulation, demographics |
| Construction | 20-35% | 12-24 months | Permits, economic cycle |
For a company doing $10M revenue:
Total impact: $450K-$1.15M annually from a 5-point MAPE improvement.
These frameworks scratch the surface. For complete, deployment-ready agent configurations tailored to your industry:
AfrexAI Context Packs β $47 each
AI Revenue Calculator β Find your automation ROI in 2 minutes
Agent Setup Wizard β Configure your AI agent stack
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Get current weather and forecasts (no API key required).
Google Weather API - accurate, real-time weather data. Get current conditions, temperature, humidity, wind, and forecasts. Powered by Google's Weather API fo...
Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required.
Monitor solar weather conditions including geomagnetic storms, solar flares, aurora forecasts, and solar wind data. Uses NOAA Space Weather Prediction Center real-time data.
Weather and pollen reports for any location using free APIs. Get current conditions, forecasts, and pollen data.
Provide current weather and forecasts using wttr.in and Open-Meteo APIs without requiring an API key.