Dokumentation (english)

Theta Method

Simple and effective decomposition method that separates short-term and long-term components

The Theta Method decomposes a time series into short-term and long-term components, applying different smoothing to each. It's remarkably simple yet has performed well in forecasting competitions, making it an excellent baseline model.

When to Use Theta Method

Theta Method is best suited for:

  • Quick baseline forecasts with minimal tuning
  • Time series with smooth trends
  • Short to medium-term forecasting horizons
  • When you need a simple, fast, interpretable model
  • Comparison benchmarks for more complex models
  • Business forecasting where simplicity is valued
  • Series without complex seasonality (or after deseasonalization)

Strengths

  • Extremely simple with minimal parameters
  • Fast training and inference
  • Surprisingly effective despite simplicity (won M3 competition)
  • No complex hyperparameter tuning required
  • Robust baseline for comparison
  • Handles trends naturally
  • Interpretable decomposition into short/long-term components
  • Works well with limited data

Weaknesses

  • Limited to univariate forecasting
  • Does not explicitly model complex seasonality
  • Cannot incorporate exogenous variables
  • Less flexible than ARIMA or Prophet
  • May underfit complex patterns
  • Forecast intervals may not capture all uncertainty
  • Not suitable for series with structural breaks
  • Limited customization options

Parameters

Common Time Series Parameters

All time series models share these parameters:

  • Timestamp Column (required): Column containing dates/times
  • Target Column (required): Numeric value to forecast
  • Frequency (optional): Time spacing (D, H, W, M). Auto-inferred if not specified
  • Forecast Steps (required, default=1): How many periods to predict

Theta Method-Specific Parameters

Theta Coefficient

  • Type: Float
  • Default: 2.0
  • Description: Controls the strength of the trend component
    • Theta = 0: Pure trend line (no short-term variation)
    • Theta = 1: Original series (no modification)
    • Theta = 2: Standard Theta method (doubles long-term component, halves short-term)
    • Theta > 2: Emphasizes long-term trend even more
    • Theta < 0: Inverses the decomposition (unusual)
  • Typical Range: 1.0 to 3.0
  • Guidance:
    • Use default 2.0 for most cases (classic Theta method)
    • Increase to 2.5-3.0 for stronger trends
    • Decrease to 1.0-1.5 for noisier series

Deseasonalize

  • Type: Boolean
  • Default: true
  • Description: Whether to remove seasonality before forecasting
    • true: Seasonal decomposition is applied, then Theta method on deseasonalized data
    • false: Theta method applied directly to raw data
  • Guidance:
    • Set to true if your data has seasonality (recommended)
    • Set to false for non-seasonal data or if seasonality is already removed

Use Test Set

  • Type: Boolean
  • Default: false
  • Description: Whether to use a test set for model selection
    • true: Model parameters optimized on test data
    • false: Standard approach without test set
  • Guidance: Generally leave as false (avoid overfitting to test set)

Configuration Tips

Standard Configuration

For most use cases, use the defaults:

theta=2.0
deseasonalize=true
use_test=false

This applies the classic Theta method with automatic deseasonalization.

When to Adjust Theta

Theta = 2.0 (Default):

  • Balanced decomposition
  • Good for most business time series
  • Standard Theta method

Theta = 1.5:

  • Less emphasis on trend
  • Better for noisier data
  • More conservative extrapolation

Theta = 3.0:

  • Strong trend emphasis
  • Use when trend is clearly dominant
  • More aggressive extrapolation

Handling Seasonality

With Seasonality:

  • Set deseasonalize=true (default)
  • The method will automatically detect and remove seasonal patterns
  • Forecasts will include re-added seasonality

Without Seasonality:

  • Set deseasonalize=false
  • Faster computation
  • Use for non-seasonal data like stock prices

Data Requirements

  • Minimum: 20-30 observations for reasonable estimates
  • Ideal: 50+ observations
  • For seasonal data: At least 2 complete seasonal cycles

Common Issues and Solutions

Issue: Forecasts Don't Follow Recent Trend

Solution:

  • Theta method may be too smooth for your data
  • Try ARIMA or Exponential Smoothing for more adaptive forecasts
  • Consider Prophet for automatic changepoint detection
  • Ensure sufficient recent data (Theta uses all history)

Issue: Seasonal Patterns Not Captured

