Module02 ControlChart Part1
Module02 ControlChart Part1
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
8
0
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
13.08.2025
Control Limits of Shewhart Control
Chart
• R chart
• 𝑈𝐶𝐿 𝑅 3𝜎 𝐷 𝑅
• 𝐿𝐶𝐿 𝑅 3𝜎 𝐷 𝑅
Derivation
•𝑋 ∑ 𝑋 ∑ ∑ 𝑋 Centre Line
• 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 𝑑
• Estimator of 𝜎 is 𝜎 𝑅/𝑑 , we may use 𝜎 𝑅 /𝑑 as 𝑅 is
the average range of 𝑚 preliminary samples
• 𝑈𝐶𝐿 𝑥̅̅ 3𝜎/ 𝑛 𝑥̅̅ 3𝑅 / 𝑑 𝑛 𝒙 𝑨𝟐 𝑹
• 𝐶𝐿 𝑥̅̅
• 𝐿𝐶𝐿 𝑥̅̅ 3𝜎/ 𝑛 𝑥̅̅ 3𝑅 / 𝑑 𝑛 𝒙 𝑨𝟐 𝑹
Derivation
• Standard deviation of 𝑊 is 𝑑
• Estimator of 𝜎 is 𝜎 𝑅/𝑑
• Standard deviation of 𝑅 can be written as 𝜎 𝑑 𝜎 as
𝑅 𝑊𝜎
•𝜎 𝑑 𝑅 /𝑑
• For R chart
• 𝑈𝐶𝐿 𝑅 3𝜎 𝑅 𝑫𝟒 𝑹
• 𝐿𝐶𝐿 𝑅 3𝜎 𝑅 3𝑑 𝑅/𝑑 𝑫𝟑 𝑹
• 𝐶𝐿 𝑅
Revised Control Limits
Discard out of control samples with assignable causes.
∑
𝑋 𝑋
∑
𝑅 𝑅
𝜎 ( 𝑑 can be found in table)
𝑈𝐶𝐿 𝑋 𝐴 𝜎 ; 𝐿𝐶𝐿 𝑋 𝐴𝜎
𝑈𝐶𝐿 𝐷 𝜎 ; 𝐿𝐶𝐿 𝐷𝜎 ;
13.08.2025
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
13.08.2025
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
8
0
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
13.08.2025
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).
13.08.2025
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 𝜎 is
sample variance 𝑠
∑ 𝑥 𝑥̅
𝑠
𝑛 1
• The sample sd 𝑠 estimates 𝑐 𝜎, sd of 𝑠 is 𝜎 1 𝑐
*
Xbar and S Chart
• Since 𝐸 𝑠 𝑐 𝜎 the center line is 𝑐 𝜎. The 3 sigma limits
of the s-chart is given by
𝑈𝐶𝐿 𝑐 𝜎 3𝜎 1 𝑐
𝐶𝐿 𝑐 𝜎
𝐿𝐶𝐿 𝑐 𝜎 3𝜎 1 𝑐
X bar and S chart with Sample Estimators
• Consider 𝑠/𝑐 as an unbiased estimator of 𝜎
• For 𝑚 preliminary samples with sd 𝑠 , the average of m
standard deviation is given by 𝑠̅ ∑ 𝑠
̅
𝑈𝐶𝐿 𝑠̅ 1 𝑐 𝐵 𝑠̅
𝐶𝐿 𝑠̅
̅
𝐿𝐶𝐿 𝑠̅ 1 𝑐 𝐵 𝑠̅
Where 𝐵 1 1 𝑐 and 𝐵 1 1 𝑐
X bar and S chart with Sample Estimators
• Control limit for corresponding 𝑋 chart is given by
̅
𝑈𝐶𝐿 𝑥̅̅ 𝑥̅̅ 𝐴 𝑠̅
𝐶𝐿 𝑥̅̅
̅
𝐿𝐶𝐿 𝑥̅̅ 𝑥̅̅ 𝐴 𝑠̅
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)
13.08.2025
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 𝑃 𝑃 . Hence
𝐴𝑅𝐿 ∑ 𝑗 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
Type II error. 𝐴𝑅𝐿
• For out of control process, ARL should be as small as possible.
ARL Curve