Module02_ControlChart
Module02_ControlChart
Process Capability
Prof. Sayak Roychowdhury
Sampling
• It is not always possible to measure quality characteristics
of each item in a population.
• Samples are used to provide information about process or
product characteristics at a fraction of cost.
• Necessary for destructive tests
• A sampling design is a procedure by which the
observations in a sample are chosen from the population
• An element is an object for which data are gathered
• A sampling unit is an individual element or a collection of
elements from a population
• A sampling frame is a list of sampling units
Sampling Errors
Sampling
D2 = 4.698
10
D1 = 0.000
0 8
UCLXbar = Xbarbar + 3.0 ×
n 6
UCL
Signals on the R chart. Do 4 Xbar
detective work. Overnight
stays. Not fair to keep. 2
So remove. 0
1 6 11 16 21
21
16
11 UC
LR
1
1 6 11 16 21
27.08.2024
Control Limits of Shewhart Control
Chart
• R chart
• 𝑈𝐶𝐿𝑅ത = 𝑅ത + 3𝜎𝑅ത ≈ 𝐷4 𝑅ത
• 𝐿𝐶𝐿𝑅ത = 𝑅ത − 3𝜎𝑅ത ≈ 𝐷3 𝑅ത
Derivation
1 𝑚 1
• 𝑋ത = σ𝑖=1 𝑋ത𝑖 = σ𝑚
𝑖=1 σ𝑛
𝑗=1 𝑋𝑖𝑗 Centre Line
𝑚 mn
• UCL and LCL these are 3 sigma
𝜎
ത
• 𝑋~𝑁 𝜇, 𝜎 , 𝑋~𝑁(𝜇, )
𝑛
𝜎
• UCL = 𝑋ത + 3𝜎𝑋ത = 𝑋ത + 3
𝑛
𝜎
• LCL = 𝑋ത − 3𝜎𝑋ത = 𝑋ത − 3
𝑛
Derivation
• Relative Range 𝑊 = 𝑅/𝜎 a random variable
• Parameters of distribution of 𝑊 depend on sample size 𝑛
• Mean of 𝑊 is 𝑑2
ത 2 as 𝑅ത is
• Estimator of 𝜎 is 𝜎ො = 𝑅/𝑑2 , we may use 𝜎ො = 𝑅/𝑑
the average range of 𝑚 preliminary samples
• 𝑈𝐶𝐿 = 𝑥ҧ + 3𝜎/ො 𝑛 = 𝑥ҧ + 3𝑅/(𝑑ത ഥ ഥ
2 𝑛) = 𝒙 + (𝑨𝟐 )𝑹
• 𝐶𝐿 = 𝑥ҧ
• 𝐿𝐶𝐿 = 𝑥ҧ − 3𝜎/ො 𝑛 = 𝑥ҧ − 3𝑅/(𝑑 ത ഥ ഥ
2 𝑛)) = 𝒙 − (𝑨𝟐 )𝑹
Derivation
• Standard deviation of 𝑊 is 𝑑3
• Estimator of 𝜎 is 𝜎ො = 𝑅/𝑑2
• Standard deviation of 𝑅 can be written as 𝜎𝑅 = 𝑑3 𝜎 as
𝑅 = 𝑊𝜎
ത 2
• 𝜎ො𝑅 = 𝑑3 𝑅/𝑑
• For R chart
ത
3𝑑 𝑅
• 𝑈𝐶𝐿 = 𝑅ത + 3𝜎ො𝑅 = 𝑅ത + 3 = 𝑫𝟒 𝑹ഥ
𝑑2
• 𝐿𝐶𝐿 = 𝑅ത − 3𝜎ො𝑅 = 𝑅ത − 3𝑑3 𝑅/𝑑
ത 2 = 𝑫𝟑 𝑹
ഥ
• 𝐶𝐿 = 𝑅ത
Revised Control Limits
Discard out of control samples with assignable causes.
ത 𝑚𝑋ത −σ𝑑 𝑋ത 𝑑
𝑋𝑛𝑒𝑤 = = 𝑋ത0
𝑚−𝑑
𝑚𝑅ത −σ𝑑 𝑅𝑑
𝑅ത𝑛𝑒𝑤 = = 𝑅ത0
𝑚−𝑑
𝑅ത0
𝜎0 = ( 𝑑2 can be found in table)
𝑑2
𝑈𝐶𝐿𝑋ത = 𝑋ത0 + 𝐴 𝜎0 ; 𝐿𝐶𝐿𝑋ത = 𝑋ത0 − 𝐴 𝜎0
𝑈𝐶𝐿𝑅ത = 𝐷2 𝜎0 ; 𝐿𝐶𝐿𝑅ത = 𝐷1 𝜎0 ;
27.08.2024
X-bar and R chart
• 𝑋ത chart monitors between sample variability, 𝑅 chart
monitors within sample variability
• To design 𝑋ത − 𝑅 chart, the following must be specified:
• Sample size
• Control limit width
• Frequency of sampling
• 𝑋ത chart is capable to signal moderate to large process
shifts (2𝜎 or larger)
• 𝑅 chart is relatively insensitive to shift in process standard
deviation for small samples 𝑒. 𝑔. 𝑛 = 5
Error in Making Inference
• Type I Error: This error results from inferring a process is
out of control when it is not. It is denoted by 𝛼. This
happens due to chance causes, when a control charts falls
outside control limits. For 3𝜎 limits, probability of type I
error is 0.0027.
• Type II Error: This error results from inferring a process is
in control when it is out of control. It is denoted by 𝛽. This
can happen when the process mean or the process
variability or both have changed.
Xbar & R Charting
Subgp. X1 X2 X3 X4 Xbar R
• Step 1. (Startup) Collect data for 25. 1 20.50 3.10 2.10 4.00 7.43 18.40
D2 = 4.698
10
D1 = 0.000
0 8
UCLXbar = Xbarbar + 3.0 ×
n 6
UCL
Signals on the R chart. Do 4 Xbar
detective work. Overnight
stays. Not fair to keep. 2
So remove. 0
1 6 11 16 21
21
16
11 UC
LR
1
1 6 11 16 21
27.08.2024
Revised Limits
Phase I Phase II
d2(n=4) = 2.059
9
est = 6.300/2.059 = 3.062 8
D2 = 4.698 7 Range of Times (4
patients, not including one Revised
D1 = 0.000 6 "extra-long" overnight UCLXbar
5 Xbar
60 = the process capability 4 CLXbar
= 18.4 hours 3 LCLXbar
11
UCLR
R
CLR
6
1
1 6 11 16
Subgroup 21 26 31
27.08.2024
Revision Formula
Xbarbar,revised = [25 Xbarbar,trial – (removed)] ÷ (25 – # removed)]
(25*3.86 – 7.43 – 6.08) ÷ 23 = 3.6 hours
Makes a small difference but it is fair as long as we clarify we are not
considering overnight stays
Only remove if an assignable cause was found and eliminated.
Otherwise leave data in (common or chance causes).
27.08.2024
X bar and S chart
• It is occasionally desirable to monitor process standard
deviation directly, rather than indirectly as done in 𝑅
chart.
• 𝑋ത and 𝑆 chart are preferable when
• The sample size 𝑛 is moderately large for 𝑛 > 10 or 12.
• The sample size 𝑛 is variable
• The unbiased estimator of population variance 𝜎 2 is
sample variance 𝑠 2
σ𝑛 2
2 𝑖=1 𝑖 𝑥 − 𝑥ҧ
𝑠 =
𝑛−1
• The sample sd 𝑠 estimates 𝑐4 𝜎, sd of 𝑠 is 𝜎 1 − 𝑐42
*
Xbar and S Chart
• Since 𝐸 𝑠 = 𝑐4 𝜎 the center line is 𝑐4 𝜎. The 3 sigma limits
of the s-chart is given by
𝑈𝐶𝐿 = 𝑐4 𝜎 + 3𝜎 1 − 𝑐42
𝐶𝐿 = 𝑐4 𝜎
𝐿𝐶𝐿 = 𝑐4 𝜎 − 3𝜎 1 − 𝑐42
X bar and S chart with Sample Estimators
• Consider 𝑠/𝑐4 as an unbiased estimator of 𝜎
• For 𝑚 preliminary samples with sd 𝑠𝑖 , the average of m
1 𝑚
standard deviation is given by 𝑠ҧ = σ𝑖=1 𝑠𝑖
𝑚
3𝑠 ҧ
𝑈𝐶𝐿 = 𝑠ҧ + 1 − 𝑐42 = 𝐵4 𝑠ҧ
𝑐4
𝐶𝐿 = 𝑠ҧ
3𝑠ҧ
𝐿𝐶𝐿 = 𝑠ҧ − 1 − 𝑐42 = 𝐵3 𝑠ҧ
𝑐4
3 3
Where 𝐵3 = 1 − 1 − 𝑐42 and 𝐵4 = 1 + 1 − 𝑐42
𝑐4 𝑐4
X bar and S chart with Sample Estimators
• Control limit for corresponding 𝑋ത chart is given by
3 𝑠ҧ
𝑈𝐶𝐿𝑋ത = 𝑥ҧ + = 𝑥ҧ + 𝐴3 𝑠ҧ
𝑐4 𝑛
𝐶𝐿𝑋ത = 𝑥ҧ
3𝑠 ҧ
𝐿𝐶𝐿𝑋ത = 𝑥ҧ − = 𝑥ҧ − 𝐴3 𝑠ҧ
𝑐4 𝑛
Probability of an Xbar False Alarm
Assume that the subgroups are rational (skipping and
representative of a homogeneous group) and the
system is under control (no assignable causes so
distribution is the same), what is probability of a false
alarm on the next subgroup from the Xbar chart?
CLT → Xbar ~ N[,/sqrt(n)]
1-Pr{LCLXbar = – 3/sqrt(n) ≤ Xbar ≤ UCLXbar = +
3/sqrt(n)} =1- Pr{-3 ≤ Z ≤ 3} = 1-2 Pr{Z ≤ -3} = 0.0027
Even if you are doing everything correctly, you have a
0.0027 chance of a false alarm.
(Average Run Length (ARL) in control 1÷0.0027= 370.4)
27.08.2024
Average Run Length (ARL)
• To measure the performance of a control chart, ARL is used.
• ARL denotes the number of samples, on average, required to
detect and out of control signal.
• If 𝑃𝑑 is the probability that a process is out of control then run
length is 1 with probability 𝑃𝑑 , 2 with probability 1 − 𝑃𝑑 𝑃𝑑 ,
3 with 1 − 𝑃𝑑 2 𝑃𝑑 . Hence
∞ 𝑗−1 𝑃𝑑 1
𝐴𝑅𝐿 = σ𝑗=1 𝑗 1 − 𝑃𝑑 𝑃𝑑 = 2 =
1− 1−𝑃𝑑 𝑃𝑑
• For a process in control, 𝑃𝑑 is 𝛼 (probability of type I error)
• For an in-control process, ARL should be as large as possible.
• For an out of control process 𝑃𝑑 = 1 − 𝛽. 𝛽: Probability of
1
Type II error. 𝐴𝑅𝐿 =
1−𝛽
• For out of control process, ARL should be as small as possible.
ARL Curve
𝑈𝑆𝐿 − 𝐿𝑆𝐿 𝐶𝑝
𝐶𝑝𝑚 = =
6 𝜎2 + 𝜇 − 𝑇 2 1 + 𝜉2
𝜇−𝑇
Where 𝜉 =
𝜎
Process Capability 𝐶𝑝𝑚
• A necessary condition for 𝐶𝑝𝑚 ≥ 1 is
1
𝜇−𝑇 < (USL − LSL)
6
𝛽 = Φ 𝐿 − 𝑘 𝑛 − Φ −𝐿 − 𝑘 𝑛
Attribute Control
Charts, I-MR Chart
Prof. Sayak Roychowdhury
Control Charts
P-chart (fraction of non-conforming)
• Step 1. (Startup) Obtain the total fraction of nonconforming units or systems
using 25 rational subgroups each of size n.
• Step 2. (Startup) Calculate “trial” limits:
ҧ
𝑝(1− 𝑝)ҧ
• 𝑈𝐶𝐿 = 𝑝ҧ + 3 (Minitab>Stat>Control charts>Attribute Charts>P)
𝑛
ҧ
𝑝(1− 𝑝)ҧ
• 𝐿𝐶𝐿 = 𝑝ҧ − 3
𝑛
• Step 3. (Startup) Identify all the periods for which p = fraction nonconforming in
that period and p < LCLtrial or p > UCLtrial. Investigate, remove if unfair.
• Step 4. (Startup) Calculate the total fraction nc. using remaining. New 𝒑
ഥ=
“process capability”. Calculate revised limits.
• Step 5. (Steady State) Plot the fraction nonconforming, pj, for each period j and
alert designated local authority if out-of-control signals occur.
https://www.spcforexcel.com/knowledge/attribute-control-charts/p-control-charts#example
https://www.spcforexcel.com/knowledge/attribute-control-charts/p-control-
https://www.spcforexcel.com/knowledge/attribute-control-charts/p-control-charts#example
charts#example
P-chart
1 0.10
0.25
1
0.08
Proportion
0.20
0.06
_
Proportion
P=0.0509
0.15 UCL=0.1555 0.04
0.02
0.10
_
P=0.076 0.00 LCL=0
0.05 1 3 5 7 9 11 13 15 17 19 21
Sample
Results exclude specified rows: 14:16
0.00 LCL=0
1 3 5 7 9 11 13 15 17 19 21 23 25
Sample
Capability = 0.0909
np-chart (# of non-conforming)
𝑛
• 𝑃 𝑥 ≤ 𝑛𝐿𝐶𝐿 𝑝 = σ𝑛𝐿𝐶𝐿
𝑥=0 𝑥
𝑝𝑥 1 − 𝑝 1−𝑥
C-chart (count of non-conformities)
• Step 1. (Startup) Collect data
• Step 2. (Startup) Subgroup size is one inspected unit (e.g. 1 airplane, 1 case
of pencils)
• Step3.Calculate trial limits
• 𝑈𝐶𝐿𝑡𝑟𝑖𝑎𝑙 = 𝑐ҧ + 3 𝑐ҧ , 𝐶𝐿𝑡𝑟𝑖𝑎𝑙 = 𝑐ҧ (average count of non-
conformities)
• 𝐿𝐶𝐿𝑡𝑟𝑖𝑎𝑙 = 𝑀𝑎𝑥 {𝑐ҧ − 3 𝑐,ҧ 0}
• Step 3. (Startup) Find out of control signals. Remove if unfair.
• Step 4. (Startup) Revise limits Revised 𝒄ത is process capability
• Step 5. (Steady State) Plot and local authority investigates if out-of-control
signals occur (can act).
2.000
1.500 u
UCL
u-Bar
1.000 LCL
0.500
0.000
1 3 5 7 9 11 13 15 17 19 21 23 25
Subgroup Number
Demerit Chart
• Determine 4 classes of non-conformities, very serious (A), serious (B)
moderately serious (C), and minor (D). Assign weights 𝑤𝐴 , 𝑤𝐵 , 𝑤𝐶 and 𝑤𝐷 .
• For sample size 𝑛, let 𝑐𝐴 , 𝑐𝐵 , 𝑐𝐶 , 𝑐𝐷 denote the total number of defects of
each class.
• Determine standard non-conformities per unit 𝑢ത𝐴 , 𝑢ത 𝐵 , 𝑢ത 𝐶 , 𝑢ത 𝐷
• 𝐷 = 𝑤𝐴 𝑐𝐴 + 𝑤𝐵 𝑐𝐵 + 𝑤𝐶 𝑐𝐶 + 𝑤𝐷 𝑐𝐷
𝐷
• Demerits per unit is given by U =
𝑛
ഥ = 𝑤𝐴 𝑢ത𝐴 + 𝑤𝐵 𝑢ത 𝐵 + 𝑤𝐶 𝑢ത 𝐶 + 𝑤𝐷 𝑢ത 𝐷
• CL = 𝑈
2𝑢
𝑤𝐴 2𝑢
ഥ𝐴 +𝑤𝐵 ഥ𝐵 +𝑤𝐶2 𝑢 2𝑢
ഥ𝐶 + 𝑤𝐷 ഥ𝐷
• 𝜎0𝑢 =
𝑛
ഥ + 3𝜎0𝑢 𝐿𝐶𝐿 = 𝑈
• 𝑈𝐶𝐿 = 𝑈 ഥ − 3𝜎0𝑢
Chart Comparison
Method Advantages Disadvantages
Xbar & R Uses fewer inspections, gives Requires 2 or more
charting greater sensitivity charts for single type of
unit
p-charting Requires only go-no-go data, Requires many more
intuitive inspections, less sensitive
Demerit charting Addresses differences between Requires more
nonconformities inspections (but less than
p), less sensitive
u-charting Relatively simple version of Requires more
demerit charts inspections (but less than
p), less sensitive
c-charting Simple (u with n = 1) Requires more
inspections (but less than
p), less sensitive
Np-charting Simpler (equivalent to p just Same as p plus cannot
no ÷ n) have variable n
I-MR (Individual, Moving Range) Chart
• For some cases, rate of production is low, it is not feasible
for a sample size to be greater than 1.
• When testing process is destructive, and the cost of item
is high, then sample size might be chosen to be 1.
• If every unit is inspected, sample size is 1.
• Data comes slowly, so samples with elements produced at
long intervals creates problem for rational subgrouping.
I-MR chart (ch 6.4)
• Control chart for individual measurements
• Useful for detection of system stability
• 𝑅𝑖 = 𝑥𝑖 − 𝑥𝑖−1 (moving ranges)
• Trial Limits
𝑀𝑅
• 𝑈𝐶𝐿 = 𝑥ҧ + 3 ∗ (for n=2, 𝑑2 =1.128) 𝑈𝐶𝐿𝑅 = 𝐷4 𝑀𝑅, 𝐷4 = 3.267 𝑓𝑜𝑟 𝑛 = 2
𝑑2
• 𝐶𝐿 = 𝑥ҧ 𝐶𝐿𝑅 = 𝑀𝑅
𝑀𝑅
• 𝐿𝐶𝐿 = 𝑥ҧ − 3 ∗ 𝐿𝐶𝐿𝑅 = 0
𝑑2
• Revised Limits
• 𝜎0 = 0.8865𝑀𝑅0 , 𝑥0 = 𝑥ҧ𝑛𝑒𝑤
• 𝑈𝐶𝐿 = 𝑥0 + 3𝜎0 𝑈𝐶𝐿𝑅 = 3.686𝜎0
• 𝐿𝐶𝐿 = 𝑥0 − 3𝜎0 𝐿𝐶𝐿𝑅 = 0
• Minitab > Stat> Control charts > Variable charts for individuals > I-MR
• Researchers have indicated that MR chart cannot really provide additional
information on variability, MR values are not independent.
EWMA & CUSUM
Charts
Prof. Sayak Roychowdhury
Limitations of Shewhart Charts
• In Shewhart chart, the plotted point represents
information corresponding to last observation only.
• It does not use information from previous observations.
• This makes Shewhart charts insensitive to small shifts.
• They are less useful in phase II.
• Warning limits and patterns can be useful, but they
reduce the simplicity of the control charts
CUSUM Chart and EWMA Chart
• To detect small process shifts, CUSUM (Cumulative sum)
and EWMA (Exponentially weighted moving average)
charts are used as alternatives to Shewhart Control Chart
• These are good alternatives for phase II process
monitoring
• Sometimes process needs to be monitored when sample
size n =1, both CUSUM and EWMA charts work well in this
situation.
• EWMA charts are particularly robust against non-
normality (read section Montgomery 9.2.3).
CUSUM Chart
• First proposed by Page (1954)
• The CUSUM chart plots the quantity
𝑖
𝐶𝑖 = (𝑥𝑗ҧ − 𝜇0 )
𝑗=1
Where 𝑥𝑗ҧ is the average of the 𝑗𝑡ℎ sample
𝜇0 is the target for process mean
Also applicable for 𝑛 = 1
• So CUSUM charts are particularly useful in chemical and
process industries and discrete part manufacturing,
where frequently subgroup size is 1.
CUSUM Chart (Ch 9.1 Montgomery)
• There are 2 ways to represent CUSUM charts, tabular method
and V-mask method. We will discuss tabular method.
• The tabular cusum works by accumulating derivations from 𝜇0
that are above target with one statistic 𝐶𝑖+ and accumulating
derivations from 𝜇0 that are below target with another
statistic 𝐶𝑖−
• 𝐶𝑖+ = max(0, 𝑥𝑖 − 𝜇0 + 𝐾 + 𝐶𝑖−1 +
) (Upper CUSUM)
• 𝐶𝑖− = max(0, 𝜇0 − 𝐾 − 𝑥𝑖 + 𝐶𝑖−1 −
) (Lower CUSUM)
• 𝐶0+ = 𝐶0− = 0
• 𝐶𝑖+ > 𝐻 or 𝐶𝑖− > 𝐻 indicate the process mean has shifted
• 𝐾 is called reference value, allowance or slack value, 𝐻 is
called decision interval
CUSUM Chart
• 𝐾 = 𝑘𝜎, typically halfway between 𝜇0 and out of control
mean 𝜇1 that we want to detect
𝜇1 −𝜇0
•𝐾= = 𝑘𝜎
2
• Note that 𝐶𝑖+ and 𝐶𝑖− accumulate deviations from the target
value 𝜇0 that are greater than K, with both quantities reset to
zero on becoming negative.
• If either 𝐶𝑖+ or 𝐶𝑖− exceed the decision interval H, the process
is considered to be out of control
• 𝐻 = ℎ𝜎
• 𝐾 and 𝐻 are chosen to provide good ARL performance
• Generally 𝑘 = 0.5, and ℎ = 4 𝑜𝑟 5 are chosen. Read (9.1.3)
CUSUM Chart
CUSUM Chart Parameter Values and ARL
Exercise
EWMA chart (ch 9.2 Montgomery)
• Control chart to detect small shift in the process, ideally used with individual observations.
• The exponentially weighted moving average is defined as
𝑧𝑖 = 𝜆𝑥𝑖 + 1 − 𝜆 𝑧𝑖−1 (𝑧0 = 𝜇0 𝑡𝑎𝑟𝑔𝑒𝑡 𝑜𝑟 𝑋ത )
• 𝜆 should be between 0.05 , 0.25 (use smaller 𝜆 for smaller shifts)
• Limits
• 𝑈𝐶𝐿 = 𝑋ത + 𝐿𝜎 𝜆/(2 − 𝜆)[1 − 1 − 𝜆 2𝑖 ]
• 𝐶𝐿 = 𝑋ത
• 𝐿𝐶𝐿 = 𝑋ത − 𝐿𝜎 𝜆/(2 − 𝜆)[1 − 1 − 𝜆 2𝑖 ]
• Use 𝜇0 (target mean) in place of 𝑋ത if given