WFM Ontology/Forecast accuracy
Generated page. Do not edit here. This page is built from the WFM Ontology repository (pre-release, source hash 424422536a). Changes are proposed on GitHub and the page is regenerated; edits made here are overwritten. Ontology pages are kept apart from the wiki's articles so that the ontology, which cites the wiki as evidence, never cites itself.
WFM Ontology › Forecast accuracy
Forecast accuracy (WFM-0082) is a measure in the WFM Ontology: how close a forecast was to what happened, stated as an error statistic. The ontology records 9 distinct ways of computing it, each with its own permanent identifier, so that two figures can be checked for comparability before they are compared.
| Identifier | WFM-0082
|
|---|---|
| Also called | Forecast error |
| Direction | Lower is better |
| Variants | 9 |
| Recommended | WFM-0089 |
| Published definitions | 0 |
| Address | https://wfmlabs.org/ontology/WFM-0082 |
Note: In every variant y(t) is the actual, f(t) the forecast and e(t) = y(t) - f(t), over n periods. A figure quoted as forecast accuracy means nothing until the statistic, the horizon and the level of detail are named.
Variants at a glance
| Identifier | Variant | Numerator | Denominator | Unit | Published definitions same · close · possible |
|---|---|---|---|---|---|
| WFM-0083 | Mean absolute error | sum over t of |e(t)|, divided by n | unit of the forecast quantity | 0 · 0 · 0 | |
| WFM-0084 | Root mean squared error | square root of (sum over t of e(t) squared, divided by n) | unit of the forecast quantity | 0 · 0 · 0 | |
| WFM-0085 | Mean absolute percentage error | sum over t of |e(t) / y(t)|, divided by n | proportion | 0 · 0 · 0 | |
| WFM-0086 | Symmetric mean absolute percentage error | sum over t of |e(t)| / ((|y(t)| + |f(t)|) / 2), divided by n | proportion | 0 · 0 · 0 | |
| WFM-0087 | Mean absolute scaled error | (sum over t of |e(t)| divided by n), divided by (sum over t from m+1 to T of |y(t) - y(t-m)| divided by (T - m)); m is the seasonal period and T the length of the training data | proportion | 0 · 0 · 0 | |
| WFM-0088 | Mean error | sum over t of e(t), divided by n | unit of the forecast quantity | 0 · 0 · 0 | |
| WFM-0089 (recommended) | Weighted absolute percentage error | sum over t of |e(t)|, divided by sum over t of y(t) | proportion | 0 · 0 · 0 | |
| WFM-0138 | Percentage error by interval | (f(t) - y(t)) / y(t), for each period t | proportion | 0 · 0 · 0 | |
| WFM-0197 | Percentage bias | sum over t of (f(t) - y(t)), divided by sum over t of y(t) | proportion | 0 · 0 · 0 | |
Recommendation
The ontology recommends Weighted absolute percentage error (WFM-0089). Low-volume periods distort it less than they distort the mean absolute percentage error, and it follows the cost of intraday error more closely. It says nothing about direction, so it is reported with the mean error. Hyndman prefers the mean absolute scaled error when comparing across series; Call Centre Helper recommends the mean absolute percentage error.[1][2]
A recommendation is an editorial position, not a ruling on the other variants. An operation that reports a different variant is not wrong; it should say which one it reports.
Direction
Lower is better.[2]
Each variant
Mean absolute error
The average size of the error, in the units of the thing forecast.
| Identifier | WFM-0083
|
|---|---|
| Also called | MAE |
| Formula | sum over t of |e(t)|, divided by n |
| Unit | Unit of the forecast quantity |
| Depends on | Forecast horizon |
Sources: [3]
Root mean squared error
The square root of the average squared error. Large errors weigh more than small ones.
| Identifier | WFM-0084
|
|---|---|
| Also called | RMSE |
| Formula | square root of (sum over t of e(t) squared, divided by n) |
| Unit | Unit of the forecast quantity |
| Depends on | Forecast horizon |
Sources: [3]
Mean absolute percentage error
The average of each period's error as a share of that period's actual, usually shown as a percentage. Every period weighs the same, however small its volume.
| Identifier | WFM-0085
|
|---|---|
| Also called | MAPE |
| Formula | sum over t of |e(t) / y(t)|, divided by n |
| Unit | Proportion |
| Depends on | Forecast horizon |
Note: Undefined when an actual is zero and unstable when actuals are small.
Sources: [3]
Symmetric mean absolute percentage error
The average of each period's error as a share of the mean of that period's actual and forecast. Bounded between 0 and 2, or 0 and 200 percent.
| Identifier | WFM-0086
|
|---|---|
| Also called | sMAPE |
| Formula | sum over t of |e(t)| / ((|y(t)| + |f(t)|) / 2), divided by n |
| Unit | Proportion |
| Depends on | Forecast horizon |
Sources: [3]
Mean absolute scaled error
Mean absolute error divided by the mean absolute error of a seasonal naive forecast on the training data. Below one beats the naive forecast.
| Identifier | WFM-0087
|
|---|---|
| Also called | MASE |
| Formula | (sum over t of |e(t)| divided by n), divided by (sum over t from m+1 to T of |y(t) - y(t-m)| divided by (T - m)); m is the seasonal period and T the length of the training data |
| Unit | Proportion |
| Depends on | Forecast horizon |
Sources: [3]
Mean error
The average error with its sign kept. It shows whether the forecast runs high or low, not how large the errors are.
| Identifier | WFM-0088
|
|---|---|
| Also called | Bias, Forecast bias, ME |
| Formula | sum over t of e(t), divided by n |
| Unit | Unit of the forecast quantity |
| Direction | Best near zero |
| Depends on | Forecast horizon |
Sources: [3]
Weighted absolute percentage error
Total absolute error as a share of total actual volume, usually shown as a percentage. Periods weigh in proportion to their volume.
| Identifier | WFM-0089 (recommended)
|
|---|---|
| Also called | WAPE |
| Formula | sum over t of |e(t)|, divided by sum over t of y(t) |
| Unit | Proportion |
| Depends on | Forecast horizon |
Sources: [4]
Percentage error by interval
Each interval's forecast less its actual, as a share of the actual, with the sign kept, usually shown as a percentage. It is reported interval by interval and not averaged.
| Identifier | WFM-0138
|
|---|---|
| Also called | Forecast variance, Percent variance |
| Formula | (f(t) - y(t)) / y(t), for each period t |
| Unit | Proportion |
| Direction | Best near zero |
| Depends on | Forecast horizon |
Note: The sign runs the other way from e(t): a positive figure means the forecast was high. Undefined when an actual is zero.
Sources: [5]
Percentage bias
Total forecast less total actual, as a share of total actual, with the sign kept. Above zero the forecast ran high.
| Identifier | WFM-0197
|
|---|---|
| Also called | Forecast bias percentage, PBIAS |
| Formula | sum over t of (f(t) - y(t)), divided by sum over t of y(t) |
| Unit | Proportion |
| Direction | Best near zero |
| Depends on | Forecast horizon |
Note: The signed partner of the weighted absolute percentage error. Its sign is the opposite of the mean error's, which subtracts the forecast from the actual.
Sources: [4]
What published sources say
Each row is this project's reading of a published definition, in our own words, with a link to the source and the date it was read. A reading is evidence of how a term is used, not a ruling on it. Rows marked No variant compute something no variant of this measure records.
| Publisher | Term used | Our reading | Maps to | Read on |
|---|
See also
- WFM Ontology: every measure and layer
- Forecast Accuracy Metrics
- MAPE WAPE and Forecast Bias
- Forecast accuracy in the term index on GitHub
References
- ↑ arxiv.org: 2101.10122
- ↑ 2.0 2.1 otexts.com: accuracy
- ↑ 3.0 3.1 3.2 3.3 3.4 3.5 WFM Labs wiki: Forecast Accuracy Metrics
- ↑ 4.0 4.1 WFM Labs wiki: MAPE WAPE and Forecast Bias
- ↑ bradcleveland.com: eBook metrics
