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 從公開儲存庫中收錄這些內容。

檢舉或申請下架