SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
Spanos

EE290H F05

CUSUM, MA and EWMA Control Charts

Increasing the sensitivity and getting ready for
automated control:
The Cumulative Sum chart, the Moving
Average and the Exponentially Weighted
Moving Average Charts.

Lecture 14: CUSUM and EWMA

1
Spanos

EE290H F05

Shewhart Charts cannot detect small shifts
The charts discussed so far are variations of the Shewhart
chart: each new point depends only on one subgroup.
Shewhart charts are sensitive to large process shifts.
The probability of detecting small shifts fast is rather small:

Fig 6-13 pp 195 Montgomery.

Lecture 14: CUSUM and EWMA

2
Spanos

EE290H F05

Cumulative-Sum Chart

If each point on the chart is the cumulative history (integral)
of the process, systematic shifts are easily detected. Large,
abrupt shifts are not detected as fast as in a Shewhart chart.

CUSUM charts are built on the principle of Maximum
Likelihood Estimation (MLE).
Lecture 14: CUSUM and EWMA

3
Spanos

EE290H F05

Maximum Likelihood Estimation
The "correct" choice of probability density function (pdf)
moments maximizes the collective likelihood of the
observations.
If x is distributed with a pdf(x,θ) with unknown θ, then θ can
be estimated by solving the problem:
m

max θ

Π pdf( xi,θ )
i=1

This concept is good for estimation as well as for comparison.

Lecture 14: CUSUM and EWMA

4
Spanos

EE290H F05

Maximum Likelihood Estimation Example
To estimate the mean value of a normal distribution, collect
the observations x1,x2, ... ,xm and solve the non-linear
programming problem:

⎧
⎫
⎧
2 ⎫
2
ˆ
ˆ
1 ⎛ x −μ ⎞
1 ⎛ x −μ ⎞ ⎞
⎛ 1
⎪m
⎪
m
− ⎜ i
− ⎜ i
⎟ ⎪
⎟
⎪
1
⎪
2⎝ σ ⎠
2 ⎝ σ ⎠ ⎟⎪
⎜
max μ ⎨Π
e
e
⎬ or min μ ⎨iΣ1 log⎜
ˆ
ˆ
⎟⎬
i =1 σ 2π
=
σ 2π
⎪
⎪
⎪
⎝
⎠⎪
⎪
⎪
⎩
⎭
⎩
⎭

Lecture 14: CUSUM and EWMA

5
Spanos

EE290H F05

MLE Control Schemes
If a process can have a "good" or a "bad" state (with the control
variable distributed with a pdf fG or fB respectively).
This statistic will be small when the process is "good" and large when
"bad":
m

f B(x i)
Σ log f G(xi)
i=1

m

m

log(Π pi ) = ∑ log( pi )
i =1

Lecture 14: CUSUM and EWMA

i =1

6
Spanos

EE290H F05

MLE Control Schemes (cont.)
Note that this counts from the beginning of the process. We
choose the best k points as "calibration" and we get:
m

k

f B(x i)
f B(x i)
S m = Σ log
- min k < m Σ log
>L
f G(x i)
f G(x i)
i=1
i=1
or
f B(x m)
S m = max (S m-1+log
, 0) > L
f G(x m)
This way, the statistic Sm keeps a cumulative score of all the
"bad" points. Notice that we need to know what the "bad"
process is!
Lecture 14: CUSUM and EWMA

7
Spanos

EE290H F05

The Cumulative Sum chart
If θ is a mean value of a normal distribution, is simplified to:
m

S m = Σ (x i - µ 0)
i=1

where μ0 is the target mean of the process. This can be
monitored with V-shaped or tabular “limits”.
Advantages
The CUSUM chart is very effective for small shifts and
when the subgroup size n=1.
Disadvantages
The CUSUM is relatively slow to respond to large shifts.
Also, special patterns are hard to see and analyze.
Lecture 14: CUSUM and EWMA

8
Spanos

EE290H F05

Shewhart small shift

Example
15
10
5
0
-5
-10
-15

UCL=13.4

µ0=-0.1

20

40

60

80

100

120

140

0

CUSUM small shift

0

LCL=-13.6
160

20

40

60

80

100

120

140

160

120
100
80
60
40
20
0
-20
-40
-60

Lecture 14: CUSUM and EWMA

9
Spanos

EE290H F05

The V-Mask CUSUM design
for standardized observations yi=(xi-μo)/σ

Need to set L(0) (i.e. the run length when the process is in
control), and L(δ) (i.e. the run-length for a specific deviation).

Figure 7-3 Montgomery pp 227

Lecture 14: CUSUM and EWMA

