Excluding wrong points in least square method

71 Views Asked by At

I am using least square method to find linear equation but getting some problems below. I would like to exclude wrong points before calculating linear line. Is there any idea for this? enter image description here

1

There are 1 best solutions below

3
On

If you want to remove the "wrong" points from the linear model before fitting it, you first need to define a criterion to decide which points are wrong. Otherwise, you can use several measures of influence such as Cook's distance or studentized residuals, but first you need to fit the entire model.