Simple seven-value dataset
The dataset 12, 15, 14, 19, 21, 18, 17 has mean 16.57, median 17, no outliers, and a mild positive skew.
- Dataset values
- 12, 15, 14, 19, 21, 18, 17
- Variance model
- Sample (n-1)
- Percentile target
- 90
- Histogram bins
- 5
Mean ≈ 16.57, median = 17, sample standard deviation ≈ 3.05, no IQR-flagged outliers.
Change the last value from 17 to 45 to introduce a strong outlier and see how the mean shifts away from the median.
Dataset with outlier
Adding an extreme value demonstrates how Tukey fences flag outliers and how the median stays stable while the mean shifts.
- Dataset values
- 12, 15, 14, 19, 21, 18, 17, 85
- Variance model
- Sample (n-1)
- Outlier factor (IQR k)
- 1.5
Mean ≈ 25.1, median = 17.5, value 85 flagged as outlier by Tukey fence.
Raise the outlier factor k to 3.0 to see when only extreme outliers are flagged.