10
Spanos

EE290H F05

The V-Mask CUSUM design
for standardized observations yi=(xi-μo)/σ
δ is the amount of shift (normalized to σ) that we wish to detect with type I
error α and type II error β.
Α is a scaling factor: it is the horizontal distance between successive
points in terms of unit distance on the vertical axis.

2 ln 1- β
d=
2
α
δ
δ= Δ
θ = tan -1 δ
σx
2A

d

Lecture 14: CUSUM and EWMA

θ

11
Spanos

EE290H F05

ARL vs. Deviation for V-Mask CUSUM

Lecture 14: CUSUM and EWMA

12
Spanos

EE290H F05

CUSUM chart of furnace Temperature difference
Detect 2Co, σ =1.5Co, (i.e. δ=1.33), α=.0027 β=0.05,
A=1
=> θ = 18.43o, d = 6.6
50

3

40

2

30

II

20

III

0

I

10

1

-1

0

-2

-10

-3
0

20

Lecture 14: CUSUM and EWMA

40

60

80

100

0

20

40

60

80

100
13
Spanos

EE290H F05

Tabular CUSUM
A tabular form is easier to implement in a CAM system
Ci+ = max [ 0, xi - ( μo + k ) + Ci-1+ ]
Ci-

= max [ 0, ( μo - k ) - xi +

h

Ci-1-

]

d

θ

C0+ = C0- = 0
k = (δ/2)/σ
h = dσxtan(θ)

Lecture 14: CUSUM and EWMA

14
Spanos

EE290H F05

Tabular CUSUM Example

Lecture 14: CUSUM and EWMA

15
Spanos

EE290H F05

Various Tabular CUSUM Representations

Lecture 14: CUSUM and EWMA

16
Spanos

EE290H F05

CUSUM Enhancements
To speed up CUSUM response one can use "modified" V
masks:
15
10
5
0
-5
0

20

40

60

80

100

Other solutions include the application of Fast Initial
Response (FIR) CUSUM, or the use of combined CUSUMShewhart charts.
Lecture 14: CUSUM and EWMA

17
Spanos

EE290H F05

General MLE Control Schemes
Since the MLE principle is so general, control
schemes can be built to detect:
• single or multivariate deviation in means
• deviation in variances
• deviation in covariances
An important point to remember is that MLE
schemes need, implicitly or explicitly, a definition of
the "bad" process.
The calculation of the ARL is complex but possible.

Lecture 14: CUSUM and EWMA

18
Spanos

EE290H F05

Control Charts Based on Weighted Averages
Small shifts can be detected more easily when multiple
samples are combined.
Consider the average over a "moving window" that contains
w subgroups of size n:
Mt =

x t + x t-1 + ... +x t-w+1
w
σ2
V(M t) = n w

The 3-sigma control limits for Mt are:
UCL = x + 3 σ
nw
LCL = x - 3 σ
nw

Limits are wider during start-up and stabilize after the first w
groups have been collected.
Lecture 14: CUSUM and EWMA

19
Spanos

EE290H F05

Example - Moving average chart
w = 10
15
10
5
0
-5
-10
0

20

40

60

80

100

120

140

160

sample
Lecture 14: CUSUM and EWMA

20
Spanos

EE290H F05

The Exponentially Weighted Moving Average
If the CUSUM chart is the sum of the entire process history,
maybe a weighed sum of the recent history would be more
meaningful:
zt = λxt + (1 - λ)zt -1

0 < λ < 1 z0 = x

It can be shown that the weights decrease geometrically
and that they sum up to unity.
t-1

z t = λ Σ ( 1 - λ )j x t - j + ( 1 - λ )t z 0
j=0

UCL = x + 3 σ
LCL = x - 3 σ
Lecture 14: CUSUM and EWMA

λ
(2-λ)n
λ
(2-λ)n
21
Spanos

EE290H F05

Two example Weighting Envelopes
relative
importance

1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0

10

EWMA 0.6
EWMA 0.1

Lecture 14: CUSUM and EWMA

20

30

40

50

-> age of sample

22
Spanos

EE290H F05

EWMA Comparisons

15

λ=0.6

10
5
0
-5
-10
0

20

40

60

0

20

40

60

80

100

120

140

160

80
100
sample

120

140

160

15
10

λ=0.1

5
0
-5
-10

Lecture 14: CUSUM and EWMA

23
Spanos

EE290H F05

Another View of the EWMA
• The EWMA value zt is a forecast of the sample at the t+1
period.
• Because of this, EWMA belongs to a general category of
filters that are known as “time series” filters.
xt = f (xt - 1, xt - 2, xt - 3 ,... )
xt- xt = at
Usually:
p

