 Bosala calcul ya coefficient ya régression (r) oyo bapesi ba données oyo elandi
Na kotalaka ba données oyo epesami, tokoki kosala calcul ya coefficient ya régression, oyo eyebani mingi na kombo ya r ya Pearson to coefficient ya corrélation, na kosalelaka formule : r = [ n∑(xy) - (∑x)(∑y) ] / sqrt{ [ n ∑x^2 - (∑x)^2 ][ n∑y^2 - (∑y)^2 ] } esika, n ezali motango ya ba observations, ∑x ezali somme ya ba valeurs x, ∑y ezali somme ya motuya ya y, mpe ∑xy ezali motango ya x mbala y. Pona kosala calcul ya r, tokosalela ba valeurs ya entrée oyo epesami ya x na y. x: 1, 2, 3, 4 y: 6, 5, 7, 8 n = 4 (motango ya botali) ∑x = 1+2+3+4 =10 ∑y = 6+5+7+8 = 26 ∑xy = (1*6)+(2*5)+(3*7)+(4*8) = 70 ∑x^2 = 1^2 + 2^2 + 3^2 + 4^2 = 30 ∑y^2 = 6^2 + 5^2 + 7^2 + 8^2 = 174 Sikoyo, tokoki ko brancher ba valeurs oyo na formule : r = [ 4∑(xy) - (∑x)(∑y) . ] / sqrt{ [ 4∑x^2 - (∑x)^2 ][ 4∑y^2 - (∑y)^2 ] } = [ 4(70) - (10)(26) ] / sqrt{ [ 4(30) - (10)^2 ][ 4(174) - (26)^2 ] } = .8 Na yango, coefficient ya régression (r ya Pearson) ezali .8.