Forecasting In Pigment

作者 gopigment6fec49f4ce9d无许可证22 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2天前更新

Execution skill. Use when creating forecasts or choosing between growth-rate hypotheses and statistical forecasting functions.

AI 生成的概览

指导在 Pigment 规划模型中选择增长率假设或统计预测方法。

功能
该技能说明 Pigment 中的两种预测方法:基于历史实际值的增长率假设,以及内置统计公式函数。它提供决策树和对比表,用于选择 FORECAST_LINEAR、SIMPLE_EXPONENTIAL_SMOOTHING、DOUBLE_EXPONENTIAL_SMOOTHING、SEASONAL_LINEAR_REGRESSION 和 FORECAST_ETS 等函数,并给出 Alpha、Beta 与季节性参数的设置建议。内容还涵盖将统计预测与手动覆盖值结合的做法,并列出最佳实践。
适用场景
适用于在 Pigment 中构建或审查预测模型,并在简单增长率假设与统计预测函数之间做选择时。也适合在调整平滑参数,或根据数据中的趋势与季节性选择函数时参考。
运行要求
需要 Pigment 规划平台及其指标公式环境。内容引用其他技能(building-versions-and-planning-cycles、choosing-formula-patterns、using-formula-functions),并假定存在包含 Actual 与 Forecast 项目的 Version 维度。不附带任何脚本。

Forecasting in Pigment

Mandatory prerequisite: every forecast model MUST have a Version dimension with Actual and Forecast items. Load skill:building-versions-and-planning-cycles before creating any metrics.

For the correct time-offset formula pattern ([SELECT: Month-12] vs PREVIOUS), load skill:choosing-formula-patterns.

Two forecasting approaches with different setup effort, accuracy, and use cases.

Choose Among the Forecasting Approaches

ApproachWhen to useSetup effortAccuracy
Growth-rate hypothesesSimple budgets, top-down targets, early-stage planning with limited historyLowLow to medium (depends on assumption quality)
Statistical formula functionsFormula-driven forecasts with full modeler control over method and parametersMediumMedium to high (depends on data quality and function choice)

Approach 1 — Growth-Rate Hypotheses

Apply a growth rate to historical actuals or a base period.

pigment
'Forecast Revenue' =  IF(    'Is_Plan',    'Last Actual Revenue' * (1 + 'Growth Rate Input'),    'Actual Revenue'  )

When to prefer:

  • Less than 12 months of historical data
  • Business drivers well understood and stable
  • Management sets targets top-down (e.g. "grow 10% next year")
  • Planning process values simplicity over precision

Limitations: does not capture seasonality, trends, or non-linear patterns.

Approach 2 — Statistical Formula Functions

Built-in forecasting functions in metric formulas; modeler controls every parameter.

Function selection decision tree:

  1. Does the data have a seasonal pattern (repeating highs/lows at regular intervals)?
    • No → step 2
    • Yes → step 3
  2. Does the data show a trend (consistently increasing or decreasing)?
    • No trend → SIMPLE_EXPONENTIAL_SMOOTHING (level only; Alpha 0-1)
    • Linear trend → FORECAST_LINEAR (Value, Dimension) or DOUBLE_EXPONENTIAL_SMOOTHING (Value, Dimension, Alpha, Beta)
  3. Seasonal pattern type?
    • Additive or unsure → FORECAST_ETS (Value, Dimension, Seasonality) or SEASONAL_LINEAR_REGRESSION (Value, Dimension, SeasonalPeriod)
    • Strong multiplicative → FORECAST_ETS (closest built-in option)

Function selection guide:

FunctionPattern detectedBest forKey parameters
FORECAST_LINEARLinear trend onlySteady growth/decline without seasonalityValue, Dimension
SIMPLE_EXPONENTIAL_SMOOTHINGLevel (no trend)Stable series, noise reductionValue, Dimension, Alpha (0-1)
DOUBLE_EXPONENTIAL_SMOOTHINGLevel + linear trendTrending series without seasonalityValue, Dimension, Alpha, Beta
SEASONAL_LINEAR_REGRESSIONLinear trend + seasonalityMonthly/quarterly data with repeating seasonal patternsValue, Dimension, SeasonalPeriod
FORECAST_ETSLevel + trend + seasonalityComplex seasonal data (additive Holt-Winters)Value, Dimension, Seasonality

Parameter guidance:

  • Alpha (smoothing): 0.7-0.9 reacts faster to recent changes; 0.1-0.3 smoother forecasts. Start with 0.3.
  • Beta (trend smoothing): similar range as Alpha; lower values dampen trend changes.
  • Seasonality / SeasonalPeriod: must match data's natural cycle. 12 for monthly/yearly, 4 for quarterly, 52 for weekly.
  • All functions require sufficient historical data on the time dimension. At least 2 full seasonal cycles recommended for seasonal functions (24 months for monthly).

For detailed function syntax and examples, see skill:using-formula-functions (forecasting functions section).

Example — monthly sales with yearly seasonality:

pigment
'Forecast Sales' =  IF(    'Is_Plan',    FORECAST_ETS('Actual Sales', Month, 12),    'Actual Sales'  )

When to prefer: modeler wants full control, transparent formula, moderate data volume with well-understood patterns.

Combining Approaches

Statistical forecast + manual overrides:

pigment
'Final Forecast' =  IFBLANK(    'Manual Override',    FORECAST_ETS('Actuals', Month, 12)  )

Best Practices

  • Validate forecasts against holdout data when possible
  • Match forecast granularity to planning granularity
  • For seasonal functions, provide at least 2 full cycles of history
  • Document approach and parameters for reproducibility
  • Forecasts typically apply to Budget or Forecast versions, not Actuals; use IF('Is_Plan', ...) to guard forecast formulas

来源与署名

来源:gopigment/ai-plugins位于skills/forecasting-in-pigment提交6fec49f

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架