# PEARSON

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function returns the Pearson product moment correlation coefficient, a dimensionless index between -1.0 to 1.0 inclusive indicative of the linear relationship of two data sets.

## Syntax

PEARSON(*array\_ind*,*array\_dep*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *array\_ind* | Array of independent values (x’s) |
| *array\_dep* | Array of dependent values (y’s) |

The arrays must be the same size.

## Data Types

Accepts numeric data for both arguments. Returns numeric data.

## Examples

`PEARSON(B4:G7,B8:G11)`
`PEARSON(R4C2:R7C7,R8C2:R11C7)`
`PEARSON({2,8,4,16,10,12},{8,2,15,14,18,11})` gives the result 0.262017

## Version Available

This function is available in product version 1.0 or later.

## See Also

[RSQ](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionRSQ) \| [STEYX](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSTEYX) \| [Statistical Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsstats)