The Excel PEARSON function calculates the Pearson Product-Moment Correlation Coefficient for two sets of values.
Syntax: PEARSON( array1, array2 )
The Excel Pearson function is the same as the Excel Correl Function, except that, in earlier versions of Excel (earlier than Excel 2003), the Pearson function may exhibit some rounding errors.
Pearson Function Example
Columns A and B of the spreadsheet on the left contain two arrays of values. These are shown in the chart below:
The Pearson Product-Moment Correlation Coefficient of the values in columns A and B of the spreadsheet can be calculated using the Excel Pearson function, as follows:
=PEARSON( A2:A21, B2:B21 )
This gives the result 0.870035104, which indicates a strong positive correlation between the two sets of values. Information on interpreting the significance of the Pearson Product-Moment Correlation Coefficient is given on the University of Connecticut website
Pearson Function Errors
If you get an error from your Excel Pearson function this is likely to be one of the following :
|#N/A||–||Occurs if the supplied arrays are of different lengths|
|#DIV/0!||–||Occurs if either of the supplied arrays are empty or if the standard deviation of their values equals zero|