I have a vector and want to detect outliers in it.
I need an outlier detection method (a non-parametric method) which can detect red points as outliers.
Edit:
I have a lot of vectors like this. The pattern is similar to this but the values are different. I mean we can see the height since the values are not constant but overall the patterns of outliers against the normal data are like this. This means in one place they beak the continuity of the blues points and go in different directions. Here is another figure.
Thanks in advance.
np.where(condition,val1,val2)
you can also plot a decision surface accordingly to seperate the data using meshgrids $\endgroup$ – Aditya Mar 3 '18 at 8:47