Statistical Quality Control Note
Statistical Quality Control Note
Example 1: A MOHA company produced bottles of various soft drinks. Bottles of Pepsi are
supposed to have 300ml of drink. Bottles are filled by a machine so some will have more than
300ml, some less if the machine is set incorrectly then the bottle will filled too much the
company lose money or the bottle will filled too little customer complain. A company will take a
sample of bottles. If the mean volume is significantly different from 300ml it includes something
wrong in the process.
Example 2: An electrical company makes light bulbs that are suppose to have an average life
time of 1000 hours. A buyer intends to buy a batch of 10,000 bulbs. The buyer first test a sample
of 100 light bulbs if they have a mean life time of ≥ 1000 hours he accepts the batch otherwise
the batch is rejected.
Example 3: A company makes cups and plates. Some of cups might be chipped or cracked. A
sample will be taken to cheek the proportion of cracked cups. If this is above a certain value the
process must be adjusted. In all above three examples
Statistical methods and their application in quality improvement have had a long history. How
long? It is safe to say that when manufacturing began and competition accompanied
manufacturing, consumers would compare and choose the most attractive product. If
manufacturer A discovered that manufacturer B's profits soared, the former tried to improve
his/her offerings, probably by improving the quality of the output, and/or lowering the price.
Improvement of quality did not necessarily stop with the product - but also included the process
used for making the product.
On the other hand, statistical quality control is comparatively new. The science of statistics itself
goes back only two to three centuries. And its greatest developments have taken place during the
20th century. The earlier applications were made in astronomy and physics and in the biological
and social sciences. It was not until the 1920s that statistical theory began to be applied
effectively to quality control as a result of the development of sampling theory. The first to apply
the newly discovered statistical methods to the problem of quality control was Walter A.
Shewhart of the Bell Telephone Laboratories. He issued a memorandum on May 16, 1924 that
featured a sketch of a modern control chart. In 1920s Shewhart introduces the control charts, this
controls the quality of a product as it is being made rather than after it is made. This case is key
components of statistical process control (SPC).
In 1940s because of a war there were a lot of researchers and researches in to statistical process
control would introduce sequential sampling that is was introduced by Wald. For example, take
a sample of 100 items if > 20 items are bad or defective we will reject the batch. This implies
non–sequential sampling; in non–sequential sampling we need try to sample a fixed number of
items. In sequential sampling after we have sampled the “i th” item there are three possibilities:
Accept the batch, Reject the batch, and Sample another item.
In the 1950s, Japan’s industry has been destroyed by wars, they invited American statistician,
“Deming” to introduce statistical methods to industry. Deming introduced “14 point” of good
management and partiality. As a result Japan’s industry has grown. Now statistical quality
control and Deming methods are used in many industries’ worldwide. A brief discussion of
W.E. Deming “14 points” are the following.
This philosophy is summarized in his 14 points for management. We now give a brief statement
and discussion of Deming's 14 points:
x=0 x ( )
P(≤ 1¿ = P(x = 0) + P(x=1) = ∑ 25 (0.01) (0.99)
x 25− x
= (0.99)25*25*0.01*(0.99)24
= 0.7778+0.1964
= 0.9742
2. A Discrete Distribution
Suppose that x is a random variable that represents the actual contents in ounces of a l-lb bag of
1
coffee beans. The probability distribution of x is assumed to be: f(x) = , 15.5 < x < 17.0
1.5
This is a continuous distribution, since the range of x is the interval [15.5, 17.0]. This distribution
is called the uniform distribution.
Note that the area under the function f(x) corresponds to probability, so that the probability of a
17.0
1 1
bag containing less than 16.0 oz is: P(x < 16.o) = ∫ dx = 0.3333.
15.5 1.5 1.5
SPC is an effective method of monitoring a process through the use of control charts. Control
charts enable the use of objective criteria for distinguishing background variation from events of
significance based on statistical techniques. Much of its power lies in the ability to monitor both
process center and its variation about that center, by collecting data from samples at various
points within the process. Variations in the process that may affect the quality of the end product
or service can be detected and corrected, thus reducing waste as well as the likelihood that
problems will be passed on to the customer. With its emphasis on early detection and prevention
of problems, SPC has a distinct advantage over quality methods, such as inspection, that apply
resources to detecting and correcting problems in the end product or service.
In addition to reducing waste, SPC can lead to a reduction in the time required to produce the
product or service from end to end. This is partially due to a diminished likelihood that the final
product will have to be reworked, but it may also result from using SPC data to identify
bottlenecks, wait times, and other sources of delays within the process. Process cycle time
reductions coupled with improvements in yield have made SPC a valuable tool from both a cost
reduction and a customer satisfaction standpoint.
Assignable cause: an assignable cause system is one in which the cause of variation are not
distributed normally but not sporadically. Assignable cause also known as non random cause and
the variation due to these cause is termed as chaotic or erratic or preventive variation. Some of
the important factors of assignable cause of variation generally are improperly adjusted or
controlled machines, operator error and/or substandard or defective raw materials (new
techniques or operations, negligence of operation, wrong or improper handling of the machines ,
faulty equipment, unskilled or in experienced technical staff, and so on). A process that is
operating in the presence of assignable causes is said to be out-of-control. These cause can be
identified and eliminated and have to be traced in any production process before the production
becomes defective. If the article show marked deviation from the given specification of product,
the utility of articles is jeopardy. In that situation, one has to make a search for the cause of
responsible for the large variation in the product. Hence, the role of SQC is to collect and
analysis relevant data for the purpose of detecting weather the process is under control or not.
The control chart is a primary process monitoring techniques widely used for this purpose.
Note that:
Even if, all the point plots inside the control limits, if they behave in a systematic or non
random manner, then this could be an indication that the process is out-of-control. (If the
process is in control, all the plotted points should have random pattern.)
There is a close connection between control charts and hypothesis testing. Say, if the
current values of mean plots are between the control limits, then the process mean is in
control that is it is equal to some target value. On the other hand, if mean is out of either
control limits, then the process is out-of-control that is it is not equal to the target value.
Therefore, a point plotting within the control limits is equivalent to failing to reject the
hypothesis of statistical control; otherwise it is equivalent to rejecting the hypothesis of
statistical control.
Some analysts are using two tests of limits on control charts. These limits are found between the
control limits that used to decide the process is in control with warring and called warring limits.
The following figure shows that the theoretical control chart with only the control limits.
Choice of Control Limits
Widening the control limits will increase the risk of a point falling between the control limits
when the process is really out-of-control. Whereas, if we move the control limits closer to the
center line, the opposite effect is obtained, i.e., increase the risk of a point falling beyond the
control limits when the process is really in control. Therefore, how do we choose the limits?
First note that we do not need the center line. But it is common to have it and it is regarded as the
target line (i.e., value we want to obtain). We want choose the control limits so that: P(target
value is outside the control limits/ process is in control) is small. Similarly, if we want have
warring limits we want choose the warring limits so that: P (target value is outside the warring
limits/ process is in control) to be small.
During the 1920's, Dr. Walter A. Shewhart proposed a general model for control charts as
follows. Let w be a sample statistic that measures some continuously varying quality
characteristic of interest and suppose that the mean of w is w, with a standard deviation of w.
Then the center line, the UCL and the LCL are:
UCL = w + k w
Center Line = w
LCL = w - k w , where k is the distance of the control limits from the center line,
expressed in terms of standard deviation units.
Let our target value is X-bar, then we might use the 95%/ and 99% rule, i.e., solve
P(LCL < X-bar < UCL/ process is in control) = 0.99 and P(LWL < X-bar < UWL/ process is in
control) =0.95. If the distribution of X is normal with mean μ and variance σ 2, then the
distribution of X-bar is normal with mean μ and variance σ 2/n. After some mathematical
operations the confidence interval for X-bar with 95% and 99% confident becomes:
σ σ σ σ
P(μ –1.96* < X-bar < μ+1.96* ) = 0.95 & P(μ–2.58* < X-bar < μ+2.58* ) = 0.99.
√n √n √n √n
Hence we choose:
σ
UCL = μ+2.58* ,
√n
σ
UWL = μ+1.96* ,
√n
CL = μ,
σ
LWL = μ-1.96* and
√n
σ
LCL = μ - 2.58* . It is known as European Convention.
√n
Another way of choosing the limits is to use 2-sigma and 3-sigma methods. Therefore, if we use
the 2 and 3-sigma methods the above formula becomes:
σ
UCL = μ+3* ,
√n
σ
UWL = μ+2* ,
√n
CL = μ,
σ
LWL = μ-2* and
√n
σ
LCL = μ - 3* . It is known as Anglosaxon Convention.
√n
Possible Decision Rules
The most common decision rule is say: out-of-control, in control or issue warring. If we do not
use warring limits we can use the rule say out-of-control and in control. The following control
chart shows the decision rules what we considered.
If a data point falls outside the control limits, we assume that the process is probably out of
control and that an investigation is warranted to find and eliminate the cause or causes. Does this
mean that when all points fall within the limits, the process is in control? Not necessarily! If the
plot looks non-random, that is, if the points exhibit some form of systematic behavior, there is
still something wrong. For example, if seven points in a row either above or below the center line
and/or five points in a row either increasing-Run up: a series of observations are increasing and
Run down: a series of observations are decreasing or, we would wish to know why this is so.
Statistical methods to detect sequences or nonrandom patterns can be applied to the
interpretation of control charts. To be sure, "in control" implies that all points are between the
controls limits and they form a random pattern. This type of method is that detecting the
Statistical process control known as Monogram convention. How do we Measure the
Performance of a Chart?
There are two common methods of measuring the performance of a control chart the power
function and average run length.
I. The Power Function
The power function is equal to the probability of the process is out-of-control at sample i
regarded as a function of parameter the mean and variance of i. if the control chart is good the
power function will be small (close to 0) when the process is in control and large (close to 1)
when it is out-of-control.
II. Average Run Length
The time until a process is found to be out-of-control is called a run. This time is a random
variable. Its expectation is called the ARL. Essentially, the ARL is the average number of points
that must be plotted before a point indicates an out-of-control condition. Ideally we want the
ARL to be large when the process is in control and small when it is out-of-control. If the process
observations are uncorrelated, then for any control chart, the ARL can be calculated easily from
ARL= 1/p, where p is probability that any point exceeds the control limits. This equation is can
be used to evaluate the performance of the control chart.
To illustrate, for the chart with three-sigma limits, p = 0.0027 is the probability that a single point
falls outside the limits when the process is in control. Therefore, the average run length of the X
1 1
chart when the process is in control (called ARL0) is: ARL0 = = =370.
p .0027
That is, even if the process remains in control, an out-of-control signal will be generated every
370 sample, on the average.
It is also occasionally convenient to express the performance of the control chart in terms of its
average time to signal (ATS). If samples are taken at fixed intervals of time that are h hours
apart, then ATS = ARLh.
Use of Control Chart
Control chart have had a long history of use in U.S. industries and in many offshore industries as
well. There are at least five reasons for their popularity.
1. Control charts are a proven technique for improving productivity
2. Control charts are effective in defect prevention
3. Control charts prevent unnecessary process adjustment
4. Control charts provide diagnostic information
5. Control charts provide information about process capability.
Suppose that n observations are to be made at each time in which the process is checked. Let Xi
be the ith observation (i = 1,…,n) at the specified time point. Let X j be the average of n
observations at time j. If E(Xi) = μ and Var(Xi) = σ 2 for a process in control, then X i should be
2
σ
approximately normally distributed with E( X i ) = μ and E( X i ) = .
n
Now since X i has approximately a normal distribution, we can find the interval that will have a
probability of 1- α of containing X i . This interval is μ± z α / 2 ( )
σ
√n
. If the mean and variation
of the population (the µ and σ) is known then, we can set the lower and the upper control limits
( )
at μ−z α / 2 σ
√n
and μ+ z
α / 2
σ .
√n ( )
In practice, we usually will not know it μ and σ . Therefore, they must be estimated from
preliminary samples or subgroups taken when the process is thought to be in control. These
estimates should usually be based on at least 20 to 25 samples. Suppose that m samples are
available, each containing n observations on the quality characteristic. Typically, n will be small,
often either 4, 5, or 6. These small sample sizes usually risk from the construction of rational
subgroups and from the fact that the sampling and inspection costs associated with variables
measurements are usually relatively large. Let X 1 , X 2 , ... X m be the average of each sample. Then
the best estimator of it, the process average, is the grand average--say,
X 1+ X 1 +… X m
X́ = ....................................................................2.2
m
Thus, X́ whould used as the center line on the X 1 chart.
To construct the control limits, we need an estimate of σ . Here we may estimate σ from either
standard deviations or the ranges of the m samples. Possibilities to estimate σ are the following.
√
m
1
i. ∑ S 2, square root of mean of sample variances, where j=1, 2, 3, …, m.
m j=1 j
1
m
Rj Rj
ii. ∑
m j=1 d 2 ,n
, where d2,n is a constant and chosen to make
d 2 ,n
is an unbiased estimate of
σ.
1
m
Sj Sj
iii. ∑
m j=1 c 2, n
, where c2,n is a constant and chosen to make
c 2 ,n
is an unbiased estimate of
σ.
For now, we will use the range method and if X 1, X2, X3, …,Xn is a sample of size n from the m
samples, the R1, R2, R3,….Rm be the range of the m samples and R is the mean of the range. We
may now give the formula for constructing the control limits on the X-bar chart as follows.
R̄
Though { R̄ has a relationship with σ, it is not an unbiased estimator. However, the ratio is! Here, d2,n ¿is obtained from the tables. Thus, the mew control limits becomes:¿¿
d2,n
R̄ 3
X̄¯ ∓ z α /2 or { X̄¯ ∓ A2 R̄ , where A 2 = using 3-sigma method .¿
d2 , n √ n d 2, n √ n
II.2.2 Control Chart for R
Deciding whether the center of the distribution of quality measurements has shifted up or down
may not be enough. It is frequently of interest to decide if the variability of the process
measurements has significantly increased or decreased. A process that suddenly starts turning out
highly variable products could cause severe problems in the operations. Process variability may
be monitored by plotting values of the sample, R or the sample standard deviation, S on a control
chart. Because the control limits on the X-bar chart depend on the process variability, unless
process variability is in control, these limits will not have much meaningless. Since we already
have established the fact that there is a relationship between the ranges (Rj) and σ, it would be
natural to base our control chart for variability on the Rj’s. A control chart for variability could be
based on the adjusted standard deviation also (Sj), but use of ranges provides nearly as much
accuracy for much less computation. Using the same argument as control chart for central
tendency (x-bar), one could construct that the center line and control limits for R chart as
follows.
Now E ( R j ) =d 2 , n σ ; Var ( R j )=d32 , n σ 2 ; where d 2, n and d 3, n are found in standard tables .
The confidence interval, then, is: d 2, n σ±z α / 2 d3 , n σ =σ ( d 2, n ±z α / 2 d 3 , n ) .
As in the previous chart (X-bar chart), if σ is not specified, it must be estimated from the data.
The best estimator of σ based on the range is R̄/d , and the estimator of the control limits then
2 ,n
becomes:
( )
R̄ d
( d 2, n ±z α /2 d 3 , n ) ; or { R̄ 1±z α /2 3 , n once again, if we use the 3-sigma method we have z α /2 =3 . ¿
d 2, n d2 , n
( ) ( )
d3 , n d
Letting, 1−3 =D 3 ; and 1+3 3, n =D4 , the control limit becomes ( R̄ D3 , R̄ D4 ) . Values of D3 and
d2 , n d 2, n
D4 are found in statistical tables.
Note that the lower control limit for R-chart can give a negative value but R could not be
negative so this does not make sense. Therefore, we replace the lower control limit by zero if we
get a negative value.
Examples
1. A machine is set to deliver packets of a given weight. 10 sample of size 5 each were
recorded. Below a given relevant data:
Sample Number 1 2 3 4 5 6 7 8 9 10
Mean ( ) 15 17 15 18 17 14 18 15 17 16
Range (R) 7 7 4 9 8 7 12 4 11 5
Calculate the central line and the control limits for X-bar and R-charts and also draw the
charts and then comment the state of control.
2. You are given the values of sample means ( ) and the sample range ( R) ten samples of
five size of each. Draw the X-bar and R-charts and comment on the state of control of the
process.
Sample Number 1 2 3 4 5 6 7 8 9 10
43 49 37 44 45 37 51 46 43 47
R 5 6 5 7 7 4 8 6 4 6
3. Consider the Glass container strength data (Psi) and construct the X-bar and R-
charts and then comment the statistical state of control.
II.2.2.1 Changing Sample Size on the X-bar and R-charts
We have presented the development of X and R charts assuming that the sample size n is
constant from sample to sample. However, there are situations in which the sample size n is not
constant one situation is that of variable sample size; that is, each sample may consist of a
different number of observations. The X and R charts are generally not used in this case because
they lead to a changing center line on the R chart, which is difficult to interpret for many users.
Another situation is that of making a permanent (or semi-permanent) change in the sample size
because of cost or because the process has exhibited good stability and fewer resources are being
allocated for process monitoring. In this case it is easy to recompute the new control limits
directly from the old ones without collecting additional samples based on the new sample size.
Let
Rold = average range for the old sample size
Rnew = average range for the new sample size
n old = old sample size
n old = new sample size
d1(old) = factor d2 for the old sample size
d2(new) = factor d2 for the new sample size
For the X chart the new control limits are
UCL = X́ + A2 [ ] d 2(new)
R
d 2 (old) old
LCL = X́ - A2
[ ]
d 2(new)
d 2 (old)
R old where the center line is unchanged and the factor As is selected for
the new sample size. For the R chart, the new parameters are:
UCL = D2 [ ]
d 2(new)
R
d 2 (old) old
CL = Rnew = [ ]
d2 (new)
d 2(old)
R old
LCL = max{0, D2
[ ] d 2(new)
d 2 (old)
R old } ,where D3 and D4 are selected for the new sample size.
Exercise!: consider the X-bar and R-charts developed in the above examples. These charts were
based on a sample of five in size. Suppose that since the process exhibits good control, the
process personnel want to reduce the sample size to three, then reconstruct the X-bar and R-
charts.
2. The number of points above and below the center line are about the same.
3. Points seem to fall randomly above and below the center line.
4. Most points are near center line, and only a few are close to control limits.
One point outside control limits: measurement or calculation error, power surge, a broken tool,
incomplete operation.
Sudden shift in process average: new operator or inspector, new machine setting.
Cycles: operator rotation or fatigue at the end of shift, different gauges, seasonal effects such as
temperature and humidity.
Trends: x-bar-chart – learning effect, dirt or chip buildup, tool wear, aging of equipment; R-
chart (increasing trend) – gradual decline in material quality; R-chart (decreasing trend) –
improved skills, better materials.
Hugging the center line: sample taken over various machines canceling out the variation within
the sample.
Hugging the control limits: sample taken over various machines not canceling out the variation
within the sample.
Note that, in interpreting patterns on the X-bar and R-charts, one should consider the two charts
jointly. If X is normally distributed with mean μ and σ 2 , then X-bar and R are statistically
independent. If there is correlation between the X-bar and R values that is, if the points on the
two charts “follow” each other then this indicates that the underlying distribution is skewed.
the center line and the control limits of the S-chart are as follows.
CL = C4σ
LCL = C4σ - 3σ √ 1−C 24. Let we define B5 = C4 - 3 √ 1−C 24 and B6 = C4 + 3 √ 1−C 24, then
In practice, σ is unknown, then it must be estimated by analyzing past data. Suppose that m
preliminarily samples are available, each of size n, and let S j be the standard deviation of the j th
m
sample. Then S =
∑ Sj. We know that the statistic
S
is an unbiased estimator of σ .
j =1 C4
m
Therefore, the parameters of the S-chart would be:
3 3
now we let assign B3 = 1 - C4
√ 1−C 2
4
and B4 = 1 + C4
√ 1−C , then
2
4
The other steps in the construction of s-chart are same as the case of R-chart. The sample number
is taken along horizontal scale and the statistic standard deviation is taken along the vertical
scale. The sample standard deviation s1, s2, s3….sk are plotted as points against the corresponding
sample numbers. The central line is drawn at S (grand) and UCLs and LCLs are plotted as
control limits at the computed values given.
Similarly, the parameters of the chart would be
3
If we assign here also A3 = C , then UCL = X́ + A3 S, CL = X́ and LCL = X́ - A3 S. , the
4 √n
"grand" mean is the average of all the observations and A3, B3 and B4 are tabulated values.
Remark: S-charts are interpreted the same as R-charts. Theoretically s-chart appears to be more
appropriate than R-charts for controlling dispersion of the process. But the difficulty of
computation makes the use of s-chart almost impractical in most industry work. In practice, R-
chart is preferred to s-chart because of its computational case.
Example: consider the following data and construct the X-bar and S-charts and then comment on
the statistical sate of control.
The X-bar and S-charts with Variable Sample Size
The X and s control charts are relatively easy to apply in cases where the sample sizes are
variable. In this case, we should use a weighted average approach in calculating X́ and S. If ni is
m
∑ ni X i
i=1
th
the number of observations in the i sample, then use: X́ = m and S = ¿ ¿as the center fines
∑ ni
i=1
on the X and s control charts, respectively. The control limits would be calculated from the
above formula, but the constants A 3, B3 and B4 will depend on the sample size used in each
individual subgroup.
Note that if the nj are not very different, the constants A 3, B3 and B4 are based on an average
sample size of n.
Exercise!: Consider the following data and construct the X-bar and S-charts and also
comment for the statistical sate of control.
II.2.4 Control Chart for S2
Most quality engineers use either the R chart or the s chart to monitor process variability, with s
preferable to R for moderate to large sample sizes. Some practitioners recommend a control chart
based directly on the sample variance s2. The parameters for the s 2 control chart are:
2
S 2
UCL = χα
n−1 2
CL = S2
2
S 2
LCL = χ 1−α ,
n−1 2
2 2 α
where χ α and χ 1−α , n-1denote the upper and lower percentage points of the chi-square
2 2 2
distribution with n - 1 degrees of freedom, and S2 is an average sample variance obtained from
the analysis of preliminary data.
n
Note that if S2 = ∑ ¿¿ ¿ is the sample variance of a random sample from a normal distribution
i=1
2
2 (n−1) S
with mean μ and variance σ , then has a chi-square distribution with n-1, that is,
σ2
2
(n−1) S χ 2α
,(n−1).
σ2 2
Repeat measurements on the process differ only because of laboratory or analysis error, as in
many chemical processes.
• X Charts can be interpreted similar to X-bar charts. MR charts cannot be interpreted the
same as X-bar or R charts.
• Since the MR chart plots data that are “correlated” with one another, then looking for
patterns on the chart does not make sense.
It is better to summarize in one place the various computational formulas for the major types
of variables control charts in this section. The formula for X-bar, R, S and S 2-charts are given
in the following table.
Formulas for control charts when σ is known
Chart Center Line Control Limits
X ( μ∧σ known) μ μ ∓ Aσ
R(σ known) d2,n σ UCL = D2σ , LCL = D1σ
S (σ konwn ) C4 σ UCL = B6σ , LCL = B5σ
Formulas for control charts when σ is unknown
X (using R ) X́ X́ ∓ A2 R
R R UCL=D4 R ,LCL=D3 R
S S UCL=B4 S, LCL = B3 S
X (using S ) X́ X́ ∓ A3 S
S2 S
2
S
2
2
UCL= χα , LCL =
n−1 2 , ,(n−1)
2
S 2
χ 1−α
n−1 2 , ,(n−1)
X (Using moving Range) X 3
X∓ MR
d 2 ,n
MR MR UCL=D4 MR , LCL=D3 MR
Tabulated values for constants
n A2 d2 Dl D2 D3 D4
2 1.88 1.128 0 3.686 0 3.268
3 1.023 1.693 0 4.358 0 2.574
4 0.729 2.059 0 4.698 0 2.282
5 0.577 2.326 0 4.918 0 2.114
6 0.483 2.534 0 5.078 0 2.004
7 0.419 2.704 0.204 5.204 0.076 1.924
8 0.373 2.847 0.388 5.306 0.136 1.864
9 0.337 2.970 0.547 5.393 0.184 1.816
10 0.308 3.078 0.687 5.469 0.223 1.777
11 0.285 3.173 0.811 5.535 0.256 1.744
12 0.266 3.258 0.922 5.594 0.284 1.717
13 0.249 3.336 1.025 5.647 0.308 1.692
II.3 Control Charts for Attributes
Introduction
Attributes charts are generally not as informative as variable charts because there is typically
more information in a numerical measurement than in merely classifying a unit as conforming or
nonconforming. However, attribute charts do have important applications. They are particularly
useful in service industries and in no remanufacturing quality improvement efforts because so
many of the quality characteristics found in these environments are not easily measured on a
numerical scale.
2.3.1 The Control Chart for Fraction Nonconforming (Control Chart for P)
The fraction nonconforming is defined as the ratio of the number of nonconforming items in a
population to the total number of items in that population. The items may have several quality
characteristics that are examined simultaneously by the inspector. If the item does not conform to
standard our one or more of these characteristics, it is classified as nonconforming.
The statistical principles underlying the control chart for fraction nonconforming are based on
the binomial distribution. Suppose the production process is operating in a stable manner, such
that the probability that any unit will not conform to specifications is p, and that successive units
produced are independent. Then each unit produced is a realization of a Bernoulli random
variable with parameter p. If a random sample of n units of product is selected, and if D is the
number of units of product that are nonconforming, then D has a binomial distribution with
of the random variable D are np and np(1 -p), respectively. The sample fraction nonconforming
is defined as the ratio of the number of nonconforming units in the sample D to the sample size
D
n; that is, ^p = . The distribution of the random variable ^p can be obtained from the binomial.
n
p (1− p)
Furthermore, E( ^p ¿ = μ = p and Var( ^p ¿ = σ 2^p = . This background is sufficient to
n
develop the control chart for proportion or fraction nonconforming. The chart is called the p-
chart.
If the true fraction conforming p is known (or a standard value is given), then the center line and
control limits of the fraction nonconforming control chart are:
When the process fraction (proportion) p is not known, it must be estimated from the available
data. This is accomplished by selecting m preliminary samples, each of size n. If there are Di
defectives in sample i, the fraction nonconforming in sample i is
The statistic P estimates the unknown fraction nonconforming p. The center line and control
limits of the control chart for fraction nonconforming are computed as follows:
Fraction Nonconforming Control Chart: No Standard Given
UCL = P+3
√ P(1−P)
n
CL = P
LCL = P−3
√ P (1−P)
n
Generally a control chart for fraction of defectives is used when sample unit as a whole classified
as goods or bads, i.e. defective or non-defective. Construction of p chart is as in the case of
and R charts we take the sample number along the horizontal scale and the statistic ‘p’ along the
vertical scale. The sample fraction defective p 1, p2, p3…pk are plotted against the corresponding
sample numbers as points (dots).
Remarks:
1. Since p cannot be negative, if LCLp computed from the above formula comes out to be
negative then it is taken as zero.
2 Interpretation of p charts: p charts interpreted similarly as an or R charts. If all the sample
points fall within the control limits, the process is termed to be statistically in control. If one or
more of the points go out sides the control limits, it is said to be statistically out-of-control. If the
point goes above the UCLp, it reflects the lack of the statistical control since it has changed for
the worse. Such a point, known as high spot, indicates deterioration in the lot quality. Reasons
for this should be traced and eliminated. If the point goes below the LCLp, it again exhibits lack
of control as the process has changed for the better. Such a point, known as low spot, indicates
improvement in the lot quality. Reasoning for this should be looked for and incorporated in to
the process if possible.
Example:
Frozen orange juice concentrate is packed in 6-oz cardboard cans. These cans/containers are
formed on a machine by spinning them from cardboard stock and attaching a metal bottom panel.
By inspection of a can, we may determine whether, when filled, it could possibly leak either on
the side seam or around the bottom joint. Such a nonconforming can has an improper scat on
either the side seam or the bottom panel. We wish to set up a control chart to improve the
fraction of nonconforming cans produced by tiffs machine.
To establish the control chart, 30 samples of n = 50 cans each were selected at half-hour intervals
over a three-shift period in which the machine was in continuous operation. The results are given
in the following table.
Solution: since the 30 samples of n=50 cans each were selected at half-hour intervals over a
three-period in which the machine was in continuous operation.
Therefore,
2.3.2 The np Control Chart
It is also possible to base a control chart on the number nonconforming rather than the fraction
nonconforming. This is often called an np control chart.
If the sample size is constant for all samples, say n, then the sampling distribution of the statistic,
d = np number of nonconforming/defective in the sample is given by,
E (d) =np
UCL = n ^p +3 √ np(1−p)
CL = n ^p
LCL = n ^p -3 √ np(1−p)
If p is not known, then its unbiased estimate provided by (grand) given in previous charts i.e. p-
charts.
UCL= n +3 √ P̄(1− P̄ )
CL= n
LCL= n -3 √ P̄(1− P̄ )
Remarks: if the sample size is varies from sample to sample, then np chart would be quite
uncomfortable to use because the central lines as well as the control limits would vary from
sample to sample. In such a case p chart would be better to use. However, in case of constant
sample size for all samples any one of np or p charts may be used but, in practice, p chart
commonly used. In the other way, many non-statistically trained personnel find the np chart
easier to interpret than the usual fraction nonconforming control chart.
Example: consider the data in the example above for the fraction nonconforming Orange Juice
concentrate cans.
In some applications of the control chart for fraction nonconforming, the sample is a 100%
inspection of process output over some period of time. Since different numbers of units could be
produced in each period, the control chart would then have a variable sample size. There are
different approaches to constructing and operating a control chart with a variable sample size.
The first and perhaps the most simple approach is to determine control limits for each individual
sample that are based on the specific sample size. That is, if the i th sample is of size n i, then the
inversely proportional to the square root of the sample size. To illustrate this approach, consider
the data given below for the 25 samples.
Solution:
The control chart is shown above and two points plot outside the control limits, samples 6 and
20. Investigation of sample 6 revealed that a new inspector had examined the boards in this
sample and that he did not recognize several of the types of nonconformities that could have
been present. Furthermore, the unusually large number of nonconformities in sample 20 resulted
from a temperature control problem in the wave soldering machine, which was subsequently
repaired. Therefore, it seems reasonable to exclude these two samples and revise the trial control
472
limits. The estimate of c is now computed as: c = = 19.78 and the revised control chart
24
limits are:
These become the standard values against which production in the next period can be compared.
Note that, with complex products such as automobiles, computers, or major appliances, we
usually find that many different types of nonconformities or defects can occur. Not all of these
types of defects are equally important. A unit of product having one very serious defect would
probably be classified as nonconforming to requirements, but a unit having several minor defects
might not necessarily be nonconforming. In such situations, we need a method to classify
nonconformities or defects according to severity and to weight the various types of defects in a
reasonable manner Demerit schemes can be of value in these situations. One possible demerit
scheme is defined as follows.
Class A Defects-Very Serious: The unit is either completely unfit for service, or will fail in
service in such a manner that cannot be easily corrected in the field, or will cause persona/injury
or property damage.
Class B Defects-Serious: The unit will possibly suffer a Class A operating failure, or will
certainly cause somewhat less serious operating problems, or will certainly have reduced life or
increased maintenance cost.
Class C Defects-Moderately Serious: The unit will possibly fail in service, or cause trouble that
is less serious than operating failure, or possibly have reduced life or increased maintenance
costs, or have a major defect in finish appearance, Or quality of work.
Class D Defects-Minor: The unit will not fail in service but has minor defects in finish,
appearance, or quality of work.
Guidelines for Implementing Control Charts
Almost any process will benefit from SPC, including the use of control charts. In this section, we
present some general guidelines helpful in implementing control charts. Specifically, we deal
with the following:
1. Determining which process characteristics to control
2. Determining where the charts should be implemented in the process
3. Choosing the-proper type of control charts
4. Taking actions to improve processes as the result of SPC/control chart analysis
5. Selecting data-collection systems and computer software
The guidelines are applicable to both variables and attributes control charts. Remember, control
charts are not only for process surveillance; they should be used as an active, on-line method for
reduction of process variability.
The u-Chart
A control chart for nonconformities is constructed with the sample size exactly equal to one
inspection unit. The inspection unit is chosen for operational or data- collection simplicity.
However, there is no reason why the sample size must be restricted to one inspection unit. In
fact, we would often prefer to use several inspection units in the sample, thereby increasing the
area of opportunity for the occurrence of nonconforminities.
The sample size should be chosen according to statistical considerations, such as specifying a
sample size large enough to ensure a positive lower control limit or to obtain a particular
probability of detecting a process shift. Alternatively, economic factors could enter into sample-
size determination. There are two general approaches to constructing the revised chart once a
new sample size has been selected. One approach is simply to redefine a new inspection unit that
is equal to n times the old inspection unit. The second approach involves setting up a control
chart based on the average, number of nonconformities per inspection unit. If we find x total
nonconformities in a sample of n inspection units, then the average number of nonconformities
per inspection unit is u = x/n, where x is a Poisson random variable, consequently, the
parameters of the control chart for the average number of nonconformities per unit are as:
UCL = u + 3√ u/n, CL = u and LCL = u - 3√ u.
Determining which Characteristics to Control and where to Put the Control Charts
At the start of a control chart program, it is usually difficult to determine which product or
process characteristics should be controlled and at which points in the process to apply control
charts. Some useful guidelines follow.
1. At the beginning of a control chart program, control charts should be applied to any
product characteristics or manufacturing operations believed to be important. The charts
will provide immediate feedback as to whether they are actually heeded.
2. The control charts found to be unnecessary should be removed, and others that
engineering and operator judgment indicates may be required should be added. More
control charts will usually be employed at the beginning than after the process has
stabilized.
3. Information on the number and types of control charts on the process should be kept
current. It is best to keep separate records on the variables and attributes charts. In
general, after the control charts are first installed, we often find that the number of control
charts tends to increase rather steadily. After that, it will usually decrease: When the
process stabilizes, we typically find that it has the same number of charts from one year
to the next. However, they are not necessarily the same charts,
4. If control charts are being used effectively and if new knowledge is being gained about
the key process variables, we should find that the number of X and R charts increases and
the number of attributes control charts decreases.
5. At the beginning of a control chart program there will usually be more attributes control
charts, applied to semi finished or finished units near the end of the manufacturing
process. As we learn more about the process, these charts will be replaced with X and R
charts applied earlier in the process to the critical parameters and operations that result in
nonconformities in the finished product. Generally, the earlier that process control can be
established, the better. In a complex assembly process, this may imply that process
controls need to be implemented at the vendor or supplier level.
6. Control charts are an on-line, process-monitoring procedure. They should be
implemented and maintained as close to the work center as possible, so that feed- back
will be rapid. Furthermore, the process operators and process engineering should have
direct responsibility for collecting the process data, maintaining the charts, and
interpreting the results. The operators and engineers have the detailed knowledge of the
process required to correct process upsets and use the control chart to improve process
performance. Microcomputers can speed up the feedback and should be an integral part
of any modem, on-line, process-control procedure.
7. The out-of-control-action plan (OCAP) is a vital pan of the control chart. Operating and
engineering personnel should strive to keep OCAPs up-to-date and valid.
Choosing the Proper Type of Control Chart
A. X and R (or X and S) charts: Consider using variables control charts in these situations:
1. A new process is coming on stream, or a new product is being manufactured by an
existing process.
2. The process has been in operation for some time, but it is chronically in trouble or
unable to hold the specified tolerances.
3. The process is in trouble, and the control chart can be useful for diagnostic purposes
(troubleshooting).
4. Destructive testing (or other expensive testing procedures) is required.
5. It is desirable to reduce acceptance-sampling or other do wrist ream testing to a
minimum when the process can be operated in control.
6. Attributes control charts have been used, but the process is either out of control or in
control but the yield is unacceptable.
7. There are very tight specifications, overlapping assembly tolerances, or other difficult
manufacturing problems.
8. The operator must decide whether or not to adjust the process, or when a setup must be
evaluated.
9. A change in product specifications is desired.
10. Process stability and capability must be continually demonstrated, such as in regulated
industries.
B. Attributes Charts (p charts and c charts): Consider using attributes control charm in these
situations:
1. Operators control the assignable causes, and it is necessary to reduce process fail out.
2. The process is a complex assembly operation and product quality is measured in terms of
the occurrence of nonconformities, successful or unsuccessful product function, and so
forth.
3. Process control is necessary, but measurement data cannot be obtained.
4. Attributes control charts, such as p charts and c charts are very effective for summarizing
information about the process for management review.
5. Remember that attributes charts are generally inferior to charts for variables. Always use
X and R or X and s charts whenever possible.
C. Control Charts for Individuals: Consider using the control chart for individuals in
conjunction with a moving-range chart in these situations:
1. It is inconvenient or impossible to obtain more than one measurement per sample, or
repeat measurements will only differ by laboratory or analysis error.
2. Automated testing and inspection technology allow measurement of every unit produced.
3. The data become available very slowly, and waiting for a larger sample will be
impractical or make the control procedure too slow to react to problems.
2.4 Process and Measurement System Capability Analysis
Statistical techniques can be helpful throughout the product cycle, including development
activities prior to manufacturing, in quantifying process variability, in analyzing this variability
relative to product requirements or specifications, and in assisting development and
manufacturing in eliminating or greatly reducing this variability. This general activity is called
process capability analysis.
Process capability refers to the uniformity of the process. Obviously, the variability of critical-
to- quality characteristics in the process is a measure of the uniformity of output. There are two
ways to think of this variability:
We are often required to compare the output of a stable process with the process specifications
and make a statement about how well the process meets specification. To do this we compare
the natural variability of a stable process with the process specification limits. A capable process
is one where almost all the measurements fall inside the specification limits. It is customary to
take the 6-sigma spread in the distribution of the product quality characteristic as a measure of
process capability. The following figure shows a process for which the quality characteristic has
a normal distribution with mean μ and standard deviation σ . The upper and lower natural
tolerance limits of the process fall at μ + 3σ and μ - 3 σ , respectively; that is,
UNTL = μ + 3σ
LNTL = μ - 3 σ
For a normal distribution, the natural tolerance limits include 99.73% of the variable, or put
another way, only 0.27% of the process output will fall outside the natural tolerance limits. Two
points should be remembered:
1. 0.27% outside the natural tolerances sounds small, but this corresponds to 2700
nonconforming parts per million.
2. If the distribution of process output is non-normal, then the percentage of output falling
outside μ ± 3σ may differ considerably from 0.27%.
Process capability analysis is a vital part of an overall quality-improvement program. Among the
major uses of data from a process capability analysis are the following:
Thus, process capability analysis is a technique that has application in many segments of the
product cycle, including product and process design, supply chain management, production or
manufacturing planning, and manufacturing. Note that, the estimate of process capability may be
in the form of a probability distribution having a specified shape, center (mean), and spread
(standard deviation). Therefore, some reasons for poor process capability may poor process
centering and/or excess process variability.
The primary techniques are used in process capability analysis: histograms or probability plots,
Process capability ratios, control charts, and designed experiments and we will consider in
this section only some.
The histogram can be helpful in estimating process capability. Alternatively, a stem-and- leaf
plot may be substituted for the histogram. At least 100 or more observations should be available
for the histogram (or the stem-and-leaf plot) to be moderately stable so that a reasonably reliable
estimate of process capability may be obtained. The histogram, along with the sample average X-
bar and sample standard deviation s, provides information about process capability.
To illustrate the use of a histogram to estimate process capability, consider the following
histogram, which presents the bursting strength (psi) of 100 glass containers.
Analysis of the 100 observations gives: X = 264.06 and s = 32.02. Consequently, the process
capability would be estimated as: X ± 3s or 264.06 + 3(32.02) ≈ 264 + 96 psi.
Furthermore, the shape of the histogram implies that the distribution of bursting strength is
approximately normal. Thus, we can estimate that approximately 99.73% of the bottles
manufactured by this process will burst between 168 and 360 psi. Note that we can estimate
process capability independent of the specifications on bursting strength.
An advantage of using the histogram to estimate process capability is that it gives an immediate,
visual impression of process performance. It may also immediately show the reason for poor
process performance.
Probability plotting is an alternative to the histogram that can be used to determine the shape,
center, and spread of the distribution. It has the advantage that it is unnecessary to divide the
range of the variable into class intervals, and it often produces reasonable results for moderately
small samples (which the histogram will not). Generally, a probability plot is a graph of the
ranked data versus the sample cumulative frequency on special paper with a vertical scale chosen
so that the cumulative distribution of the assumed type is a straight line. The normal probability
plot can also be used to estimate process yields and fallouts. Care should be exercised in using
probability plots. If the data do not come from the assumed distribution, inferences about process
capability drawn from the plot may be seriously in error.
To illustrate the use of a normal probability plot in a process capability study, consider following
20 observations on glass container bursting strength: 197, 200, 215, 221, 231, 242, 245, 258,
265, 265, 271,275, 277, 278, 280, 283, 290, 301, 318, and 346.
The following figure is the normal probability plot of 20 observations of burst-strength data.
Note that the data lie nearly along a straight line, implying that the distribution of bursting
strength is normal.
We know that the mean of the normal distribution is the fiftieth percentile, which we estimate
from the above probability plot as approximately 265 psi, and the standard deviation of the
distribution is the slope of the straight line. It is convenient to estimate the standard deviation as
the difference between the eighty-fourth and the fiftieth percentiles. For the strength data shown
above and using the figure, we find that σ^ = 84th percentile - 50th percentile =298 -265 psi=33 psi.
Note that ^μ = 965 psi and σ^ = 33 psi are not far from the sample average X = 264.06 and
standard deviation s = 32.02.
It is frequently convenient to have a simple, quantitative way to express process capability. One
way to do so is through the process capability ratio (PCR) Cp in which computed as:
USL−LSL
Cp = , where USL and LSL are the upper and lower specification limits, respectively.
6σ
In a practical application, the process standard deviation σ is almost always unknown and must
be replaced by an estimate σ . To estimate σ we typically use either the sample standard
R
deviation, s or ^ p = USL−LSL .
. This results in an estimate of Cp, say, C
d 2 ,n 6 σ^
Example: consider the burst-strength data and estimate C p. For a certain process the USL = 20
and the LSL = 6. The observed process average, = 16, and the standard deviation, s = 2. From
^ p = USL−LSL =
20−6
this we obtain: C = 1.167.
6 σ^ 6 (2)
The PCR Cp in the above equation has a useful practical interpretation, namely, P = ( C1 )100 is
p
the percentage of the specification band used up by the process. If we consider the above
upper and lower specification limits. For one-sided specifications, we define one-sided PCRs as:
USL−μ
Cpu = upper specification only and
3σ
μ−LSL
Cpl = lower specification only.
3σ
^ pu and C
Estimates C ^ pl would be obtained by replacing μ and σ in the above equations by
estimates μ^ and σ^ , respectively.
To illustrate the use of the one-sided process-capability ratios, consider the container bursting-
strength data in the above example. Suppose that the lower specification limit on bursting
strength is 200 psi. We will use ^μ ¿ X =264 and s =32 as estimates of μ and σ , respectively, and
μ−LSL 264−200
the resulting estimate of the one-sided lower process-capability ratio is: C pl = =
3σ 3 (32)
= 0.67.
The fraction of defective containers produced by this process is estimated by finding the area to
LSL−^μ 200−264
the left of Z = = = -2 under the standard normal distribution. The estimated
σ^ 32
fallout is about 2.28% defective, or about 22,800 nonconforming containers per million.
We can remember that what we actually observe in practice is an estimate of the PCR. This
estimate is subject to error in estimation, since it depends on sample statistics. English and
Taylor (1993) report that large errors in estimating PCRs from sample data can occur, so the
estimate one actually has at hand may not be very reliable. It is always a good idea to report the
estimate of any PCR in terms of a confidence interval. Therefore, it is easy to find a confidence
interval for the “first generation" ratio C p. If we replace σ by s in the equation for Cp, we produce
^ p. If the quality characteristic follows a normal distribution, then a
the usual point estimator C
100(1 - α )% confidence interval on Cp is obtained from:
√ √ √ √
2 2 2 2
USL−LSL χ α χ α χ α χ α
1−
2 , n−1 ≤Cp ≤ USL−LSL 2 ,n−1
^p
= C 1−
2 , n−1 ≤ Cp ≤ ^ 2, n−1 , where
6σ Cp
n−1 6σ n−1 n−1 n−1
χ
2 2 α α
1−
α and χ α are the lower and upper percentage points of the chi-square distribution
2 ,n−1 2 , n−1 2 2
with n - 1 degrees of freedom.
Example: Suppose that a stable process has upper and lower specifications at USL = 62 and
LSL = 38. A sample of size n = 20 from this process reveals that the process mean is centered
approximately at the midpoint of the specification interval and that the sample standard deviation
s = 1.75, then find the 95% confidence interval for a point estimate of Cp.
^p = USL−LSL 62−38
Solution: C = = 2.29 and
6σ 6∗1.75
√ √
2 2
χ α χ α
^p
the 95% CI for Cp = C 1−
2 , n−1 ≤ Cp ≤ ^ 2, n−1
Cp
n−1 n−1
= 2.29
√ 8.91 ≤ ≤
20−1
Cp 2.29
32.85
20−1 √
=1.57 ≤Cp ≤3.01, where χ 20.975 ,19 = 8.91 and χ 20.025 ,19 =32.85.
The confidence interval on Cp in the above example is relatively wide because the sample
standard deviation s exhibits considerable fluctuation in small to moderately large samples. This
means, in effect, that confidence intervals on Cp based on small samples will be wide. Note also
R
that the confidence interval uses s rather than to estimate σ . This further emphasizes that the
d 2 ,n
process must be in statistical control for PCRs to have any real meaning. If the process is not in
R
control, s and could be very different, leading to very different values of the PCR.
d 2 ,n
For more complicated ratios such as Cpk the approximate confidence intervals will be, if the
quality characteristic is normally distributed, then an approximate 100(1 - α )% confidence
interval on Cpk is given as:
C
[ √
^ pk 1−Z 2
α
1
9nC
+
1
^ pk 2(n−1)
2
]
^ pk 1+ Z 2
≤Cpk ≤ C
α
1
9nC [ √
2
+
1
^ pk 2( n−1) ]
Example: consider the above example and construct the 95% CI for C pk by assuming the
observed sample mean is 53.
^ pk = min (C
C ^ pu, C
^ pl) = 1.714
Therefore, the 95% CI for Cpk is
= C
[ √
^ pk 1−Z 2
α
1
9nC
+
1
^ pk 2(n−1)
2
]
≤Cpk ≤ C
[ √
^ pk 1+ Z 2
α
1
9nC
2
+
1
^ pk 2(n−1) ]
=
[
1.714 1−1.96
√ 1
9∗20 ¿ 1.96 2
+
1
]
2(20−1) [
≤Cpk ≤ 1.714 1+ 1.96
√ 1
9∗20 ¿ 1.96 2
+
1
2(20−1) ]
=1.154 ≤Cpk ≤2.274.
The process capacities that we considered thus far are based on normality of the process
distribution. This poses a problem when the process distribution is not normal. Without going
into the specifics, we can list some remedies.
Where p (0.995) is the 99.5th percentile of the data and p(.005) is the 0.5th percentile of
the data. There is, of course, much more that can be said about the case of non normal
data. However, if a transformation can be successfully performed, one is encouraged to
use it.
CHAPTER THREE
3 Other Statistical Process monitoring and Control Techniques
3.1 Introduction
In the previous chapter, we have concentrated on the basic methods of statistical process-control
(SPC) and capability analysis. Many of these techniques, such as the Shewhart control charts,
have been in use for well over 50 years. But the major disadvantage of a Shewhart control chart
is that it uses only the information about the process contained in the last sample observation and
it ignores any information given by the entire sequence of points. This feature makes the
Shewhart control chart relatively insensitive to small process shifts. However, the increasing
emphasis on variability reduction, yield enhancement, and process improvement along with the
success of the basic methods has led to the development of many new techniques for statistical
process monitoring and control. The two very effective alternatives to the Shewhart control chart
when small shifts are important are the cumulative sum (or CUSUM) and the exponentially
weighted moving average (EWMA) controls charts.
In this chapter we will describe the cumulative sum (CUSUM) and the exponentially weighted
moving average (EWMA) control charts. These procedures are not really new, since they date
from the 1950s, but they are generally considered somewhat more advanced techniques than the
Shewhart charts. CUSUM and EWMA control charts are excellent alternatives to the Shewhart
control chart for process monitoring situations and therefore these control charts are the subject
of this chapter.
3.2 The CUSUM Control Chart for Monitoring the Process Mean
The CUSUM chart directly incorporates all the information in the sequence of sample values by
plotting the cumulative sums of the deviations of the sample values from a target value. For
example, suppose that samples of size n ≥1 are collected, and X j is the average of the jth sample.
Then if μ0 is the target for the process mean, the cumulative sum control chart is formed by
i
plotting the quantity: Ci = ∑ (X j ¿−μ0 )¿ against the sample number i. Ci is called the cumulative
j=1
sum up to and including the i th sample. Because they combine information from several samples,
cumulative sum charts are more effective than Shawhart charts for detecting small process shifts.
Furthermore, they are particularly effective with samples of size n = 1. This makes the
cumulative sum control chart a good candidate for use in the chemical and process industries
where rational subgroups are frequently of size one.
Cumulative sum control charts were first proposed by Page (1954) and have been studied by
many authors; in particular, see Ewan (1963), Page (1961), Gan (1991), Lucas. (1976), Hawkins
(1981, 1993a), and Woodall and Adams (1993).The book by Hawkins and Olwell (1998) is
highly recommended. In this section, we concentrate on the cumulative sum chart for the process
mean. It is possible to devise cumulative sum procedures for other variables, such as Poisson and
binomial variables for modeling nonconformities and fraction nonconforming. We will show
subsequently how the CUSUM can be used for monitoring process variability.
We note that if the process remains in control at the target value μ0, the cumulative sum defined
i 2
σ
in equation Ci = ∑ (X j ¿−μ0 )¿ is a random walk with mean zero and variance i , i.e., E(Ci) = 0
j=1 n
2
σ
and Var(Ci) = i . Therefore, if the process is in control the graph should be neither increasing
n
nor decreasing. However, if the mean shifts upward to some value; μi > μ0, say, then an upward
or positive drift will develop in the cumulative sum C i. Conversely, if the mean shifts downward
to some μi < μ0, then a downward or negative drift in C i will develop. In short, a positive or
negative slope implies the process is out of control. Therefore, if a significant trend develops in
the plotted points either upward or downward, we should consider this as evidence that the
process mean has shifted, and a search for some assignable cause should be performed.
Example: to demonstrate the cusum, let as consider the data: 9.45, 7.99, 9.29, 11.66, 12.16,
10.18, 8.04, 11.46, 9.20, 10.34, 9.03, 11.47, 10.51, 9.40, 10.08, 9.37, 10.62, 10.31, 8.52, 10.84,
10.90, 9.33, 12.29, 11.50, 10.60, 11.08, 10.38, 11.62, 11.31, and 10.52.
To apply the CUSUM to these observations, we would take X = Xi (since our sample size is n =
i
1) and let the target value μ0 = 10. Therefore, the CUSUM becomes: C i = ∑ (X j ¿−10)¿ = (Xi -
j=1
i−1
10) + ∑ (X j ¿−10)¿ = (Xi - 10) + Ci-1, where the starting value for the CUSUM, C o, is taken to
j=1
be zero. The summary data and its CUSUM plots are given below.
How do we decide if the process is out of control? Informally, we will say it is out of control if
there is a slope upwards or downwards. A formal graphicsal method can be based on looking 10
steps ahead and draw a point. Note that for the first 20 observations where μ = 10, the CUSUM
tends to drift slowly, in this case maintaining values near zero. However, in the last 10
observations, where the mean has shifted to μ = 11, a strong upward trend develops.
Of course, the CUSUM plot below is not a control chart because it lacks statistical control limits.
There are two ways to represent CUSUMs, the tabular (or algorithmic) CUSUM, and the V-mask
form of the CUSUM. Of the two representations, the tabular CUSUM is preferable.
3.2.1 The Tabular or Algorithmic CUSUM for Monitoring the Process Mean
We now show how a tabular CUSUM may be constructed for monitoring the mean of a process.
CUSUM may be constructed both for individual observations and for the averages of rational
subgroups.
Let Xi be the ith observation on the process. When the process is in control, X i has a normal
distribution with mean μ0 and standard deviation σ . We assume that either σ is known or that a
reliable estimate is available.
Sometimes we think of μ0 as a target value for the quality characteristic x. This view point is
often taken in the chemical and process industries when the objective is to control to a particular
target value. If the process drifts or shifts off this target value, the CUSUM will signal, and an
adjustment is made to some manipulatable variable to bring the process back on target. Also, in
some cases a signal from a CUSUM indicates the presence of an assignable cause that must be
investigated just as in the Shewhart chart case.
The tabular CUSUM works by accumulating derivations from μ0 that are above target with one
statistic C+ and accumulating derivations from μ0 that are below target with another statistic C -.
The statistics C+ and C- are called one-sided upper and lower CUSUMs, respectively. They are
computed as follows.
The tabular CUSUM:
+¿¿ +¿¿
Ci = max(0, Xi – ( μ0 + k) + C i−1 ) and
−¿¿ −¿¿ +¿¿
Ci = max(0, ( μ0 - k) - Xi + C i−1 ), where the starting values are C 0 = C−¿=0
0
¿
.
In the above equations, k is usually called the reference value (or the allowance, or the slack
value), and it is often chosen about half way between the target μ0 and the out- of-control value
of the mean μ1 that we are interested in detecting quickly.
The quantities N+ and N- in Table indicate the number of consecutive periods that the CUSUMs
+¿¿ −¿¿
Ci or C i have been nonzero.
The CUSUM calculations in the above Table show that the upper-side CUSUM at period 29 is
+¿¿ +¿¿
C 29 = 5.28. Since this is the first period at which C i > H = 5, we would conclude that the
process is out of control at that point. The tabular CUSUM also indicates when the shift probably
occurred. The counter N+ records the number of consecutive periods since the upper-side
+¿¿
CUSUM C i rose above the value of zero. Since N+ = 7 at period 29, we would conclude that
the process was last in control at period 29 - 7 = 22, so the shift likely occurred between periods
22 and 23.
It is useful to present a graphical display for the tabular CUSUM. These charts are sometimes
+¿¿ −¿¿
called CUSUM status charts. They are constructed by plotting C i and C i versus the sample
+¿¿ −¿¿
number and each vertical bar represents the value of C i and C i in period i.
The action taken following an out-of-control signal on a CUSUM control scheme is identical to
that with any control chart; one should search for the assignable cause, take any corrective action
required, and then reinifialize the CUSUM at zero. The CUSUM is particularly helpful in
determining when the assignable cause has occurred; as we noted in the previous example, just
count backward from the out-of-control signal to the time period when the CUSUM lifted above
zero to find the first period following the process shift.
In situations where an adjustment to some manipulatable variable is required in order to bring the
process back to the target value, μ0 , it may be helpful to have an estimate of the new process
mean following the shift. This can be computed from:
^μ = ¿
+¿¿
To illustrate the use of the above equation, consider the CUSUM in period 29 with C i = 5.28,
+¿
C 5.28
then we would estimate the new process average as: ^μ = μ0 +k + +¿i ¿ = 10.0 + 0.5 + =
N ¿ 7
11.25.
So, we would conclude that mean has shifted from 10 to 11.25, and then we would need to make
an adjustment in moving down by 1.25 units.
The Standardized CUSUM
Many users of the CUSUM prefer to standardize the variable x i before performing the
xi −μ 0
calculations. Let: yi = be the standardized value of xi. Then the standardized CUSUMs
σ
+¿¿ +¿¿
are defined as: C i = max(0, yi –k + C i−1 ) and
−¿¿ −¿¿
Ci = max(0, - k - yi + C i−1 ), called standardized two-sided CUSUM.
There are two advantages to standardizing the CUSUM. First, the choices of parameters, H and k
are not scale dependent (that is, they do not depend on σ ). Second, a standardized CUSUM leads
naturally to a CUSUM for controlling variability.
3.2.2 A CUSUM for Monitoring Process Variability
It is possible to construct CUSUM control charts for monitoring process variability. Since
CUSUMs are usually employed with individual observations, the procedure due to Hawkins
(1981) is potentially useful. As before, let x i be the normally distributed process measurement
xi −μ 0
with mean or target value μ0 and standard deviation σ . The standardized value of xi is yi =
σ
.
Hawkins (1981, 1993a) suggests creating a new standardized quantity as: vi = √| y |−0.822 .
i
0.349
He suggests that the vi are sensitive to variance changes rather than mean changes. In fact, the
statistic vi is sensitive to both mean and variance changes. Since the in-control distribution of v i
is approximately N(0,1), two one-sided standardized scale (i.e., standard deviation) CUSUMs
+¿ ¿ +¿ ¿
can be established as: Si = max(0, vi –k + Si−1 ) and
−¿ ¿ −¿ ¿
Si = max(0, - k - vi + Si−1 ), called scale CUSUM.
+¿ ¿ −¿ ¿
The S0 and S0 are 0 and the values of k and h are selected as in the CUSUM for controlling
the process mean. The interpretation of the scale CUSUM is similar to the interpretation of the
+¿ ¿
CNSUM for the mean. If the process standard deviation increases, the values of Si will
−¿ ¿
increase and eventually exceed h, whereas if the standard deviation decreases, the values of Si
will increase and eventually exceed h.
3.3 The Exponential Weighted Moving Average Control Chart
The exponentially weighted moving average (or EWMA) control chart is also a good alternative
to the Shewhart control chart when we are interested in detecting small shifts. The performance
of the EWMA control chart is approximately equivalent to that of the cumulative sum control
chart, and in some ways it is easier to set up and operate. As with the CUSUM the EWMA is
typically used with individual observations, and also give the results for rational subgroups of
size n > 1.
3.3.1 The EWMA Control Chart for Monitoring the Process Mean
The EWMA control chart was introduced by Roberts (1959). The exponentially weighted
moving average is defined as: Zi = λ Xi + (1 - λ )Zi-1, where 0 < λ ≤ 1 is a constant and the starting
value of (required with the first sample at i =1) is the process target, so that: Zo = μo .
Sometimes the average of preliminary data is used as the starting value of the EWMA, so that
Zo= X . To show that the EWMA Z i is a weighted average of all previous sample means, we may
substitute for Zi-1 on the right-hand side of the above equation to obtain:
Zi = λ Xi + (1 - λ )[ λ Xi-1 + (1 - λ )Zi-2] = λ Xi + λ (1 - λ )Xi-1 + (1 - λ )2Zi-2 continuing to substituting
i−1
for Zi-j , j=2, 3, 4, …, t, we obtain: Zi = λ ∑ ¿ ¿ Xt-j + (1 - λ )iZ0.
j=0
The weights, λ ¿ decrease geometrically with the age of the sample mean. Furthermore, the
i−1
weights sum to unity, since λ ∑ ¿ ¿ = λ ¿ = 1−¿ .
j=0
Choice of weighting factor: The parameter λ determines the rate at which 'older' data enter into
the calculation of the EWMA statistic. A value of λ = 1 implies that only the most recent
measurement influences the EWMA (degrades to Shewhart chart). Thus, a large value of λ = 1
gives more weight to recent data and less weight to older data; a small value of λ gives more
weight to older data. The value of λ is usually set between 0.2 and 0.3 (Hunter) although this
choice is somewhat arbitrary. Lucas and Saccucci (1990) give tables that help the user select λ .
N.B.: Since the EWMA can be viewed as a weighted average of all past and current
observations, it is very insensitive to the normality assumption. It is therefore an ideal control
chart to use with individual observations.
If the observations Xi are independent random variables with variance o a, then the variance of Z i
2
is: σ z =σ
i
2
( 2−λλ )¿.
Therefore, the EWMA control chart would be constructed by plotting Z i versus the sample
number i (or time). The center line and Control limits for the EWMA control chart are as
follows.
UCL = μ0 + Lσ
(√ 2−λλ ) ¿ ¿
CL = μ0
LCL = μ0−Lσ
(√ 2−λλ ) ¿ ¿, where the factor L in the above equations is the
width of the control limits.
Note that the term ¿ in the equations above approaches unity as i gets larger. This means that
after the EWMA control chart has been running for several time periods, the control limits will
Note from the Figure below the control limits increase in width as I increases from i = 1, 2,...,
until they stabilize at the steady-state values given by equations UCL = μ0 + Lσ (√ 2−λλ ) and LCL
= μ0−Lσ(√ 2−λλ ), i.e.,
√ 2−0.1
UCL = 10+2.7 (1) (
0.1
) √ 2−0.1 ) = 9.38.
= 10.62 and LCL = 10−2.7(1) (
0.1
Interpretation of EWMA control chart: The jagged line is the EWMA statistic over time and the
control chart tells us that the process is in control because all EWMA lie between the control
limits. However, there seems to be a trend upwards for the last 5 or 6 periods.
3.3.2 Monitoring Variability
MacGregor and Harris (1993) discuss the use of EWMA-based statistics for monitoring the
process standard deviation. Let Xi be normally distributed with mean μ and standard deviation σ .
The exponentially weighted mean square error (EWMS) is defined as:
2
Si = λ ¿
It can be shown that E( S2i ) = σ 2 (for large i) and if the observations are independent and normally
2
Si 2−λ
distributed, then has an approximate chi-square distribution with v = , degrees of
σ
2 λ
freedom. Therefore, if σ 0 represents the in-control or target value of the process standard
deviation, we could plot √ S 2i on an exponentially weighted root mean square or EWRMS control
√ √
2 2
χ α χ 1−α
chart with control limits given by: UCL = ν,
2 and LCL = ν,
2 . MacGregor and Harris
σ0 σ0
ν ν
(1993) point out that the EWMS statistic can be sensitive to Shifts in both the process mean and
the standard deviation. They suggest replacing μ0 in equation μ0 + Lσ (√ 2−λλ ) with an estimate ^μ i
at each point in time. A logical estimates of μ0 turns out to be the ordinary EWMA Z i. They
derive control limits for the resulting Exponentially Weighted Moving Variance (EWMV): S2i
¿ λ ¿.
Example: consider the above example and construct the control chart for monitoring variability
by using α =0.05 .
Solution: the variability statistic drawn in the control chart is given in the above Table of the last
column.
2−λ 2 2
The degree of freedom v = = (2 - 0.1)/0.1 = 19, χ ν, α = χ 219 ,0.025 = 32.85 and χ ν, 1−α =¿
λ 2 2
√ √
2 2
√
2
χ α 32.85 χ 1−α
χ 19 ,0.975 =8.91. therefore, UCL = ν,
2 =(1) = 1.315 and LCL = ν,
2 =
σ0 19 σ0
ν ν
(1)
√ 8.91 = 0.685.
19
{
X i+ X i−1+ …+ X i −w+1
, if i≥ 5
w
Mi = i
1
∑ X , if i<5
i j=1 j
That is, at time period i, the oldest observation in the moving average set is dropped and the
newest one added to the set. The variance of the moving average Mi is:
i i
1 1 W 2 σ2 3σ
Var(Mi) = 2 ∑
W j =i−w +1
V (X i ) = 2 ∑
W j =i−w +1
σ 2
=
W
2
σ =
W
fori≥ 5 and
√i
for i < 5.
Therefore, if μ0 denotes the target value of the mean used as the center line of the control chart,
then the three-sigma control limits for Mi are:
{
3σ
μ0 ± , if i≥ 5
√W
3σ
μ0 ± , if i< 5
√i
The control procedure would consist of calculating the new moving average M i as each
observation xi becomes available, plotting Mi on a control chart with upper and lower control
limits given by the above equations, and concluding that the process is out of control if M i
exceeds the control limits. In general, the magnitude of the shift of interest and w are inversely
related; smaller shifts would be guarded against more effectively by longer-span moving
averages, at the expense of quick response to large shifts.
Example: consider the data given in the above example and use using w =5 in order to construct
the moving average control chart.
Solution: the statistic plotted on the moving average control chart will be: M i =
X i + X i−1 +…+ X i−4
for period i≥ 5. For time periods i < 5, the average of the observations for
w
periods 1, 2, 3, …i is plotted. The values of these moving averages are shown in the above Table
of the 6th column.
The control limits for the moving average control chart may be easily obtained from equations
3σ 3σ
UCL = μ0 +¿ and LCL = μ0−¿ . Since we have μ0=10∧¿ σ = 1.0, then
√W √W
3 3
UCL =10+¿ = 11.34 and LCL = 10−¿ = 8.658.
√5 √5
The control limits for Mi apply for periods i ≥5. For periods 0 < i < 5, the control limits are given
3σ
by, μ0 ± .
√i
The moving average control chart is shown in the above figure. No points exceed the control
limits. Note that for the initial periods i < w the control limits are wider than their final steady-
state value. Moving averages that are less than w periods apart are highly correlated, which often
complicates interpreting patterns on the control chart.
N.B.: The moving average control chart is more effective than the Shewhart Chart in detecting
small process shifts. However, it is generally not as effective against small shifts as either the
CUSUM or the EWMA. The moving average control chart is considered by some to be simpler
to implement than the CUSUM.
3.4 Other Univariate Statistical Process Monitoring and Control Techniques
The widespread successful use of the basic SPC methods described in Shewhart control chart,
the CUSUM and EWMA control Charts in the previous chapters have led to the development of
many new techniques and procedures.
Statistical process-control methods have found wide application in almost every type of business.
Some of the most interesting applications occur in job-shop manufacturing systems, or generally
in any type of system characterized by short production runs. Some of the SPC methods for these
situations are straightforward adaptations of the standard concepts and require no new
methodology. In this section, we present a summary of several techniques that have proven
successful in the short production run situation.
3.4.1 X-bar and R Charts for Short Production Runs
The simplest technique for using X-bar and R charts in the short production run situation was
introduced previously. But here we use deviation from nominal instead of the measured variable
on the control chart. This is sometimes called the DNOM control chart. To illustrate the
procedure, consider the following representation:
Xi = Mi – TA,
where TA is the nominal measurements, Mi represents the ith actual sample measurement and Xi is
the deviations from nominal actual measurement.
Example: consider the data given below, the first four samples represent hole diameters in a
particular part (say, part A). Panel (a) of this table shows the actual diameters in millimeters. For
this part, the nominal diameter is T A = 50 mm. and Panel (b) shows the deviations from nominal
Xi, as well as the X and R values for each sample. Consider the last six samples, these hole
diameters are from a different part number, B, for which the nominal dimension is TB = 25 mm.
The control charts for X-bar and R using deviation from nominal are shown below. Note that
control limits have been calculated using the data from all 10 samples. In practice, we would
recommend waiting until approximately 20 samples are available before calculating control
limits. However, for purposes of illustration let us calculate the limits based on 10 samples to
show that, when using deviation from nominal as the variable on the chart, it is not necessary to
have a long production run for each part number.
sample Part
number number M1 M2 M3 X1 X2 X3 X-bar R
1 A 50 51 52 0 1 2 1.00 2
2 A 49 50 51 -1 0 1 0.00 2
3 A 48 49 52 -2 -1 2 -0.33 4
4 A 49 53 51 -1 3 1 1.00 4
5 B 24 27 26 -1 2 1 0.67 3
6 B 25 27 24 0 2 -1 0.33 3
7 B 27 26 23 2 1 -2 0.33 4
8 B 25 24 23 0 -1 -2 -1.00 2
9 B 24 25 25 -1 0 0 -0.33 1
10 B 26 24 25 1 -1 0 0.00 2
X́
=0.17 R = 2.7
Three important points should be made relative to the DNOM approach:
1. An assumption is that the process standard deviation is approximately the same for all
parts. If this assumption is invalid, use a standardized X-bar and R chart
2. This procedure works best when the sample size is constant for all part numbers.
3. Deviations from nominal control charts have intuitive appeal when the nominal
specification is the desired target value for the process.
3.4.2 Standardized X-bar and R Charts
If the process standard deviations are different for different part numbers, the deviation from
nominal (or the deviation from process target) control charts described above will not work
effectively. However, standardized X-bar and R charts will handle this situation easily. Consider
the jth part number. Let R j and Tj be the average range and nominal value of x for this part
Ri
number. Then for all the samples from this part number, plot Ris = on a standardized R chart
Rj
M i −T j
with control limits at LCL = D 3 and UCL = D4, and plot X is = on a standardized X-bar
Rj
chart with control limits at LCL =- A2 and UCL = + A2.
Note that the center line of the standardized X-bar chart is zero because M i is the average of the
original measurements for subgroups of the jth part number.
The target values R j and Tj for each part number can be determined by using specifications for T j
and taking R j from prior history (often in the form of a control chart, or by converting an
Sd2
estimate of σ into R j by the relationship R j= ). For new parts, it is a common practice to
C4
utilize prior experience on similar parts to set the targets.
3.5 Multivariate Process Monitoring and Control
3.5.1 Introduction
In previous chapters we have addressed process monitoring and control primarily from the
univariate perspective; that is, we have assumed that there is only one process output variable or
quality characteristic of interest. In practice, however, many if not most process monitoring and
control scenarios involve several related variables. Applying univariate control charts to each
individual variable is inefficient and can lead to multivariate methods that consider the variables
jointly are required. There are many situations in which the simultaneous monitoring or control
of two or more related quality characteristics is necessary. For example, suppose that a bearing
has both an inner diameter (x1) and an outer diameter (x2) that together determine the usefulness
of the part. Because both quality characteristics are measurements, they could be monitored by
applying variable control chart and monitoring these two quality characteristics independently
can be very misleading. Rather when we examine the two variables simultaneously, the unusual
behavior of the point is fairly obvious.
In this section we present control charts that can be regarded as the multivariate extensions of
some of the univariate charts of previous discussions. The Hotelling T 2 chart is the analog of the
Shewhart X-bar chart. These multivariate control charts work well when the number of process
variables is not too large, say, 10 or fewer. As the number of variables grows, however,
traditional multivariate control charts lose efficiency with regard to shift detection. A popular
approach in these situations is to reduce the dimensionality of the problem. We show how this
can be done with principal components.
3.5.2 The Multivariate Normal Distribution
In univariate statistical quality control, we generally use the normal distribution to describe the
behavior of a continuous quality characteristic. The univariate normal probability density
−1 x −μ 2
1 ( )
2 σ
f ( x) = e
function is σ √ 2Π ∞ < x <∞; σ > 0 and −∞ < μ < ∞
The mean of the normal distribution is μ and the variance is σ 2. Note that (apart from the minus
sign) the term in the exponent of the normal distribution can be written as (x- μ)(σ 2)-1(x - μ).
Suppose that we have p variable given by x1, x2, x3, …, xp. Arrange these variables in a p
component vector x' = [x1, x2, x3, …, xp]. Let μ' = [ μ1 , μ 2 , μ3 , … , μ p ] be the vector of the means of
the x's, and let the variances and covariance of the random variables in x be contained in a p x p
covariance matrix Σ . The main diagonal elements of Σ are the variances of the x's and the off-
diagonal elements are the co-variances. Now the squared standardized (generalized) distance
from x to μ is (x- μ ¿' Σ −1(x – μ ¿. Therefore, the multivariate normal probability density function
−1
1 2
¿¿
e
is: f(x) = p 2
1
, −∞ ≤ x j ≤ ∞ , j=1 , 2 ,3 , … , p .
(2 π) |Σ|
2
The Sample Mean Vector and Covariance Matrix
Suppose that we have a random sample from a multivariate normal distribution--say, X 1 X2,
X3...,Xn, where the ith sample vector contains observations on each of these variables x i1, xi2, xi3,
n
1
…, xip. Then the sample mean vector is X = ∑ X and the sample covariance matrix is
n i=1 i
n
1
S= ∑ (X ¿¿ i−¿ X )¿ ¿ ¿ ¿
n−1 i=1
That is, the sample variances on the main diagonal of the matrix S are computed as
n n
1 1
S2j= ∑
n−1 i=1
¿ ¿ ¿ and the sample co-variances are S jk= ∑ (X ¿ ¿ ij−¿ X j)( X ¿ ¿ ik− X k )¿ ¿ ¿.
n−1 i=1
We can show that the sample mean vector and sample covariance matrix are unbiased estimators
of the corresponding population quantifies; that is, E( X ) = μ and E(S) = Σ .
The Hotelling T2 control chart
The most familiar multivariate process-monitoring and control procedure is the Hotelling T 2
control chart for monitoring the mean vector of the process. It is a direct analog of the univariate
Shewhart X-bar chart. We present two versions of the Hotelling T 2 chart: one for sub grouped
data, and another for individual observations.
[Link] Sub grouped Data
Suppose that two quality characteristics x 1 and x2 are jointly distributed according to the bi-
variate normal distribution. Let μ1 and μ2 be the mean values of the quality characteristics, and
let σ 1 and σ 2 be the standard deviations of x1 and x2 respectively. The covariance between x1and
x2 is denoted by σ 12. We assume that σ 1 , σ 2, and σ 12 are known. If X 1 and X 2 are the sample
averages of the two quality characteristics computed from a sample of size n, then the statistic
The process monitoring procedure may be represented graphically. Consider the case in which
the two random variables xl and x2 are independent; that is, σ 12 = 0. If σ 12 = 0, then the above
statistic, χ 20 , defines an ellipse centered at ( μ1, μ2) with principal axes parallel to the X 1 , X 2 axes,
as shown in the figure below. Taking χ 20 equal to χ 2α , 2 implies that a pair of sample averages ( X 1 ,
X 2 ) yielding a value of χ 20 plotting inside the ellipse indicates that the process is in control,
whereas if the corresponding value of χ 20 plots outside the ellipse the process is out of control.
The figure below is often called a control ellipse.
In the case where the two quality characteristics are dependent, then σ 12 ≠ 0 and the
corresponding control ellipse is like the following.
Two disadvantages are associated with the control ellipse. The first is that the time sequence of
the plotted points is lost. This could be overcome by numbering the plotted points or by using
special plotting symbols to represent the most recent observations. The second and more serious
disadvantage is that it is difficult to construct the ellipse for more than two quality
characteristics. To avoid these difficulties, it is customary to plot the values of χ 20 for each
sample on a control chart with only an upper control limit at χ 2α , 2. This control chart is usually
called the chi-square control chart.
It is possible m extend these results to the case where p related quality characteristics are
controlled jointly. It is assumed that the joint probability distribution of the p quality
characteristics is the p-variate normal distribution. The procedure requires computing the sample
mean for each of the p quality characteristics from a sample of size n. This set of quality
characteristic means is represented by the p x 1 vector
[]
X1
X2
X3
X= .
.
.
Xp
The test statistic plotted on the chi-square control chart for each sample is: χ 20 =n(x- μ ¿' Σ −1(x– μ ¿,
where μ' = [ μ1 , μ 2 , μ3 , … , μ p ] is the vector of in-control means for each quality characteristic and
Σ is the covariance matrix. The upper limit on the control chart is χ 2α , p.
Estimating μ and Σ
In practice, it is usually necessary to estimate μ and Σ from the analysis of preliminary samples
of size n, taken when the process is assumed to be in control. Suppose that m such samples are
available. The sample means and variances are calculated from each sample as usual; that is,
where xijk is the ith observation on the jth quality characteristics in the k th sample. The covariance
between quality characteristic j and quality characteristic h in the k th sample is
The { X́ j} are the elements of the vector X́ and the p x p average of sample covariance matrices S
is formed as
The average of the sample covariance matrices S is an unbiased estimate of Σ when the process
is in control.
The T2 Control Chart
Now suppose that S from the above matrix is used to estimate Σ and that the vector X́ is taken as
the in-control value of the mean vector of the process. If we replace μ with X́ and
Σ with S, the test statistic now becomes T2=n(x- X́ ¿' S−1(x– X́ ¿. In this form, the procedure is
usually called the Hotelling T2 control chart. The control limits for the T 2 control chart are given
by
When the chart is used for monitoring future production, the control limits are as follows:
Example: The tensile strength and diameter of a textile fiber are two important quality
characteristics that are to be jointly controlled. The quality engineer has decided to use n = 10
fiber specimens in each sample. He has taken 20 preliminary samples, and on the basis of these
data he concludes that X́ 1 = 115.59 psi, X́ 2 = 1.06 x 10-2 inch, S21 = 1.23, S22= 0.83, and
S12= 0.79. Therefore, the statistic he will use for process-control purposes is
The data used in this analysis, the summary statistics and the Hotelting T 2 control chart are
presented as follows. The preliminary sample is used to calculate the upper control limit. If α =
0.001, then the UCL is
Notice that no points exceed tiffs limit, so we would conclude that the process is in control. If we
had used the approximate chi-square control limit the upper control limit is UCL = 15.16. we
would have obtained, χ 20.001 ,2 = 13.816, which is reasonably close to the correct limit but
somewhat too small.
Interpretation of out-of-control signals
One difficulty encountered with any multivariate control chart is practical interpretation of an
out-of-control signal. Specifically, which of the p variables (or which subset of them) is
responsible for the signal? This question is not always easy to answer.
Ak (1985) suggests using X-bar charts with Bonferroni-type control limits [i.e., replace Z α in the
2
Z
X-bar chart control limit calculation with α
(2 p)
].
When the number of preliminary samples m is large--say, m > 100--many practitioners use an
approximate control limit, either
For m > 100, the first equation is a reasonable approximation. The cid-square limit is only
appropriate if the covariance matrix is known, but it is widely used as an approximation. Lowry
and Montgomery (1995) show that the chi-square limit should be used with caution. If p is
large--say, p ≥ 10, then at least 250 samples must be taken (m ≥ 250) before the cid-square
upper control limit is a reasonable approximation to the correct value.
A significant issue in the case of individual observations is estimating the covariance matrix Σ .
Sullivan and Woodall (1995) give an excellent discussion and analysis of this problem, and
compare several estimators. One of these is the "usual" estimator obtained by simply pooling all
m
1
m observations—say S1= ∑ (V ¿¿ i−¿ X)¿ ¿ ¿ ¿.
m−1 i=1
The second estimator [originally suggested by Holmes and Mergen (1993)] uses the difference
between successive pairs of observations: v i = xi+1 – xi, I = 1, 2, 3, …, m-1. Now arrange these
vectors into a matrix V, where
The estimator for Σ is one-half the sample covariance matrix of these differences:
The following figure shows the T2 control charts from this example. Sullivan and Woodall
(1995) used simulation methods to find exact control limits for this data set (the false alarm
probability ii 0.155).
3.5.3 The Multivariate EWMA Control Chart
The chi-square and T 2 charts described in the previous section are Shewhart-type control charts.
That is, they use information only from the current sample, so consequently, they are relatively
insensitive to small and moderate shifts in the mean vector. Cumulative sum and EWMA control
charts were developed to provide more sensitivity to small shifts in the univariate case, and they
can be extended to multivariate quality control problems.
Lowry et al. (1992) have developed a multivariate version of the EWMA (or art MEWMA)
control chart. The EWMA is a logical extension of the univariate EWMA and is defined as
follows:
Prabhu and Runger (1997) have provided a thorough analysis of the average run- length
performance of the MEWMA control chm7t, using a modification of the Brook and Evans
(1972) Markov chain approach. They give tables and charts to guide selection of the upper
control limit--say, UCL = H-for the MEWMA.
¿c
(a) If d , the lot is accepted. In this case all the defective items in the sample are replaced
by non-defectives and the lot is release for marketing.
(b) If d>c, the lot is rejected. In this situation, inspect the whole lot and replace all
defectives found in the lot by non defectives and release the lot for sale.
Case I: N is Large (Consider N Infinite)
An important measure of the performance of an acceptance-sampling plan is the operating-
characteristic (OC) curve. This curve plots the probability of accepting the lot versus the lot
fraction defective. Thus, the OC curve displays the discriminatory power of the sampling plan.
That is, it shows the probability that a lot submitted with a certain fraction defective will be
either accepted or rejected. Suppose that the lot size N is large (theoretically infinite). Under this
condition, the distribution of the number of defectives d in a random sample of n items is
binomial with parameters n and θ , where θ is the fraction of defective items in the lot. But most
of the time θ is unknown and estimated by P.
Therefore, the probability of observing exactly X defectives is: P(d defectives) = P(d) = ( nd) p ¿.
d
The probability of accepting is simply the probability that X is less than or equal to c, or
c c
OC(p)= Pa = P(d ≤ c/ p ¿ = ∑ P(X =c / p) = ∑ n p ¿ ¿
d =0 d =0 d
d
()
That is,
P = ¿ + np ¿ + ( ) p ¿ + ….+ ( ) p ¿
n 2 n c
a
2 c
From this we can see that
It is a decreasing function
c
OC(θ )=∑
d =0
(0n) θ ¿ ¿ =¿ , this is P(no defects in the sample/a proportion of θ of the population are
0
P(rejecting) = 0.95 means P(accepting) = 1-0.95, that is: OC(θ )¿1 −0.95=0.05
⇒ (0.95)n ¿ 0 . 05
n*log0.95¿ log 0 . 05
n*log(0.98) ¿ log 0 . 01
⇒ n¿ log 0 . 01 /log 0 . 98 =227.9, that is, n¿ 228 since n must be an integer, so
that we can “take a sample of 228 observation accept the batch if every object is good and reject
if there is¿ 1 defectives”.
II. Fix n
Suppose that instead of fixing c we fix n. For instance, let take n =100, then what value should
we take for c in we want to make sure we are at least 95% of rejecting a batch which has 5% of
defectives?
We choose c to solve OC (0.05)¿ 0 . 05 , try to c is 0, 1, 2, 3…n =100.
c= 0, OC(0.05) = P(d ≤ 0 ¿ = (1-0.05)100 = (0.95)100 = 0.00592
c=1, OC(0.05) = p(d¿ 1) = p(d=0) + p(d=1) by using the binomial distribution we can get
( 100¿) ¿ ¿¿
= (0.95)100 +¿ (0.05) 1
(0.95)99 = 0.037
c=2, OC(0.05) =p(d¿ 2) = p(d=0) + p(d=1) +p(d=2) by using the binomial distribution we can
( 100¿) ¿ ¿¿ ( 100¿) ¿ ¿¿
get: OC(0.05) = (0.95)100 +¿ (0.05) 1
(0.95)99 +¿ (0.05) 2
(0.95)98 = 0.11
Of the two, taking c=1 leads to accepting more bad batches, but it also leads to accepting more
good batches. In practice we would probably take c=1. First we put a limit on the buyer’s risk.
Then we minimize the producer’s risk subject to that limit. (This procedure is similar to
hypothesis testing).
c
III. Fix
n
For instance, a buyers test a sample of n fuses from infinite batch (population) of fuses. She will
accept the batch if the sample contains ¿ 4 % defectives. She is considering by taking a sample of
n = 25, 50, 75, 100 etc fuses. How large should “n” be if she wants to be 90% of certain of
rejecting a batch with 10% of defectives? (the null is accepting the batch if d ≤0.04n) i.e., c\
n=0.04 find the value of c and n so that OC (0.1) ≤ 10%. Possible solutions to check: n=25, c=1;
n=50, c=2; n=75, c=3 and n=100, c=4. Therefore, OC(0.1) ¿ 0 . 01 C=1,n=25, implies that
( 25¿) ¿ ¿¿
OC(0.1)=p(x¿ 1) =p(d=0)+p(d=1) = (0.9)25 +¿ (0.1) 1
(0.9)24 =0.27,i.e., OC(0.1) = 0.27 >10%,
that is this is not solution set.
c=2, n=50, OC(0.1) =P(d ¿ 2) =p(d =0)+ p(d =1) +p(d =2)
( 50¿) ¿ ¿¿ ( 50¿) ¿ ¿¿
= (0.9)50 +¿ (0.1) 1
(0.9)49 +¿ (0.1) 2
(0.9)48= 0.11>10%, that is this is also not solution set.
With an increasing proportion of defects, θ the probability that the lot is accepted decrease. The
ideal OC function is very close to 1 for small values of θ and very close to 0 for values of θ
greater than an acceptable quality limit. Note that d is follows that a binomial distribution with
the parameters of n and θ, so as n approaches to infinity the weak law of large numbers tells us
d/n approaches to θ in probability, i.e., for ε >0, P( |dn −θ|> ε ¿ →[Link] suppose θ < 0.04, then
d d
we can choose ε >0, so that θ+ ε >0.04. P( > 0.04 ¿ ≤ P( >θ +ε ¿ → 0, i.e., P(reject batch)→ 0
n n
as n→ ∞ if θ < 0.04. Similarly, we can show that P(reject batch)→1 as n∞ if θ >0.04.
lot consists of N (consider N is finite) items having a proportion of defectives as θ and in all D defectives,
i.e. D=Nθ and a sample of size n drawn from a submitted lot which contains d defectives with the
maximum allowable number of defectives in the sample, c. Here we have a batch of N items, M of
M 1 2 3
this are defectives; θ is proportion of defectives = N , where (θ takes the value: 0, N , N , N ,
N −1
…. ,1), D= number of defective in the sample has hyper- geometric distribution. Then,
N
Then, in single sampling plan, the variable d follows the hyper geometric distribution. Various
probabilities under this plan can be worked out by the following formula.
1. The probability of getting d defective in the sample is:
❑
P(D=d) = ❑ ,where d¿ n , n-d¿ N−M
2. The probability of accepting the lot having not more than c defectives in the sample of n items is,
c
∑ ( Md )( Nn−d
−M
)
d=0
P(D=d) =
( Nn )
Example: Suppose N=1000, c=0, choose n to make sure OC(0.05) ¿ 5 % i.e. we have a batch of
size 1000 we use the rule “accept if the sample contains no defectives”. Choose n so that we are
95% of rejecting a batch is 5% defectives.
We can choose n so that OC(0.05) ¿ 0 . 05
M θ=5 %
⇒ =¿ , N =1000, M=Nθ =50.
N
OC(d =0\M=50) = P(every sample observation have no defective/M=50) = 950\100
¿ 949 ¿×948 ¿×.. .×950−( n−1) ¿−( n−1) .
OC (0.05) = P(d = 0) =
( )(
M N−M
d n−d ) =
( 0 )( n−0 )
50 950
( Nn ) ( 1000
n )
This is solved by substitution and a solution can’t be obtained in a closed form but we want to
choose n large enough to make sure this product is ¿ 0 . 05 .
Example: Suppose the batch size is N= 40 and we take c=0, then how can we choose n so that
OC (0.05) ¿ 5 % , that is for this value of n calculate the OC functions?
If N=40, θ can only take one of 0, 1/40, 2/40, …, , so, if θ=0 .05 , θ = M ¿ then, M=Nθ
=0.05 ¿ 40=2 .
We want to solve: OC(0.05) = P(accept the batch/M=2) ¿ 0 . 05 .
= P(1st item is good )¿ P(2nd item is good/1st item is good) ¿ P(3rd item is good/1st and 2nd item is
good) ¿ ……¿ P(nth item is good /1st ,2nd ,3rd ….(n-1)th item is good).
That is P(no defectives in the sample) is:
¿ x )
( d )( n−d )
M N−M
(20)( 40−2
n−0 ) (38n ) 38 ! / 40!
OC(0.05) = P(X = = = = n ! ( 38−n ) ! n ! ( 40−n ) ! =
( Nn ) ( 40n ) (n)
40
( 40−n ) (39−n)!
39 x 40
Then by substitution and inspection, n = 19, 30, 31 OC(0.05) is 0.071, 0.058, 0.046, respectively.
Therefore, we need to n¿ 31 is the minimum sample observation.
4.3.2 Double Stage Sampling Plans
A number of extensions of single-sampling plans for attributes are useful. These include double-
sampling plans, multiple-sampling plans, and sequential-sampling plans were invented to give a
questionable lot another chance. A double-sampling plan is a procedure in which, under, certain
circumstances, a second sample is required before the lots can be sentenced.
Double sampling is the results of the first sample are not conclusive with regard to accepting or
rejecting, a second sample is taken. A double-sampling plan is defined by four parameters.
n1 = sample size on the first sample,
cl = acceptance number of the first sample,
n2 = sample size on the second sample,
c2 = acceptance number for both samples.
Suppose n1 is the first sample size c1 is the first acceptance number, n2 is the second sample size
and c2 is the second acceptance number. Thus, a random sample of n 1 items is selected from the
lot, and the number of defectives in the sample, d 1, is observed. If d1 ≤ c1, the lot is accepted on
the first sample. If d1 > c2, the lot is rejected on the first sample. If c 1 < d1 < c2, a second random
sample of size n2 is drawn from the lot, and the number of defectives in this second sample, d 2, is
observed. Now the combined number of observed defectives from both the first and second
sample, d1 + d2, is used to determine the lot sentence. If d 1 + d2 ≤ c2, the lot is accepted. However,
if d1 + d2 ¿ c2, the lot is rejected. The operation of this double-sampling plan is illustrated
graphically as follows.
The principal advantage of a double-sampling plan with respect to single sampling is that it may
reduce the total amount of required inspection. Double sampling has two potential disadvantages:
First, unless curtailment is used on the second sample, under some circumstances double
sampling may require more total inspection than would be required in a single-sampling plan that
offers the same protection. The second disadvantage of double sampling is that it is
administratively more complex, which may increase the opportunity for the occurrence of
inspection errors.
The OC Curve
The performance of a double-sampling plan can be conveniently summarized by means of its
operating-characteristic (OC) curve. The OC curve for a double-sampling plan is somewhat more
involved than the OC curve for single sampling. A double-sampling plan has a primary OC curve
that gives the probability of acceptance as a function of lot or process quality. The OC curve for
the probability of rejection on the first sample is simply the OC curve for the single4ampling
plan n = nl and c = c2.
Example: Primary and supplementary OC curves for the plan n l = 50, cl = 1, n2 = 100, c2 = 3 are
constructed as follows.
Solution: we assume N is infinite, so use the binomial rather than the hyper-geometric.
If Pa denotes the probability of acceptance on the combined samples, PaI and PaII denote the
probability of acceptance on the first and second samples, respectively, then: Pa = PaI + PaII
I
Pa is just the probability that we will observe dl ≤ c1 = 1 defectives out of a random sample of n1
1
= 50 items. Thus: P = I
a ∑
d1 =0 (50d ) p ¿ ¿. Now let p = 0.05, then the fraction defective in the
1
d1
To obtain the probability of acceptance on the second sample, we must list the number of ways
the second sample can be obtained. A second sample is drawn only if there are two or three
defectives on the first sample, that is, if c1 <dl ≤ c2.
1. d1 = 2 and d2 = 0 or l; that is, we find two defectives on the first sample and one or less
defectives on the second sample. The probability of this is:
p{d1 =2, d2 ≤ 1} = p{ p(d1=2) p(d2 ≤ 1¿ }
= (502) 0.05 ¿ 2
= (0.261)(0.037) = 0.0097.
2. d1= 3 and d2 = 0; that is, we find thee defectives on the first staple and no defectives on the
second staple. The probability of this is:
p{d1 =3, d2 ¿ 0} = p{ p(d1=3) p(d2 ¿ 0 ¿}
OC(θ ) = ∑
d1 =0 ( )
d1
1
d =c + 1 d 1
1
( )
n θ d ¿ ¿ + ∑ n θ d ¿ ¿ * ∑ m θ d ¿ ¿.
d =0 d 2
1
1
2
() 2
Examples:
1. Find the OC function when n = 100, c1 = 1, d1 = 4, m = 300 and c2 =6.
Solution:
c1 d 1−1 c 2−d2
OC(θ ) = ∑
d1 =0 ( )
n θd ¿ ¿ +
d1
1
∑ n θ d ¿ ¿*
d =c + 1 d 1
1 1
∑( ) m θ d ¿ ¿.
d =0 d 2
1
2
( ) 2
1 3 6−d1
= ∑
d1 =0 ( )
100 θd ¿ ¿
d1
1
+∑
d =2 d 1
1
( )
100 θ d ¿ ¿
* ∑ 300 θ ¿ ¿.
d =0 d2
d 1
2
( ) 2
4 3
= P(d 1=0)+P(d 1=1 )+P(d 1=2 )* ∑
d2 =0 ( )
300 θd ¿ ¿ d =3
d2
2
+P( 1 ) *∑
d =0
300 θd ¿ ¿
d2 2
.
( ) 2
2. Suppose we intend to use the plan with n 40, c 1 = 0, d1 = 2, c2 = 1, then how should we choose
m if we want OC(0.1) < 5%.
Solution:
c1 d 1−1 c 2−d2
OC(θ ) = ∑
d1 =0 ( )
n θd ¿ ¿ +
d1
1
d =c + 1
1 1 1
( )
∑ dn θ d ¿ ¿* ∑ dm θ d ¿ ¿.
d =0 2
1
2
( ) 2
= ¿ + 40 θ ¿
OC(0.1) = ¿ + 40 x 0.1 ¿
=0.9 40 + 4x0.939 +m< 0.05
= 0.939 +m < ¼ (0.05 - 0.9 40 ¿
= (39 + m) > ln(¼ (0.05 - 0.9 40 ¿)/ln(0.9) = 44.9
m > 5.9, take m = 6.
The Average Sample Number Curve
In single sampling, the size of the sample 'inspected from the lot is always constant, whereas in
double sampling, the size of the sample selected depends on whether or not the second sample is
necessary. The probability of drawing a second sample varies with the fraction defective in the
incoming lot. With complete inspection of the second sample, the average sample size in double
sampling is equal to the size of the first sample times the probability that there will only be one
sample, plus the size of the combined samples times the probability that a second sample will be
necessary. Therefore, a general formula for the average sample number in double sampling, if we
assume complete inspection of the second sample, is:
ASN = n1P1 + (n1 +n2)(1- P1) = n1 + n2(1 – P1), where P1 is the probability of making a lot-
dispositioning decision on the first sample. This is
P1 = P(lot is accepted on the first sample) + P(lot is rejected on the first sample).
If the above equation is evaluated for various values of lot fraction defective p, the plot of ASN
versus p is called an average sample number curve.
4.3.3 Multiple Stage Sampling
Multiple sampling is an extension of double sampling. It involves inspection of 1 to k successive
samples as required to reach an ultimate decision. The rule of thumb suggests that k = 7 is a good
number. Multiple sampling plans are usually presented in tabular form.
Procedure for multiple sampling
The procedure commences with taking a random sample of size n1from a large lot of size N and
counting the number of defectives, d1.
if d1 a1 the lot is accepted.
if d1 r1 the lot is rejected.
if a1 < d1 < r1, another sample is taken.
If subsequent samples are required, the first sample procedure is repeated sample by sample.
For each sample, the total number of defectives found at any stage, say stage i, is
This is compared with the acceptance number ai and the rejection number ri for that stage until a
decision is made. Sometimes acceptance is not allowed at the early stages of multiple sampling;
however, rejection can occur at any stage.
Efficiency measured by the ASN:-
Efficiency for a multiple sampling scheme is measured by the average sample number (ASN)
required for a given Type I and Type II set of errors. The number of samples needed when
following a multiple sampling scheme may vary from trial to trial, and the ASN represents the
average of what might happen over many trials with a fixed incoming defect level.
4.3.4 Sequential Sampling Plans
Sequential sampling is an extension of the double-sampling and multiple-sampling concept. In
sequential sampling, we take a sequence of samples from the lot and allow the number of
samples to be determined entirely by the results of the sampling process. In practice, sequential
sampling can theoretically continue indefinitely, until the lot is inspected 100%. If the sample
size selected at each stage is greater than one, the process is usually called group sequential
sampling. If the sample size inspected at each stage is one, the procedure is usually called item-
by-item sequential sampling.
The operation of an item-by-item sequential-sampling plan is the cumulative observed number of
defectives is plotted on the chart. For each point, the abscissa is the total number of items
selected up to that time, and the ordinate is the total number of observed defectives. If the plotted
points stay within the boundaries of the acceptance and rejection lines, another sample must be
drawn. As soon as a point fails on or above the upper line, the lot is rejected. When a sample
point fails on or below the lower line, the lot is accepted. The equations for the two limit lines for
specified values of p1, 1 -α , P2, and β are:
where
The acceptance and rejection numbers are found by substituting values of n into the equations for
the acceptance and rejection Lines. For example, the calculations for n = 45 are:
Acceptance and rejection numbers must be integers, so the acceptance number is the next integer
less than or equal to xa and the rejection number is the next integer greater than or equal to xr.
Thus, for n =24, the acceptance number is 0 and the rejection number =3. Note that the lot cannot
be accepted until at least 44 units have been tested.
The OC Curve and ASN Curve for Sequential Sampling
The OC curve for sequential sampling can be easily obtained. Two points on the curve are (P l, 1 -
h2
α ) and (P2, β ). A third point, near the middle of the curve, is p = s and Pa = .
h1 + h2
The average sample number taken under sequential sampling is: ASN = Pa = ( CA ) + (1- Pa)( CB ),
and C = plog( ) + (1 – p)log(
( 1−αβ ), B = ( 1−β
α ) 1− p )
p2 1− p2
where A = log .
p 1 1
4.3.5 Comparing and Choosing Sampling schemes
There are many ways of measuring the performance of a scheme such as OC percentiles, quality
and total inspection time.
OC Percentiles
Operating characteristic (OC) curve: the OC curve shows the relationship between the
probabilities of acceptance of a lot P a for variables in the lot quality. It is plotted by taking θ
along horizontal scale and Pa along the vertical scale. The following points (in usual situations)
are common to any O.C curve.
The Rejectable Quality Level (RQL) is the value of θ for which the quality of the batch is
unacceptable.
The Acceptable Quality Level (AQL): is the value of θ for which the quality of the batch can
be regarded as good.
We want OC(RQL) small and we might fix a small number, β (consumer’s risk) and insist
[OC(RQL) < β ]. And also, we want OC(AQL) close to 1and we might fix a small number, α
(producer’s risk-example 5%) and insist [OC(AQL) > 1 - α ].
θ 0 OC(AQL) OC(RQL) 1
OC(θ ) 1 1−α β 0
The points can be easily obtained as: OC (0) =1 and OC (1) =0 since a lot containing no
defective at all, (θ =0) will always be accepted and a lot containing 100% defective items ( θ =1),
will always be rejected.
Average Outgoing Quality (AOQ): A common procedure when sampling and testing is non-
destructive, is to 100% inspect rejected lots and replace all defectives with good units. In this
case, all rejected lots are made perfect and the only defects left are those in lots that were
accepted. If all lots come in with a defect level of exactly θ, and the OC curve for the chosen (n,
c) indicates a probability pa of accepting such a lot, over the long run is:
P(Defective) = P(defective ∩ batch was accepted) +P(defective ∩ batch was rejected)
= P(defective ¿ batch was accepted) P(accepted) +P(defective ¿ batch was rejected)P(rejected)
= θ OC(θ ). This is called the average outgoing quality and AOQ (θ ) = θ OC(θ ¿ in which
AOQ (θ ) < θ OC(θ ¿ for θ < 1.
The AOQ is a function of θ and we want this to be small, but we can not minimize it as θ is
unknown.
Average Outgoing Quality Limit (AOQL): A plot of the AOQ (Y-axis) versus the incoming lot θ
(X-axis) will start at 0 for θ = 0, and return to 0 for θ = 1 (where every lot is 100% inspected). In
between, it will rise to a maximum. This maximum, which is the worst possible long term AOQ,
Example: suppose we want to design a one-stage sampling plan with infinite N and c = 0 such
that OC(AQL) > 80% where AQL = 0.01 and AOQL < 3%, then what values of n satisfy these
two constraints?
Solution: first as c = 0, then the OC (θ ) = (1 - θ ¿n , therefore
(1 – 0.01 ¿n > 0.8 means 0.99n > 0.8
ln (0.8)
n ln(0.99) > ln(0.8), then n≤ =22.
ln (0.99)
Second AOQ(θ ¿ = θ OC(θ ¿ = θ (1 - θ ¿n , as c = 0
Here we need to maximize AOQ and equating to zero by differentiation as:
d d 1
AOQ(θ ) = (θ (1 - θ ¿n ) = 0, gives θ = .
dθ dθ n+1
1
Therefore, the AOQ attains its maximum at θ =
n+1
1 1 n nn
Implies AOQL =max (θ (1 - θ ¿n ) = (1 - ¿ =
θ n+1 n+1 ¿¿
n
Choose n so that n < 0.03, solve by trial and error to give n≥ 12.
¿¿
Therefore, take n to be any value between 12 and 22 in order to satisfy these two constraints.
Example: suppose we want to design a one-stage sampling plan with infinite N and then (a) find
n so that AOQL < 2% if c=0 (b) find AOQL if n=25 and c = 0 (c) find AOQL if n =100 and c =1.
Solution:
(a) c = 0 implies OC (θ ¿ = (1 - θ ¿n , then AOQ (θ ) = θ (1 - θ ¿n
Find its unique maximum by differentiating and equating to zero, then AOQ( θ ) has a maximum
1 n n
at θ = . This implies that AOQL = n and now choose n so that n < 0.02 as follows.
n+1 ¿¿ ¿¿
n 16 17 18
n 0.022 0.021 0.019
n
¿¿
Therefore, AOQL < 2% for all n values greater than or equal to 18.
n 25
(b) c = 0 and n =25 then AOQL = n = 25 that is if we take n = 18, we know < 2% of
¿¿ ¿¿
items sold will be defective. If we take n =25, we know < 1.4% will be defective.
(c) c = 1 and n =100, then OC(θ ¿ = (1 - θ ¿100 + 100 θ (1 - θ ¿99 and AOQ(θ ¿=¿ θ OC(θ ¿
This implies that AOQ(θ ¿=¿ θ (1 - θ ¿100 + 100 θ (1 - θ ¿99
Maximize by differentiating and equating to zero is: 9999 θ2 - 98θ –1= 0, it givesθ =
98 ± √ 98 2+ 4 x 9999
, positive root is θ = 0.01604. Therefore, AOQL = AOQ (0.01604) =
2 x 9999
0.01604 (1 – 0.01604 ¿ 100 + 100(0.06104)(1 -0.06104¿ 99 = 0.0084 = 0.84%.
The Average Total Inspection (ATI): if two sampling schemes have approximately the same
OC function we will usually choose the scheme that is cheaper to administer. This is often the
scheme that has fewer items inspected. As the expected number of items sampled, a low ATI is
preferred. For a one-stage sampling scheme ATI = n and for two-stage sampling scheme we
sample: n items with probability P(d 1 ≤c1) + P(d1> c1) and n+m items with probability
P(c1<d1<c2), therefore, ATI = n[P(d1 ≤c1) + P(d1> c1)] + (n+m) P(c1 < d1 < c2)
= n[P(d1 ≤c1) + P(d1> c1) + P(c1 < d1 < c2)] + m P(c1 < d1 < c2)
= n*1 + m P(c1 < d1 < c2) = n + m P(c1 < d1 < c2)
Exercises:
1. Write down OC function for a binomial sampling scheme with c = 0 (your answer is based
on a function of n). Differentiate this function and show its derivative at 0 equals -n.
2. Suppose we have a binomial sampling scheme and take c = 0, then how large should we
take n if we want to make sure :
a. We are at least 99% certain rejection of a batch which has 8% defectives?
b. We are at least 90% certain of accept a batch which has 1% of defectives?
3. Suppose we have a binomial sampling scheme with n = 40. what value should we take for
c we want to make sure :
a. We are at least 90% of certain rejecting a batch which has 10% of defectives?
b. We are at least 90% certain of accept a batch which has 1% of defectives?
c. Is it possible to create the scheme so that we are 90% of certain rejecting a batch
which has 10% of defectives and 90% of certain of accepting a batch which has1%
of defectives?
4. write down OC function
a. for binomial sampling scheme with c = 1(your answer will be a function of n)
b. Differentiate this function and show that its derivative at 0 equals 0.
c. Calculate OC (0.01), OC (0.03), OC (0.05), OC (0.10) and OC (0.15) for binomial
sampling scheme with c = 1 and n = 80 and sketch the function.
5. Suppose we have a binomial sampling scheme with c = 1. Show that if we want to make
sure we are at least 95% certain rejecting a batch that has 10% of defectives we need to
take n¿ 46 .
6. Suppose we have a batch size N. What is the OC function of the hyper geometric sampling
scheme with c =1.
7. Consider two acceptance sampling scheme defined by the following rules:
(i). the single stage binomial sampling schemes with n = 59 and c = 0. “Take a sample
size of 59 and accept the batch if it contains no defectives”
variable is slightly better, because it gives a better estimate of p.) Let ^p be the estimate of p so
obtained. If the estimate ^p exceeds a specified maximum value M, reject the lot; otherwise,
accept it.
The two procedures can be designed so that they have equivalent results. When there is only a
single specification limit (LSL or USL), either procedure may be used. Obviously, in the case of
USL− X
an upper specification limit, we would compute: ZUSL = instead of using Z LSL =
σ
X−LSL
.
σ
When there are both lower and upper specifications, the M method, Procedure 2, should be used.
Advantages and disadvantage of sampling by variables
Advantages
1. Usually sampling by variable requires smaller sample sizes than an equivalent sampling
by attributes (it is important in about destructive sampling).
2. It is easier to draw inferences about the batch if we are sampling by variables.
Disadvantages
1. We need the normality assumption to hold
2. It involves measuring, this is usually more costly than classifying an item as good/bad
3. It cannot be used if we are dealing with quality that cannot be measured
Exercises
1. Suppose we take n = 100, then find k to make sure (i) we are at least 90% certain of
rejecting a batch which has 10% of defectives (ii) we are at least 90% certain of
accepting a batch which has 3% of defectives.
2. Suppose we take k = 2, then find n to make sure (i) we are at least 95% certain of
rejecting a batch which has 7% of defectives (ii) we are at least 99% certain of
accepting a batch which has 1% of defectives.
5. Reliability and Life Testing
5.1. Definition of reliability
Reliability: The reliability of a product is the probability that the product will meet certain
specifications for a given period of time. For example, suppose we want a new automobile to
perform without malfunction for a period of 2 years or for 20000 miles. The probability that an
automobile will meet this specification is the reliability of the automobile.
The failure time T: the length of life of a product is the length of time until the product fails to
perform according to specifications. When the product fails to perform according to
specifications, it is said to be failed. The time at which a single product item fails is called the
failure time for the item. For example, the length of life of an abrasive grinding wheel is the
length of time until the wheel fails to perform according to specifications. The specifications
may have been determined by the manufacturer or the user may have written his or her own
specifications. The length of time until failure is called the failure time of the wheel. Therefore,
the Failure Time T of a product is a random variable that represents the length of time that the
product performs according to specifications.
The density function for a product failure time is called failure time distribution. If we denote
the failure time density function by the symbol f(t), then the probability that the product will fail
t0
Suppose that a product is said to be reliable if it survives time t 0. Then the reliability of the
product that is the probability that it will survive until time t 0 is R(t0) = 1 – F(t0). The reliability,
R(t0), is also called the survival function for the product. The probability of failure time and
reliability is the shaded and un-shaded area under the density function of the following figure,
respectively.
Hazard Rates: the failure time distribution for a product enables us to calculate the probability
F(t0) that an item will fail before time t 0 and the probability R(t0) = 1 –F(t0) that an item survive
until time t0. While for some small change in failure time, denoted ∆ t , the probability that an
item will fail in the interval (t, t + ∆ t ) is called the hazard rates. Therefore, the hazard rate for a
f (t) f (t )
product is defined is: z(t) = = , where f(t) is the density function of the product’s
1−F (t) R (t)
failure time distribution.
Realistically, the failure time distribution is a conceptual relative frequency distribution of the
lengths of life of some group of product items of specific interest, say, those manufactured in a
given week, or year, based on an analysis of sample data, we may select one density function
among those of continuous distributions. The family of density functions represented by the
Weibull distribution is often used for this purpose. The Wibull density function and cumulative
distribution function are, respectively,
α
−t
f(t) = α t α −1 e β
, t ≥0, α > 0, β > 0 and
β
t α
−t
F(t) =∫ f ( z ) dz = 1 - e β .
0
Example: a drill bit has a failure time distribution given by the density:
2
−t
f(t) = 2 t e 100 , t ≥0, then find (a) F(t) (b) R(t) and z(t) (c) use the result of (b) and find R(8)
100
and z(8).
t α 2
−t −t
Solution: (a) F(t) =∫ f ( z ) dz = 1 - e β = 1 - e 100 , t ≥ 0
0
2 2
−t −t
(b) R(t) = 1 – F(t) = 1- (1 - e 100 ) = e 100 , t ≥0
2
−t
2 100
f (t ) 100 t e 2t t
z(t) = = = = , t ≥0.
R (t) −t
2
100 50
e 100
2
−8 −64
(c) R(t=8) = e 100 = e 100 = e−0.64 = 0.5273
8
z(t) = z(8) = = 0.16
50
Exercises
1. Find the hazard rate for the Weibull distribution for shape parameter 1, 2, and 3.
2. The failure time of a computer disk pack is considered to be an initial failure if it occurs
prior to time t = α and a wear-out failure if it occurs after time t = β . Suppose the failure
1
time distribution during the useful life of the disk pack is given by: f(t) = , α ≤ t ≤ β.
β−α
Then find F(t), R(t) and z(t) and for α =100∧β=1500, what is the reliability of the dick
pack at t= 500 hours?
3. Mechanical engineers conducted a reliability analysis of lead-free solder joints used in
microscopic electronic packages. The minimum time required by cracks in the solder
joints to propagate through the weakest joint (i.e., the failure time) was approximated
using a Weibull distribution with shape parameter 3.5 and the mean failure time of 2370
hours. Then find an estimate of the scale parameter, z(t) and the hazard rate at t= 5000
hours.
5.2 Types of reliability tests
A life testing is an experiment conducted to obtain sample values of the lengths of life of some
product items. Typically, a random sample of n items is placed on test under specified
environmental conditions and left on test until they fail. The recorded times to failure, t 1, t2, …tn
provide a random sample of observations on the length of life T of the product. If for
convenience we let t1 represent the smallest failure time and t n the largest, then the times might
appear as points on a time line. In many situations, life tests are conducted to determine the
quality of a manufactured product prior to sale. Waiting for the last few items in a sample to fsil
can be time-consuming and expensive. To reduce the cost of waiting for some long-life items,
tests are often concluded after a specified length T = t c of test time. When we do this, we say that
the life test is censored at time t c. The second type of censored sampling occurs when we
conclude the testing after a fixed number r of items has failed. There are many other types of life
testing procedures. In life testing with replacement, product items are replaced on the test
equipment as soon as an item fails a procedure that makes maximum use of the test equipment.
Estimating parameters of a Weibull failure time distribution
The method of maximum likelihood can be used to obtain estimates of the shape and scale
parameters of Weibull distribution, but the procedure is difficult. The disadvantage of the
method of maximum likelihood is that the estimates of shape and scale parameters are obtained
by solving a complicated pair of simultaneous nonlinear equations. The advantage of the method
is that when the sample size is large, maximum likelihood estimators possess sampling
distributions that are approximately normal with known mean and variance.
In seated of using the method of maximum likelihood to estimate shape and scale parameters, we
will use the method of least-squares. Recall that the following for the Weibull distribution:
α α
−t −t
F(t) = 1 - e β , t≥ 0 , then the probability of survival to time t is R(t) = e β , , t≥ 0 and
1 α
t
= e β.
R (t)
α
t
Taking the natural logarithms on both sides of this equation, we obtain: –ln(R(t)) = and then
β
Ln(-ln(R(t))) = - ln β + α lnt.
To use the method of least-square, we need to estimate the survival function based on life test
data. One way to do this is to place random sample of n items on life test and count the number
of survivors at the end of one unit of time (for example, a week, or a month), after two units of
time, and, in general, after, i units of time, i = 1, 2, 3, …. An estimate of the proportion of
ni
survivors at time i is ^
R (i) = , where ni is number of survivors at the end of the i th time unit and
n
n is total number of items placed on test. We would calculate ^
R (i) for i = 1, 2,3, …. and then fit
the least-square line as: ln [−ln R
^ ( i ) ]= y ,−ln β=a and α ln(i)¿ bx to the data points (xi, yi), i= 1,
DAY 1 2 3 4 5 6 7
NUMBER OF SURVIVORS 69 48 33 21 13 7 4
(a) Estimate the shape and scale parameters of weibull distribution by using least-square method.
(b) Find the 95% CI for the shape and scale parameters of Weibull distribution.
Solution:
ni
^
R (i) =
i xi =ln (i) N.S. n -ln( ^
R (i)) yi = ln [−ln R
^ (i)]
1 0.00 69 0.69 0.37 -0.99
2 0.69 48 0.48 0.73 -0.31
3 1.10 33 0.33 1.11 0.10
4 1.39 21 0.21 1.56 0.45
5 1.61 13 0.13 2.04 0.71
6 1.79 7 0.07 2.66 0.98
7 1.95 4 0.04 3.22 1.17
(a) The simple linear regression equation is: yi = - 1.05 + 1.11 xi, then after α^ = b^ and ^β =
− a^
implies that α^ = 1.11 and ^β = e−a = e−(−1.05) = 2.86045.
^
e
Therefore, based on the method of least-square, we would use a Weibull distribution with shape
and scale parameters of 1.11 and 2.86 to model the failure time distribution of the hydraulic
seals. So, find F(t), R(t) and z(t) for the hydraulic seals.
(b) The SPSS output gives us the 95% confidence interval as shown below. Therefore, the
95% CI forα is (1.02, 1.197) and for β is (e 0.928, e 1.171) equals (2.5382, 3.2236).
Model Unstandardized Coefficients t 95.0% Confidence Interval for B
B Std. Error Lower Bound Upper Bound
(Constant) -1.050 .047 -22.132 -1.171 -.928
1
xi 1.109 .035 32.124 1.020 1.197
Exercise: Suppose the life length (in year) of a memory chip in a main frame computer has a Weibull
failure time distribution. To estimate the Weibull parameters, 50 chips were placed on test and the
number of survivors was recorded at the end of each year, for a period of 8 years, as listed in the
following table.
YEAR 1 2 3 4 5 6 7 8
NUMBER OF SURVIVORS 47 39 29 18 11 5 3 1
(a) Estimate the shape and scale parameters of weibull distribution by using least-square method.
(b) Find the 95% CI for the shape and scale parameters of Weibull distribution.
(c) Find F(t), R(t) and z(t) for the memory chip based on the result of (a).