Formula for "Relative absolute error" and "Root relative squared error" used in machine learning (as computed by Weka)

From this presentation, in slide 22, and citing witten, here are the formulas:

Relative absolute error formula absolute

Root relative squared error formula relative

with

  • Actual target values: a1 a2 … an
  • Predicted target values: p1 p2 … pn

The formula for Root Relative Squared Error is actually the formula for the Relative Squared Error. You need to take the square root of this formula to get what Weka outputs.