In the following, we describe inputs and parameters of the benchmark.
benchmark(
forecaster,
usecase,
type = "one",
output = "benchmark.csv",
name = "Benchmarked Method",
reportAll = TRUE
)
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.
The benchmark report the performance of the forecasting method based on seven measures.
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.
A percentage based accuracy measure of the forecast. Mathematically, $$SMAPE = \frac{100\%}{k} \sum_{t=1}^k \frac{\lvert y_t - \hat{y}_t \rvert}{\lvert y_t \rvert},$$ where $k$ is the forecast horizon, $y_t$ the actual value at time $t$, and $\hat{y}_t$ the forecast value at time $t$.
An accuracy measure of the forecast that is scaled by a baseline. Mathematically, $$MASE = \frac{100\%}{k} \sum_{t=1}^k \frac{\lvert y_t - \hat{y}_t \rvert}{b},$$
with
$$b = \frac{1}{n-m}\sum_{i=m+1}^{n} \lvert h_i - h_{i-m}\rvert,$$ where $k$ is the forecast horizon, $y_t$ the actual value at time $t$, $\hat{y}_t$ the forecast value at time $t$, $m$ the length of the period ($m = 1$ for non-seasonal time series), $n$ the length of the history, and $h_i$ the historical values at time $i$.
The percentage of forecast values that underestimate the actual values. Mathematically, $$\rho_U := \frac{1}{k} \cdot \sum_{t=1}^k max(sgn(y_t - \hat{y_t}),0),$$ where $k$ is the forecast horizon (i.e., the length of the forecast), $y_t$ the actual value at time $t$, and $\hat{y_t}$ the forecast value at time $t$.
The percentage of forecast values that overestimate the actual values. Mathematically, $$\rho_O := \frac{1}{k} \cdot \sum_{t=1}^k max(sgn(\hat{y_t} - y_t),0),$$ where $k$ is the forecast horizon (i.e., the length of the forecast), $y_t$ the actual value at time $t$, and $\hat{y_t}$ the forecast value at time $t$.
The accuracy in terms of underestimation the actual values. Mathematically, $$\delta_U := \frac{1}{k \cdot \rho_U} \cdot \sum_{t=1}^k \frac{max(y_t - \hat{y_t},0)}{\lvert y_t \rvert} $$ if there are forecast values that underestimate the actual values, otherwiese 0. In this equation, $k$ is the forecast horizon (i.e., the length of the forecast), $y_t$ the actual value at time $t$, and $\hat{y_t}$ the forecast value at time $t$.
The accuracy in terms of overestimation the actual values. . Mathematically, $$\frac{1}{k \cdot \rho_O} \cdot \sum_{t=1}^k \frac{max(\hat{y_t} - y_t,0)}{\lvert y_t \rvert}$$ if there are forecast values that underestimate the actual values, otherwiese 0. In this equation, $k$ is the forecast horizon (i.e., the length of the forecast), $y_t$ the actual value at time $t$, and $\hat{y_t}$ the forecast value at time $t$.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.