Example 1
A strong negative relationship
D2 =ROUND(PEARSON(A2:A7,B2:B7),4)
Result: -0.9954
Units fall almost perfectly as the price step rises, so r is close to -1.
D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns -0.9954
Returns the Pearson correlation coefficient between two sets of values: a number from -1 to 1. It gives the same result as CORREL.
Syntax
=PEARSON(, )
All versions of Excel.
Try it
Edit the formula in D2 or change the inputs. The sheet recalculates as you type.
D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns -0.9954
PEARSON returns the Pearson product-moment correlation coefficient, usually written r. It measures how closely two sets of numbers follow a straight-line relationship, on a scale from -1 to 1. =PEARSON(A2:A7,B2:B7) returns -0.9954 for a price step that rises while units sold fall.
As a rough guide, anything beyond 0.7 in either direction is strong, 0.4 to 0.7 is moderate, and below 0.3 is weak. Treat these as rules of thumb, not a standard.
PEARSON and CORREL use the same calculation and return the same result in current Excel. Use whichever name your team knows. CORREL is shorter and more common. PEARSON is useful when you follow a statistics text or a template that uses that name.
array1 and array2 are ranges or arrays of numbers of the same size. Pairs where either value is text, a logical value or an empty cell are ignored when the data is in cell references. Ranges of different sizes return #N/A. A series with no variation returns #DIV/0!. The order of the two arrays doesn't change the answer.
RSQ returns the square of PEARSON. If r is -0.9954, then R squared is 0.9909. Squaring drops the sign, so keep PEARSON when direction matters.
=IF(ABS(PEARSON(A2:A7,B2:B7))>=0.7,"Strong","Weak").Correlation does not show cause and effect. It measures only straight-line relationships, can be thrown off by a few extreme points, and says nothing about data outside the range you measured. Two series that both trend upward over time often correlate strongly without any link between them.
Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
D2 =ROUND(PEARSON(A2:A7,B2:B7),4)
Result: -0.9954
Units fall almost perfectly as the price step rises, so r is close to -1.
D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns -0.9954
Example 2
D2 =ROUND(PEARSON(A2:A6,B2:B6),4)
Result: 0.9808
Leads rise with spend, so r is close to 1.
D2 =ROUND(PEARSON(A2:A6,B2:B6),4) returns 0.9808
Example 3
D2 =ROUND(PEARSON(A2:A7,B2:B7),4)
Result: 0.0363
A value near 0 means a straight line doesn't describe how the complaints move with the week number.
D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns 0.0363
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In D2, return the Pearson correlation coefficient between the price step (A2:A7) and units sold (B2:B7).
Answer in D2.
#N/A, and a series with no variation returns #DIV/0!.In current Excel they return the same result. CORREL is the shorter and more common name.
A perfect straight-line relationship in which one series falls as the other rises.
Square the result: `=PEARSON(A2:A7,B2:B7)^2`, or use RSQ.
The two ranges have different numbers of values. Make them the same size.
Tracks take you from the basics to modelling, one graded exercise at a time.