xt = Σ φixt - i +
i=1

q

Σ

θjat - j

j=1

• The proper formulation of these filters can be used for
forecasting and feedback / feed-forward control!
• Also, for quality control purposes, these filters can be used
to translate a non-IIND signal to an IIND residual...
Lecture 14: CUSUM and EWMA

24
Spanos

EE290H F05

Summary so far…
While simple control charts are great tools for visualizing
the process,it is possible to look at them from another
perspective:
Control charts are useful “summaries” of the process
statistics.
Charts can be designed to increase sensitivity without
sacrificing type I error.
It is this type of advanced charts that can form the
foundation of the automation control of the (near) future.
Next stop before we get there: multivariate and modelbased SPC!
Lecture 14: CUSUM and EWMA

25

Más contenido relacionado

La actualidad más candente

Control Charts28 Modified
Control Charts28 ModifiedControl Charts28 Modified
Control Charts28 Modifiedvaliamoley
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...The Stockker
 
Fractional factorial design tutorial
Fractional factorial design tutorialFractional factorial design tutorial
Fractional factorial design tutorialGaurav Kr
 
Control chart for variables
Control chart for variablesControl chart for variables
Control chart for variablesSahul Hameed
 
Process capability
Process capabilityProcess capability
Process capabilitypadam nagar
 
Control charts for attributes
Control charts for attributesControl charts for attributes
Control charts for attributesBuddy Krishna
 
Cause and effect diagram
Cause and effect diagramCause and effect diagram
Cause and effect diagramLizzette Danan
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous SimulationNguyen Chien
 
Statistical quality control 1,2
Statistical quality control 1,2Statistical quality control 1,2
Statistical quality control 1,2ROBERA WEGI
 
Statistical process control
Statistical process controlStatistical process control
Statistical process controlANOOPA NARAYANAN
 
Statistical Quality control
Statistical Quality controlStatistical Quality control
Statistical Quality controlDivya Paulose
 

La actualidad más candente (20)

Scatter Diagram
Scatter DiagramScatter Diagram
Scatter Diagram
 
Control Charts28 Modified
Control Charts28 ModifiedControl Charts28 Modified
Control Charts28 Modified
 
Control charts
Control chartsControl charts
Control charts
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
 
Acceptance sampling
Acceptance samplingAcceptance sampling
Acceptance sampling
 
Fractional factorial design tutorial
Fractional factorial design tutorialFractional factorial design tutorial
Fractional factorial design tutorial
 
Control chart for variables
Control chart for variablesControl chart for variables
Control chart for variables
 
Design of experiments
Design of experimentsDesign of experiments
Design of experiments
 
X‾ and r charts
X‾ and r chartsX‾ and r charts
X‾ and r charts
 
Control chart ppt
Control chart pptControl chart ppt
Control chart ppt
 
Control charts for variables
Control charts for variables Control charts for variables
Control charts for variables
 
Process capability
Process capabilityProcess capability
Process capability
 
Control charts for attributes
Control charts for attributesControl charts for attributes
Control charts for attributes
 
Cause and effect diagram
Cause and effect diagramCause and effect diagram
Cause and effect diagram
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
 
Statistical quality control 1,2
Statistical quality control 1,2Statistical quality control 1,2
Statistical quality control 1,2
 
Statistical process control
Statistical process controlStatistical process control
Statistical process control
 
Statistical Quality control
Statistical Quality controlStatistical Quality control
Statistical Quality control
 
Chapter 1 spc
Chapter 1   spcChapter 1   spc
Chapter 1 spc
 

Destacado

CAD -- CUSUM Anomaly Detection
CAD -- CUSUM Anomaly DetectionCAD -- CUSUM Anomaly Detection
CAD -- CUSUM Anomaly DetectionFarkas Kinga
 
Isen 614 project report
Isen 614 project reportIsen 614 project report
Isen 614 project reportVanshaj Handoo
 
Isen 614 project presentation
Isen 614 project presentationIsen 614 project presentation
Isen 614 project presentationVanshaj Handoo
 
Statistical Process Control
Statistical Process ControlStatistical Process Control
Statistical Process Controljohnreilly
 
Industry 4.0 : Digital Reinvention in Manufacturing Industry
Industry 4.0 : Digital Reinvention in Manufacturing IndustryIndustry 4.0 : Digital Reinvention in Manufacturing Industry
Industry 4.0 : Digital Reinvention in Manufacturing IndustryEthan Chee
 
Variation and mistake proofing
Variation and mistake proofingVariation and mistake proofing
Variation and mistake proofingLeanleaders.org
 
