Function fastiron_stats::structures::raw::correlation

source ยท
pub fn correlation(x: &TalliedVariable, y: &TalliedVariable) -> f64
Expand description

Returns the correlation coefficient of two given TalliedVariable.

The function checks if x and y have non-zero variance. If this is the case, 0 is returned. It means variables are independent. While this may be technically false, it allows for generic computations.