Calculate karl pearsons coefficent of correlation for the following data ?
X - 105,111,104,112,118,98,116,103,106,112
Y- 62,64,53,60,72,56,68,60,69,65
"\\bar{x}=\\dfrac{\\sum_ix_i}{n}"
"=\\dfrac{105+111+104+112+118+98+116+103+106+112}{10}"
"=108.5"
"\\bar{y}=\\dfrac{\\sum_iy_i}{n}"
"=\\dfrac{62+64+53+60+72+56+68+60+69+65}{10}"
"=62.9"
"S_{xx}=\\sum_i(x_i-\\bar{x})^2=\\sum_ix_i^2-n\\cdot\\bar{x}^2=356.5"
"S_{xy}=\\sum_i(x_i-\\bar{x})(y_i-\\bar{y})=\\sum_ix_iy_i-n\\cdot\\bar{x}\\bar{y}=245.5"
"S_{yy}=\\sum_i(y_i-\\bar{y})^2=\\sum_iy_i^2-n\\cdot\\bar{y}^2=314.9"
"r=\\dfrac{S_{xy}}{\\sqrt{S_{xx}}\\sqrt{S_{yy}}}=\\dfrac{245.5}{\\sqrt{356.5}\\sqrt{314.9}}=0.7327"
Strong correlation
Comments
Leave a comment