Solveeit Logo

Question

Question: If \(n = 10,\sum x = 50,\sum y = - 30,\sum {{x^2}} = 290,\sum {{y^2}} = 300,\sum {xy} = - 115\), the...

If n=10,x=50,y=30,x2=290,y2=300,xy=115n = 10,\sum x = 50,\sum y = - 30,\sum {{x^2}} = 290,\sum {{y^2}} = 300,\sum {xy} = - 115, then find the coefficient of correlation.

Explanation

Solution

First find the standard deviation of xx by the formula σx=x2n(xn)2{\sigma _x} = \sqrt {\dfrac{{\sum {{x^2}} }}{n} - {{\left( {\dfrac{{\sum x }}{n}} \right)}^2}} . Similarly, find the standard deviation of yy. After that find the covariance by the formula Cov(x,y)=xynxnynCov\left( {x,y} \right) = \dfrac{{\sum {xy} }}{n} - \dfrac{{\sum x }}{n} \cdot \dfrac{{\sum y }}{n}. Then use the values to calculate the coefficient of correlation by the formula Cov(x,y)σxσy\dfrac{{Cov\left( {x,y} \right)}}{{{\sigma _x}{\sigma _y}}}.

Complete Step by Step Solution:
The correlation coefficient is a statistical measure of the strength in the relationship between the relative movements of two variables. The values range between -1 and 1. If the calculated number is greater than 1 or less than -1 means that there is an error in the correlation measurement. A correlation of -1 shows a perfect negative correlation, while a correlation of 1 shows a perfect positive correlation. A correlation of 0 shows no linear relationship between the movement of the two variables.
To calculate the product-moment correlation, one must first determine the covariance of the two variables in question. Next, one must calculate each variable's standard deviation. The correlation coefficient is determined by dividing the covariance by the product of the two variables' standard deviations.
Now, calculate the standard deviation of xx by the formula,
σx=x2n(xn)2{\sigma _x} = \sqrt {\dfrac{{\sum {{x^2}} }}{n} - {{\left( {\dfrac{{\sum x }}{n}} \right)}^2}}
Substitute the values,
σx=29010(5010)2\Rightarrow {\sigma _x} = \sqrt {\dfrac{{290}}{{10}} - {{\left( {\dfrac{{50}}{{10}}} \right)}^2}}
Cancel out the common factors,
σx=29(5)2\Rightarrow {\sigma _x} = \sqrt {29 - {{\left( 5 \right)}^2}}
Square the term and subtract from 29,
σx=4\Rightarrow {\sigma _x} = \sqrt 4
So, the standard deviation of xx is,
σx=2\therefore {\sigma _x} = 2
Now, calculate the standard deviation of yy by the formula,
σy=y2n(yn)2{\sigma _y} = \sqrt {\dfrac{{\sum {{y^2}} }}{n} - {{\left( {\dfrac{{\sum y }}{n}} \right)}^2}}
Substitute the values,
σy=30010(3010)2\Rightarrow {\sigma _y} = \sqrt {\dfrac{{300}}{{10}} - {{\left( {\dfrac{{ - 30}}{{10}}} \right)}^2}}
Cancel out the common factors,
σy=30(3)2\Rightarrow {\sigma _y} = \sqrt {30 - {{\left( { - 3} \right)}^2}}
Square the term and subtract from 30,
σy=21\Rightarrow {\sigma _y} = \sqrt {21}
So, the standard deviation of yy is,
σy=4.58\therefore {\sigma _y} = 4.58
Now calculate the covariance by the formula,
Cov(x,y)=xynxnynCov\left( {x,y} \right) = \dfrac{{\sum {xy} }}{n} - \dfrac{{\sum x }}{n} \cdot \dfrac{{\sum y }}{n}
Substitute the values,
Cov(x,y)=1151050103010\Rightarrow Cov\left( {x,y} \right) = \dfrac{{ - 115}}{{10}} - \dfrac{{50}}{{10}} \cdot \dfrac{{ - 30}}{{10}}
Cancel out the common factors,
Cov(x,y)=11.5+5×3\Rightarrow Cov\left( {x,y} \right) = - 11.5 + 5 \times 3
Simplify the term,
Cov(x,y)=3.5\Rightarrow Cov\left( {x,y} \right) = 3.5
Now, calculate the coefficient of correlation by the formula,
Cov(x,y)σxσy\dfrac{{Cov\left( {x,y} \right)}}{{{\sigma _x}{\sigma _y}}}
Substitute the values,
\RightarrowCoefficient of correlation =3.52×4.58 = \dfrac{{3.5}}{{2 \times 4.58}}
Multiply the terms in denominator,
\RightarrowCoefficient of correlation =3.59.16 = \dfrac{{3.5}}{{9.16}}
Convert the fraction into a decimal,
\therefore Coefficient of correlation =0.38 = 0.38

Hence, the coefficient of correlation is 0.380.38.

Note: Correlation coefficients are used to measure the strength of the relationship between two variables. Pearson correlation is the one most commonly used in statistics. This measures the strength and direction of a linear relationship between two variables that we use in this question.