Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Agreement between raters beyond chance: Cohen's kappa (unweighted, linear or quadratic) and Fleiss' kappa

stats-agreement-kappa is a method that Drybench's tools and apps run. This page gives each version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, what was not checked, and what changed.

What this page can and cannot show

Level: Checked against a reference; Formulas as given in SAS and Gwet 2021; SEs checked against the transcribed formulas only; no published kappa table. Reference kind: an outside program, Python fractions and mpmath, Python 3.13.18; mpmath 1.4.1; an outside program, statsmodels inter_rater; SciPy, statsmodels 0.15.0; scipy 1.18.1; a reference program this project wrote itself, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14, exact rationals for the agreements, kappa and both variances; square roots, the normal quantile and the p value in mpmath at 400 bits, each rounded once to a double; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14, exact rationals for the agreements, kappa and both variances; square roots, the normal quantile and the p value in mpmath at 80 digits, each rounded once to a double; not an outside program.

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

Every method · What the levels mean · How cases are checked

Versions

  • Version 1.1.1 · stats-agreement-kappa@1.1.1 · Checked against a reference

Tools that use it