Do repeated observations stay in the list?
Yes. Quartiles are based on sorted positions, and each occurrence counts as a separate observation.
Paste a list of values, then choose how to calculate its quartiles. See the five-number summary, the middle spread and observations outside the selected 1.5 × IQR fences.
Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1. For 2, 4, 6, 8, 10 and 30, R type 7 gives Q1 = 4.5 and Q3 = 9.5, so the IQR is 5.
R type 7 interpolates at zero-based index (n − 1) × p, using p = 0.25 or 0.75. Tukey hinges instead take the medians of the two halves, including the middle observation in both when the length is odd. For the example list, the hinges are 4 and 10. Other quartile conventions can give different results.
The lower fence is Q1 − 1.5 × IQR and the upper fence is Q3 + 1.5 × IQR. For the interpolated example quartiles, those are −3 and 17. The value 30 lies beyond a fence. A flag signals an observation to check and can reflect real features of the data.
Yes. Quartiles are based on sorted positions, and each occurrence counts as a separate observation.
Every quartile equals that observation, and the IQR is zero. The five-number summary still describes the supplied list.
The fences are numerical thresholds. A boxplot commonly ends its whiskers at the most extreme observed values inside those thresholds.