While doing some EDA I decided to use a box plot to illustrate the difference between two levels of a factor.

The way ggplot rendered the box plot was satisfactory, but slightly simplistic (first plot below). Whilst researching the characteristics of box plots I started experimenting with notches.

I understand notches display the CI around the median, and that if two boxes’ notches don’t overlap there’s ‘strong evidence’ – at a 95% confidence level – that the medians differ.

In my case (second plot), the notches don’t meaningfully overlap. But why does the bottom of the box on the right hand side take that strange form?

Plotting the same data in a violin plot didn’t indicate anything unusual about the probability density of the corresponding violin.

**Answer**

In my case (second plot), the notches don’t meaningfully overlap. But

why does the bottom of the box on the right hand side take that

strange form? How do I explain that?

It indicates that the 25th percentile is about 21, 75th percentile about 30.5. And the lower and upper limits of the notch are about 18 and 27.

A common reason is that your distribution is skewed or sample size is low. The notch’s boundary is based on:

median \pm 1.57 \times \frac{IQR}{\sqrt{n}}

If the distance between median and the 25th percentile and the distance between median and the 75th percentile are extremely different (like the one at the right) and/or the sample size is low, the notch will be wider. If it’s wide enough that the notch boundary is more extreme than the 25th and 75th percentiles (aka, the box), then the notched box plot will display this “inside out” shape.

**Attribution***Source : Link , Question Author : RDJ , Answer Author : Penguin_Knight*