Is the calculation of the median including outliers?
3 views (last 30 days)
Voss on 13 Feb 2022
Let's do a test to try to figure it out:
data = randn(1,10);
med = median(data);
med_no_outlier = median(data(data > min(data)));
The median line from boxplot() matches the median calculated using all the data, so it looks like boxplot() uses all the data to compute the median.