Documente Academic
Documente Profesional
Documente Cultură
5
INTENSITATEA CORELAŢIEI SIMPLE LINIARE
Intensitatea corelaţiei dintre o variabilă cauzală xi şi o variabilă efect yi, ale căror valori
evoluează după un trend liniar, se poate măsura prin intermediul coeficientului de corelaţie
Pearson.
- La SERII SIMPLE, în cazul în care perechea (xi,yi) apare o singură dată, coeficientul de
corelaţie Pearson va fi:
n
∑ (x i −x )( y i− y )
r= i=1
n⋅σ x⋅σ y
√
n
∑ ( x i −x )2
i =1
σ x=
unde: n
şi
√
n
∑ ( y i − y )2
i=1
σ y=
n
Varianta simplificată:
√
n n n n
[ n∑ x 2i −( ∑ x i ) ] [n ∑
2
y 2i −( ∑ y i )2 ]
i=1 i=1 i =1 i=1
1
Exemplul nr. 1 la SERII SIMPLE
( y i− y )2
2
Nr. VECHIME SALARII
( xi −x) ( y i− y ) ( xi −x)( y i − y) ( xi −x)
Crt. xi $/saptamana
2. 3 250 -1 - 50 50 1 2500
3. 4 300 0 0 0 0 0
4. 5 350 1 50 50 1 2500
√
n
∑ ( x i −x )2
unde:
σ x=
i =1
n
=
√ 10
5
=1 , 414
şi
2
√
n
∑ ( y i − y )2
σ y=
i=1
n
=
√ 25000
5
=70 , 711
1. 50 166 -5 -5 25 25 25
2. 52 168 -3 -3 9 9 9
3. 54 170 -1 -1 1 1 1
4. 56 172 1 1 1 1 1
5. 58 174 3 3 9 9 9
6. 60 176 5 5 25 25 25
n
∑ xi
330
x= i=1 = =55
Greutatea medie va fi: n 6 kg
n
∑ yi
1026
y= i =1 = =171
Inaltimea medie va fi: n 6 cm
unde:
√
n
∑ ( x i −x )2
σ x= i =1
n
=
√ 70
6
=3 , 415650255
3
√
n
∑ ( y i − y )2
şi
σ y=
i=1
n
=
√ 70
6
=3 , 415650255
√ √
n n
∑ ( x i −x )2 ni ∑ ( y i − y )2 n i
i =1 i=1
σ x= n
σ y= n
∑ ni ∑ ni
unde: i=1 şi i =1
√
n n n n n n
[ ∑ ni⋅∑ xi2 ni−( ∑ x i ni )2 ][ ∑ ni⋅∑ y 2i ni−( ∑ y i ni )2 ]
i=1 i=1 i=1 i=1 i =1 i=1
( y i− y ) 2 2
VECHIME SALARII Nr xini yini ( xi −x) ( xi −x)( y i − y)ni ( xi −x ) n i ( y i− y ) ni
$/ pers
saptama
na
4
20-30 400-500 14 350 6300 2 20 560 56 5600
√
n
∑ ( x i −x )2 ni
σ x=
i =1
n
∑ ni
=
√ 2080
30
=8 , 326663998
unde: i=1
√
n
∑ ( y i − y )2 n i
σ y= i=1
n
∑ ni
=
√ 208000
30
=83 ,26663998
i =1
5
Exemplul nr. 2 la SERII CU FRECVENTE
6
n
∑ (x i −x )( y i− y )ni
497 ,778
r= i =1 = =1
n 180⋅1 , 66295921⋅1 ,66295921
∑ ni⋅σ x⋅σ y
i=1
unde:
√
n
∑ ( x i −x )2 ni
σ x=
i=1
n
∑ ni
=
√ 497 ,778
180
=1 , 66295921
i=1
√
n
∑ ( y i − y )2 n i
σ y= i=1
n
∑ ni
=
√ 497 , 778
180
=1, 66295921
i =1
n n
∑ ∑ ( x i−x )( y j − y )nij
r= i=1 j=1
n n
∑ ∑ nij⋅σ x⋅σ y
i=1 j=1
unde:
√ √
n n
∑ ( x i −x )2 ni . ∑ ( y j − y )2 n . j
i =1 j=1
σ x= n
σ y= n
∑ ni . ∑ n. j
i=1 şi j=1
n n n n n n
∑ ∑ nij⋅∑ ∑ x i y j nij −∑ x i ni.⋅∑ y j n. j
i=1 j=1 i=1 j=1 i=1 j=1
r=
√
n n n n n n n n
[ ∑ ∑ n ij ∑ x2i ni.−( ∑ x i ni . )2 ][ ∑ ∑ nij ∑ y 2j n. j −( ∑ y j n . j )2 ]
i=1 j=1 i=1 i=1 i=1 j =1 j=1 j=1
7
Exemplul nr. 1 la Tabelul de Corelatie
0 -200 200-400 400 - 600 600 -800 ni. xini. ( xi −x) ( xi −x)2 n i
∑ (xi −x)( y j− y )nij
Vechime
10–20 - 2 - - 2 30 - 5 50 750
20-30 - 1 1 - 2 50 5 50 250
8
Salariul mediu va fi:
n
∑ y j n. j
3000
y= j=1n = =375
8
∑ n. j
j=1 $/lună
unde:
√
n
∑ ( x i −x )2 ni .
σ x=
i =1
n
∑ ni .
=
√ 1000
8
=11, 18
i=1
√
n
∑ ( y j − y )2 n . j
σ y= j =1
n
∑ n. j
=
√ 395000
8
=222, 205
j =1
2
(cm) 164-166 166 -168 168 -170 170 -172 ni. xini. ( xi −x) ( xi −x ) n i
∑ (xi −x)( y j− y )nij
Greutate
9
50-52 4 - - 2 6 306 -2,75 45,375 - 4,125
2
( y j − y) n.84,375
j
0,25 10,125 72,25 167
unde:
√
n
∑ ( x i −x )2 ni .
σ x= i=1
n
∑ ni .
=
√ 95
16
=2 , 436698586
i=1
10
√
n
∑ ( y j − y )2 n . j
σ y=
j =1
n
∑ n. j
=
√ 167
16
=3 , 230711996
j =1
11