Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DISEÑO DE EXPERIMENTOS
(DESIGN OF EXPERIMENTS)
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE)
1. INTRODUCCIÓN
» …
3
DISEÑO DE EXPERIMENTOS (DOE)
1. INTRODUCCIÓN – EJEMPLO BONIATOS
4
DISEÑO DE EXPERIMENTOS (DOE)
1. INTRODUCCIÓN – DISEÑO DE EXPERIMENTOS
5
DISEÑO DE EXPERIMENTOS (DOE)
1. INTRODUCCIÓN – EJEMPLO ILUSTRATIVO: Hornear un pastel
6
Factores no controlables
DISEÑO DE EXPERIMENTOS (DOE)
1. DISEÑO DE EXPERIMENTOS – PRINCIPIOS BÁSICOS
– FACTORES (Factors)
7
DISEÑO DE EXPERIMENTOS (DOE)
1. DISEÑO DE EXPERIMENTOS – PRINCIPIOS BÁSICOS
– ALEATORIZACIÓN (Randomization)
– REPLICACIÓN (Replication)
– BLOQUEO (Blocking)
9
DISEÑO DE EXPERIMENTOS (DOE)
1. ELECCIÓN del DISEÑO EXPERIMENTAL
10
Todos los derechos reservados
DISEÑO DE EXPERIMENTOS:
COMPARATIVOS
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: INTRODUCCIÓN
12
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
donde,
n es el número de experimentos.
k es el número de factores.
l es el número de niveles.
r es el número de repeticiones (replicas). 13
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– MODELO de la respuesta
donde,
– TEST ESTADÍSTICOS
14
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
CRD
15
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
CRD
16
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
▪ k es el número de factores.
▪ l es el número de niveles.
▪ r es el número de repeticiones.
▪ por lo tanto,
▪ n = 1 x 4 x 6 = 24 experimentos.
17
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
CRD
18
(***nota: emplear seed = 6117 para replicar esta misma aleatorización)
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
28 25.2 28 27.5
22.5 26 21 26.5
29.5 27 28 29.2
19
30 21.5 31 32
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
– EJEMPLO
21
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
donde,
n es el número de experimentos.
l1, l2… es el número de niveles de los factores.
r es el número de bloqueos (replicas). 22
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– MODELO de la respuesta
donde,
– TEST ESTADÍSTICOS
– EJEMPLO
RBD
24
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
RBD
25
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
▪ por lo tanto,
▪ n = 6 x 4 = 24 experimentos.
26
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
RBD
27
(***nota: emplear seed = 6117 para replicar esta misma aleatorización)
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
» En cada fila (bloque) siempre están los 4 niveles del factor (fertilizante)
CRD RBD
28
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
Bloque #01
19.5 22.5 27.5 25
Bloque #02
28 27.5 20.5 25.2
Bloque #03
28 21 29.2 26
Bloque #04
29.5 21 26.5 28.6
Bloque #05
27 30 21.5 30.5
Bloque #06 29
31 28 22.5 32
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
– EJEMPLO
31
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
donde,
n es el número de experimentos.
l es el número de niveles del factor (siempre para l>3)
– MODELO de la respuesta
donde,
– TEST ESTADÍSTICOS
– EJEMPLO
LSD
34
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
Semillas (5 tipos)
LSD
35
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
36
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
Semillas (5 tipos)
LSD
37
(***nota: emplear seed = 6117 para replicar esta misma aleatorización)
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
47 54 45 50 44
45 46 55 51 46
Semillas
42 52 52 47 48
41 49 57 54 43
38
56 47 49 44 50
DISEÑO DE EXPERIMENTOS (DOE) - COMPARATIVO
1. DISEÑO EXPERIMENTAL: COMPARATIVO
– EJEMPLO
– EJEMPLO
40
Todos los derechos reservados
DISEÑO DE EXPERIMENTOS:
EFECTOS PRINCIPALES -
CRIBADO
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: MOTIVACIÓN
Factores no controlables
Variable(s) de entrada
PROCESO Variable(s) de salida
INPUT(s)
PRODUCTO RESPUESTA(s)
43
Factores no controlables
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
44
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
» donde,
45
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
46
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
47
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
48
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
49
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
A: Temperatura
B: Tiempo de mantenimiento
C: Medio de enfriamiento
A B C
Factores no controlables
50
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
Niveles* 840
Factores
-1 +1
Temperatura A 840º C 900º C
Tiempo de mto. B 1 min 1’15 min
Medio de C Agua Aceite
enfriamiento
1 Agua
B Aceite
C
* notación habitualmente empleada
1,15
51
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
» Planificación:
52
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. EFECTO DE UN FACTOR SOBRE LA RESPUESTA
Buen Buen
olor olor
EF(colonia 1) = 2
EF(colonia 2) = 4
-1 +1 colonia 1 -1 +1 colonia 2
(5ml) (10ml) (5ml) (10ml)
54
*Buen olor se obtiene como resultado de una encuesta a varias personas
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. INTERACCIÓN ENTRE VARIABLES SOBRE UNA RESPUESTA (CONT.)
}
– Esa matriz, de gran
Matriz de diseño Respuesta utilidad, se denomina
matriz de modelo.
Matriz de modelo 57
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. MÉTODO PARA AGILIZAR EL CÁLCULO DE EFECTOS E INTERACCIONES*
Todo ello simplifica mucho el calculo. Método matricial todavía más rápido:
59
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. MODELO DE PREDICCIÓN – EJEMPLO (Obtención del modelo)
X1 X2
-1 -1
+1 -1
-1 +1
+1 +1
60
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. MODELO DE PREDICCIÓN – EJEMPLO (Condiciones para el cribado)
El método de Lenth es un método objetivo para decidir qué efectos están activos
en el análisis de experimentos cuando el modelo está sobreajustado.
PSE: Lenth Pseudo Standard Error. Coeficiente basado en la mediana de los efectos
e interacciones del modelo empírico.
ME: Margin of error (margen de error). Coeficiente que emplea el PSE y la función
cuantil de la t-Student. Indica los efectos que son significativos.
– Lenth Plot
– Pareto Chart
62
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES en R-Studio
1. Para diseñar y analizar DOEs en R se emplean las siguientes 3 librerías:
Los siguientes dos comandos generan la matriz de modelo extendida (con interacciones):
– EJEMPLO
Factorial 2k
64
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
Factores no controlables
65
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
▪ Código en R-Studio
doe=gen.factorial(levels=2,nVars=3,center=TRUE,varNames = c("A","B","C"))
- Se definen los niveles, las variables, la codificación (-1,1) y el nombre de
las variables.
66
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
67
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
68
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
69
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
Código en R-Studio
70
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
Niveles*
Factores
-1 +1
Temperatura A 840º C 900º C
Tiempo de mto. B 1 min 1’15 min
Medio de C Agua Aceite
enfriamiento
Modelo del templado basado en agua Modelo del templado basado en aceite
71
DISEÑO DE EXPERIMENTOS (DOE) – EFECTOS PRINCIPALES
1. DISEÑO EXPERIMENTAL: EFECTOS PRINCIPALES – CRIBADO
– EJEMPLO
Modelo del templado basado en agua Modelo del templado basado en aceite
PREDICIÓN
MODELOS
55,5
67,5
55,5
67,5
60,5
56,5
60,5
56,5 72
Todos los derechos reservados
DISEÑO DE EXPERIMENTOS:
SUPERFICIES DE RESPUESTA
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
Factores no controlables
Norman R. Draper, Timothy P. Davis, Lourdes Pozueta and Daniel M. Grove (1994). Isolation of Degrees 75
of Freedom for Box-Behnken Designs. Technometrics, 36(3), 283–291. doi:10.2307/1269372
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
▪ donde,
o b0 es la constante.
o bi son los coeficientes de primer orden
o bij son los coeficientes de las interacciones para i≠j y los
coeficientes de los términos de segundo orden para i=j.
o e es el error aleatorio.
» De manera matricial.
77
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
78
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
79
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
▪ donde,
o b0 es la constante.
o bi son los coeficientes de primer orden
o bij son los coeficientes de las interacciones para i≠j y los
coeficientes de los términos de segundo orden para i=j.
o e es el error aleatorio.
» De manera matricial.
80
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA en R-Studio
1. Para diseñar y analizar DOEs en R se emplean únicamente la siguiente librería:
– boxbenhken=bbd(k=3,n0=3,block=FALSE,randomize=FALSE,coding=list(x1~(a-50)/2,
x2~(a-50)/2,…)) - Se definen los factores, puntos centrales, y la codificación (-1, 0, 1).
81
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
▪ Enlace aquí:
Box-Behnken
82
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
83
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
Código de R-Studio
boxd=bbd(k=3,n0=3,
block=FALSE,randomize=FALSE)
84
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
85
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
Código de R-Studio
Y=coded.data(data1,formulas = list(
A ~ (X1-200)/40,B ~ (X2-1)/0.5,C ~ (X3-60)/40))
86
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
Código en R-Studio
y_model=rsm(Experimental~SO(A,B,C),data=Y)
87
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
88
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
Código en R-Studio
y_model=rsm(Experimental~ FO(A,B,C)+I(A*C)+I(A^2)+I(C^2),data=Y)
89
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
90
DISEÑO DE EXPERIMENTOS (DOE) – SUPERFICIE DE RESPUESTA
1. DISEÑO EXPERIMENTAL: SUPERFICIE DE RESPUESTA
– EJEMPLO
91
Todos los derechos reservados
DISEÑO DE EXPERIMENTOS:
PROBLEMAS QUE APARECEN
AL APLICAR EL DISEÑO DE
EXPERIMENTOS
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE): PROBLEMAS Y RIESGOS
1. RIESGOS DEL DISEÑO DE EXPERIMENTOS
?
+1 +1 -1 12 23
-1 -1 +1 21 11
+1 -1 +1 23 15
-1 +1 +1 20 9
+1 +1 +1 19 2393
DISEÑO DE EXPERIMENTOS (DOE): PROBLEMAS Y RIESGOS
1. ERROR EXPERIMENTAL
Factores Respuesta Concepto:
A B C Y (ayer) Y (hoy) – Experimentos realizados en ciertas
condiciones pueden dar respuestas
-1 -1 -1 10 17 diferentes, y por tanto conclusiones
+1 -1 -1 12 15 diferentes, en función del momento en
que se han realizado tales.
-1 +1 -1 11 7
?
+1 +1 -1 12 23 Causas:
-1 -1 +1 21 11 – El hecho de que la dispersión de los
resultados sea importante se debe a
+1 -1 +1 23 15 que debe haber algún factor, no
-1 +1 +1 20 9 considerado inicialmente, que tiene
una incidencia significativa sobre la
+1 +1 +1 19 23
respuesta.
Solución:
Solución:
95
Todos los derechos reservados
CONTENIDO ADICIONAL:
MODELOS DE BOX-BEHNKEN
EKAITZ ESTEBAN
eesteban@bculinary.com
Box-Behnken Designs – Number of runs
97
Box-Behnken Designs – Number of runs
98
Box-Behnken Designs – Number of runs
99
Todos los derechos reservados
DISEÑO DE EXPERIMENTOS:
OTROS DISEÑOS
EKAITZ ESTEBAN
eesteban@bculinary.com
DISEÑO DE EXPERIMENTOS (DOE): OTROS DISEÑOS
1. MATRICES ESTANDARES DE DISEÑO
– La introducción de un
Nº X1 X2 X3 X4 ... Xk nuevo factor implica
duplicar la experi-
1 -1 -1 -1 -1 -1
mentación.
21 2 +1 -1 -1 -1 -1
22 3 -1 +1 -1 -1 -1
4 +1 +1 -1 -1 -1
23 5 ... -1 +1 -1 -1
6 -1 +1 -1 -1
7 +1 +1 -1 -1 – La matriz de diseño se
8 +1 +1 -1 -1 obtiene replicando la
2k
... ... -1 +1 -1 anterior a cada uno
-1 +1 -1
de los niveles de la
... +1
+1
nueva variable.
+1
+1
+1
16 +1
...
+1
2k +1
101
DISEÑO DE EXPERIMENTOS (DOE): OTROS DISEÑOS
1. DISEÑO FACTORIAL COMPLETO A 3 NIVELES
? EF(X1)12
103
DISEÑO DE EXPERIMENTOS (DOE)
1. GUIDELINE – SELECCIÓN DEL DISEÑO EXPERIMENTAL
104