Why is the 1/4 Quantile not equal to the 25% mark in the Plot? (look to the attached files)
Thx. Hannes
Why is the 1/4 Quantile not equal to the 25% mark in the Plot? (look to the attached files)
Thx. Hannes
BoxWhiskerChart uses interpolation between numbers, while the default Quantile command find the nearest number. The difference is especially noticeable when you have few datapoints, and many numbers that are the same:
Quantile[data, 1/4]
Quantile[data, 1/4, {{1/2, 0}, {0, 1}}]
BoxWhiskerChart[data]
if you hover over the plot you will see:
Note that Quartiles uses this definition (interpolation) by default…
@Hannes Waltenberger please attach notebooks and NOT .pdf files or share code directly in the post.
Please read the forum rules: http://wolfr.am/READ-1ST