Correlação e
Regressão Linear
Professor Cleber Giugioli Carrasco
Câmpus Central – Sede: Anápolis – CET
Universidade Estadual de Goiás – UEG
Professor Cleber Carrasco
Análise de Correlação
10
8
Y
0
0 1 2 3 4 5 6
X
Professor Cleber Carrasco
Diagrama de Dispersão - Correlação Negativa
12
10
Y
6
0
0 1 2 3 4 5 6
X
4
Y
0
0 1 2 3 4 5 6
X
Professor Cleber Carrasco
780
775
Teor de Vitamina C
760
755
750
0 20 40 60 80 100 120 140 160 180
Tempo de Armazenamento
Professor Cleber Carrasco
Coeficiente de Correlação
x i yi x y
x y
i i
n i i nxy
r r
xi
2
yi
2 ou x 2
nx 2 . y i2 ny 2
x i . yi
i
2 2
n n
Tempo de Armazenamento
0 15 30 45 60 75 90 105 120 135 150 165
(em dias)
Teor de Vitamina C
780 777 774 772 769 765 762 759 759 757 756 755
(em mg/100g)
x y xy x2 y2
0 780 0 0 608400
15 777 11655 225 603729
30 774 23220 900 599076
45 772 34740 2025 595984
60 769 46140 3600 591361
75 765 57375 5625 585225
90 762 68580 8100 580644
105 759 79695 11025 576081
120 759 91080 14400 576081
135 757 102195 18225 573049
150 756 113400 22500 571536
165 755 124575 27225 570025
990 9185 752655 113850 7031191
x y 990 * 9185
x i yi i
n
i
752655
12
r r = – 0,9831
x
x i2 i
2
y
. yi2 i
2
113850
990
2
* 7031191
9185
2
12 12
n n
(correlação negativa)
Professor Cleber Carrasco
40
35
30 reta ajustada
25 ou de
20
mínimos quadrados
Y
15
10
0
0 1 2 3 4 5 6 7 8 9
X
Professor Cleber Carrasco
x y
x y
i i i
n
i
â Y b̂X e b̂
x i 2
x 2
i
n
x y xy x2 y2
0 780 0 0 608400
15 777 11655 225 603729
30 774 23220 900 599076
x y
x i yi
45 772 34740 2025 595984 i i
60 769 46140 3600 591361
75 765 57375 5625 585225 â Y b̂X e b̂ n
90 762 68580 8100 580644
x i 2
105
120
759
759
79695
91080
11025
14400
576081
576081 x 2
i
n
135 757 102195 18225 573049
150 756 113400 22500 571536
165 755 124575 27225 570025
990 9185 752655 113850 7031191
990 * 9185
752655
b̂ 12 0,1587
113850
990
2
12
Ŷ 778,51 0,1587 X
Professor Cleber Carrasco
Tempo de Armazenamento
0 15 30 45 60 75 90 105 120 135 150 165
(em dias)
Teor de Vitamina C
780 777 774 772 769 765 762 759 759 757 756 755
(em mg/100g)
785
770
765
760
755
750
0 20 40 60 80 100 120 140 160 180
Tempo de Armazenamento
r = −0,9831