The name correlation suggests the relationship between two variables as their Co-relation. The correlation coefficient is the measurement of correlation. To see how the two sets of data are connected, we make use of this formula. The linear dependency between the data set is done by the Pearson Correlation coefficient. It is also known as Pearson product moment correlation coefficient. The value of the Pearson correlation coefficient product is between -1 to +1. When the correlation coefficient comes down to zero, then the data is said to be not related. While, if we are getting the value of +1, then the data are positively correlated and -1 has a negative correlation.
The graphical representation of positive, negative and no correlation is shown below:
For using the sample data, the Pearson correlation coefficient is denoted by the letter “r”. The formula for Pearson correlation coefficient r is given by:
r = Pearson correlation coefficient
x = Values in the first set of data
y = Values in the second set of data
n = Total number of values.
Question: Marks obtained by 5 students in algebra and trigonometry as given below:
slide :- image only in phone solve example ----------------------
Calculate the Pearson correlation coefficient?
Construct the following table:
|∑x = 61||∑y = 76||∑x2 = 789||∑y2 = 1234||∑xy = 902|
slide this image in only phone -------------------------------------------
Formula for Pearson correlation coefficient is given by:
r = n(∑xy)−(∑x)(∑y)[n∑x2−(∑x)2][n∑y2−left(∑y)2]√
r = 5×902–61×76[5×789–(61)2][5×1234–(76)2]√
r = -0.424