Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: Building X-bar and R, and X-bar and s Charts

Q-BOT ACADEMY · FREE VIDEO LESSON · 13 MIN

Going Deeper: Building X-bar and R, and X-bar and s Charts

Because software only knows what you tell it. Give it the wrong subgroup size, or the spec limits, and it draws a beautiful, wrong chart. Know where every line comes from, and you'll spot a bad chart from across the room. And the big idea is simple: the limits come from the process's own short-term variation, the variation inside each subgroup.

12:30 · Q-Bot · narrated, with worked example and a check-yourself question

In short

Plan rational subgroups, and collect twenty to twenty five. X bar chart: X double bar, plus or minus A two R bar. R chart: D three and D four times R bar. For subgroups of ten or more, use S: A three, B three and B four. Build the spread chart first, remove only points with a found cause, then freeze the limits. And remember: control limits come from the process. Spec limits come from the customer!

Check yourself

Priya charts coating thickness with subgroups of four frames. X double bar is three point oh oh mils, and R bar is point two oh. For subgroups of four, A two is point seven two nine, and D four is two point two eight two. What is the upper control limit on the X bar chart? A, three point one five. B, three point four six. C, three point six oh. Or D, three point three oh.

Show the answer

The answer is A, three point one five. A two times R bar is point seven two nine times point two oh, about point one four six. Add it to three point oh oh, and you get about three point one five. B used D four, which belongs on the R chart. C added three times R bar, skipping the constant. And D used three over the square root of four, but forgot to divide by d two. That's building X bar and R, and X bar and S charts. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the control chart break up with the spec sheet? It needed someone who understood its limits!

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

Brindlewood, slat milling. Mill two is back from a spindle bearing rebuild, and Marcus wants it on its own control chart. Dwayne has a shortcut. Same kind of machine, same slat, so just borrow mill one's limits! Marcus shakes his head. Mill one's limits belong to mill one. Every process earns its own limits, from its own data. And at the leg saw, Priya wants one for the digital gauge's ten legs an hour. Two charts, built from scratch!

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: building X bar and R, and X bar and S charts! We'll plan the subgroups, work every formula, build a slat thickness chart by hand, clean it up and freeze it, then build an S chart for leg length. If control charts are new to you, start with the control charts for variables data video.

Why build it by hand?

Why build one by hand, when software draws it in a second? Because software only knows what you tell it. Give it the wrong subgroup size, or the spec limits, and it draws a beautiful, wrong chart. Know where every line comes from, and you'll spot a bad chart from across the room. And the big idea is simple: the limits come from the process's own short-term variation, the variation inside each subgroup.

The recipe

Here's the recipe. One: plan rational subgroups. Parts made close together in time, under the same conditions, so the variation inside a subgroup is only common cause. Four or five parts is typical. Two: collect twenty to twenty five subgroups. Three: for each subgroup, work out the average and the range. Four: find the grand average and the average range. Five: look up the constants for your subgroup size. Six: build the R chart first, then the X bar chart. Seven: clean up, and freeze the limits.

The X-bar and R formulas

Now the formulas. The X bar chart's center line is X double bar, the average of the subgroup averages. Its limits are X double bar, plus or minus A two times R bar, where R bar is the average range. The R chart's center line is R bar. Its upper limit is D four times R bar, and its lower limit is D three times R bar. That's the whole chart: two center lines, four limits, three constants.

Where do A two, D three and D four come from? A table of control chart constants, by subgroup size, in any quality handbook, or built into the software. For subgroups of five: A two is point five seven seven, D three is zero, and D four is two point one one four. They all come from one number, d two, two point three two six for subgroups of five. d two turns the average range into an estimate of sigma: sigma hat equals R bar over d two. And A two is just three, over d two times the square root of n.

Worked example 1: slat mill two

Worked example one: slat mill two. Every hour, Priya measures five slats in a row, for twenty hours over two days. Subgroup one reads eighteen point nine eight, eighteen point nine one, nineteen point oh nine, eighteen point nine one and nineteen point two two millimeters. The average is nineteen point oh two two. The range, largest minus smallest, is nineteen point two two minus eighteen point nine one: point three one. In a spreadsheet, that's AVERAGE, and MAX minus MIN.

Always build the R chart first. The twenty ranges add up to four point eight four, so R bar is point two four two. The upper limit is two point one one four times point two four two: point five one two millimeters. The lower limit is zero. Now plot the ranges. Hour twelve jumps out: a range of point six six, way above the limit! Why check R first? Because the X bar limits are built from R bar. If the ranges aren't in control, the X bar limits can't be trusted either.

So what happened at hour twelve? One slat measured nineteen point six two, out of spec too. Lou looks at the mill and finds a wood chip wedged under the fence. The slat rode up on it. Lou adds an air jet that blows the fence clear on every pass. Because the cause was found and fixed, hour twelve comes out of the calculation. That's the rule: remove a point only when you've found its cause. No cause, it stays in.