Variable control chart
Variable control chartVariable control chart
Variable control chartJassfer Alina
 
Bearing failure and its Causes and Countermeasures
Bearing failure and its Causes and CountermeasuresBearing failure and its Causes and Countermeasures
Bearing failure and its Causes and Countermeasuresdutt4190
 
Statistical Process Control
Statistical Process ControlStatistical Process Control
Statistical Process ControlMarwa Abo-Amra
 
Statistical Quality Control.
Statistical Quality Control.Statistical Quality Control.
Statistical Quality Control.Raviraj Jadeja
 
Journey to Industry 4.0 and beyond with Cognitive Manufacturing
Journey to Industry 4.0 and beyond with Cognitive ManufacturingJourney to Industry 4.0 and beyond with Cognitive Manufacturing
Journey to Industry 4.0 and beyond with Cognitive ManufacturingIBM Internet of Things
 

Destacado (14)

CAD -- CUSUM Anomaly Detection
CAD -- CUSUM Anomaly DetectionCAD -- CUSUM Anomaly Detection
CAD -- CUSUM Anomaly Detection
 
Isen 614 project report
Isen 614 project reportIsen 614 project report
Isen 614 project report
 
Bearings and failures
Bearings and failuresBearings and failures
Bearings and failures
 
SPC and Control Charts
SPC and Control ChartsSPC and Control Charts
SPC and Control Charts
 
Isen 614 project presentation
Isen 614 project presentationIsen 614 project presentation
Isen 614 project presentation
 
Statistical Process Control
Statistical Process ControlStatistical Process Control
Statistical Process Control
 
Industry 4.0 : Digital Reinvention in Manufacturing Industry
Industry 4.0 : Digital Reinvention in Manufacturing IndustryIndustry 4.0 : Digital Reinvention in Manufacturing Industry
Industry 4.0 : Digital Reinvention in Manufacturing Industry
 
Variation and mistake proofing
Variation and mistake proofingVariation and mistake proofing
Variation and mistake proofing
 
Variable control chart
Variable control chartVariable control chart
Variable control chart
 
Bearing failure and its Causes and Countermeasures
Bearing failure and its Causes and CountermeasuresBearing failure and its Causes and Countermeasures
Bearing failure and its Causes and Countermeasures
 
Statistical Process Control
Statistical Process ControlStatistical Process Control
Statistical Process Control
 
Statistical Quality Control.
Statistical Quality Control.Statistical Quality Control.
Statistical Quality Control.
 
Journey to Industry 4.0 and beyond with Cognitive Manufacturing
Journey to Industry 4.0 and beyond with Cognitive ManufacturingJourney to Industry 4.0 and beyond with Cognitive Manufacturing
Journey to Industry 4.0 and beyond with Cognitive Manufacturing
 
LIÇÃO 12 - QUEM AMA CUMPRE PLENAMENTE A LEI DIVINA
LIÇÃO 12 - QUEM AMA CUMPRE PLENAMENTE A LEI DIVINALIÇÃO 12 - QUEM AMA CUMPRE PLENAMENTE A LEI DIVINA
LIÇÃO 12 - QUEM AMA CUMPRE PLENAMENTE A LEI DIVINA
 

Similar a Lecture 14 cusum and ewma

Variable charts
Variable chartsVariable charts
Variable chartsHunhNgcThm
 
“Neural Networks with Self-Organizing Maps applied to Process Control”
“Neural Networks with Self-Organizing Maps applied to Process Control”“Neural Networks with Self-Organizing Maps applied to Process Control”
“Neural Networks with Self-Organizing Maps applied to Process Control”UNIV OF PERU
 
Detecting Assignable Signals via Decomposition of MEWMA Statistic
Detecting Assignable Signals via Decomposition of MEWMA StatisticDetecting Assignable Signals via Decomposition of MEWMA Statistic
Detecting Assignable Signals via Decomposition of MEWMA Statisticinventionjournals
 
Title of the ReportA. Partner, B. Partner, and C. Partner.docx
Title of the ReportA. Partner, B. Partner, and C. Partner.docxTitle of the ReportA. Partner, B. Partner, and C. Partner.docx
Title of the ReportA. Partner, B. Partner, and C. Partner.docxjuliennehar
 
Detecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma StatisticDetecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma Statisticjournal ijrtem
 
Time series analysis use E-views programer
Time series analysis use E-views programerTime series analysis use E-views programer
Time series analysis use E-views programerAl-Qadisiya University
 
HMPC for Upper Stage Attitude Control
HMPC for Upper Stage Attitude ControlHMPC for Upper Stage Attitude Control
HMPC for Upper Stage Attitude ControlPantelis Sopasakis
 
Mackey Glass Time Series Prediction
Mackey Glass Time Series PredictionMackey Glass Time Series Prediction
Mackey Glass Time Series PredictionGiovanni Murru
 
Assimilation of spa and pmt for random shocks in manufacturing process 2
Assimilation of spa and pmt for random shocks in manufacturing process 2Assimilation of spa and pmt for random shocks in manufacturing process 2
Assimilation of spa and pmt for random shocks in manufacturing process 2IAEME Publication
 
Attou. Sliding mode Control - MSAP
Attou. Sliding mode Control -  MSAPAttou. Sliding mode Control -  MSAP
Attou. Sliding mode Control - MSAPAttou
 
A Novel Extended Adaptive Thresholding for Industrial Alarm Systems
A Novel Extended Adaptive Thresholding for Industrial Alarm SystemsA Novel Extended Adaptive Thresholding for Industrial Alarm Systems
A Novel Extended Adaptive Thresholding for Industrial Alarm SystemsKoorosh Aslansefat
 
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/H
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/HImproving the mass conservation in the semi- Lagrangian scheme of the IFS/H
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/HTomás Morales
 
Presentation on GMM
Presentation on GMMPresentation on GMM
Presentation on GMMMoses sichei
 
Estimating Future Initial Margin with Machine Learning
Estimating Future Initial Margin with Machine LearningEstimating Future Initial Margin with Machine Learning
Estimating Future Initial Margin with Machine LearningAndres Hernandez
 
Mit2 092 f09_lec13
Mit2 092 f09_lec13Mit2 092 f09_lec13
Mit2 092 f09_lec13Rahman Hakim
 
first law of thermodynamics and second law
first law of thermodynamics and second lawfirst law of thermodynamics and second law
first law of thermodynamics and second lawnaphis ahamad
 

Similar a Lecture 14 cusum and ewma (20)

Variable charts
Variable chartsVariable charts
Variable charts
 
“Neural Networks with Self-Organizing Maps applied to Process Control”
“Neural Networks with Self-Organizing Maps applied to Process Control”“Neural Networks with Self-Organizing Maps applied to Process Control”
“Neural Networks with Self-Organizing Maps applied to Process Control”
 
Detecting Assignable Signals via Decomposition of MEWMA Statistic
Detecting Assignable Signals via Decomposition of MEWMA StatisticDetecting Assignable Signals via Decomposition of MEWMA Statistic
Detecting Assignable Signals via Decomposition of MEWMA Statistic
 
A0250109
A0250109A0250109
A0250109
 
Title of the ReportA. Partner, B. Partner, and C. Partner.docx
Title of the ReportA. Partner, B. Partner, and C. Partner.docxTitle of the ReportA. Partner, B. Partner, and C. Partner.docx
Title of the ReportA. Partner, B. Partner, and C. Partner.docx
 
Detecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma StatisticDetecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma Statistic
 
Time series analysis use E-views programer
Time series analysis use E-views programerTime series analysis use E-views programer
Time series analysis use E-views programer
 
HMPC for Upper Stage Attitude Control
HMPC for Upper Stage Attitude ControlHMPC for Upper Stage Attitude Control
HMPC for Upper Stage Attitude Control
 
Mackey Glass Time Series Prediction
Mackey Glass Time Series PredictionMackey Glass Time Series Prediction
Mackey Glass Time Series Prediction
 
Assimilation of spa and pmt for random shocks in manufacturing process 2
Assimilation of spa and pmt for random shocks in manufacturing process 2Assimilation of spa and pmt for random shocks in manufacturing process 2
Assimilation of spa and pmt for random shocks in manufacturing process 2
 
Attou. Sliding mode Control - MSAP
Attou. Sliding mode Control -  MSAPAttou. Sliding mode Control -  MSAP
Attou. Sliding mode Control - MSAP
 
A Novel Extended Adaptive Thresholding for Industrial Alarm Systems
A Novel Extended Adaptive Thresholding for Industrial Alarm SystemsA Novel Extended Adaptive Thresholding for Industrial Alarm Systems
A Novel Extended Adaptive Thresholding for Industrial Alarm Systems
 
Quality control of bolts
Quality control of boltsQuality control of bolts
Quality control of bolts
 
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/H
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/HImproving the mass conservation in the semi- Lagrangian scheme of the IFS/H
Improving the mass conservation in the semi- Lagrangian scheme of the IFS/H
 
922214 e002013
922214 e002013922214 e002013
922214 e002013
 
Presentation on GMM
Presentation on GMMPresentation on GMM
Presentation on GMM
 
Estimating Future Initial Margin with Machine Learning
Estimating Future Initial Margin with Machine LearningEstimating Future Initial Margin with Machine Learning
Estimating Future Initial Margin with Machine Learning
 
Ballingham_Severance_Lab4
Ballingham_Severance_Lab4Ballingham_Severance_Lab4
Ballingham_Severance_Lab4
 
Mit2 092 f09_lec13
Mit2 092 f09_lec13Mit2 092 f09_lec13
Mit2 092 f09_lec13
 
first law of thermodynamics and second law
first law of thermodynamics and second lawfirst law of thermodynamics and second law
first law of thermodynamics and second law
 

Más de Ingrid McKenzie

Laboratory Balance: How They Work, Checking Their Accuracy
Laboratory Balance: How They Work, Checking Their AccuracyLaboratory Balance: How They Work, Checking Their Accuracy
Laboratory Balance: How They Work, Checking Their AccuracyIngrid McKenzie
 
Cement Grinding Optimization
Cement Grinding OptimizationCement Grinding Optimization
Cement Grinding OptimizationIngrid McKenzie
 
111658903 kiln-burning-systems
111658903 kiln-burning-systems111658903 kiln-burning-systems
111658903 kiln-burning-systemsIngrid McKenzie
 
Design ofexperimentstutorial
Design ofexperimentstutorialDesign ofexperimentstutorial
Design ofexperimentstutorialIngrid McKenzie
 
Summary research on c pk vs cp
Summary research on c pk vs cpSummary research on c pk vs cp
Summary research on c pk vs cpIngrid McKenzie
 
2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedureIngrid McKenzie
 
Introduction to-bomb-calorimetry
Introduction to-bomb-calorimetryIntroduction to-bomb-calorimetry
Introduction to-bomb-calorimetryIngrid McKenzie
 
Practice guide stopwatches and timer calibrations
Practice guide stopwatches and timer calibrationsPractice guide stopwatches and timer calibrations
Practice guide stopwatches and timer calibrationsIngrid McKenzie
 
Technical information glassware
Technical information glasswareTechnical information glassware
Technical information glasswareIngrid McKenzie
 
2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedureIngrid McKenzie
 

Más de Ingrid McKenzie (16)

Laboratory Balance: How They Work, Checking Their Accuracy
Laboratory Balance: How They Work, Checking Their AccuracyLaboratory Balance: How They Work, Checking Their Accuracy
Laboratory Balance: How They Work, Checking Their Accuracy
 
Strengthof cement
Strengthof cementStrengthof cement
Strengthof cement
 
Strengthof cement
Strengthof cementStrengthof cement
Strengthof cement
 
Wcecs2010 pp699 705
Wcecs2010 pp699 705Wcecs2010 pp699 705
Wcecs2010 pp699 705
 
Cement Grinding Optimization
Cement Grinding OptimizationCement Grinding Optimization
Cement Grinding Optimization
 
111658903 kiln-burning-systems
111658903 kiln-burning-systems111658903 kiln-burning-systems
111658903 kiln-burning-systems
 
Conducting rc as
Conducting rc asConducting rc as
Conducting rc as
 
Design ofexperimentstutorial
Design ofexperimentstutorialDesign ofexperimentstutorial
Design ofexperimentstutorial
 
Summary research on c pk vs cp
Summary research on c pk vs cpSummary research on c pk vs cp
Summary research on c pk vs cp
 
C321 09 s_l1_glassware
C321 09 s_l1_glasswareC321 09 s_l1_glassware
C321 09 s_l1_glassware
 
Bomb calorimetry
Bomb calorimetryBomb calorimetry
Bomb calorimetry
 
2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure
 
Introduction to-bomb-calorimetry
Introduction to-bomb-calorimetryIntroduction to-bomb-calorimetry
Introduction to-bomb-calorimetry
 
Practice guide stopwatches and timer calibrations
Practice guide stopwatches and timer calibrationsPractice guide stopwatches and timer calibrations
Practice guide stopwatches and timer calibrations
 
Technical information glassware
Technical information glasswareTechnical information glassware
Technical information glassware
 
2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure2 pa32 bomb calorimeter procedure
2 pa32 bomb calorimeter procedure
 

