Removing outliers from a List

Hi,

Is it possible to remove an outlier from a list?
Something like:

L=\left[1,2,3,4,5,50\right]
T=L\left\{L<20\right\}

The List is an aggregate, but some students enter incorrect data which sometimes messes up the results.

Use brackets instead of curly braces and it should work. You could do more complex/dynamic conditions if you wanted as well.

That worked many thanks. Yes, I will try to use the median …etc to define the outlier.

Appreciate your help.

1 Like