필터 지우기
필터 지우기

Removing leverage = infinite loop?

조회 수: 1 (최근 30일)
wesleynotwise
wesleynotwise 2017년 5월 29일
댓글: Star Strider 2017년 6월 1일
I have a nonlinear model and I used plotDiagnostics (model, 'leverage') to find observations with high leverage.
However,after removing those which are extremely high (about 6 points), I noticed that the threshold of the new leverage plot has changed, and there are new points fall beyond this new threshold. If I were to remove all points lying above the threshold (about 20 of them), it is very likely that some points will exceed the new threshold, and eventually will this whole process of removing leverage and re-plotting leverage plot become an endless loop?

채택된 답변

Star Strider
Star Strider 2017년 5월 29일
It would not be ‘endless’, since you would eventually run out of points to exclude!
I would stop with the first iteration. That identifies the most extreme outliers.
Actually, unless I had reason to believe that the outliers were due to some methodological problem in my data collection, which would certainly be a reason to examine them and possibly exclude them, I would keep all of them. This is an argument in favour of defining a protocol first, with exclusion criteria for data, such as sick animals, thermal noise in measuring equipment, equipment nonlinearities such as amplifier saturation or ‘railing’, and similar problems. Ideally, you will always have a valid reason for excluding some data, other than that they are simply ‘outliers’.
  댓글 수: 16
wesleynotwise
wesleynotwise 2017년 6월 1일
Thanks for your advice. I do think Method (2) works. I will see if there is any specific techniques. So once the variance is determined, then weight = 1/variance, and it will be used in this function, I assume?
[beta,R,J,CovB] = nlinfit(X,y,@hougen,beta0,'Weights',weights)
Star Strider
Star Strider 2017년 6월 1일
My pleasure.
That is how I would do it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by