Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis...

40
Design and Analysis of Experiments Part I: Introduction Prof. Dr. Anselmo E de Oliveira anselmo.quimica.ufg.br [email protected]

Transcript of Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis...

Page 1: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Design and Analysis

of Experiments Part I: Introduction

Prof. Dr. Anselmo E de Oliveira

anselmo.quimica.ufg.br

[email protected]

Page 2: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

DOE Course

• Classes

– Theory and Lab

– CA A, 105

• Syllabus – anselmo.quimica.ufg.br

• Softwares

• Project

– 05/07 • Course topics

• Calculations

• Article – Full reference

– 2015 to 2017

– Qualis: A1... B3

Page 3: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

The Analytical Process

Tools: Exploratory data analysis

Data mining

Calibration

Information/control theory

Optimization

Experimental design

Sampling theory

Luck

Information: chemical concentrations...

Measurements: voltages, currents, volumes...

Samples

System

Knowledge of properties of system

Fonte: M.A. Sharaf; D.L. Illman; B.R. Kowalski, Chemical Analysis: Chemometrics

Page 4: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Mechanistic and Empirical Models

• Mechanistic models – Scientific phenomena are so well

understood that useful results including mathematical models can be developed directly by applying these well-understood principles • Ex: Perfect gas law: 𝑃𝑉 = 𝑛𝑅𝑇

• Empirical models – Observation of the system at work

and experimentation are required to elucidate information about why and how it works

– Well-designed experiments can often lead to a model of system performance

Page 5: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

General Model of a Process

Inputs Output

Uncontrollable factors

. . .

𝑧1 𝑧2 𝑧𝑞

𝒚, or 𝐘

. . .

𝑥1 𝑥2 𝑥𝑝

Process

Controllable factors

Page 6: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Strategy of Experimentation

• The objectives of the experiment may include the following – Determining which variables are most influential

on the response y

– Determining where to set the influential x’s so that y is almost near the desired nominal value

– Determining where to set the influential x’s so that the variability in y is small

– Determining where to set the influential y’s so that the effects of the uncontrollable variables z1, z2, ..., zq are minimized

Page 7: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Usually, an objective of the experimenter is to determine the influence that these factors have on the output response of the system

• Strategy of experimentation – Analytical measurements

• sampling

• number of replicates

• pH

• solvent

• GC, MS, HPLC

• ...

Page 8: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Best-guess approach – Selecting an arbitrary

combination of the factors, test them, and see what happens

• One-factor-at-a-time (OFAT) – Selecting a starting point, or

baseline set of levels, for each factor, and then successively varying each factor over its range with the other factors held constant at the baseline level

Page 9: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact
Page 10: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Factorial experiment – All factors are varied togheter

Page 11: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Modeling

• All models are approximations – Mechanistic

– Empirical

• Sometimes an empirical model can suggest a mechanism – 𝑦 = 𝑓 𝑥1 + 𝑥2 + 𝑥3 + ⋯ + 𝑥𝑘

– or: 𝐗 = 𝑥1, 𝑥2, 𝑥3, … , 𝑥𝑘

𝑦 = 𝑓 𝐗

Page 12: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Example: reaction inside two chemical reactors

• Yielding 170 oC < T < 190 oC

• Suposition #1

reactor 1

reactor 2 170 190 Temperature /oC

Yie

ldin

g

Reactor 1

Reactor 2 𝒚 = 𝜶𝟏 + 𝜷𝟏𝒙

𝒚 = 𝜶𝟐 + 𝜷𝟐𝒙

Page 13: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Example: reaction inside two chemical reactors

• Suposition #2: quadractic model

suposition #1

parallel curves

identical results for both reactors

• 𝜸𝟏 e 𝜸𝟐 = 𝟎

• 𝜷𝟏 = 𝜷𝟐 ; 𝜸𝟏 = 𝜸𝟐 ; 𝜶𝟏 𝜶𝟐

• 𝜶𝟏 = 𝜶𝟐 ; 𝜷𝟏 = 𝜷𝟐 ;

𝜸𝟏 = 𝜸𝟐

𝒚 = 𝜶𝟏 + 𝜷𝟏𝒙 + 𝜸𝟏𝒙𝟐

𝒚 = 𝜶𝟐 + 𝜷𝟐𝒙 + 𝜸𝟐𝒙𝟐

