Tutorial Playlist

Python Tutorial for Beginners

Overview

The Best Tips for Learning Python

Lesson - 1

How to Install Python on Windows?

Lesson - 2

Top 10 Python IDEs in 2020: Choosing The Best One

Lesson - 3

A Beginner’s Guide To Python Variables

Lesson - 4

Understanding Python If-Else Statement

Lesson - 5

Python Numbers: Integers, Floats, Complex Numbers

Lesson - 6

Python Strings | Simplilearn Python Tutorial

Lesson - 7

The Basics of Python Loops

Lesson - 8

Python For Loops Explained With Examples

Lesson - 9

Introduction to Python While Loop

Lesson - 10

Everything You Need to Know About Python Arrays

Lesson - 11

All You Need To Know About Python List

Lesson - 12

How to Easily Implement Python Sets and Dictionaries

Lesson - 13

A Handy Guide to Python Tuples

Lesson - 14

Everything You Need to Know About Python Slicing

Lesson - 15

Python Regular Expression (RegEX)

Lesson - 16

Learn A to Z About Python Functions

Lesson - 17

Objects and Classes in Python: Create, Modify and Delete

Lesson - 18

Python OOPs Concept: Here's What You Need to Know

Lesson - 19

An Introduction to Python Threading

Lesson - 20

Getting Started With Jupyter Network

Lesson - 21

PyCharm Tutorial: Getting Started with PyCharm

Lesson - 22

The Best NumPy Tutorial for Beginners

Lesson - 23

The Best Python Pandas Tutorial

Lesson - 24

An Introduction to Matplotlib for Beginners

Lesson - 25

The Best Guide to Time Series Analysis In Python

Lesson - 26

An Introduction to Scikit-Learn: Machine Learning in Python

Lesson - 27

A Beginner's Guide To Web Scraping With Python

Lesson - 28

Python Django Tutorial: The Best Guide on Django Framework

Lesson - 29

Top 10 Reason Why You Should Learn Python

Lesson - 30

10 Cool Python Project Ideas For Beginners in 2021

Lesson - 31

The Best Ideas for Python Automation Projects

Lesson - 32

12 Tips On How To Become a Python Developer

Lesson - 33

Top 50 Python Interview Questions and Answers in 2020

Lesson - 34

The Best Guide for RPA Using Python

Lesson - 35

Comprehending Web Development With PHP vs. Python

Lesson - 36

The Best Tips for Learning Python - REMOVE

Lesson - 37

The Best Way to Learn About Box and Whisker Plot

Lesson - 38
The Best Way to Learn About Box and Whisker Plot

Statistics is the branch of science that deals with data collection, interpretation, and validation. The procedure of performing various statistical operations is known as statistical data analysis. One such method will be covered in this tutorial.

What Are Box and Whisker Plot?

They are graphical representations of variation in a set of data. A histogram analysis is usually sufficient, but a box and plot can add more detail while also allowing multiple sets of data to be displayed in the same graph.

Box_and_Whisker_Plot_1.

  • Median (Q2/ 50th percentile): The middle value of the dataset
  • First Quartile (Q1): The 25th percentile of the dataset
  • Third Quartile (Q3): The 75th percentile of the dataset

Post Graduate Program In Data Science

The Ultimate Ticket To Top Data Science Job RolesExplore Course
Post Graduate Program In Data Science

Why Use a Box and Whisker Plot?

The box and plot is used when:

  • You want to summarize the data from multiple sources and display the result in a single graph.
  • You can compare the data from different categories using box and whiskers plots, making the decision-making easier and more effective.

When to Use Box and Whisker Plot?

When you have multiple data sets from different sources that are related in some way, use boxes and plots. Here are some examples:

  • Test results from different schools or classrooms
  • Data from two identical machines producing the same goods

To make an accurate box and whiskers plot, you have to understand the five-number summary. The five-number summary is useful to identify and plot the points. 

Five Number Summary

The method to develop a box and plot comes from the five statistics below.

Minimum value: It is the smallest value of the data set.

Second quartile: The value below which the lower 25% of the data are contained.

Median value: The middle number in a range of numbers.

Third quartile: The value above which the upper 25% of the data are contained.

Maximum value: It is the largest value in the data set.

Now that you know about the five-number summary and the important points, let’s look at the steps to create a box and whiskers plot.

How to Create Box and Whisker Plot?

Now, you will understand the steps involved in making a box and plot. 

Consider the following example:

The sample age of 10 students at a training center are given below:

15, 27, 19, 18, 24, 19, 20, 25, 25, 28 

Step1: Order the data from smallest to largest.

15, 18, 19, 19, 20, 24, 25, 25, 27, 28

Step 2: Find the median.

Since you have an even number of age values, the median is the mean of (n/2) and (n/2 + 1)th observation.

15, 18, 19, 19, 20, 24, 25, 25, 27, 28

Box_and_Whisker_Plot_2

Step 3: Find the quartiles.

The first quartile is the median of the age values to the left of the median.

15, 18, 19, 19, 20

Q1 = 19

The third quartile is the median of the age values to the right of the median.

24, 25, 25, 27, 28

Q3 = 25

Free Course: Introduction to Data Science

Learn the Fundamentals of Data ScienceEnroll Now
Free Course: Introduction to Data Science

Step 4: Complete the five-number summary by finding the min and max values.

The min is the smallest age value, which is 15.

The max is the largest age value, which is 28.

The five-number summary is 15, 19, 22, 25, 28

Making a Box Plot  

Step 1:  Scale and label an axis that fits the five-number summary.

Box_and_Whisker_Plot_3.

Step 2: Draw whiskers from Q1 to the minimum age value and from Q3 to the maximum age value.

Box_and_Whisker_Plot_4

The resulting graph gives you the idea of the minimum, lower quartile, median, upper quartile, and maximum age value of the students in the dataset.

Below are the key points that you can draw from the above box and plot:

  • The lowest age among the students at the training center is 15 excluding outliers.
  • About 25% of students are under 19 years of age.
  • Close to 50% of the students are between 19 and 25 years of age.
  • Nearly 75% of students have an age less than 25.
  • The maximum age among the students is 28 excluding outliers.
Looking forward to becoming a Data Scientist? Check out the Data Science Bootcamp Program and get certified today.

Conclusion

With this, you have come to the end of the article. You can now construct a box and a plot by calculating the five-number summary without any hassle. 

If you want to learn further, you can check the Data Scientist course by Simplilearn. The course gives exposure to key technologies including R, Python, Tableau, and Spark.

If you have any doubts regarding this ‘Box and Whisker plot’ tutorial, do share them in the comment section. Our subject matter expert will respond to your queries. Happy learning!

About the Author

SimplilearnSimplilearn

Simplilearn is one of the world’s leading providers of online training for Digital Marketing, Cloud Computing, Project Management, Data Science, IT, Software Development, and many other emerging technologies.

View More
  • Disclaimer
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, and OPM3 are registered marks of the Project Management Institute, Inc.