CalculatorCast

Korrelaatiokerroin

Pearsonin r mille tahansa (x, y)-parijoukolle.

Johdanto

Correlation Coefficient - Pearson r for any set of (x, y) pairs. Enter Points (x,y per line) to get an instant result.

Kaava

Pearson correlation coefficient r = (nΣxy − ΣxΣy) / √((nΣx² − (Σx)²)(nΣy² − (Σy)²)).

Vaihe vaiheelta

  1. Enter the Points (x,y per line).
  2. Click Calculate to see your result instantly.

Käytännön esimerkki

Example: With the defaults shown above, the Correlation Coefficient gives Correlation: 0.9879.

Usein Kysytyt Kysymykset

What does an r value close to 1 or −1 mean?
A strong linear relationship - positive (1) means both variables increase together, negative (−1) means one increases as the other decreases.
What does r = 0 mean?
No linear relationship between the variables (though a non-linear relationship could still exist).
What inputs does the Correlation Coefficient need?
You'll need to provide: Points (x,y per line). All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the Correlation Coefficient?
The Correlation Coefficient applies a fixed formula to the numbers you enter. Formula used: Pearson correlation coefficient r = (nΣxy − ΣxΣy) / √((nΣx² − (Σx)²)(nΣy² − (Σy)²)). The result is only as reliable as the values you provide, so double-check your inputs.
Is the Correlation Coefficient free to use?
Yes, the Correlation Coefficient is completely free, requires no signup, and runs instantly in your browser.

Tietoa: Korrelaatiokerroin

The correlation coefficient measures the strength and direction of the linear relationship between two variables. The most commonly used version is Pearson's r, which ranges from negative 1 to positive 1. The Correlation Coefficient Calculator on CalculatorCast computes Pearson's r from paired x and y data, along with the p-value for testing whether the correlation is statistically significant.

Pearson's r is calculated as the covariance of x and y divided by the product of their standard deviations. Equivalently, it equals [n times sum(xy) minus sum(x) times sum(y)] divided by the square root of {[n times sum(x squared) minus sum(x) squared] times [n times sum(y squared) minus sum(y) squared]}.

Interpreting r: values near positive 1 indicate a strong positive relationship (as x increases, y increases). Values near negative 1 indicate a strong negative relationship (as x increases, y decreases). Values near 0 indicate little or no linear relationship. Common conventions: 0.1 to 0.3 is weak, 0.3 to 0.7 is moderate, and above 0.7 is strong (using absolute values).

Pearson's r measures only linear relationships. Two variables can have a strong non-linear relationship but a correlation coefficient near 0. Always visualize your data before interpreting r.

Statistical significance of r: the calculator computes the t-statistic t equals r times square root of (n minus 2) divided by square root of (1 minus r squared), and the corresponding two-tailed p-value from the t-distribution with n minus 2 degrees of freedom. A p-value below 0.05 is conventionally considered statistically significant.

For non-normally distributed data or ordinal data, Spearman's rank correlation is more appropriate. Our calculator also computes Spearman's rho as an alternative to Pearson's r when the data are not normally distributed.

The Correlation Coefficient Calculator is free on CalculatorCast and works on all devices without registration.