Page 14: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Graphical Representation: 2D and 3D Plots

𝒚 = 𝒇 𝒙𝟏

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐

Page 15: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Graphical Representation: Contourn Plots

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐

Page 16: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐

Page 17: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐, 𝒙𝟑

Page 18: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Graphical Representation: Surface Plots

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐

Page 19: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Graphical Representation: 4D Plots

𝒚 = 𝒇 𝒙𝟏, 𝒙𝟐, 𝒙𝟑

Page 20: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Gerlon de A.R. Oliveira, Anselmo E. de Oliveira, Edemílson C. da Conceição, Maria I.G. Leles “Multiresponse optimization of an extraction procedure of carnosol and rosmarinic and carnosic acids from rosemary” Food Chemistry 2016, 211, 465-476.

Page 21: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact
Page 22: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Some Applications of Experimental Design

• Evaluation and comparison of basic design configurations

Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed.

Page 23: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Evaluation of material alternatives

Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed.

Page 24: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Selection of design parameters so that the product will work well under a wide variety of field conditions, that is, so that the product is robust

Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed.

Page 25: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Determination of key product design parameters that impact product performance

Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed.

Page 26: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Formulation of new products

Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed.

Page 27: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Some Results of Experimental Design

The application of experimental design techniques early in process development can result in

• Improved process yields

Page 28: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Reduced variability and closer conformance to nominal or target requirements

Page 29: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Reduced development time

Page 30: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

• Reduced overall costs

Page 31: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Guidelines for Designing Experiments

1. Recognition of and statement of the problem (a team approach to designing experiments is recommended)

– Factor screening or characterization Which factors have the most influence on the response(s) of interest?

Page 32: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

– Optimization Find the settings or levels of the important factors that result in desirable values of the response

– Confirmation

Page 33: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

– Discovery New materials

New factors, or

New ranges for factors

– Robustness Under what conditions do the response variables of interest seriously degrade?

What conditions would lead to unacceptable variability in the response variables?

Page 34: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

2. Selection of the response variable – Average or standard deviation (or both)

– Decide how each response will be measured

– The gauge or measurement system capability (or measurement error)

– Identify issues related to defining the responses of interest and how they are to be measured before conducting the experiment

Page 35: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

3. Choice of factors, levels, and range – Potential design factors

Design (selected), Held-constant, and Allowed-to-vary factors

– Nuisance factors Controllable, Uncontrollable (analysis of variance), and Noise factors

– Choose the ranges over which these factors will be varied and the specific levels at which runs will be made (process knowledge)

Factor screening or process characterization: keep the number of factor levels low

Page 36: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

4. Choice of experimental design – Sample size (number of replicates)

– Selection of a suitable run order for the experimental trials

– Determination of whether or not blocking or other randomization restrictions are involved

– Empirical model First-order model: 𝑦 = 𝛽0 + 𝛽1𝑥1 + 𝛽2𝑥2 + 𝜀

Interaction term: 𝑦 = 𝛽0 + 𝛽1𝑥1 + 𝛽2𝑥2 + 𝛽12𝑥1𝑥2 + 𝜀

second-order model: 𝑦 = 𝛽0 + 𝛽1𝑥1 + 𝛽2𝑥2 + 𝛽12𝑥1𝑥2 + 𝛽11𝑥112 + 𝛽22𝑥22

2 + 𝜀

– Some of the factor levels will result in different values for the response. Identify which factors cause this difference and estimate the magnitude of the response change

Page 37: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

5. Performing the experiment – Prior to conducting the experiments a few

trial runs or pilot runs are often helpful

6. Statistical analysis of the data – Results and conclusions must be objective

– Graphical methods

– Empirical model

7. Conclusions and recommendations – Follow-up runs and confirmation testing

Page 38: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

A very efficient way to use statistical Design of Experiments (DoE) is to follow a sequential approach

Page 39: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

A good rule of thumb

It is usually a major mistake to design a single, large, comprehensive experiment at the start of a study. As a general rule, no more than 25% of the available resources should be invested in the first experiment

Page 40: Design and Analysis of Experiments - IQ - Prof. … · Fonte: D.C. Montgomery, Design and Analysis of Experiments, 8th ed. •Determination of key product design parameters that impact

Mude,

mas começe devagar,

porque a direção

é mais importante

do que a velocidade.

Clarice Lispector