Different Cases of Box Plot

Let us see different cases of box plots with different examples and let’s try to understand each one of them.

  • Now for the data = [0, 1, 2, 3, 6, 6, 6]

    Here the median of the data is 3, min is 0 and max is 6. The first quartile is 1.5 but after 50% to max values, all of the data is 6. So the third quartile and the max values are the same.

  • For the data = [0, 1, 2, 3, 4, 5, 9] 


    Here the median is 3. For the third quartile, the values are 4, 5 and 9. So the third quartile is 5 and the max value is 9.

  • For the data = [0, 1, 2, 3, 4, 5, 10]


    Unlike the previous one, the max value is 5 because the third quartile is 4.5 and the interquartile range is (4.5-1.5)=>3. So, 1.5*3 is 4.5 and third quartile(4.5)+4.5=>9. So 10 is larger than the limit 9, thus it becomes an outlier.

What is Box plot and the condition of outliers?

Box plot is a data visualization plotting function. It shows the min, max, median, first quartile, and third quartile. All of the things will be explained briefly. All of the property of box plot can be accessed by dataframe.column_name.describe() function.

Similar Reads

Aspects of a box plot

Here is a well distributed data-set....

Different Cases of Box Plot

Let us see different cases of box plots with different examples and let’s try to understand each one of them....

Description

The box plot seem useful to detect outliers but it has several other uses too. Box plots take up less space and are therefore particularly useful for comparing distributions between several groups or sets of data. It is a direct representation of the Probability Density Function which indicates the distribution of data....

Contact Us