Solution:

  • Verify deseasonalize=true
  • Check that data has at least 2 complete seasonal cycles
  • Theta's seasonal handling is simple; for complex seasonality use Prophet or SARIMA
  • Ensure frequency is set correctly for seasonal detection

Issue: Forecasts Too Conservative

Solution:

  • Increase theta coefficient to 2.5 or 3.0
  • Theta method produces smooth forecasts by design
  • For more dynamic forecasts, try ARIMA or Prophet

Issue: Forecasts Too Aggressive

Solution:

  • Decrease theta coefficient to 1.5 or 1.0
  • Consider if the trend is actually sustainable
  • Use Exponential Smoothing with damped trend

Issue: Need External Variables

Solution:

  • Theta method doesn't support exogenous variables
  • Use SARIMAX or Prophet with additional regressors
  • Alternatively, adjust your target for external factors first, then apply Theta

Issue: Model Doesn't Fit Well

Solution:

  • Theta is intentionally simple; it may underfit complex data
  • Consider more flexible models:
    • ARIMA for autocorrelation patterns
    • Prophet for multiple seasonalities
    • Machine learning models (XGBoost, LightGBM) for non-linear patterns

Issue: Want Prediction Intervals

Solution:

  • Check if your implementation provides confidence intervals
  • Some Theta implementations include bootstrap or analytical intervals
  • For rigorous uncertainty quantification, use ARIMA or Prophet

Example Use Cases

Monthly Sales Baseline

theta=2.0
deseasonalize=true

Quick baseline forecast before trying complex models.

Daily Stock Prices

theta=2.0
deseasonalize=false

No seasonality; captures general trend.

Quarterly Revenue

theta=2.0
deseasonalize=true

Handles yearly seasonality in quarterly data.

Hourly Temperature (Deseasonalized)

theta=2.0
deseasonalize=false

If already deseasonalized, apply Theta directly.

Weekly Website Traffic

theta=1.5
deseasonalize=true

Noisy data with seasonal pattern; lower theta for smoother forecasts.

Comparison with Other Models

vs Exponential Smoothing:

  • Theta: Simpler, fewer parameters, good baseline
  • Exponential Smoothing: More flexible trend/seasonal configurations

vs ARIMA:

  • Theta: Much simpler, no parameter tuning
  • ARIMA: More flexible, captures complex autocorrelation

vs Prophet:

  • Theta: Faster, simpler for basic trends
  • Prophet: Better for seasonality, holidays, external features

vs Auto ARIMA:

  • Theta: Instant results, no search
  • Auto ARIMA: Automatic optimization, potentially better fit

When to Use Theta vs Other Models

Use Theta when:

  • You need a quick baseline
  • Data is relatively smooth
  • Simplicity and speed are priorities
  • You're comparing multiple models

Use ARIMA/SARIMA when:

  • You need more flexibility
  • Data has complex autocorrelation
  • Seasonal patterns are critical

Use Prophet when:

  • Multiple seasonalities present
  • Need external regressors
  • Want automatic changepoint detection

Use Machine Learning when:

  • Non-linear relationships
  • Many external features
  • Complex interactions

Technical Details

How Theta Method Works

  1. Decompose: Split series into short-term (Theta0) and long-term (Theta2) components

    • Theta0: Trend line (linear regression)
    • Theta2: Series with doubled local curvature
  2. Forecast Each Component:

    • Theta0: Simple linear extrapolation
    • Theta2: Exponential smoothing or similar
  3. Combine:

    • Final forecast = weighted average of component forecasts
    • Default weights: 0.5 × Theta0 + 0.5 × Theta2
  4. Reseasonalize (if deseasonalize=true):

    • Add back seasonal component

Why It Works

  • Long-term component captures trend
  • Short-term component captures recent fluctuations
  • Combination balances extrapolation and adaptation
  • Simplicity prevents overfitting

Historical Context

The Theta Method won the M3 forecasting competition (2000), outperforming many complex methods. Its success demonstrated that simplicity can be more robust than sophistication for many real-world forecasting tasks.


Command Palette

Search for a command to run...

Schnellzugriffe
STRG + KSuche
STRG + DNachtmodus / Tagmodus
STRG + LSprache ändern

Software-Details
Kompiliert vor 1 Tag
Release: v4.0.0-production
Buildnummer: master@64a3463
Historie: 68 Items