When to use it
Use when measuring inter-rater or judge agreement corrected for chance.
Required Inputs
- Rater 1 classification categories
- Rater 2 classification categories
- Weighting scheme (Unweighted, Linear, Quadratic)
Calculate Cohen's Kappa (κ), Weighted Kappa (linear / quadratic), and percentage agreement for multi-annotator or LLM-judge evaluation alignment.
Run this test live in StatLab npm i @statlab/coreUse when measuring inter-rater or judge agreement corrected for chance.
κ = (p_o - p_e) / (1 - p_e)
from sklearn.metrics import cohen_kappa_score
kappa = cohen_kappa_score(rater1, rater2, weights='quadratic')
print(f"kappa={kappa:.4f}")
library(irr)
kappa2(data.frame(rater1, rater2))
import { cohensKappa } from '@statlab/core';
const k = cohensKappa(rater1, rater2);
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.