In open source data mining software Weka (written in Java), when I run some data mining algorithm like Linear regression Weka returns model and some model evaluating metrics for test data.
It looks like this:
Correlation coefficient 0.2978
Mean absolute error 15.5995
Root mean squared error 29.9002
Relative absolute error 47.7508 %
Root relative squared error 72.2651 %
What is the formula for "Relative absolute error" and "Root relative squared error"? I cannot figure that out. I would like to use this metrics to evaluate my own algorithms in Matlab.
From this presentation, in slide 22, and citing witten, here are the formulas:
Relative absolute error
Root relative squared error
with
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With