Tukey’s Fences

Tukey’s Fences is an outlier detection method based on the Interquartile Range (IQR), which is the range between the 25th percentile (Q1) and the 75th percentile (Q3). Tukey’s fences define boundaries outside which data points are considered outliers.

Tukey's Fences Parameters

Param Name Description Default Values Possible Values
Q1 First quartile (25th percentile) of the dataset Computed from data -
Q3 Third quartile (75th percentile) of the dataset Computed from data -
IQR Interquartile Range = Q3 - Q1 Computed from Q1/Q3 -
k Multiplier for IQR to define fences 1.5 1.0 (mild), 1.5 (standard), 2.0, 3.0
Lower Fence Q1 - k × IQR Depends on k -
Upper Fence Q3 + k × IQR Depends on k -