Academy › Topic library › Graphing Data: Histograms, Box Plots and More
Q-BOT ACADEMY · FREE VIDEO LESSON · 10 MIN
Graphing Data: Histograms, Box Plots and More
Graphing Data is turning a column of numbers into a picture, so your eyes can do what they do best: spot patterns. A good graph answers four questions at a glance. Where's the center? How wide is the spread? What's the shape? And are there any odd values, the outliers? A table of forty numbers hides all four. A picture shows them in seconds!
In short
Graphs show center, spread, shape and outliers at a glance. Dot plots suit small data, and histograms suit larger data, with about the square root of n bins. Shapes are clues: bell, skewed, two humps or a cliff. Stem and leaf plots keep the actual values. Box plots show five numbers and flag outliers beyond one and a half times the interquartile range. And run charts add time.
Check yourself
Priya wants to compare slat thickness from mill one and mill two, side by side, and spot any outliers on either mill. Which graph fits best? A, a pie chart. B, side by side box plots. C, one histogram with both mills mixed together. Or D, a table of averages.
Show the answer
The answer is B, side by side box plots. They show each mill's median, spread and outliers right next to each other. A pie chart shows parts of a whole, not spread. Mixing both mills into one histogram is exactly how a difference hides. And a table of averages tells you nothing about spread or outliers!
Where this topic is taught
This lesson is part of every free Academy course whose Body of Knowledge covers it. Each course puts it in context, with exercises and checks.
Full lesson transcript
The narration from the video, by chapter. Brindlewood Outdoor Furniture and its people are a fictional company used in every Q-Bot Academy lesson.
Intro
It's Monday morning at Brindlewood Outdoor Furniture. The coating report says last week's powder thickness averaged about three point three mils, and every frame was inside the spec of two point five to four. Nothing to see here! But Ellen, in purchasing, has a question. Why are we ordering nearly a tenth more powder than we need? Marcus, the quality engineer, takes Priya's forty readings and draws a picture. And the picture tells a story the average never could!
Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today: graphing data, histograms, box plots and more. We'll cover dot plots, histograms and their shapes, stem and leaf plots, box plots, run charts and two more tools, then solve the case of the extra powder.
What it is
So, what is graphing data? It's turning a column of numbers into a picture, so your eyes can do what they do best: spot patterns. A good graph answers four questions at a glance. Where's the center? How wide is the spread? What's the shape? And are there any odd values, the outliers? A table of forty numbers hides all four. A picture shows them in seconds!
Why it matters
Why does it matter? Because summary numbers squash the data flat. An average of three point three mils could come from one steady process, or from two different processes mixed together. And a spec check that says everything passed tells you nothing about waste. At Brindlewood, extra powder is money sprayed onto frames for no reason. Always plot the data before you trust a summary!
How it works: the graphs one by one
Let's take the graphs one at a time. The simplest is the dot plot. Draw a number line and put one dot for each value, stacking dots when values repeat. It's perfect for small data sets, up to about thirty values. Bad: a column of numbers in a spreadsheet, with nobody looking at the pattern. Good: a quick dot plot on the whiteboard, with the spec limits drawn in.
For more data, use a histogram. Split the number line into equal bins, count how many values fall in each bin, and draw a bar for each count. How many bins? A good starting point is the square root of the number of values. For forty readings, that's about six or seven. Bad: three bins, which hide the shape, or thirty, which make noise. Good: about six to ten equal bins, with the spec limits marked.
The magic of a histogram is the shape. A bell shape, high in the middle, is what a steady process often looks like. A skewed shape has a long tail on one side, like repair times, where most are quick and a few take forever. Two humps, called bimodal, usually means two processes are mixed together: two machines, two shifts or two suppliers. And a cliff, where one side is chopped off, often means parts were sorted or inspected out. Each shape is a clue!
Next, the stem and leaf plot. It's a sideways histogram that keeps every actual value. Here are the minutes it took shipping to load eleven trucks: twenty two, twenty four, twenty six, twenty eight, thirty, thirty one, thirty three, thirty five, thirty eight, forty one, and sixty two. The tens digit is the stem, and the ones digit is the leaf. So the twenties row reads two, four, six, eight. Look at the gap: nothing in the fifties, and one lonely leaf in the sixties!
Now the box plot, also called a box and whisker plot. It's built from five numbers: the minimum, the first quartile, the median, the third quartile and the maximum. The first quartile, Q one, has a quarter of the values below it, and the third quartile, Q three, has three quarters below it. The box runs from Q one to Q three, so it holds the middle half of the data, with a line at the median. The whiskers reach out to the smallest and largest values that aren't outliers.
Let's build one from the truck loads. Eleven values, so the median is the sixth one: thirty one minutes. Q one is twenty six, and Q three is thirty eight. Software can give slightly different quartiles, and that's fine. The box spans twenty six to thirty eight, and the distance between them, the interquartile range, is twelve minutes.
Here's how a box plot flags outliers. Multiply the interquartile range by one and a half: twelve times one and a half is eighteen. Add that to Q three: thirty eight plus eighteen is fifty six. Subtract it from Q one: twenty six minus eighteen is eight. Anything above fifty six or below eight gets its own dot. The sixty two minute truck is an outlier! That was the load where a pallet of tables had to be rewrapped. Bad: delete the outlier so the chart looks tidy. Good: mark it, find out what happened, and learn from it.
Every graph so far ignores time. A run chart puts the values in the order they happened, with time along the bottom and a center line, usually the median. Now you can see trends, shifts and cycles. Bad: a histogram of a whole month, when the problem started on Wednesday. Good: a run chart first, so you know whether the process was steady before you summarize it. Control charts build on this idea.
Two more for your toolbox. A scatter diagram plots pairs of numbers, one on each axis, to show whether two things move together, like oven temperature and cure time. And a normal probability plot checks whether data follows the bell curve: if the points fall close to a straight line, the data is roughly normal, and if they bend away, it isn't. Correlation and regression get their own video.
Worked example: the extra powder
Now let's solve the case of the extra powder. Priya checks five frames a shift, on two shifts, for four days: forty readings. Marcus builds a histogram with seven bins, each point two mils wide, from two point six to four point oh. And look at that! It isn't a bell. There's one hump around three point oh, then a dip, then a second hump around three point six. Two humps. Something is mixed together!
Marcus splits the readings by shift and draws two box plots side by side. First shift's median is about two point nine five mils, right near the target of three. Second shift's median is about three point five five. The boxes don't even overlap! First shift averages two point nine five, and second shift averages three point five six, almost nineteen percent more powder than the target needs. That's where Ellen's extra powder went.
A run chart of the forty readings in time order shows a saw tooth: low, high, low, high, every day at shift change. Priya and Lou watch second shift start up, and find the spacing bar that holds each frame at the right distance from the gun. It has two notches, one for chair frames and one for table frames, and second shift had been leaving it on the table notch, so chairs hung closer to the gun. Lou paints the notches two different colors and adds the notch to the start up checklist. The next week, both shifts average about three point oh mils!
Common mistakes
A few common mistakes. One: trusting an average or a pass rate without plotting the data. Two: picking too few or too many histogram bins. Three: lumping two machines, shifts or suppliers into one graph, which can hide the very difference you're looking for. Four: deleting outliers instead of investigating them. And five: making a histogram when the order of the data matters. Then you need a run chart.
Recap
Let's recap. Graphs show center, spread, shape and outliers at a glance. Dot plots suit small data, and histograms suit larger data, with about the square root of n bins. Shapes are clues: bell, skewed, two humps or a cliff. Stem and leaf plots keep the actual values. Box plots show five numbers and flag outliers beyond one and a half times the interquartile range. And run charts add time.
Check yourself
Now, check yourself. Priya wants to compare slat thickness from mill one and mill two, side by side, and spot any outliers on either mill. Which graph fits best? A, a pie chart. B, side by side box plots. C, one histogram with both mills mixed together. Or D, a table of averages. Pause the video if you want to think about it.
The answer is B, side by side box plots. They show each mill's median, spread and outliers right next to each other. A pie chart shows parts of a whole, not spread. Mixing both mills into one histogram is exactly how a difference hides. And a table of averages tells you nothing about spread or outliers!
Wrap-up
That's graphing data, histograms, box plots and more. Questions? Ask Q-Bot right here in the Academy. And here's one for the road: why did the histogram go to the doctor? It had two humps and wanted a second opinion!
Independent study material; not affiliated with or endorsed by ASQ. Body of Knowledge codes identify where the topic appears in each certification's published outline.