Now recompute with nineteen subgroups. The ranges add up to four point one eight, so R bar is point two two. The R chart's upper limit is two point one one four times point two two: point four six five. The largest range left is point four oh, inside. X double bar is nineteen point oh two. A two times R bar is point five seven seven times point two two: point one two seven. So the X bar limits run from eighteen point eight nine to nineteen point one five millimeters. The averages run from eighteen point nine six to nineteen point one three. All in control!

Let's prove those limits make sense. Sigma hat is R bar over d two: point two two over two point three two six, about point oh nine five millimeters for single slats. An average of five slats varies less: divide by the square root of five, and you get about point oh four two. Three times that is point one two seven, exactly A two times R bar. So the limits sit three standard errors from the center. They're much narrower than the spec, because control limits are about averages, from the process. Spec limits are about single slats, from the customer.

Freeze the limits: phase 1 and phase 2

Now freeze the limits. That's the end of phase one, the setup. In phase two, the chart goes on the wall, and every new hour gets plotted against those fixed lines. Don't recompute them every day, or the limits chase the process and hide a slow drift. Recompute only after a deliberate change, from twenty or more new subgroups.

The X-bar and s formulas

Now the second chart. When subgroups are big, ten or more, the range throws information away. It uses only the largest and smallest values, and ignores the eight in between. The standard deviation uses them all. So we swap R for S. The X bar chart becomes X double bar, plus or minus A three times S bar. The S chart's limits are B four times S bar, and B three times S bar. And sigma hat is S bar over c four.

For subgroups of ten, the table gives A three, point nine seven five. B three, point two eight four. B four, one point seven one six. And c four, point nine seven two seven. In a spreadsheet, each subgroup's S is STDEV dot S. A rule of thumb: subgroups of eight or fewer, R is fine and easy by hand. Ten or more, use S. And for one reading at a time, there's a different chart, individuals and moving range, with its own video.

Worked example 2: leg length

Worked example two: leg length at the leg saw. Every leg is cut to four hundred fifty millimeters, spec plus or minus half a millimeter. The digital gauge records every leg, so each hour the operator saves ten in a row. One hour reads an average of four fifty point oh two, with an S of point oh seven eight. Over twenty five hours, all clean, X double bar is four fifty point oh one, and S bar is point oh nine oh.

Build the S chart first. Upper limit: one point seven one six times point oh nine oh, about point one five four. Lower limit: point two eight four times point oh nine oh, about point oh two six. With ten legs, the S chart has a real lower limit. A point below it means less variation: learn why, or check the gauge isn't stuck! Now the X bar chart: point nine seven five times point oh nine oh is about point oh eight eight. So the limits run from four forty nine point nine two to four fifty point one oh.

Two weeks into phase two, one hour's average is four fifty point oh two, right on the center line. But its S is point one nine, above the point one five four limit! Every leg is still in spec, from four forty nine point eight oh to four fifty point two four. The X bar chart alone would have missed it. Lou finds chips piled up behind the saw's stop: the air nozzle had been knocked aside during a cleanup. Nozzle back, and on the daily check sheet. The next hour, S is back to point oh eight. Wobbly chairs stopped before one shipped!

How to read the result and decide

So how do you read the result and decide? In phase one, check the R or S chart first, then X bar. Remove only points with a found cause, then recompute. In phase two, the limits stay fixed: a point outside means look for a cause now. The run rules video adds the patterns to watch for. Two cautions. The constants assume readings inside a subgroup are independent and roughly normal. And in control doesn't mean capable: a stable process can still make scrap, so check it against the spec in a capability study.

Common mistakes

Now the common mistakes. One: putting the spec limits where the control limits go. Two: using the wrong constant, like the subgroup of five numbers on subgroups of four. Three: plotting X bar before checking the ranges. Four: throwing out points with no cause found. Five: recomputing the limits every day. Six: subgroups that mix two machines or two shifts, so the limits get so wide that nothing ever signals. And seven: limits from just a handful of subgroups.

Recap

Let's recap. Plan rational subgroups, and collect twenty to twenty five. X bar chart: X double bar, plus or minus A two R bar. R chart: D three and D four times R bar. For subgroups of ten or more, use S: A three, B three and B four. Build the spread chart first, remove only points with a found cause, then freeze the limits. And remember: control limits come from the process. Spec limits come from the customer!

Check yourself

Now, check yourself. Priya charts coating thickness with subgroups of four frames. X double bar is three point oh oh mils, and R bar is point two oh. For subgroups of four, A two is point seven two nine, and D four is two point two eight two. What is the upper control limit on the X bar chart? A, three point one five. B, three point four six. C, three point six oh. Or D, three point three oh. Pause the video if you want to think about it.

The answer is A, three point one five. A two times R bar is point seven two nine times point two oh, about point one four six. Add it to three point oh oh, and you get about three point one five. B used D four, which belongs on the R chart. C added three times R bar, skipping the constant. And D used three over the square root of four, but forgot to divide by d two.

That's building X bar and R, and X bar and S charts. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the control chart break up with the spec sheet? It needed someone who understood its limits!

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.