# Sample Correlation Coefficient Calculator

The correlation is used to find the strength and direction of the relationship between the pair of variables. The deviation of two variables from their respective mean can be calculated by covariance. The square root of the variance is the standard deviation. The correlation coefficient is a normalized measurement of how the two variables are related. Enter the covariance, standard deviation of x and y in the sample correlation coefficient calculator to find the coefficient of correlation.

The correlation is used to find the strength and direction of the relationship between the pair of variables. The deviation of two variables from their respective mean can be calculated by covariance. The square root of the variance is the standard deviation. The correlation coefficient is a normalized measurement of how the two variables are related. Enter the covariance, standard deviation of x and y in the sample correlation coefficient calculator to find the coefficient of correlation.

Code to add this calci to your website

#### Formula:

r_{xy} = s_{xy} / (s_{x} s_{y})
**Where,**
r_{xy} = Sample Correlation Coefficient
s_{x} = Sample Standard Deviations of X
s_{y} = Sample Standard Deviations of Y
s_{xy} = Sample Covariance
### Example:

A sample covariance of 20 has the standard deviation of x as 5 and standard deviation of y as 2. Find the sample correlation coefficient?

#### Solution:

r_{xy} = 20 / (5 x 2)

= 2