Você está na página 1de 45

EE240/2009

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:

 Temperatura: 20oC, 60oC

 Vibração: 5 m/s2 (rms), 15 m/s2 (rms)

 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 = fracfact('A B')

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

(1/2) (– 26 – 19) = – 22.5


x1
-1 +1

5 69 43
-1
Temp
20 60 (oC)

EE-240/2009
Efeito Principal da Temperatura

Vibração x2
(m/s2)
+1
15 50 31

(1/2) [(43 + 31) – (69 + 50)]


  x1
-1 = – 22.5 +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

– 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

(1/2) (– 19 – 12) = – 15.5


x1
-1 (1/2) [(50 + 31) – (69 + 43)] +1

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

Tratamento A B AB Resposta média


1    69
2    50
3    43
4    31

 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

Tratamento A B AB Resposta média


1    69
2    50
3    43
4    31
 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 

 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=fracfact('AA A B AB') >> 4*inv(M)

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

Calculado Ground Truth

EE-240/2009
Na prática, “ground truth” não é disponível...

0 5 10 15 20 25

AB

Significativo? Calculado Ground Truth

EE-240/2009
Análise de Significância dos Efeitos

Estimativa da variância do erro experimental

Cálculo do erro padrão das respostas médias para cada tratamento

Cálculo do erro padrão dos efeitos

Teste t de significância para os 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

1s12   2s 22   3s 32   4s 24 2  4.6 2  2  1.52  2  3.12  2  4.2 2


s 
2
  12.7
1   2   3   4 2222

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)

O efeito é significativo se | t ef | t crit


t crit  2 .3
(   0 . 05 )

|t ef ( A ) |  1 .2 sim

/2 /2 |t ef ( B ) |  7 .7 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

• Fatores: >> M = fracfact('A B C')


 A = Temperatura M =
 B = Vibração
-1 -1 -1
 C = Umidade -1 -1 1
-1 1 -1
 Níveis (- , +): -1 1 1
1 -1 -1
 Temperatura: 20oC e 60oC 1 -1 1
1 1 -1
 Vibração: 5 m/s2 e 15 m/s2 [rms] 1 1 1
 Umidade relativa: 5% e 30%

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

y = 50 – 10x1 – 10x2 – 8x3 + 0x1x2 – 5x1x3 + 0x2x3 + 0x1x2x3 + 

EE-240/2009
Diagrama de Pareto dos Efeitos Calculados

0 5 10 15 20 25
B
A
C
AC
BC
ABC
AB

Calculado Ground Truth

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

Você também pode gostar