Escolar Documentos
Profissional Documentos
Cultura Documentos
Planejamento Fatorial
Completo
EE-240/2009
Planejamento Fatorial Completo
EE-240/2009
Determinação de fatores que influenciam a
durabilidade de um dado componente.
• Fatores:
A = Temperatura
B = Vibração
Níveis:
Saída:
y = Tempo de falha
EE-240/2009
Planejamento Fatorial Completo (22)
(Exemplo)
Fator A Fator B
Tratamento
Temperatura (oC) Vibração (m/s2 rms)
1 20 5
2 20 15
3 60 5
4 60 15
EE-240/2009
Codificação dos níveis: Baixo: - 1, Alto: +1
Fator A Fator B
Tratamento
Temperatura Vibração
1
2
3
4
EE-240/2009
FF2N Two-level full-factorial design.
X = FF2N(N) creates a two-level full-factorial design, X.
N is the number of columns of X. The number of rows is 2^N.
>> ff2n(2)
ans =
0 0
0 1
1 0
1 1
EE-240/2009
FRACFACT generates a two-level fractional factorial design.
X = FRACFACT(GEN) produces the fractional factorial design
defined by the generator string GEN. GEN must be a sequence of
"words" separated by spaces. If the generators string
consists of P words using K letters of the alphabet, then X
will have N=2^K rows and P columns.
M =
-1 -1
-1 1
1 -1
1 1
EE-240/2009
y = 50 – 10 x1 – 10 x2 +
Exemplo Sintético (Ground Truth):
N(0, 2) , = 5
Resposta y
Tratamento A B
(unidades de tempo)
1 74 68 65
2 50 48 51
3 46 44 40
4 34 32 26
EE-240/2009
y = 50 – 10 x1 – 10 x2 +
Exemplo Sintético (Ground Truth):
N(0, 2) , = 5
Resposta y
Tratamento A B Média
(unidades de tempo)
1 74 68 65 69
2 50 48 51 50
3 46 44 40 43
4 34 32 26 31
EE-240/2009
Vibração x2
(m/s2)
+1
15 50 31
x1
-1 +1
5 69 43
-1
Temp
20 60 (oC)
Resposta y
Tratamento A B Média
(unidades de tempo)
1 74 68 65 69
2 50 48 51 50
3 46 44 40 43
4 34 32 26 31
EE-240/2009
Efeito Principal da Temperatura
Vibração x2
(m/s2) – 19
+1
15 50 31
x1
-1 +1
– 26
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Efeito Principal da Temperatura
Vibração x2
(m/s2)
+1
15 50 31
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Efeito Principal da Temperatura
Vibração x2
(m/s2)
+1
15 50 31
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Efeito Principal da Vibração
Vibração x2
(m/s2)
+1
15 50 31
– 19 – 12
x1
-1 +1
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Efeito Principal da Vibração
Vibração x2
(m/s2)
+1
15 50 31
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Efeito de Interação Temperatura + Vibração
Vibração x2
(m/s2)
+1
15 50 31
(1/2) [(31 + 69) – (50 + 43)]
x1
-1 +1
5 69 43
-1
Temp
20 60 (oC)
EE-240/2009
Resumo do Cálculo dos Efeitos
y1 y 2 y 3 y 4
ef ( A ) 22.5
2
y1 y 2 y 3 y 4
ef ( B) 15.5
2
y y 2 y3 y 4
ef ( AB) 1 3 .5
2
EE-240/2009
Matriz de Coeficientes de Contraste
EE-240/2009
Matriz de Coeficientes de Contraste
1 1 1 1 y1
1 y
1 1 1 A 2
MT
1 1 1 1 B y3
1 1 1 1 AB y4
y1 y 2 y 3 y 4
1 1 1 1 ef ( A ) 22.5
1 2
1 1 1
M ef ( B)
y1 y 2 y 3 y 4
15.5
1 1 1 1 2
1 1 1 1
ef ( AB) 1
y y 2 y3 y4
3.5
A B AB 2
EE-240/2009
Matriz de Coeficientes de Contraste
1 1 1 1 y1
1 y
1 1 1 A 2
MT
1 1 1 1 B y3
1 1 1 1 AB y4
M = ans =
1 -1 -1 1 1 1 1 1
1 -1 1 -1 -1 -1 1 1
1 1 -1 -1 -1 1 -1 1
1 1 1 1 1 -1 -1 1
EE-240/2009
Tratamento A B AB Resposta média
1 69
2 50
3 43
4 31
y 1 / 4 1 / 4 1 / 4 1 / 4 69 48.5
ef (A) 1 / 2 1 / 2 1 / 2 1 / 2 50 22.5
ef (B) 1 / 2 1 / 2 1 / 2 1 / 2 43 15.5
ef ( AB) 1 / 2 1 / 2 1 / 2 1 / 2 32 3.5
MT
y1 y 2 y 3 y 4
ef ( A ) 22.5
2
y1 y 2 y 3 y 4
ef ( B) 15.5
2
y y 2 y3 y 4
ef ( AB) 1 3.5
2
EE-240/2009
Comparação com “Ground Truth”
y = 50 – 10 x1 – 10 x2 + 0x1x2 +
y 48.5
ef (A) 22.5 x2
x2
ef (B) 15.5
x2
ef ( AB) 3 . 5
EE-240/2009
Diagrama de Pareto dos Efeitos
0 5 10 15 20 25
AB
EE-240/2009
Na prática, “ground truth” não é disponível...
0 5 10 15 20 25
AB
EE-240/2009
Análise de Significância dos Efeitos
EE-240/2009
Estimativa da variância do erro experimental (2)
Tratamento Resposta y
1 74 68 65
2 50 48 51
3 46 44 40
4 34 32 26
EE-240/2009
Estimativa da variância do erro experimental (2)
Média y
Tratamento Resposta y
(n)
y1 = 69
1 74 68 65
(n1 = 3)
y2 = 50
2 50 48 51
(n2 = 3)
y3 = 43
3 46 44 40
(n3 = 3)
y4 = 31
4 34 32 26
(n4 = 3)
n = No. replicações
EE-240/2009
Estimativa da variância do erro experimental (2)
Média y Desvio s
Tratamento Resposta y
(n) ()
y1 = 69 s1 = 4.6
1 74 68 65
(n1 = 3) (1 = 2)
y2 = 50 s2 = 1.5
2 50 48 51
(n2 = 3) (2 = 2)
y3 = 43 s3 = 3.1
3 46 44 40
(n3 = 3) (3 = 2)
y4 = 31 s4 = 4.2
4 34 32 26
(n4 = 3) (4 = 2)
= No. graus de liberdade
EE-240/2009
g
No. Tratamentos
s 2
i i
ˆ 2 s 2 i 1
g No. Graus de Liberdade
i 1
i
s2 12.7
s 2
yi s 2y1 s 2y 2 s 2y3 s 2y 4 4.2
ni 3
y1 y 2 y 3 y 4
ef (A)
2 s ef ( A ) 4.2 2.0
1 2 1
s ef2 ( A ) (s y1 s 2y 2 s 2y3 s 2y 4 ) (4.2 4.2 4.2 4.2) 4.2
4 4
EE-240/2009
y1 y 2 y3 y 4 ef ( A )
ef (A) = 22.5 t ef (A ) 11 . 2
2 s ef ( A )
y1 y 2 y3 y 4 ef ( B )
ef (B) = 15.5 t ef 7 .7
2 (B )
s ef ( B )
y1 y 2 y3 y 4 ef ( AB )
ef (AB) = .5 t ef 1 .7
2 ( AB )
s ef ( AB )
ef
t ef
s ef
s ef ( A ) s ef ( B) s ef ( AB) 2.0
8
EE-240/2009
t = [-4:0.01:4]; ft = tpdf(t,8);
alpha = 0.05; tcrit = tinv(1 - alpha/2,8)
|t ef ( A ) | 1 .2 sim
|t ef ( AB ) | 1 .7 não
tcrit = 2.3
EE-240/2009
Teste de Significância dos Efeitos
0 5 10 15 20 25
A B
s ef t crit 4 . 6
EE-240/2009
Planejamento Fatorial Completo 23
EE-240/2009
y = 50 – 10 x1 – 10 x2 – 8 x3 – 5 x1x3 +
Exemplo Sintético (Ground Truth): N(0, 2)
=5
Resposta y
Tratamento A B C
(unidades de tempo)
1 82 63
2 68 64 74
3 55 62 48
4 43 49 41
5 65 68
6 34 44
7 48 49 41
8 23 8 23
EE-240/2009
4 8 44 18
B B
3 7 55 46
C C
2 6 69 39
1 5 73 67
A A
Tratamento A B C y n
1 73 2
2 69 3
3 55 3
4 44 3
5 67 2
6 39 2
7 46 3
8 18 3
EE-240/2009
ef(A) = (1/4) (46 + 18 + 67 + 39 – 55 – 44 – 73 – 69) = – 17.8
44
44 18
18
B
55
55 46
46
C
69
69 39
39
73
73 67
67
A
EE-240/2009
ef(AC) = (1/4) (55 + 18 + 73 +39 – 44 – 46 – 69 - 67) = 10.25
44 18
B
55 46
C
69 39
73 67
A
EE-240/2009
Tratamento A B C AB AC BC ABC
1 - - - + + + -
2 - - + + - - +
3 - + - - + - +
4 - + + - - + -
5 + - - - - + +
6 + - + - + - -
7 + + - + - - -
8 + + + + + + +
Média Efeitos
EE-240/2009
Tratamento y
1 73
2 69
3 55
A 4 44
B 5 67
6 39
C
7 46
AB 8 18
AC
BC
ABC
EE-240/2009
A
B x2
C
AB
AC
BC
ABC
EE-240/2009
Diagrama de Pareto dos Efeitos Calculados
0 5 10 15 20 25
B
A
C
AC
BC
ABC
AB
EE-240/2009
Estimativa da variância (2)
Média y Desvio s
Tratamento Resposta y
(n) (dof )
1 82 63 73 (2) 13.4 (1)
2 68 64 74 69 (3) 5.0 (2)
3 55 62 48 55 (3) 7.0 (2)
4 43 49 41 44 (3) 4.2 (2)
5 65 68 67 (2) 2.1 (1)
6 34 44 39 (2) 7.1 (1)
7 48 49 41 46 (3) 4.4 (2)
8 23 8 23 18 (3) 8.7 (2)
EE-240/2009
8
s 2
i i 8
ˆ s
2 2 i 1
8
46.8 i 13
i
i 1
i 1
s2 46.8 46.8
s
2
yi s 2y1 s 2y5 s 2y6 23.4 s 2y 2 s 2y3 s 2y 4 s 2y7 s 2y8 15.6
ni 2 3
1 8 2 1
s s yi (3 23.4 5 15.6) 9.3
2
ef s ef 9.3 3.0
16 i 1 16
EE-240/2009
0 5 10 15 20 25
A C
B C
A B C
A B
s ef t crit 6 . 5
EE-240/2009
Muito Obrigado!
EE-240/2009