Control Chart - history
Control Chart
Developed in 1920s By Dr. Walter A. Shewhart
Process in control
A phenomenon is said to be controlled when, through the use of past experience, we can predict, at least within limits, how the phenomenon may be expected to vary in the future. Walter A. Shewhart, 1931 A production process is said to be in control when the quality characteristics of a product are subject only to random variation (or common cause variation) that is variation in process performance due to normal or inherent interaction among process components (people, machine, material, environment, and methods).
Process out-of-control
A production process is said to be out-of-control when the quality characteristic of a product are subject also to variation due to assignable causes that is variation in process performance due to events that are not part of the normal process and represents sudden or persistent abnormal changes to one or more of the process components.
5
Control Chart
Control charts are useful to establish when a process has endured a meaningful modification; control charts separate the two types of variation in a product quality characteristic.
Control Chart
All control charts have three basic components: a centerline that represents the mean value for the incontrol process two horizontal lines, called the upper control limit (UCL) and the lower control limit (LCL) that define the limits of common variation causes. performance data plotted over time.
7
Control Chart
Common Cause Special Cause
In the process (normal noise) Outside the process (extraordinary)
8
Control Chart
Control charts let you know what your processes can do: you can set achievable goals.
Control Chart
Control charts help to separate signal from noise, so that you can recognize a process change when it occurs. Control charts identify unusual events. They pinpoint fixable problems and potential process improvements.
9 10
They represent the voice of the process. Control charts provide the evidence of stability that justifies predicting process performance.
Control Chart - assumptions
The two important assumptions are: The measurement-function (e.g. the mean), that is used to monitor the process parameter, follows a normal distribution. In practice, if your data seem very far from meeting this assumption, try to transform them. Measurements are independent of each other.
Control Chart 3 sigma
Control limits on a control chart are commonly drawn at 3sigma from the center line because 3-sigma limits are a good balance point between two types of errors: Type I or alpha errors occur when a point falls outside the control limits even though no special cause is operating. Type II or beta errors occur when you miss a special cause because the chart isn't sensitive enough to detect it.
11 12
Control Chart 3 sigma
All process control is vulnerable to these two types of errors. The reason that 3-sigma control limits balance the risk of error is that, for normally distributed data, data points will fall inside 3sigma limits 99.73% of the time when a process is in control. The limits are chosen so that it is likely that unusual causes of variation will be detected.
99.73%
Instabilities and Out-of-Control Situations
To test for instabilities in processes, we examine control charts for instances and patterns that signal non-random behavior. Values falling outside the control limits and unusual patterns within the running record suggest that assignable causes exist. "in control" implies that all points are between the control limits and they form a random pattern.
-4
-3
-2
-1
13
14
Instabilities and Out-of-Control Situations
Instabilities and Out-of-Control Situations
Test 1: A single point falls outside the 3-sigma control limits. Test 2: At least two of three successive values fall on the same side of, and more than two sigma units away from, the center line.
Test 3: At least four out of five successive values fall on the same side of, and more than one sigma unit away from, the center line. Test 4: At least eight successive values fall on the same side of the center line.
15
16
Instabilities and Out-of-Control Situations
Control Chart
Is there a Best Control Chart?
17
18
Variable and attribute data
Two broad classes of control charts: variable data, which is continuous attribute data, which is discrete Choice of what control chart to use should be based on knowing the right assumptions! Use the correct formulas for the kind of control chart selected!
Variable and attribute data
It is important to understand the distinction between variables data and attributes data
Because control limits for attributes data are often computed in ways quite different from control limits for variables data. Unless you have a clear understanding of the distinctions between the two kinds of data, you can easily fall victim to inappropriate control charting methods.
19
20
Variable and attribute data
Variables data (sometimes called measurement data) are usually measurements of continuous phenomena. Examples: measurements of length, weight, volume and speed. Software examples: elapsed time, effort expended, years of experience, memory utilization and cost of rework.
Variable and attribute data
Attributes data occur when information is recorded only about whether an item conforms or fails to conform to a specified criterion or set of criteria. Attributes data almost always originate as counts. Examples: the number of defects found, the number of source statements of a given type, the number of lines of comments in a module of n lines, the number of people with certain skills or experience on a project or team, and the percent of projects using formal code inspections.
21 22
Control Chart selection
Types of Variable Control Chart
X-bar chart R chart s chart Individual chart Moving Range chart
23
24
Types of Variable Control Chart
X-bar chart: based on the average of a subgroup. Subgroups of 2 to 30 samples may be used when computing the control limits for the X-bar chart when based on the range. R chart: takes into account the range of a subgroup. Subgroup sizes may be as small as 2 or as large as 30. S chart: takes into account the standard deviation of a subgroup. There is no limit to the subgroup size.
25
Types of Variable Control Chart
Individual chart: displays each value. A subgroup size is used to compute the limits, with value of 2 being most common, although the subgroup size may be as large as 30. Moving Range chart: takes into account the moving range of a process. It is used to control variability of processes which do not form natural subgroups.
26
Notation for Variable Control charts
n: size of the sample (collection of observations, sometimes called a subgroup) chosen at a point in time m: number of samples selected
Notation and Values
Ri = range of the values in the i-th sample
Ri = max( X i ) min( X i )
R = average range for all m samples
is the true process mean, usually unknown but it can be estimated by averaging a large number (for example 20) of samples mean obtained when the process is in control is the true process standard deviation, usually unknown but it can be estimated from a large sample of data collected while the process is in control
x i = average of the observations in the i-th sample
(where i = 1, 2, ..., m)
x = grand average or average of the averages (this
value is used as the center line of the control chart)
27
28
X-bar charts
Let The process mean is changed during the observation period?
X-bar charts
X = {X 1 ,......, X m } be the set of observations
divided into samples. For each sample X i = {xi1 ,......,xin } compute the average
Xi =
xi1 + xi 2 + L + xin n
and the mean average
X=
29
X1 + X 2 + L + X m m
30
X-bar charts
X i is normally distributed with mean, , and standard deviation, x =/ n. (Central Limit Theorem)
Lower Control Limit: X 3 x X A2R Center Line:
R charts
Is the dispersion of the values observed in the samples due to the presence of exceptional causes?
Upper Control Limit: X + 3 x X + A2R
A2 is a constant based on the subgroup size.
31 32
R charts
Let
R charts
Lower Control Limit: R 3 R D3R Center Line: R Upper Control Limit: R + 3 R D4 R
X = {X 1 ,......, X m }be the set of observation
divided into samples. For each sample X i the range is
Ri = max( X i ) min( X i )
and the range average is
R + R2 + L + Rm R= 1 m
33
D3 and D4 are constants based on the subgroup size.
34
X-bar charts and R charts for a process out-of-control
X-bar charts and R charts
X-bar chart is typically used in conjunction with R chart. In fact, since the sample range is used to construct the X-bar chart, it is essential to examine an R chart first (to be sure that the process variation is stable).
35
36
X-bar charts and R charts
It is important to construct and interpret an R chart before the X-bar chart. When the R chart indicates that process variation is in control, analyze the X-bar chart otherwise X-bar chart are not meaningful
X-bar charts and R charts: example
As an example, suppose you misure those 4 software module sizes each month for 6 months. Our example collected data looks like the following:
37
38
X-bar charts and R charts: example
s charts
Process variability can be controlled by either a R chart or a Standard Deviation chart (s chart) depending on how the population standard deviation is estimated. S chart is used to determine whether the standard deviation has changed.
39
40
s charts
Let
X-bar charts and s charts
X = {X 1 ,......, X m } be the set of observations
Paremeters for X-bar char
divided into samples. For each sample X i the standard deviation is
n
{ {
Lower Control Limit: X 3 x X A3S Center Line:
Si =
and the average is
(x
j =1
ij
xi ) 2
Paremeters for s char
Upper Control Limit: X + 3 x X + A3S Lower Control Limit: S 3 S B3S Center Line:
n 1
1 m S = Si m i =1
41
Upper Control Limit: S + 3 S B4S
42
XmR: Individual and Moving Range charts
An individual chart is equivalent to X-bar but reported to single observation, not to samples. Used when the nature of the process is such that it is difficult or impossible to group measurements into subgroups This occurs frequently in low volume production and in situations in which continuously varying quantities within the process are process-related variables.
43
XmR chart
The solution is to artificially create subgroups from the data and then calculate the range of each subgroup. This is done by creating rolling groups (most often pairs) of data through time and using the pairs to determine the range R. The resulting ranges are called moving ranges.
44
XmR chart
Paremeters for Individual char
XmR chart
The moving range is defined as MRi = xi xi 1 which is the absolute value of the delta between two consecutive data points.
{ {
Lower Control Limit: X 3 x X E2MR Center Line:
Upper Control Limit: X + 3 x X + E2MR Lower Control Limit: max 0, MR 3MR] = max 0, D3MR Center Line: MR Upper Control Limit: MR + 3 MR D4MR
46
Paremeters for Moving Range char
45
XmR chart: example
The following table contains a set of sample data, for the KLOC generated each month for one software module.
XmR chart: example
47
48
Attribute Control Chart
Attribute control charts arise when items are compared with some standard and then they are classified as to whether they meet the standard or not. The control chart is used to determine if the rate of non-conforming products is stable and detect when a deviation from stability has occurred.
Attribute Control Chart
The argument can be made that a LCL should not exist, since rates of nonconforming product outside the LCL is in fact a good thing; we WANT low rates of nonconforming product. However, if we treat these LCL violations as simply another search for an assignable cause, we may learn from the drop in nonconformities rate and possibly permanently improve the process.
49
50
Types of Attribute Control Chart
Types of Attribute Control Chart
p chart: a chart of the percent defective in each sample set. The sample size may vary.
p chart np chart c chart u chart
np chart: a chart of the number defective in each sample set. The samples have the same size. c chart: a chart of the number of defects per unit in each sample set u chart: a chart of the average number of defects in each sample set
51 52
p charts
Suppose y is the number of defective units in a random sample of size n. We assume that y is a binomial random variable with unknown parameter p. Let k be the number of samples.
p charts
i = yi / n The fraction: p plotted on the chart.
for each sample is
The mean sample proportion is p = The variance of the statistic p is
p
j =1
p(1 p) n
53
54
p charts
Using p to estimate the process proportion defective p the center line and upper and lower control limits for the p chart are: Lower Control Limit: p 3 p = p 3 Center Line: p Upper Control Limit:
p charts: example
The variable defect no. contains the number of defective units, and the variable lot sample size contains the lot sample size.
p(1 p) n p(1 p) n
55 56
p + 3 p = p + 3
p charts: example
np charts
It can be used when the sample are of equale size, n. In the same way of the p chart: np = Lower Control Limit: np 3 p = np 3 Center Line: np Upper Control Limit: np + 3 p = np + 3
57
p
j =1
and
np(1 p) n np(1 p) or 0 if UCL<0 n
58
np charts: example
The variable defect no. contains the number of defective units, and the lot sample size is 500.
np charts: example
59
60
c charts
c charts are used to chart count of defects where the area of opportunity for a defect is constant. Es: defects per 1000 feet of base material in a roll of plastic film produced. The area of opportunity could be a physical area (defect/1000ft), a product such as scratches per monitor, an amount of time such as broken spindles per day or any combination of these area of opportunities.
61
c charts
The Poisson probability distribution provides a good model for the probability distribution for the number c of defects. If c possesses a Poisson probability distribution with parameter , then E (c) = and c = . Observe c over a reasonably large number, k , of equally spaced points in time and use c , the average value c of to estimate .
62
c charts
The average value of c is:
c charts: example
c=
c
i =1
Assume that the following table contains defect data for one of the system design document.
So the center line and upper and lower control limits for the c chart are: Lower Control Limit: c 3 c = c 3 c Center Line: c Upper Control Limit: c + 3 c = c + 3 c
63 64
c charts: example
u charts
If the area of opportunity is not constant, use the u chart instead of the c chart. Let be ui the number of defect over ai the i-th area of opportunity then the average number of defect is
u=
u
i =1 k i =1
i
66
65
u charts
The center line and upper and lower control limits for the u chart are: Lower Control Limit: u 3 u / ai Center Line: u Upper Control Limit: u + 3 u / ai
u charts: example
Assume that the following table contains defect data for the system design documents of 8 sofware applications
67
68
u charts: example
Control Chart - conclusions
First Step: Determine what type of data you are working with. Second Step: Determine what type of control chart can be used with your data set. Third Step: Calculate the average and the control limits. Fourth Step: Detect Instabilities and Out-of-Control Situations
69 70