I've added the outlier tag to your question, as that's how I understand your problem. Plenty of methods exist for outlier detection; I'll focus on this, since I assume deletion of detected outliers is trivial for you.
Tukey's fences are the simple, conventional statistics I've been taught to use for univariate outliers. I'd be eager to upvote any better answers here and welcome any further critique of this common method. Fence stats are, as I've said, very simple: the upper and lower bounds are defined by the inter-quartile range, multiplied by 1.5, which is then added to the 3rd quartile and subtracted from the 1st. E.g., in R:
- Your first vector of data,
- Upper fence:
- This identifies the two outliers you intended, 100.45645 and 222.423.
- Lower fence:
- Your second vector of data,
- Upper fence:
- This is more conservative than you were, only identifying 8545.16571 as an outlier.
- Lower fence:
The lower fences seem unneeded, but I've retained them for demonstration.
I see @AdamO has already raised a good point about your data and why this method may have failed. What justification do you have for calling two and three elements of your 2×8 observations abnormally large? If your data are sampled from larger populations of interest, do you really know what is normal for those populations' distributions? Consider this sample of a random normal distribution with $\mu=$
X's median and
X's $SD$ after squaring (
To reiterate, this is just a simulated sample of a squared normal distribution. There are no outliers in the square roots of these data (I checked), but Tukey's upper fence identifies 17923 as an outlier in the squared distribution. Here's the probability density function (pdf) of this distribution to give you a feel for what it looks like (
You're probably not going to want to trust Tukey's upper fence with a strongly, positively skewed (skewness $=2.8)$ distribution like this (somewhat similar to a $\chi^2$ distribution BTW, but probably more skewed and kurtotic than most). Tukey's upper fence identifies the top 7.5% of observations from this distribution as outliers, which is a bit much to shave off the top, and not really justified, considering that these observations are sampled from the same distribution as all the non-"outliers".
Outliers should generally be suspected of belonging to different distributions before disregarding them, and ideally you'd have more than just a univariate statistical basis for such a suspicion. For example, if you're sampling the local baseline of tectonic activity, it's probably safe to say you've sampled from a different distribution during moments when a herd of elephants is stampeding past your detector (which, let's say isn't designed to control for elephant stampedes). If these observations are univariate outliers (or bivariate outliers, considering
elephant stampede? as a second binary variable you'd probably want to record, and hopefully wouldn't observe too often), I have no reason to tell you not to exclude them...but if you haven't seen any elephants lately, your high observations might not be proper outliers regardless of what Tukey's fences say. You should seek stronger justifications. If you only have these data and no idea what else might be affecting them, and if they're paired observations, you could consider methods of multivariate outlier detection, but I doubt this will be a big improvement.