Why Is Matplotlib's Notched Boxplot Folding Back On Itself?
I tried to make a notched boxplot using matplotlib, but found the notched box tends to overextend and then fold back on itself. This does not happen when I make a regular boxplot.
Solution 1:
It means that the distribution of the data is skewed. If two boxes' notches do not overlap, there is 95% confidence their medians differ.
The Notch displays the confidence interval around the median which is normally based on :
Maybe, you can alter the bootstrap
parameter of the boxplot
to tighten up the median's confidence interval.
Note that the labels for the Upper and Lower whiskers in the displayed image is incorrect. They should read "Lesser of 75th percentile + 1.5IQR or maximum value" and "Greater of 25th percentile - 1.5IQR or minimum value" respectively.
Post a Comment for "Why Is Matplotlib's Notched Boxplot Folding Back On Itself?"