Pearson correlation
Calculate Pearson r for the linear relationship between two numeric variables, similar to Excel CORREL or PEARSON output.
Paste paired x-y data and calculate Pearson correlation, Spearman rank correlation, covariance, R-squared, p-values, a Pearson confidence interval, ranks, and a scatterplot. Use it to check Excel CORREL, PEARSON, RSQ, SPSS, R, or statistics homework output.
Enter paired values with x first and y second. Each line should represent one observation, so the x and y values must stay matched. Use Pearson r for linear relationships and Spearman rho when the relationship is monotonic, ordinal, or sensitive to outliers.
Put one pair on each line, such as 1, 2.1 or 1 2.1.
The first number is x and the second number is y.
Pearson r is unchanged by this choice. The covariance denominator changes only for the covariance output.
Correlation from paired data
Pearson p-values use the usual t approximation for testing zero linear correlation. Spearman p-values shown here are an approximate large-sample check.
| X | Y | Rank X | Rank Y |
|---|---|---|---|
| Calculate correlation to view ranks. | |||
Correlation measures the strength and direction of association between two variables. It does not prove that one variable causes the other.
Calculate Pearson r for the linear relationship between two numeric variables, similar to Excel CORREL or PEARSON output.
Calculate Spearman rank correlation for monotonic relationships and ordinal-style data.
Review p-values, R-squared, covariance, and a 95% confidence interval for Pearson r.
Use the scatterplot to see whether the association is linear, curved, or outlier-driven.
Pearson correlation uses the original values. Spearman correlation converts each variable to ranks first, then calculates Pearson correlation on the ranks.
| Measure | Formula idea | Use when |
|---|---|---|
| Pearson r | Sxy / sqrt(Sxx * Syy) |
The relationship is reasonably linear and both variables are numeric. |
| Spearman rho | Pearson r of ranks |
The relationship is monotonic, ordinal, or affected by outliers. |
| R-squared | r * r |
You want the share of y variation explained by a simple linear relationship with x. |
| Covariance | Sxy / denominator |
You want joint variation in original units rather than standardized units. |
Correlation homework usually requires more than the r value. The best answer explains the paired data, method choice, direction, strength, p-value, and graph.
These examples are useful for checking Excel, SPSS, R, and calculator output. P-values are rounded because software packages may display different decimal places.
| Question type | Data pattern | Result | Interpretation |
|---|---|---|---|
| Pearson correlation | Default paired x-y example | r = 0.9969, p approximately 7.57e-8 | Very strong positive linear association. |
| R-squared | Same paired x-y example | R-squared = 0.9938 | About 99.38% of y variation is explained by a linear relationship with x. |
| Spearman correlation | Same paired x-y example | rho = 1.0000 | The ranks move perfectly upward together in this example. |
Pearson correlation measures linear association using the original values. Spearman correlation measures monotonic association by applying Pearson correlation to the ranked values.
No. Correlation describes association between variables, but it does not prove that one variable causes the other.
Use Spearman correlation when the relationship is monotonic but not clearly linear, when the data are ranks, or when outliers make Pearson correlation misleading.
Covariance shows direction and joint variation in original units. Correlation standardizes covariance so the result is unitless and always between -1 and 1.
Yes. Pearson r follows the same correlation idea used by Excel CORREL and PEARSON for paired numeric data. Small differences can appear from rounding.
For simple linear association, R-squared is r squared. It is often interpreted as the proportion of variation in y explained by a linear relationship with x.
Report the sample size, Pearson r or Spearman rho, direction, strength, p-value if required, graph/outlier notes, and a context-based interpretation.
Correlation assignments often need a graph, method choice, p-value, strength and direction statement, outlier discussion, and a warning that correlation does not prove causation.
Use this calculator to check computations, compare software output, and prepare tutoring questions. For graded work, follow your course rules and explain the results in context.
Join students from over 150 countries who trust Statskan for academic excellence.
Get Expert Help Now →