ESD Test for Outliers

The Extreme Studentized Deviate (ESD) test is a generalized version of the Grubbs test that can detect multiple outliers in a dataset. Unlike the standard Grubbs test which only finds one outlier at a time, ESD iteratively tests and removes outliers until no more are found.

When to Use the ESD Test

  • You suspect there may be more than one outlier in your data
  • Your data is approximately normally distributed
  • You want to identify extreme values systematically
  • The standard Grubbs test is insufficient for multiple outliers

How It Works

  1. Calculate the mean and standard deviation of the data
  2. Find the value with the maximum absolute deviation from the mean
  3. Calculate the test statistic: R = max|x - mean| / SD
  4. Compare to critical value based on sample size and significance level
  5. If R > critical value, mark as outlier and remove it
  6. Repeat steps 1-5 up to the maximum number of outliers specified
  7. Stop when no more outliers are detected

Comparison with Grubbs Test

FeatureGrubbs TestESD Test
Outliers detected1 onlyMultiple
MethodSingle testIterative
Best forSingle suspected outlierMultiple suspected outliers

Important Considerations

  • Data should be approximately normally distributed (check with normality tests)
  • Don't automatically remove outliers — investigate them first
  • Consider whether outliers represent genuine extreme values or data entry errors
  • Report how many outliers were removed and why

Null Hypothesis

H₀: There are no outliers in the data (all values come from the same normal distribution)