# How to calculate the Pearson’s Correlation Coefficient?

• Last Updated : 02 May, 2022

The correlation topic comes under the statistics concept. It establishes the relationship between two variables. The correlation coefficient formula finds the correlation coefficient which measures the dependency of one variable on another variable. The correlation coefficient lies between -1 and 1. If the Correlation coefficient value is negative then the relation between two variables is inversely related. If the value is zero then there is no relationship between the two variables. If the correlation coefficient value is positive then one variable depends on another variable directly.

### Pearson’s Correlation Coefficient

There are many types of correlation coefficients. The most common and used is Pearson’s Correlation Coefficient. The Pearson’s Correlation Coefficient  is represented with the letter ‘r’ and its formula for the data of size N is given by-

r = cov(x,y) / σxσy

Where cov represents covariance

σ represents standard deviation

xand y represents means

### Sample Problems

Question 1: Find the Pearson Correlation coefficient formula for the given data

Solution:

Pearson coefficient (r) =

= 4/(√2√8)

= 4/4

= 1

Hence the two variables x and y are directly depend on each other.

Question 2: Find the Pearson Correlation coefficient formula for the given data

Solution:

Pearson coefficient (r) =

= 24/(√18√56)

= 24/(3√2 × 2√14)

= 4/2√7

= 2/√7

Pearson coefficient = 0.75

Question 3: Find the Pearson Correlation coefficient formula for the given data

Solution:

= -1/(√5√50)

= -1/(5√10)

Pearson coefficient = -0.63

Negative value of Pearson coefficient indicates that 2 variables has less dependency between them.

Question 4: Find the Pearson Correlation coefficient formula for the given data

Solution:

Pearson coefficient (r) =

= 41/(√133√65)

Pearson coefficient = 0.44

Question 5: Find the Pearson Correlation coefficient formula for the given data

Solution:

Pearson coefficient (r) =

= 23/(√2√264.66)

Pearson coefficient = 0.99

Indicates that the two variables x and y are directly depend on each other.

My Personal Notes arrow_drop_up