ID EN
#Statistical

PEARSON

Excel Functions

To measure the strength and direction of the linear relationship between two variables.

Syntax

EXCEL
=PEARSON(array1, array2)

Arguments

Parameter Description
array1 The first set of data values.
array2 The second set of data values.

Return Value

A number between -1 and 1, inclusive.

Details

The PEARSON function computes the Pearson product-moment correlation coefficient for two arrays of numbers. It quantifies both the strength and direction of a linear relationship, with results ranging from -1 (perfect negative correlation) to 1 (perfect positive correlation). In this example, we'll examine the relationship between temperature (°F) and ice cream sales ($). As temperature increases, ice cream sales tend to increase as well, demonstrating a strong positive correlation. The result indicates a strong positive correlation between temperature and ice cream sales. Here we examine the relationship between a car's mileage (miles) and its resale value. As mileage increases, the car's value decreases proportionally, showing a strong negative correlation. The result confirms a strong n

Examples

Example #1 - Strong Positive Correlation
EXCEL
=PEARSON(B5:B9,C5:C9) // returns 0.997447985
Example #2 - Strong Negative Correlation
EXCEL
=PEARSON(B5:B9,C5:C9) // returns -1
Example #3 - Weak Correlation
EXCEL
=PEARSON(B5:B9,C5:C9) // returns -0.057

See Also

CORREL COVARIANCE.P COVARIANCE.S