x: 1, 2, 3, 4
y: 6, 5, 7, 8
计算回归系数 (r) 给出以下数据
基于这些数据,我们可以计算回归系数,通常称为皮尔森的r或相关系数,使用公式: r = [ n(xy) - (x) ((y) ] / sqrt{ [ nx^2 - (x) ^2 ][ ny^2 - (y) ^2 ] },其中n是观察数,x是x值的总和,y是y值的总和,xy是x值的总和.为了计算r,我们将使用给出的x和y的输入值. x: 1,2,3,4 y: 6,5,7,8 n = 4 (观察数) x = 1+2x3+4x4+10 y = 6x5+7 = 26x2+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x4+2x+2x4+2x4+2x4+2x4+2+2x4+2x4+2+2x4+2x4+2x4+2+2x4+2+2+2x4+2x4+2+2x4+2x4+2+2x4+2+2+2x4+2+2x4+2+2+2x4+2+2+2x4+2+2+2+2x4+2+2+2+2x4+2+2+2+2+2+2x4+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2