Skip to main content

kendall

Function kendall 

Source
pub fn kendall(x: &[f64], y: &[f64]) -> Result<Correlation, ErrorsJSL>
Expand description

Kendall’s τ_b, (C − D) / √((n₀ − n₁)(n₀ − n₂)) over concordant and discordant pairs with tie corrections, and a two-sided p-value from the normal approximation to S = C − D with the tie-corrected variance. O(n²).