When to use it
Use for rank correlation in small sample sizes or data with many ties.
Required Inputs
- X numeric/ordinal array
- Y numeric/ordinal array
Compute Kendall's τ-b (tau-b) rank correlation coefficient, z-score, and p-value based on concordant and discordant pair counts.
Run this test live in StatLab npm i @statlab/coreUse for rank correlation in small sample sizes or data with many ties.
τ = (C - D) / [ ½ n(n-1) ]
from scipy import stats
tau, p = stats.kendalltau(x_vals, y_vals)
print(f"tau={tau:.4f}, p={p:.4f}")
cor.test(x_vals, y_vals, method = "kendall")
import { kendallTau } from '@statlab/core';
const res = kendallTau(xVals, yVals);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.