- Index

< Previous |  | Next >

## correlation_coefficientp

correlation_coefficientp — aggregate function to return the correlation coefficient of two ranges of values.

## SYNOPSIS

`correlation_coefficientp (double `field-x`, double `field-y`)`

## DESCRIPTION

This function is nearly identical to the correlation_coefficient function, but calculates its return value based on the biased or n method, and is usually used when the incoming data represents the entire population of data.

Use correlation_coefficient, which calculates its return value using the unbiased or n-1 method, when the incoming data represents a random sample of data.

## SEE ALSO

This LiveView aggregate function is based on the correlation_coefficientp aggregate function in the StreamBase expression language.