# How to cluster/identify points away from a regression line

For many vine plots, I have NDVI and Leaf Area values for each vine. I already know that NDVI and LA has a strong positive correlation as you can see in this picture.

But as you can see too, there are some points away from this pool of points. How can I cluster or identify these points? I'm using Python with sklearn, scipy and other libs like them.

• This is called outlier detection. There are many ways to do it and the algorithm that performs best depends on the details of your case. – louic Jun 25 '19 at 13:33
• Ok, thank you @louic, I'll try this! – Tim C. Jun 25 '19 at 13:38