How to use it
- 1Enter the X values and the matching Y values in the same order, or load the example.
- 2Choose the decimal separator that matches your data.
- 3Read Pearson’s r, r², the covariance and the interpretation of strength and direction.
- 4Check the scatter plot for outliers or a curved pattern, then copy the results.
Pearson’s correlation coefficient
Pearson’s r measures the strength and direction of the linear relationship between two variables. It ranges from −1 (perfect negative line) through 0 (no linear relationship) to +1 (perfect positive line).
It is computed as r = Σ(x − x̄)(y − ȳ) / √(Σ(x − x̄)² · Σ(y − ȳ)²). Strength labels follow a common convention: below 0.2 very weak, 0.2 to 0.4 weak, 0.4 to 0.6 moderate, 0.6 to 0.8 strong and 0.8 or more very strong. These thresholds are applied to |r|. A perfect label requires exact alignment of the stored pairs. A nonperfect coefficient that rounds to ±1 at the available precision is labeled nearly perfect.
Read the scatter plot too
A single outlier can inflate or hide a correlation, and a strong curved relationship can produce an r close to 0. Always look at the scatter plot before drawing conclusions. Remember that correlation does not imply causation.
Frequently asked questions
Why does the calculator say the correlation is undefined?
If all X values or all Y values are identical, one variable has no variation and r cannot be calculated.
Do X and Y need the same number of values?
Yes. Each X value is paired with the Y value in the same position, so both lists must have the same length.
What does r² mean?
r² is the share of the variation in Y that a straight line through the data explains. For example, r = 0.9 gives r² = 0.81, or 81%.