Correlation Coefficient is a statistical concept, which helps in establishing a relation between predicted and actual values obtained in a statistical experiment. The calculated value of the correlation coefficient explains the exactness between the predicted and actual values.
Correlation Coefficient value always lies between -1 to +1. If correlation coefficient value is positive, then there is a similar and identical relation between the two variables. Else it indicates the dissimilarity between the two variables.
The covariance of two variables divided by the product of their standard deviations gives Pearson’s correlation coefficient. It is usually represented by ρ (rho).
ρ (X,Y) = cov (X,Y) / σX.σY.
Here cov is the covariance. σX is the standard deviation of X and σY is the standard deviation of Y. The given equation for correlation coefficient can be expressed in terms of means and expectations.
μx and μy are mean of x and mean of y respectively. E is the expectation.
Assumptions of Karl Pearson’s Correlation Coefficient
The assumptions and requirements for calculating Pearson’s correlation coefficient are as follows:
1. The data set which is to be correlated should approximate to the normal distribution. If the data is normally distributed, then the data points tend to lie closer to the mean.
2. The word homoscedastic is a greek originated meaning ‘able to disperse’. Homoscedasticity means ‘equal variances’. For all the values of the independent variable, the error term is the same. Suppose the error term is smaller for a certain set of values of independent variable and larger for another set of values, then homoscedasticity is violated. It can be checked visually through a scatter plot. The data is said to be homoscedastic if the points lie equally on both sides of the line of best fit.
3. When the data follows a linear relationship, it is said to be linearity. If the data points are in the form of a straight line on the scatter plot, then the data satisfies the condition of linearity.
4. The variables which can take any value in an interval are continuous variables. The data set must contain continuous variables to compute the Pearson correlation coefficient. If one of the data sets is ordinal, then Spearman’s rank correlation is an appropriate measure.
5. The data points must be in pairs which are termed as paired observations. There exists a dependent variable for every observation of the independent variable.
6. There must be no outliers in the data. If the outliers are present, then they can skew the correlation coefficient and make it inappropriate. A point is considered to be an outlier if it is beyond +3.29 or -3.29 standard deviations away. They can be easily determined visually from a scatter plot.
Pearson Correlation Coefficient Formula
The linear correlation coefficient defines the degree of relation between two variables and is denoted by “r”. It is also called as Cross correlation coefficient as it predicts the relation between two quantities. Now let us proceed to a statistical way of calculating the correlation coefficient.
|If x & y are the two variables of discussion, then the correlation coefficient can be calculated using the formula
n = Number of values or elements
How to find the Correlation Coefficient
Correlation is used almost everywhere in statistics. Correction illustrates the relationship between two or more variables. It is expressed in the form of a number that is known as correlation coefficient. There are mainly two types of correlations:
- Positive Correlation
- Negative Correlation
|Positive Correlation||The value of one variable increases linearly with increase in another variable. This indicates a similar relation between both the variables. So its correlation coefficient would be positive or 1 in this case.|
|Negative Correlation||When there is a decrease in values of one variable with decrease in values of other variable. In that case, correlation coefficient would be negative.|
|Zero Correlation or No Correlation||There is one more situation when there is no specific relation between two variables.|
Correlation Coefficient Properties
Correlation coefficient is all about establishing relationships between two variables. Some properties of correlation coefficient are as follows:
1) Correlation coefficient remains in the same measurement as in which the two variables are.
2) The sign which correlations of coefficient have will always be the same as the variance.
3) The numerical value of correlation of coefficient will be in between -1 to + 1. It is known as real number value.
4) The negative value of coefficient suggests that the correlation is strong and negative. And if ‘r’ goes on approaching toward -1 then it means that the relationship is going towards the negative side.
When ‘r’ approaches to the side of + 1 then it means the relationship is strong and positive. By this we can say that if +1 is the result of the correlation then the relationship is in a positive state.
5) The weak correlation is signaled when the coefficient of correlation approaches to zero. When ‘r’ is near about zero then we can deduce that the relationship is weak.
6) Correlation coefficient can be very dicey because we cannot say that the participants are truthful or not.
The coefficient of correlation is not affected when we interchange the two variables.
7) Coefficient of correlation is a pure number without effect of any units on it. It also not get affected when we add the same number to all the values of one variable. We can multiply all the variables by the same positive number. It does not affect the correlation coefficient. As we discussed, ‘r ‘is not affected by any unit because ‘r’ is a scale invariant.
8) We use correlation for measuring the association but that does not mean we are talking about causation. By this, we simply mean that when we are correlating the two variables then it might be the possibility that the third variable may be influencing them.
Examples on Correlation Coefficient
Example 1: Calculate the Correlation coefficient of given data:
Here n = 5
sum x = 260
sum y = 16.5
sum xy = 859
sum x2 = 13530
sum y2 = 54.55
By substituting all the values in formula, we get r = 1. This shows a positive correlation coefficient.
Example 2: Calculate the Correlation coefficient of given data:
Here n = 5
sum x = 93
sum y = 32
sum xy = 670
sum x2 = 1863
sum y2 = 264
Now, putting all the values in below formula
We have, r = 0.84