Calculate the correlation coefficient of the following data: x 45 46 46 47 48 49 50 y 44 48 45 48 52 51 49
"\\bar{Y}=\\dfrac{1}{n}\\sum_iY_i=\\dfrac{337}{7}=48.1429"
"SS_{XX}=\\sum_i(X_i-\\bar{X})^2=19.428571"
"SS_{YY}=\\sum_i(Y_i-\\bar{Y})^2=50.857143"
"SS_{XY}=\\sum_i(X_i-\\bar{X})(Y_i-\\bar{Y})=23.714286"
Correlation coefficient:
"=\\dfrac{23.714286}{\\sqrt{29.219.428571}\\sqrt{50.857143}}=0.714863"
We have a strong positive correlation.
Comments
Leave a comment