Info

This question is closed. Reopen it to edit or answer.

How can I evaluate the result of robust regression?

1 view (last 30 days)
Hui
Hui on 19 May 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello ALL!
I used nlinfit() to do the regression, but some of my input data is abnormal.Then I switch option.Robust to 'On'. I seems the result quite good.But how can I evaluate the result without R-square(the definition of R-square in Robust regression seems inapplicability[http://www.mathworks.cn/matlabcentral/newsreader/view_thread/317948])?
If there is a INDEX can prove the result of robust regression is better than the ordinary regression, that maybe the best! Thanks for your reading!

Answers (1)

Roger Wohlwend
Roger Wohlwend on 21 May 2014
It is true, you cannot calculation the R-square of the robust regression, but you can do something similar: I would use the weights the algorithm assigns to each data point to exclude the outliers - just define a threshold, say 0.1, if the weight is smaller, ignore the data point - and calculate the R-square of the remaining data points.

This question is closed.

Community Treasure Hunt

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

Start Hunting!