Histogram is a graphical analysis tool used to identify the shape of the data. In this post, we will discuss various characteristics of a histogram, how to identify shape or distribution of your data set using histogram and how plot a histogram using Minitab as well as excel.
What is a Histogram?
Histogram is a graphical analysis tool. In simple words, it is a bar chart representing your complete data set. However, this bar chart does not plot the data values from your data set. It rather plots the frequency, or number of time a particular data value is present in the data set, segregated into multiple ‘intervals’ or ‘bins’. Thus, it is essentially a bar chart depicting the frequency of the values in your data.
Histograms are useful to analyse continuous data and not for discrete data. More about continuous and discrete data type (opens in a new tab). Histograms are useful for Lean Six Sigma practitioners in understanding the shape, or distribution, of the data. It helps in understanding where the center of the data is or where the data is more concentrated. It also helps to understand the spread of the data. Spread of the data is the variation between the lowest and highest value in the data. Remember, the center of the data is the average (mean) of the data or the median value of the data. However, such mean or median does not necessarily lie at the center of the histogram, as we will see in a few examples below.
Related Post : What are the measures of Variation?
How to create a Histogram
Before we start creating histograms in MiniTab or Excel, let us first understand step by step approach of how a histogram is built. This will also help you understand some of the important characteristics of histograms.
Let us consider the below data set. It is the time taken, in minutes, for an operator to fulfil each order at an e-commerce warehouse.
15.11 | 30.47 | 22.48 | 27.33 | 13.68 |
4.51 | 28.51 | 29.31 | 19.42 | 20.00 |
17.92 | 21.62 | 16.21 | 8.72 | 19.47 |
18.49 | 19.63 | 15.60 | 33.94 | 33.27 |
9.55 | 26.77 | 17.82 | 14.03 | 19.13 |
37.25 | 13.76 | 20.73 | 27.47 | 10.86 |
19.72 | 24.41 | 3.52 | 12.57 | 33.61 |
25.07 | 11.60 | 42.90 | 25.91 | 18.05 |
7.02 | 23.64 | 4.40 | 24.28 | 23.29 |
6.93 | 17.41 | 27.03 | 35.34 | 6.47 |
In this data set, we observe that there are 50 values. 3.52 is the minimum value and 42.90 is the maximum value. Which means, the data ranges roughly from 0 to 43. We are considering the range from 0 as it is the lowest natural boundary below which the time taken to fulfil an order practically cant go.
To plot a histogram, first we divide this range into equal intervals. For this example, let’s consider the intervals of 5 minutes each, which gives us a total of 9 intervals as shown in the below image. Next, we count the number of values that falls into each of the intervals. There are 3 value which are between 0 to 5 minutes, 5 values between 5.01 to 10 minutes, 5 values between 10.01 to 15 minutes and so on.
Interval Bin | Range | Frequency |
---|---|---|
5 | 0.01 to 5 | 3 |
10 | 5.01 to 10 | 5 |
15 | 10.01 to 15 | 5 |
20 | 15.01 to 20 | 15 |
25 | 20.01 to 25 | 7 |
30 | 25.01 to 30 | 8 |
35 | 30.01 to 35 | 4 |
40 | 35.01 to 40 | 2 |
45 | 40.01 to 45 | 1 |
We then use the information from the above frequency table to plot the bar chart. The X axis has the intervals mapped against the frequency on the Y axis. The resulting bar chart that we get is a Histogram.
Histogram using MS Excel
There are multiple ways in which you can create a histogram in Excel. However, one of the easiest way is to use the free excel add-in for data analysis. This add-in is not only useful for creating histograms but can come in handy while doing a lot of other analysis as well. Hence I strongly recommend to add the same.
The steps are simple. From the excel file menu, go to options which is at the bottom right corner in the file menu. Click on add-ins, select ‘Analysis Tool Pak’ from the ‘inactive application add-in’ list. At the bottom of the command box, ensure that “excel add-in” is selected in the drop down and click on GO. In case a new dialog box appears, ensure that Analysis ToolPak is ticked and click on OK. You will be able to see the Data Analysis option under ‘Data’ menu in excel, at the top right corner. I will try and put a detailed post on adding this with relevant screenshots sometime later and link it here. In the mean while you can just google it.
Now that you have the Analysis TooPak, here are the steps to create the Histogram.
Step 1. Copy the above 50 data value in one single column of an excel file. Create one more column which lists the intervals or bins. We will use the intervals of 5 minutes each as described earlier. Hence this interval column will have values as 0, 5, 10, 15, and so on till 45. The data will look like as shown in the below image.
Step 2. Click on “Data” tab in the excel Menu bar. You will see the Data Analysis button at the top right of this menu. Click on the same and a dialog box will appear.
Step 3. Select Histogram in the dialogue box and click on OK. A dialogue box will appear as shown below.
Step 4. In the input range field, select the range of columns where you have the time data stored. I have it saved in cells B2 to B51, hence I will select the same. In the Bin range field, select the column range where you have the intervals stored. For me, its cells C2 to C11. If you need the output in the same worksheet, select the Output range radio button and input the cell number where you need the output. Select the new workbook radio button if you need the output in a new worksheet. Ensure that you tick the Chart Output option to get the Histogram. Once all of this is done, hit OK.
Once you click on OK, you get the below output. This has the frequency table as well as the histogram.
Master Lean and Six Sigma Acronyms in No Time!
The Ultimate Guide to LSS Lingo – Yours for Free
Subscribe and Get Your Hands on the Most Comprehensive List of 220+ LSS Acronyms Available. No more searching for definitions, no more confusion. Just pure expertise at your fingertips. Get your free guide and other ebooks and templates today. Download Now!
Histogram using MiniTab
To create the same chart using MiniTab is much easier. However, the current version of MiniTab does not give you the option to manually define the intervals or bins. MiniTab will automatically calculate the best fit bin size and then plot the histogram by itself.
To start with, paste the 50 data values in MiniTab worksheet in one single column. Once you have this data in the worksheet, go to ‘Graph’ menu from the menu bar. You will see histogram listed in this menu as shown in the below image. Click on the same.
Once you click on Histogram, a pop up will appear asking to select which type of histogram you wish to create. Ignore the last 2 options for now. The first option will only plot the histogram whereas the second, ‘with fit’ option will plot the histogram as well as try to fit it under a distribution curve. You should try both. For this example, we select ‘simple’. Hit OK.
Once you hit OK, another command box will appear asking for ‘Graph Variables’. This is where you input the column where you have the data stored. Double click on the column name from the left hand side list. Once done, hit OK.
That is all. You will get the histogram as graphical output in a new window as shown below. I suggest you should also try the same steps with multiple data sets and also with the other ‘With fit’ option for better understanding.
Now that we know how to create a histogram, let’s look at one very important aspect based on which the shape of your data might look different. The interval size.
Importance of Intervals
The below image shows the histogram plotted using the same set of data. Although the data is the same, the graphs look way different than each other. Why do you think this happens.
This essentially happens due the different interval on bin sizes that we defined. The first graph uses a bin size of 5 minutes. Just by looking the the histogram, you may tend to conclude that the data is normally distributed. However, the moment we change the bin size from 5 to 4, the graph does not look the same. The third graph with bin size of 3 seems further apart from normal distribution. The last figure with bin size of 2 minutes gives a completely different picture and makes it very difficult to conclude the normality of this data set.
Do remember that some of the statistical analysis tools or softwares will give you an option to select the interval or bin sizes of your choice and some will not.
By the way, do check out the Certified Lean Six Sigma Black Belt Handbook – it is one of the most essential guide for anyone trying to get certified as LSS Black belt or in general wants to understand LSS and improve processes. – check it out here.
The shape of the histogram will always depend on the interval or bin size used to plot the same. Hence, it is strongly advised to look at the results from normality tests and p values before you conclude the normality of a data set. Although a histogram can give you a graphical view regarding normality, or non normality, but it should not be used as a standalone tool for final conclusion.
Master Lean and Six Sigma Acronyms in No Time!
The Ultimate Guide to LSS Lingo – Yours for Free
Subscribe and Get Your Hands on the Most Comprehensive List of 220+ LSS Acronyms Available. No more searching for definitions, no more confusion. Just pure expertise at your fingertips. Get your free guide and other ebooks and templates today. Download Now!
Sachin Naik
Passionate about improving processes and systems | Lean Six Sigma practitioner, trainer and coach for 14+ years consulting giant corporations and fortune 500 companies on Operational Excellence | Start-up enthusiast | Change Management and Design Thinking student | Love to ride and drive
This article is a triumph of clarity and concision! Your explanations of histograms and the shape of data are both informative and easy to follow. I couldn’t have asked for a better resource on this subject. Well done!
I am thoroughly impressed by your level of expertise displayed in this article on histograms. Your ability to explain the intricacies of identifying the shape of data is simply amazing. Great job!
It is great flow chart for learning.