Koeficienti i korrelacionit

Janë dhënë orët e studimit dhe notat e pesë studentëve. | Orët e studimit (x) | Nota (y) | | 1 | 2 | | 2 | 4 | | 3 | 5 | | 4 | 4 | | 5 | 6 | Llogaritni koeficientin e korrelacionit linear Pearson dhe interpretoni rezultatin.

Zgjidhja

Hapi 1: Gjejmë mesataret Për ndryshoren x x̄ = (1 + 2 + 3 + 4 + 5) / 5 x̄ = 15 / 5 = 3 Për ndryshoren y ȳ = (2 + 4 + 5 + 4 + 6) / 5 ȳ = 21 / 5 = 4,2 Hapi 2: Përdorim formulën e korrelacionit Koeficienti i korrelacionit Pearson shënohet me r. Formula r = Σ[(x − x̄)(y − ȳ)] / √{Σ(x − x̄)² × Σ(y − ȳ)²} Koeficienti tregon drejtimin dhe forcën e lidhjes lineare ndërmjet dy ndryshoreve. Hapi 3: Llogarisim devijimet dhe prodhimet | x | y | x − x̄ | y − ȳ | (x − x̄)(y − ȳ) | (x − x̄)² | (y − ȳ)² | | 1 | 2 | −2 | −2,2 | 4,4 | 4 | 4,84 | | 2 | 4 | −1 | −0,2 | 0,2 | 1 | 0,04 | | 3 | 5 | 0 | 0,8 | 0 | 0 | 0,64 | | 4 | 4 | 1 | −0,2 | −0,2 | 1 | 0,04 | | 5 | 6 | 2 | 1,8 | 3,6 | 4 | 3,24 | | Shuma | | | | 8 | 10 | 8,80 |