goodness of fit: Least absolute deviation

7 views (last 30 days)
Hi,
I would like to know how matlab calculate sse, rmse and Rsquare when we used the options "Robust",'LAR' in fitoptions since the result I obtained is different from the traditional sse, rmse and Rsquare results.
Thanks
Elisabeth

Accepted Answer

Tom Lane
Tom Lane on 6 Apr 2012
The function computes a robust estimate of the error standard deviation and calls this rmse. The sse is then dfe*rmse^2 where dfe is the degrees of freedom for the error term. Rsquare is 1-sse/sst.
A reference for the robust estimate of the error standard deviation is DuMouchel, W.H., and F.L. O'Brien (1989), "Integrating a robust option into a multiple regression computing environment," Computer Science and Statistics: Proceedings of the 21st Symposium on the Interface, American Statistical Association.
  5 Comments
Tom Lane
Tom Lane on 10 Apr 2012
Jérôme, I may not quite understand. The function computes the rmse for you. The other statistics follow from the formulas I gave. If you want to see the code, look at the file private/statrobustsigma. If you need some information other than the code, send me e-mail.
Dahhea Min
Dahhea Min on 27 Feb 2018
Hi Tom,
Would it be possible to share the algorithm for this LAR or minimum absolute deviations?
Thanks,
Hannah

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!