emlinharegressao13:   Regressão linear múltipla   ⇒   y = f(x1, x2)


Fórmulas

t1 = n∑yx2 - ∑y∑x2           t2 = n∑x1∑x2 - ∑x1∑x2

t3 = n∑x22 - (∑x2)2           t4 = n∑y∑x1 - ∑y∑x1

t5 = n∑x1x2 - ∑x1∑x2           t6 = n∑x12 - (∑x1)2

t7 = n∑x22 - (∑x2)2

β1 = (t1*t2 - t3*t4)/(t5*t5 - t6*t7)

β2 = (t4 - β1*t6)/t2

α = (∑y - β1∑x1 - β2∑x2)/n

Referência


EXEMPLO DE DADOS:

Ordem da matriz n:  12

Valores correspondentes de y, x1 and x2 (você pode cortar e copiar o exemplo na fórmula).

y:    89,75,57,34,101,121,68,79,25,59,96,12

x1:    3245,2567,2783,1234,5345,5329,3002,2976,1034,2984,3892,534

x2:    0.008,0.011,0.009,0.015,0.006,0.007,0.008,0.010,0.018,0.010,0.007,0.020


EXEMPLO DE RESULTADO:

α = 42.46643        β1 = 0.015533        β2 = -1830.40


Obrigado por visitar regressão linear múltipla 13.   [160603]