Pearson correlation calculator
Measure the strength and direction of linear association between paired X and Y observations.
Calculator
How to use this calculator
Measure the strength and direction of linear association between paired X and Y observations.
- Enter X values (comma or space separated), Y values in matching order. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Pearson correlation calculator
Measure the strength and direction of linear association between paired X and Y observations.
What it measures
Pearson’s r standardizes the sample covariance by both sample standard deviations. It ranges from −1 to +1 when both variables vary.
Inputs and units
- X values (comma or space separated): X observations, separated by commas or spaces.
- Y values in matching order: Y observations in the same order; each value pairs with the X value at that position.
Formula and method
r=Σ[(xᵢ−x̄)(yᵢ−ȳ)]/√(Σ(xᵢ−x̄)²Σ(yᵢ−ȳ)²).
Worked example
For X=[1,2,3,4,5] and Y=[2,3,5,4,7], Pearson r≈0.9042, indicating a strong positive linear association in these pairs.
Interpreting the result
Correlation describes linear association, not causation. A value near zero can still coexist with a nonlinear relationship.
Assumptions and limits
Lists must contain the same number of finite paired observations, with nonzero variation in both. Outliers can strongly affect r.
Sources and method
- Defines Pearson correlation as a measure of linear association with values from −1 to +1. NIST: Statistical glossary — correlation
Frequently asked questions
Does a high correlation prove X causes Y?
No. Confounding, reverse direction, or coincidence can produce association.
Why does a curved relationship sometimes have a low r?
Pearson r measures linear association, so strong nonlinear patterns may not be captured.
How do I use the Pearson correlation calculator?
Enter X values (comma or space separated), Y values in matching order. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Pearson correlation?
For X=[1,2,3,4,5] and Y=[2,3,5,4,7], Pearson r≈0.9042, indicating a strong positive linear association in these pairs.
What does the Pearson correlation calculator calculate?
Measure the strength and direction of linear association between paired X and Y observations.
See the calculation methodology.
Good calculators show their work.
CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.