Relative Prediction Error Near a Zero Target
Dividing a prediction error by the reference magnitude can become unstable or undefined near zero. Choose an evaluation metric suited to the observed values.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace one comparison
An error of one on targets 100 and 0.01 yields relative errors 0.01 and 100. A zero target gives no finite ratio under that definition. See absolute and relative error.
Report the choice and affected rows
Dropping all zero values can change which population the score describes. Documenting chart scope gives a general reporting principle.[1][2]
Show how the same absolute error creates extreme ratios
A prediction error of 0.01 is one percent against actual value one and one hundred percent against actual 0.01. At actual zero the ordinary division is undefined. Use a denominator convention that reflects the domain. See absolute and relative numerical error.
Actual=1, difference=.01 → .01 relative
Actual=.01, difference=.01 → 1 relative
Actual=0 → requires a separate rule
Report the impact of any floor or exclusion
Excluding zero targets changes the evaluation population. Adding a denominator floor changes the metric's interpretation. Keep counts and absolute errors available for comparison.