Statistics Calculator: Correlation Coefficient

Use this calculator to calculate the correlation coefficient from a set of bivariate data.

Correlation Coefficient Calculator


This calculator can be used to calculate the sample correlation coefficient.

Enter the x,y values in the box above. You may enter data in one of the following two formats:

  • Each xi,yi couple on separate lines:


  • All xi values in the first line and all yi values in the second line:


Press the "Submit Data" button to perform the calculation. The correlation coefficient will be displayed if the calculation is successful. To clear the calculator and enter new data, press "Reset".

What is the correlation coefficient

The correlation coefficient, or Pearson product-moment correlation coefficient (PMCC) is a numerical value between -1 and 1 that expresses the strength of the linear relationship between two variables.When r is closer to 1 it indicates a strong positive relationship. A value of 0 indicates that there is no relationship. Values close to -1 signal a strong negative relationship between the two variables. You may use the linear regression calculator to visualize this relationship on a graph.

Correlation coefficient formula

There are many formulas to calculate the correlation coefficient (all yielding the same result). This calculator uses the following:

$ r ={\frac{n \sum_{i=1}^n x_i y_i - \sum_{i=1}^n x_i \sum_{i=1}^n y_i}{\sqrt {(n \sum_{i=1}^n x_i^2 - (\sum_{i=1}^n x_i)^2)(n \sum_{i=1}^n y_i^2 - (\sum_{i=1}^n y_i)^2)} } $

where n is the total number of samples, xi (x1, x2, ..., xn) are the x values and yi are the y values.

Another Calc

feet squared to centimeters squared calculator showing fractions bitcoin hashing calculator convert square meters to square feet kilometers to micrometers converting negative fractions to decimals how many inches in 135 cm how to change decimals to mixed numbers trigonometry calculator online sin cos tan mixed numbers to improper fraction calculator 2.5 mm equals how many inches sq metre to sq feet conversion celcius to fahrenheit formula simplify integers calculator what is the lcm calculator temperature conversion from celsius to kelvin millimeters converted to centimeters equal fraction calculator mix fraction to improper fraction centimetres to millimetres mix to improper fraction creating a scatter plot in excel meter to square feet conversion formula how much is 90 mm in inches kg to metric tonne converter how much is an inch in centimetres how many inches are a centimeter conversion from inches to centimeter mape calculation in excel 7.7 cm in inches formula for sample variance in statistics