PTS Blog

Custom Solutions | Commercial Utilities | Training | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Utilities

PTS Waterfall Chart Utility
PTS Cluster-Stack Column Chart Utility
PTS Box and Whisker Chart Utility
PTS Marimekko Chart Utility
PTS Dot Plot Utility
PTS Cascade Chart Utility

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Buy me a coffee

If this topic or the whole blog has been helpful, support further development by treating me to a cup of coffee.


Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Introducing Control Charts (Run Charts)

by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2009.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Introduction to Control Charts

While employed as a scientist/engineer for a large manufacturing corporation, I pulled a stint as trainer for my company’s Total Quality program. This role occupied half of my time for three or four years. A large component of our Total Quality initiative was related to Statistical Process Control (SPC). And of all the volumes of course materials used in this training, the most useful was a small, 136-page book called Understanding Variation.

Understanding Variation: The Key to Managing Chaos
Donald J. Wheeler

What made the book so useful was its down-to-earth approach to SPC and its reliance on real business and manufacturing examples.

After discussing the randomness but orderliness of data, the book introduces time series charts. Basically, a record of performance is put on paper, in graphical form, so a quick glance can show whether things are on track. Once you have such a chart, you need a system that helps indicate how much variation is acceptable, and how much means the process is out of control.

Let’s take a look at some sample data. I’ve generated a couple of months of normally distributed process data, which looks like this:

Time series data of x

The gray vertical lines separate adjacent weeks. Without any special training, one could look at this data, see that it varies, and say that “some days are better than others”. But we have no way to characterize the variation. Walter Shewhart first applied some simple but effective numerical techniques to this type of data, and he called the result “control charts”. While the techniques were relatively simple to apply, they were based on solid statistical methods.

The first step is to add a line to the chart above representing the mean of the data:

Time series data of x and x-bar

We still can’t say anything more insightful than the data is distributed about the mean. In order to judge the variability in the data, we need first to quantify the variability. This can be done by analyzing a moving range chart, which is an effective measure of variation in the data, and simpler to compute than the standard deviation (at least in the days prior to desktop computers). Essentially, for a given day, we plot the absolute difference between that day’s value and the previous day’s value.

Time series moving range data

We can add a line for the mean as we did with the chart of raw values:

Time series data of r and r-bar

We still don’t know how much variability is “acceptable”, that is, attributable to common variation in the process. This is where some calculations are required. When using the moving range to determine “typical” variation, the maximum acceptable value of the moving range is 3.27 times the mean of the moving range. For this data, the mean of the moving range is 3.2, so the maximum acceptable moving range, or the Upper Control Limit for Ranges, is 10.5.

Time series data of r with UCL

The variability in moving range is well under the Upper Control Limit (UCL). We can use the moving range to compute the control limits on the individual values data: the mean of the moving range is multiplied by 2.66, then added to and subtracted from the process data mean (this is roughly equivalent to using 3 times the standard deviation of the individual values data). Our Upper and Lower Control Limits (UCL and LCL) are thus 28.1 and 11.1.

Time series data of x with control limits

In conjunction, these two graphs comprise an XMR chart, because it analyzes the X (individual values) and MR (moving range) data.

Time series data of x with control limits

Time series data of r with UCL

A quick glance at these charts shows that the process data falls well within the upper and lower control limits, that is, it is operating within the bounds of random variation, and we can say that the process is “In Control”. In truth, there are additional tests for randomness, because any patterns in the data even within the control limits means the process may be “Out of Control”. A detailed treatment of these additional tests is beyond the scope of this introduction.

In addition to the XMR methodology, there are several other types of control charts, which are used for different types of data and data collection. I plan to describe them in a future post.

Further Reading

ISO 9001 – Introduction to SPC

Control Charts on Wikipedia

Interpreting Control Charts

Selecting the Right Control Chart

Excel Control Charts on the Peltier Tech Web Site

Run Chart with Mean and Standard Deviation Lines

Run Chart with Mean and Standard Deviation Lines

This example shows how to build a run chart with a mean and lines for one standard deviation above and below the mean. For an “official” run chart calculated based on mean and standard deviation, the upper and lower control limits are usually set at ±3 SD. It is a simple matter to adjust the example to show any control limits you have calculated.

Dynamic Control Chart

Dynamic Control Chart

This links to a zipped workbook that uses VBA code to adjust the chart when the data changes. The positions of the lines are adjusted for changes in the data, and the points are formatted so that points below the mean are filled with blue and those above white, while diamonds are used for points within one SD of the mean, circles for two SD, and triangles for three SD; points outside of the control limits are red squares.

Historical note: This was the first chart I ever formatted point-by-point with VBA. Back in Excel 97 on an underpowered Windows 95 laptop, it was very slow, taking almost a minute to process the chart as seen above. It happens in a flash in Excel 2003 on a computer with enough juice to support Windows XP.

Commercial Statistical Process Control Software

If you have a need for extensive Statistical Process Control capabilities, then you are not likely to want to build an entire solution yourself. There are a number of commercial packages that provide SPC functionality for Excel. There is one in particular which I will mention here: SPC for Excel. Written and supported by a client of mine, Business Process Improvement, or BPI Consulting, SPC for Excel is a turnkey SPC system in the form of an Excel add-in. SPC for Excel is compatible with Excel versions 2000 through 2007; this reduced view of its Excel 2007 ribbon tab shows the capabilities of SPC for Excel.

SPC for Excel Ribbon

Possibly Related Posts:

Bookmark and share this entry:
  • Digg
  • del.icio.us
  • Facebook
  • Technorati
  • Twitter
  • StumbleUpon
  • Google Bookmarks
  • Reddit
  • MySpace
  • Slashdot
  • LinkedIn
  • Yahoo! Buzz

Learn how to create Excel dashboards.

Comments


Comment from Damir
Time: Thursday, May 1, 2008, 2:13 pm

How do you calculate sigma when creating a control chart with UCL, LCL and sigma zones (+/- 1 to 3)?
Is the sigma “locked”–meaning calculated on a batch of parts sometimes in past leading to constant LCL and UCL? Or, is it dynamically calculated which leads to LCL and UCL changing over time?
If dynamically, how did (would) you deal with a process with SLOWLY increasing sigma (something getting loose on a machine)?


Comment from Jon Peltier
Time: Thursday, May 1, 2008, 2:48 pm

Hi Damir -

The preferred approach is to calculate the mean and variation parameters (e.g., SD) at a point where the process has stabilized, that is, the process is in control. You then plot these values as the horizontal lines in the control chart, and don’t change them until the process is knowingly changed.

The dynamic control chart that this article links to calculates these parameters on all values in the chart, so if more observations are added, the parameters are recalculated. This is incorrect, as I designed that chart before I had been deeply involved in SPC-related activities.


Pingback from Validate Your Tables with Micro (Control) Charts | More Information per Pixel
Time: Wednesday, August 6, 2008, 4:34 am

[...] just by quickly scanning the shape. Let’s add a bit more science. In another post Jon showed that Control Charts can be used to identify [...]


Comment from darman
Time: Friday, January 30, 2009, 1:23 am

does this Run CC build from runs test (non-par analysis)?

Write a comment

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

PTS Waterfall Chart Utility PTS Cluster-Stack Column Chart Utility PTS Box and Whisker Chart Utility PTS Marimekko Chart Utility PTS Dot Plot Utility PTS Cascade Chart Utility

Create Excel dashboards quickly with Plug-N-Play reports.