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=−115, then find the coefficient of correlation.
Solution
First find the standard deviation of x by the formula σx=n∑x2−(n∑x)2. Similarly, find the standard deviation of y. After that find the covariance by the formula Cov(x,y)=n∑xy−n∑x⋅n∑y. Then use the values to calculate the coefficient of correlation by the formula σxσyCov(x,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 x by the formula,
σx=n∑x2−(n∑x)2
Substitute the values,
⇒σx=10290−(1050)2
Cancel out the common factors,
⇒σx=29−(5)2
Square the term and subtract from 29,
⇒σx=4
So, the standard deviation of x is,
∴σx=2
Now, calculate the standard deviation of y by the formula,
σy=n∑y2−(n∑y)2
Substitute the values,
⇒σy=10300−(10−30)2
Cancel out the common factors,
⇒σy=30−(−3)2
Square the term and subtract from 30,
⇒σy=21
So, the standard deviation of y is,
∴σy=4.58
Now calculate the covariance by the formula,
Cov(x,y)=n∑xy−n∑x⋅n∑y
Substitute the values,
⇒Cov(x,y)=10−115−1050⋅10−30
Cancel out the common factors,
⇒Cov(x,y)=−11.5+5×3
Simplify the term,
⇒Cov(x,y)=3.5
Now, calculate the coefficient of correlation by the formula,
σxσyCov(x,y)
Substitute the values,
⇒Coefficient of correlation =2×4.583.5
Multiply the terms in denominator,
⇒Coefficient of correlation =9.163.5
Convert the fraction into a decimal,
∴Coefficient of correlation =0.38
Hence, the coefficient of correlation is 0.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.