ID EN
#Statistical

CORREL

Excel Functions

Get correlation coefficient between two data sets

Syntax

EXCEL
=CORREL(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 representing the correlation coefficient.

Details

The CORREL function calculates the Pearson correlation coefficient between two data sets. It measures both the strength and direction of the linear relationship between variables, providing a standardized measure that ranges from -1 to 1. 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 negative correlation between car mileag

Examples

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

See Also

PEARSON COVAR COVARIANCE.P COVARIANCE.S