Get the latest tech news

Hyb Error: A Hybrid Metric Combining Absolute and Relative Errors


Suppose $x$ is an approximation of $y$. This paper proposes using $\frac{|x-y|}{1+|y|}$, named Hyb Error, to measure the error. This metric equals half the harmonic mean of absolute error and relative error, effectively combining their advantages while mitigating their limitations. For example, Hyb Error approaches absolute error as $|y|$ approaches 0, thereby avoiding the exaggeration of relative error, and approaches relative error as $|y|$ approaches infinity, thereby avoiding the exaggeration of absolute error. The Hyb Error of $ε$ is equivalent to $|x-y|=ε+ε|y|$, which implies $\mathrm{isclose}(x,y,ε,ε)=\mathrm{True}$, where ``isclose'' is a common floating-point equality check function in numerical libraries. For sequences, this property makes the Maximum Element-wise Hyb Error (MEHE) a pragmatic error metric that reflects the most significant error and equals the decision boundary of the ``isclose'' function.

View a PDF of the paper titled Hyb Error: A Hybrid Metric Combining Absolute and Relative Errors, by Peichen Xie View PDFHTML (experimental) Abstract:Suppose $x$ is an approximation of $y$. The Hyb Error of $\epsilon$ is equivalent to $|x-y|=\epsilon+\epsilon |y|$, which implies $\mathrm{isclose}(x,y,\epsilon,\epsilon)=\mathrm{True}$, where ``isclose'' is a common floating-point equality check function in numerical libraries.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of errors

errors

Photo of hyb error

hyb error

Related news:

News photo

Dozens of scientists find errors in a new Department of Energy climate report

News photo

Dozens of Scientists Find Errors in a New Energy Department Climate Report

News photo

Australian trial of age‑assurance tech to keep under‑16s off social media finds errors ‘inevitable’