Time Series Algorithms and Forecasting
A complete guide to all 7+ time series algorithms: SES, Holt, Holt-Winters, ARIMA, Prophet, LSTM, VAR — when to use each, pros and cons, and how to generate forecasts.
Time Series Algorithms and Forecasting
This guide covers all major time series algorithms, when to use each, pros and cons, and how to generate and compare forecasts.
Algorithm 1: Simple Exponential Smoothing (SES)
What it is: Averages past values, with more weight on recent observations.
When to use: No trend, no seasonality — roughly flat series with noise.
| Pros | Cons |
|---|---|
| Very simple | Cannot capture trend or seasonality |
| Fast | Poor for growth/decline patterns |
| Good baseline | Single smoothing parameter |
---
Algorithm 2: Holt's Linear Exponential Smoothing (HLES)
What it is: Extends SES by adding a trend term.
When to use: Data with a trend but no seasonality.
| Pros | Cons |
|---|---|
| Captures trend | No seasonality |
| Still simple | Can overreact to recent noise |
| Two parameters |
---
Algorithm 3: Holt-Winters Exponential Smoothing (HWES)
What it is: Adds seasonality to Holt's method. Has additive and multiplicative variants.
When to use: Both trend and seasonality (e.g., retail, energy).
| Pros | Cons |
|---|---|
| Handles trend + seasonality | Needs enough seasons (e.g., 2+ years) |
| Interpretable | Sensitive to outliers |
| Fast |
---
Algorithm 4: ARIMA and SARIMA
What it is: AutoRegressive Integrated Moving Average. SARIMA adds seasonal terms.
When to use: Complex patterns, short to medium series, when you need fine control.
| Pros | Cons |
|---|---|
| Very flexible | Requires stationarity |
| Well-studied | Many parameters to tune |
| Good for short series | Steeper learning curve |
---
Algorithm 5: Prophet
What it is: Facebook's model for series with strong seasonality and optional holiday effects.
When to use: Daily data, clear seasonality, holidays matter (e.g., e-commerce, logistics).
| Pros | Cons |
|---|---|
| Handles holidays | Slower than SES/HW |
| Robust to missing data | Less suitable for sub-daily data |
| Easy to use |
---
Algorithm 6: LSTM and Seq2Seq (Neural Networks)
What it is: Deep learning models that learn long-range patterns in sequences.
When to use: Lots of data, complex nonlinear patterns, long sequences.
| Pros | Cons |
|---|---|
| Captures complex patterns | Needs lots of data (1000+ points) |
| No manual feature design | Black box, hard to interpret |
| Good for multi-step forecast | Computationally expensive |
---
Algorithm 7: VAR (Vector Autoregression)
What it is: Models multiple related time series together. Each series depends on its own past and the past of others.
When to use: Several related series (e.g., GDP, unemployment, inflation).
| Pros | Cons |
|---|---|
| Multi-series in one model | More data needed |
| Captures cross-effects | Parameters grow quickly |
| Useful for macro/supply chain |
Generating Forecasts (Step by Step)
Step 1: Prepare Your Data
- Load your dataset
- Select the date column and value column
- Run decomposition and stationarity checks
- Resample if needed (e.g., to daily or monthly)
Step 2: Choose and Configure the Algorithm
- Go to Time Series → Forecast
- Pick an algorithm (start with Holt-Winters or Prophet if seasonal)
- Set parameters (or use defaults)
- Choose forecast horizon (e.g., 30 days, 12 months)
Step 3: Train and Forecast
- Click Train or Run
- Wait for the model to fit
- View the forecast plot and metrics (MAE, RMSE, MAPE)
Step 4: Compare Models
- Train 2–3 different algorithms
- Compare metrics and plots
- Choose the best one for your use case
Step 5: Save and Use
- Save the model for reuse
- Export forecasts to CSV or use them in dashboards
- Schedule runs with the TS Scheduler for regular updates
Model Comparison
| Metric | What It Means |
|---|---|
| MAE | Average absolute error — lower is better |
| RMSE | Penalizes large errors more — lower is better |
| MAPE | Error as % of actual — easier to interpret |
---
Model Saving and TS Scheduler
- Save model: Store trained models to reuse without retraining
- Load model: Apply a saved model to new data
- TS Scheduler: Run forecasts on a schedule (daily, weekly) and refresh results automatically
Related Articles
Time Series Overview: What It Is and How to Use It
A beginner-friendly guide to time series data: what it is, key concepts like trend and seasonality, the full workflow, choosing algorithms, and real-world examples.
Time Series Analysis Tools
Understand decomposition, stationarity tests, ACF/PACF analysis, and resampling for time series data.
Was this helpful?