Último

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Último (20)

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Lecture 14 cusum and ewma

  • 1. Spanos EE290H F05 CUSUM, MA and EWMA Control Charts Increasing the sensitivity and getting ready for automated control: The Cumulative Sum chart, the Moving Average and the Exponentially Weighted Moving Average Charts. Lecture 14: CUSUM and EWMA 1
  • 2. Spanos EE290H F05 Shewhart Charts cannot detect small shifts The charts discussed so far are variations of the Shewhart chart: each new point depends only on one subgroup. Shewhart charts are sensitive to large process shifts. The probability of detecting small shifts fast is rather small: Fig 6-13 pp 195 Montgomery. Lecture 14: CUSUM and EWMA 2
  • 3. Spanos EE290H F05 Cumulative-Sum Chart If each point on the chart is the cumulative history (integral) of the process, systematic shifts are easily detected. Large, abrupt shifts are not detected as fast as in a Shewhart chart. CUSUM charts are built on the principle of Maximum Likelihood Estimation (MLE). Lecture 14: CUSUM and EWMA 3
  • 4. Spanos EE290H F05 Maximum Likelihood Estimation The "correct" choice of probability density function (pdf) moments maximizes the collective likelihood of the observations. If x is distributed with a pdf(x,θ) with unknown θ, then θ can be estimated by solving the problem: m max θ Π pdf( xi,θ ) i=1 This concept is good for estimation as well as for comparison. Lecture 14: CUSUM and EWMA 4
  • 5. Spanos EE290H F05 Maximum Likelihood Estimation Example To estimate the mean value of a normal distribution, collect the observations x1,x2, ... ,xm and solve the non-linear programming problem: ⎧ ⎫ ⎧ 2 ⎫ 2 ˆ ˆ 1 ⎛ x −μ ⎞ 1 ⎛ x −μ ⎞ ⎞ ⎛ 1 ⎪m ⎪ m − ⎜ i − ⎜ i ⎟ ⎪ ⎟ ⎪ 1 ⎪ 2⎝ σ ⎠ 2 ⎝ σ ⎠ ⎟⎪ ⎜ max μ ⎨Π e e ⎬ or min μ ⎨iΣ1 log⎜ ˆ ˆ ⎟⎬ i =1 σ 2π = σ 2π ⎪ ⎪ ⎪ ⎝ ⎠⎪ ⎪ ⎪ ⎩ ⎭ ⎩ ⎭ Lecture 14: CUSUM and EWMA 5
  • 6. Spanos EE290H F05 MLE Control Schemes If a process can have a "good" or a "bad" state (with the control variable distributed with a pdf fG or fB respectively). This statistic will be small when the process is "good" and large when "bad": m f B(x i) Σ log f G(xi) i=1 m m log(Π pi ) = ∑ log( pi ) i =1 Lecture 14: CUSUM and EWMA i =1 6
  • 7. Spanos EE290H F05 MLE Control Schemes (cont.) Note that this counts from the beginning of the process. We choose the best k points as "calibration" and we get: m k f B(x i) f B(x i) S m = Σ log - min k < m Σ log >L f G(x i) f G(x i) i=1 i=1 or f B(x m) S m = max (S m-1+log , 0) > L f G(x m) This way, the statistic Sm keeps a cumulative score of all the "bad" points. Notice that we need to know what the "bad" process is! Lecture 14: CUSUM and EWMA 7
  • 8. Spanos EE290H F05 The Cumulative Sum chart If θ is a mean value of a normal distribution, is simplified to: m S m = Σ (x i - µ 0) i=1 where μ0 is the target mean of the process. This can be monitored with V-shaped or tabular “limits”. Advantages The CUSUM chart is very effective for small shifts and when the subgroup size n=1. Disadvantages The CUSUM is relatively slow to respond to large shifts. Also, special patterns are hard to see and analyze. Lecture 14: CUSUM and EWMA 8
  • 9. Spanos EE290H F05 Shewhart small shift Example 15 10 5 0 -5 -10 -15 UCL=13.4 µ0=-0.1 20 40 60 80 100 120 140 0 CUSUM small shift 0 LCL=-13.6 160 20 40 60 80 100 120 140 160 120 100 80 60 40 20 0 -20 -40 -60 Lecture 14: CUSUM and EWMA 9
  • 10. Spanos EE290H F05 The V-Mask CUSUM design for standardized observations yi=(xi-μo)/σ Need to set L(0) (i.e. the run length when the process is in control), and L(δ) (i.e. the run-length for a specific deviation). Figure 7-3 Montgomery pp 227 Lecture 14: CUSUM and EWMA 10
  • 11. Spanos EE290H F05 The V-Mask CUSUM design for standardized observations yi=(xi-μo)/σ δ is the amount of shift (normalized to σ) that we wish to detect with type I error α and type II error β. Α is a scaling factor: it is the horizontal distance between successive points in terms of unit distance on the vertical axis. 2 ln 1- β d= 2 α δ δ= Δ θ = tan -1 δ σx 2A d Lecture 14: CUSUM and EWMA θ 11
  • 12. Spanos EE290H F05 ARL vs. Deviation for V-Mask CUSUM Lecture 14: CUSUM and EWMA 12
  • 13. Spanos EE290H F05 CUSUM chart of furnace Temperature difference Detect 2Co, σ =1.5Co, (i.e. δ=1.33), α=.0027 β=0.05, A=1 => θ = 18.43o, d = 6.6 50 3 40 2 30 II 20 III 0 I 10 1 -1 0 -2 -10 -3 0 20 Lecture 14: CUSUM and EWMA 40 60 80 100 0 20 40 60 80 100 13
  • 14. Spanos EE290H F05 Tabular CUSUM A tabular form is easier to implement in a CAM system Ci+ = max [ 0, xi - ( μo + k ) + Ci-1+ ] Ci- = max [ 0, ( μo - k ) - xi + h Ci-1- ] d θ C0+ = C0- = 0 k = (δ/2)/σ h = dσxtan(θ) Lecture 14: CUSUM and EWMA 14
  • 15. Spanos EE290H F05 Tabular CUSUM Example Lecture 14: CUSUM and EWMA 15
  • 16. Spanos EE290H F05 Various Tabular CUSUM Representations Lecture 14: CUSUM and EWMA 16
  • 17. Spanos EE290H F05 CUSUM Enhancements To speed up CUSUM response one can use "modified" V masks: 15 10 5 0 -5 0 20 40 60 80 100 Other solutions include the application of Fast Initial Response (FIR) CUSUM, or the use of combined CUSUMShewhart charts. Lecture 14: CUSUM and EWMA 17
  • 18. Spanos EE290H F05 General MLE Control Schemes Since the MLE principle is so general, control schemes can be built to detect: • single or multivariate deviation in means • deviation in variances • deviation in covariances An important point to remember is that MLE schemes need, implicitly or explicitly, a definition of the "bad" process. The calculation of the ARL is complex but possible. Lecture 14: CUSUM and EWMA 18
  • 19. Spanos EE290H F05 Control Charts Based on Weighted Averages Small shifts can be detected more easily when multiple samples are combined. Consider the average over a "moving window" that contains w subgroups of size n: Mt = x t + x t-1 + ... +x t-w+1 w σ2 V(M t) = n w The 3-sigma control limits for Mt are: UCL = x + 3 σ nw LCL = x - 3 σ nw Limits are wider during start-up and stabilize after the first w groups have been collected. Lecture 14: CUSUM and EWMA 19
  • 20. Spanos EE290H F05 Example - Moving average chart w = 10 15 10 5 0 -5 -10 0 20 40 60 80 100 120 140 160 sample Lecture 14: CUSUM and EWMA 20
  • 21. Spanos EE290H F05 The Exponentially Weighted Moving Average If the CUSUM chart is the sum of the entire process history, maybe a weighed sum of the recent history would be more meaningful: zt = λxt + (1 - λ)zt -1 0 < λ < 1 z0 = x It can be shown that the weights decrease geometrically and that they sum up to unity. t-1 z t = λ Σ ( 1 - λ )j x t - j + ( 1 - λ )t z 0 j=0 UCL = x + 3 σ LCL = x - 3 σ Lecture 14: CUSUM and EWMA λ (2-λ)n λ (2-λ)n 21
  • 22. Spanos EE290H F05 Two example Weighting Envelopes relative importance 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 10 EWMA 0.6 EWMA 0.1 Lecture 14: CUSUM and EWMA 20 30 40 50 -> age of sample 22
  • 24. Spanos EE290H F05 Another View of the EWMA • The EWMA value zt is a forecast of the sample at the t+1 period. • Because of this, EWMA belongs to a general category of filters that are known as “time series” filters. xt = f (xt - 1, xt - 2, xt - 3 ,... ) xt- xt = at Usually: p xt = Σ φixt - i + i=1 q Σ θjat - j j=1 • The proper formulation of these filters can be used for forecasting and feedback / feed-forward control! • Also, for quality control purposes, these filters can be used to translate a non-IIND signal to an IIND residual... Lecture 14: CUSUM and EWMA 24
  • 25. Spanos EE290H F05 Summary so far… While simple control charts are great tools for visualizing the process,it is possible to look at them from another perspective: Control charts are useful “summaries” of the process statistics. Charts can be designed to increase sensitivity without sacrificing type I error. It is this type of advanced charts that can form the foundation of the automation control of the (near) future. Next stop before we get there: multivariate and modelbased SPC! Lecture 14: CUSUM and EWMA 25