Documentation
August 17, 2022 · View on GitHub
Sequence Diagram of Libra

Inputs and Parameters
In the following, we describe inputs and parameters of the benchmark.
Usage
benchmark(
forecaster,
usecase,
type = "one",
output = "benchmark.csv",
name = "Benchmarked Method",
reportAll = TRUE
)
Arguments
- forecaster: The forecasting method. This method gets a timeseries objekt (ts) and the horizon (h). The method returns the forecast values.
- usecase: The use case for the benchmark. It must be either economics, finance, human, or nature.
- type: Optional parameter: The evaluation type. It must be either one (one-step-ahead forecast), multi (multi-step-ahead forecast), or rolling (rolling-origin forecast). one by default.
- output: Optional parameter: The name of the output file with the structure Folder/subfolder/file. benchmark.csv by default.
- name: Optional parameter: The name of the forecasting method. Benchmarked Method by default.
- reportAll: Optional parameter: Whether to report the results of the state-of-the-art methods already benchmarked. TRUE by default.
Use Cases
The benchmark comprises four different use cases with each 100 time series:
- economics (gas, sales, unemployment, etc.),
- finance (stocks, sales prices, exchange rate, etc.),
- human (calls, web requests, batch requests, etc.), and
- nature (rain, birth, death, etc.).
The time series are additionally publicly available at Zenodo.
Distribution of the Time Series Lenghts in each Use Case

Distribution of the Time Series Frequencies in each Use Case

Relationship between Time Series Length and Frequency in each Use Case

Measures
The benchmark report the performance of the forecasting method based on seven measures.
Normalized Time
The time-to-result of the forecasting method is measured and then normalized. Normalization is performed using a naive forecasting method executed in the background.
Symmetrical Mean Absolute Percentage Error
A percentage based accuracy measure of the forecast. Mathematically, where is the forecast horizon, the actual value at time , and the forecast value at time .
Mean Absolute Scaled Error
An accuracy measure of the forecast that is scaled by a baseline. Mathematically,
with
where is the forecast horizon, the actual value at time , the forecast value at time , the length of the period ( for non-seasonal time series), the length of the history, and the historical values at time .
Mean Under-Estimation Share
The percentage of forecast values that underestimate the actual values. Mathematically, where is the forecast horizon (i.e., the length of the forecast), the actual value at time , and the forecast value at time .
Mean Over-Estimation Share
The percentage of forecast values that overestimate the actual values. Mathematically, where is the forecast horizon (i.e., the length of the forecast), the actual value at time , and the forecast value at time .
Mean Under-Accuracy Share
The accuracy in terms of underestimation the actual values. Mathematically, if there are forecast values that underestimate the actual values, otherwiese 0. In this equation, is the forecast horizon (i.e., the length of the forecast), the actual value at time , and the forecast value at time .
Mean Over-Accuracy Share
The accuracy in terms of overestimation the actual values. . Mathematically, if there are forecast values that underestimate the actual values, otherwiese 0. In this equation, is the forecast horizon (i.e., the length of the forecast), the actual value at time , and the forecast value at time .