Repository navigation
Description
quoting myself:
"Gwet's AC1 is not a substitute for Cohen's kappa – A comparison of basic properties"
is kind of funny.
The what I read it is whenever they argue in favor of kappa and against ac1, the argument actually goes the other way.
Those are not "bugs", those are desirable features
I looked at an example again in the article, table 3 which is close to independence based on marginal distributions.
AFAIU:
By conditioning on the marginals, kappa is measuring some kind of conditional dependence.
But I think what we want is to look at unconditional dependence.
setup:
Individuals in the population have a trait or decease (s=1) with probability p1 and no trait/decease with probability p0=(1-p1).
Each of the raters has some probability of detecting the symptoms of the decease/trait. for example
p11 = prob(m=1 | s=1) >= 0.5 (> 0.5 means doing better than randomizing the decision with equal probabilities)
p10 = prob(m=1 | s=0) <= 0.5
p11 is the probability that rater 1 indicates the presence of the trait (m=1) given that the state of the individual is s=1, i.e. true positive.
p10 is the probability that rater 1 indicates the presence of the trait (m=1) given the state s=0, i.e. false positive.
(1 - p10) is the true negative probability for rater 1.
Conditional on the state, the messages of the two raters are independent.
Unconditionally (integrating out the state), the messages of the two raters are dependent as long as they have strictly positive detection ability, i.e. p11 > p10 and p21 > p20.
If p11 = p21 = 0.999 and p10 = p20 = 0.001, then both raters will agree on almost all decease states and get almost all of them correct. However, the decision of raters are conditionally independent, i.e. the "errors" of the two raters are independent, each rater might randomly misidentify an individual independently of whether the other rater also misidentifies.
The prevalence (e.g. fraction of m=1) will depend on the population probability p1.
Cohen's kappa should in this case be close to zero, even though both raters agree on the diagnosis with high probability independently of the population prevalence p1.
If most points are on the diagonal (compared to off diagonal), then kappa will also be close to 1.
If population prevalence is more asymmetric than the detection probabilities, then there should be more off-diagonal cases than in one of the diagonal cases. In that case, kappa becomes small. In that case, kappa will be "unstable" w.r.t. changes in population (and observed) prevalence.
I did not yet run a numerical example to verify and show this.
Activity
josef-pkt commentedon Nov 4, 2025
this article looks interesting:
I only skimmed the initial parts. Those have the same setup as I was trying out.
The parameters are not identified if we don't have a gold standard.
Most of the article seems to be about estimating parameters under (identifying) restrictions or with Bayesian prior.
With and without conditional independence. Also section with additional covariates.
Sun, Ao, and Xiao-Hua Zhou. 2025. “Estimation of Diagnostic Test Accuracy Without Gold Standards.” Statistics in Medicine 44 (3–4): e10315. https://doi.org/10.1002/sim.10315.
aside:
related literature on diagnostic tests with the "true" status (in medical setting, i.e. true positives, false positives, .... of a binary test)
for example https://www.medcalc.org/en/calc/diagnostic_test.php
especially ppv and npv if population prevalence differs from sample prevalence.
(small detour from rater agreement looking for more structure in a model)
DOC: Add PR number to release note
Merge upstream main into doc-kappa-prevalence
DOC: Show prevalence dependence of Cohen's kappa