Atlas
statminds
Reliability Theory (Weighted Agreement Model)The underlying model family class (e.g. GLM, linear model, categorical matrix, log-linear).Parametric ReferenceStatistical methods that assume a specific probability distribution family (typically normal).12-stage workflow

Weighted Kappa

The engine for Ordinal Agreement. Weighted Kappa audits the consistency between two observers on a ranked scale, assigning 'Partial Credit' for near-misses to reflect the gravity of disagreement.

Model familyReliability Theory (Weighted Agreement Model)
Hypothesisone-tailed
AliasesCohen's Weighted Kappa · Rank-Weighted Agreement · Ordinal κ
G1
Ordinal Consensus Audit
Determine the true level of agreement while respecting the natural ranking of the categories.
G2
Error-Gravity Mapping
Penalize disagreements based on their 'Distance' (e.g., a 'High vs Low' miss is worse than 'High vs Med').
G3
Clinical Precision Discovery
Quantify the reliability of staging systems or ordinal diagnostic tools.
Visual Overview Dashboard
1

What is it?

Weighted Kappa quantifies the degree of agreement, consistency, or concordance among raters, measurements, or scale items.

The engine for Ordinal Agreement. Weighted Kappa audits the consistency between two observers on a ranked scale, assigning 'Partial Credit' for near-misses to reflect the gravity of disagreement.

2

Goals & Indications

  • Ordinal Consensus Audit: Determine the true level of agreement while respecting the natural ranking of the categories.
  • Error-Gravity Mapping: Penalize disagreements based on their 'Distance' (e.g., a 'High vs Low' miss is worse than 'High vs Med').
  • Clinical Precision Discovery: Quantify the reliability of staging systems or ordinal diagnostic tools.
3

Core Idea Diagram

Agree (A)Agree (B)DisagreeDisagree
4

Claims tested

H₀: H₀: κw = 0 (weighted agreement no better than chance)
Hₐ: Hₐ: κw > 0 (weighted agreement exceeds chance)
5

How it works

  1. Assign penalty weight matrix W representing distance between ordinal categories.
  2. Multiply observed and expected contingency cells by category distance weights.
  3. Sum weighted cells to determine weighted observed and chance agreements.
  4. Compute Weighted Kappa, penalizing larger disagreement steps heavier.
6

Assumptions

Ordinal Categories with Meaningful Order: Categories must have natural ordering where near-misses are meaningful (e.g., disease severity: mild < moderate < severe). Nominal categories should use unweighted kappa.
Equal Category Spacing: Standard linear/quadratic weights assume equal intervals between adjacent categories. If spacing is unequal, custom weights needed.
Appropriate Weight Selection: Linear weights (1 - |i-j|/(k-1)) penalize proportionally. Quadratic weights (1 - ((i-j)/(k-1))²) penalize squared distance, emphasizing extreme disagreements.
7

Important Note

Weighted kappa gives partial credit for disagreements based on distance. κw > 0.60 = substantial, κw > 0.80 = almost perfect (Landis & Koch, 1977).

8

Worked Example

MetricEstimateVerdict
Agreement Coeff0.78Substantial Agreement

Weighted Kappa Laboratory

Weighted Kappa incorporates ordinal distance penalizations, assessing rater agreement heavier when rating categories are closer to each other.

The 12-Stage Precision Workflow
01Distance Parity
Hypotheses
We test the null of random rank-guessing against the discovery of a non-random alignment of ordinal positions.
02Ordinal Integrity
Assumptions
The only requirement: the categories must have a meaningful rank order (e.g., Level 1 < Level 2 < Level 3).
03Weighting Choice
Diagnostics
Selecting between Linear weights (equal penalty per step) or Quadratic weights (exponential penalty for large gaps)—the most critical forensic decision.
04focus
Testing the agreement between two FlowMotion physicians while they stage patient recovery as 'Early', 'Mid', or 'Late'.
05Fleiss Pivot
Alternatives
Knowing when to switch to Fleiss' Kappa if you have more than two raters and need a global group-ordinal metric.
06Precision Strike
Significance
Reporting the 95% Confidence Interval—essential because weighted point estimates can be highly sensitive to single extreme misses.
07Agreement Magnitude
Effect Size
Interpreting the value: 0.61-0.80 (Substantial), >0.81 (Near Perfect), but remember that Quadratic weighting often inflates the value compared to Linear.
08The Rank Buffer
Sample Size
Determining the N required to ensure that 'Large Gap' disagreements have enough occurrences to stabilize the penalty math.
09The Weights Statement
Reporting
Explicitly stating whether Linear or Quadratic weights were used—the lack of this detail is a common 'Elite' reporting fail.
10psych / cohen.kappa
Software
Executing 'cohen.kappa()' commands, ensuring the 'weight' argument matches your theoretical design.
11focus
The fatal error of using standard Kappa for ordinal data, which treats all misses as equal and drastically underestimates your system's reliability.
12focus
Tracing the model back to Jacob Cohen (1968) and the formalization of weighted categorical forensics.
01Hypothesis test logic

Hypotheses

Pragmatic null and alternative hypotheses defined in mathematical notation.

A hypothesis is a question sharpened to a point. Ambiguity is the enemy of inference.
Logic Core
Null · H₀

H₀: κw = 0 (weighted agreement no better than chance)

Alternative · Hₐ

Hₐ: κw > 0 (weighted agreement exceeds chance)

Why it matters one-tailed

Weighted kappa gives partial credit for disagreements based on distance. κw > 0.60 = substantial, κw > 0.80 = almost perfect (Landis & Koch, 1977).

02Model diagnostics

Assumptions

The core mathematical criteria needed to ensure that statistical testing remains unbiased and valid.

Build your analysis on rock, not sand. Verify the mathematical foundation before building the model.
Integrity Shield
5
Assumptions
0
Critical / High Severity
How to check
Verify categories can be ranked. If ordering is arbitrary or multiple orderings are defensible, weighted kappa is inappropriate.
If violated
Weights will be meaningless. Use unweighted Cohen's kappa for nominal data.
How to check
Assess if distance between mild-moderate equals moderate-severe conceptually. If not, consider custom weights or ICC.
If violated
Standard weights may over/underweight certain disagreements. Results may not reflect true agreement.
How to check
Linear: all disagreements matter proportionally. Quadratic: extreme disagreements matter much more than adjacent disagreements.
If violated
Wrong weights can overestimate or underestimate agreement. Quadratic usually recommended for ordinal clinical scales.
How to check
Verify all subjects rated by same two raters. For >2 raters with ordinal data, use ICC or ordinal Fleiss' kappa approximation.
If violated
Different rater pairs confound agreement estimates. Use appropriate multi-rater method.
How to check
Use blinded procedures. Raters work separately without discussing cases.
If violated
Inflated agreement estimates that don't reflect true inter-rater reliability.
03Residual Forensics

Diagnostics

Checking residual plots and indices to examine model deviations and ensure standard error integrity.

Trust, but verify. The outliers often hold more truth than the averages.
System Health
Essential checks
  1. Weighted kappa with linear weights (κw-linear)
  2. Weighted kappa with quadratic weights (κw-quadratic)
  3. Unweighted Cohen's kappa for comparison
  4. Confusion matrix with marginal totals
  5. Observed weighted agreement (Pow)
  6. Expected weighted agreement by chance (Pew)
  7. Confidence intervals for weighted kappa
  8. Statistical significance test (z-test against H₀: κw=0)
Recommended checks
  1. Compare weighted vs unweighted kappa (if very similar, ordering may not matter)
  2. Examine off-diagonal confusion matrix cells (where are disagreements?)
  3. Intraclass correlation coefficient (ICC) as alternative for ordinal data
  4. Kendall's tau-b or Spearman correlation for ordinal association
  5. Prevalence and bias indices if marginals are imbalanced
04Live Instances

Applied Minds

Review concrete study examples, data layout guidelines, and copy executable syntax scripts.

Theory is the map. Practice is the terrain. Simulation bridges the gap.
Applied Wisdom
Example 01

Pain Scale Agreement (5-point ordinal)

Two physicians independently rate 120 patients' pain severity on 5-point ordinal scale (0=None, 1=Mild, 2=Moderate, 3=Severe, 4=Very Severe). Complete analysis with unweighted, linear, and quadratic weighted kappa, weight matrices, bootstrap confidence intervals, and 6 visualizations.

Interpretation Blueprint

Quadratic weighted kappa (κw=0.74) exceeds unweighted kappa (κ=0.63) by 0.11, indicating many adjacent disagreements receive partial credit. With 65% exact agreement and 28% adjacent disagreements, the substantial agreement (Landis & Koch) supports clinical reliability. Bootstrap CIs confirm precision. The difference between linear and quadratic weights shows that extreme disagreements (≥2 categories apart) are rare (3%), validating quadratic weighting for this pain scale.

05Tactical Pivots

Alternatives

Structured fallback pathways for choosing alternative tests when normality or slopes requirements fail.

When the path is blocked, pivot. Rigor is not rigidity; it is the intelligent adaptation to reality.
Adaptive Strategy
Measurement Precision Ladder Ideal · Ordinal / Ranked Categories
Ratio
Consider ICC. Weighted Kappa bins continuous data, potentially hiding the true precision of agreement.
Variance Compression
Interval
Ideal for Ranked Scales. Assigns 'Partial Credit' for near-misses using linear or quadratic weights.
Standard Robustness
Ordinal
Maintain Weighted logic. The definitive engine for auditing consensus in ranked diagnostic thresholds.
Peak Signal
Nominal
Abandon Weights. Use Cohen's Kappa if the categories have no natural rank (unordered).
Identity Only
Temporal Trajectory Audit Static Ordinal Consensus
Simultaneous
Two raters, one time.
Stay with Weighted Kappa. Penalize disagreements based on ordinal distance.
Longitudinal Ranks
Rank trajectory.
Pivot to Kendall's W or Friedman to model the collective shift in ranks across stages.
Adaptive Technical Safeguards · adaptive safeguards
weighting scheme mismatch
  • Linear Weighting — Use for purely ordinal data where every 'Step' of disagreement is equal.
  • Quadratic Weighting — Use for interval-like data to mirror the Sum of Squares logic of the ICC.
non independent observers
  • Ordered GEE — Account for clustering if observers are nested within teams or regions.
06Adjusted Comparisons

Post-hoc

Group mean comparisons and correction controls (e.g. Tukey HSD, Bonferroni) to protect against Family-Wise Error Rates.

The omnibus test opens the door; post-hoc analysis explores the room.
Forensic Detail
Adjusted Comparisons
  • Compare linear vs quadratic weights (quadratic penalizes large disagreements more)
  • Compare with unweighted Kappa
  • Examine agreement matrix for systematic disagreement patterns
  • Bootstrap confidence intervals for weighted Kappa
  • Compare with ICC (weighted Kappa with quadratic weights approximates ICC)
Interpretation Guidelines

Weighted Kappa measures agreement for ordinal categories. Post-hoc tests are not applicable.

07Standardized scale impact

Effect Size

Understanding effect sizes (e.g., Cohen's d, Partial Eta-Squared) and clinical impact benchmarks.

Significance is noise. Magnitude is the signal. Measure the impact, not just the probability.
Impact Magnitude

Poor - worse than chance

Slight

Fair

Moderate

Substantial

Almost Perfect

Recommended Metric: Report both quadratic weighted κw and unweighted κ with 95% CIs. Specify weight type. Report systematic bias if present.
Small
0.2
Medium
0.5
Large
0.8
0.50
Report both quadratic weighted κw and unweighted κ with 95% CIs. Specify weight type. Report systematic bias if present.
Recommended Measure
1
Available Metrics
ReportUse Report both quadratic weighted κw and unweighted κ with 95% CIs. Specify weight type. Report systematic bias if present. to represent clinical impact magnitude.
08Statistical Power

Sample Size

Guidelines for minimum sample requirements and power analysis parameters.

An underpowered study is an ethical failure. Respect the data by collecting enough of it.
Power Protocol
Floor Requirements

The 'Distance Buffer': A minimum of 50 subjects is recommended for a 2-rater ordinal audit. Weighted Kappa requires enough 'Near-Miss' occurrences to stabilize the partial-credit penalty math.

Effect SizeParametersRequired n
Small EffectExpected κ_w = .40n ≈ 100
Medium EffectExpected κ_w = .60n ≈ 45
Large EffectExpected κ_w = .80n ≈ 25
Key considerations

The 'Large Gap' Penalty: If your observers frequently disagree by 2 or more levels, the Quadratic penalty will 'Choke' your Kappa. Increase N by 15% if you expect high clinical variance in rater judgment.

G*Power StrategyBenchmark: Ordinal inter-rater agreement. Parameters: Weighted κ magnitude, α = .05, Power = .80. Note: Power depends on the 'Weighting Scheme'—Quadratic weights often yield higher point estimates but require more data to remain stable.
09APA narrative blueprint

Reporting

How to compile statistical results into publication prose matching APA and journal style guides.

Data does not speak for itself. It requires a translator. Be clear, be precise, be honest.
Narrative Arc
Reusable template

Inter-rater reliability for measure was assessed using weighted kappa with linear/quadratic weights. Agreement between Rater 1 and Rater 2 was interpretation (κw = value, 95% CI lower, upper), compared to unweighted κ = value. X% of ratings were in exact agreement, with Y% differing by one category. If bias: Rater [X systematically rated higher/lower by M = diff scale points.]

10Exhibit Builder

Manuscript Lab

Copy standard summary tables and forensic reporting grids to outline analysis details.

Table 1: Weighted Kappa for Ordinal Clinical Ratings
MetricKappa (κ)SEp-valueAgreement Strength
Unweighted Kappa0.450.08< .001Moderate
Weighted Kappa (Linear)0.720.06< .001Substantial
Note. N = 100 cases. Weighting: Linear (Absolute distance). Range: 1-4 Severity.
0.45 vs 0.72Dramatic Forensic Reveal. The low unweighted kappa was misleading; raters agree on the general severity level very well, even if they occasionally miss the exact category by 1 step.
Header glossary

The 'Severity' Guard. Penalizes disagreements more heavily if they are further apart on the ordinal scale.

The Proportional Penalty. A 2-step disagreement is twice as bad as a 1-step disagreement.

11Algorithmic Logic

Command Center

Syntax libraries and function parameters for executing calculations in stats packages.

Code is the modern laboratory. Clean execution ensures reproducible discovery.
Execution Engine
# 1. Execute Weighted Kappa (Squared Weights)
psych::cohen.kappa(table(r1, r2))

# 2. Linear Weighting
irr::kappa2(df_ratings, weight = 'equal')
Library stack
R
psychirr
Python
sklearn.metrics
Elite Forensic Strike

Squared-weighted Kappa is mathematically identical to the Intraclass Correlation Coefficient (ICC). Use Linear weighting for ordinal data, and Squared weighting only if you want to mirror ICC results.

# Visualize Disagreement Pattern (Agreement Plot)
vcd::agreementplot(table(r1, r2))
12The Over-adjustment Trap

Common Mistakes

Analytical caveats and corrections to maintain modeling integrity.

Wisdom is learning from the failures of others. Anticipate the error before it occurs.
Defensive Logic
Why it's wrong
Weights assume ordering. For nominal data (e.g., cancer type: lung, breast, colon), there's no meaningful distance between categories.
The correction
Use unweighted Cohen's kappa for nominal data. Reserve weighted kappa for ordinal scales with clear ranking.
Why it's wrong
Linear vs quadratic weights can yield substantially different values. Readers cannot interpret or replicate results.
The correction
Always report weight type: 'quadratic weighted kappa' or 'linear weighted kappa'. Quadratic is more common for clinical scales.
Why it's wrong
One rater consistently rating higher/lower reduces kappa even if correlation is perfect. Weighted kappa conflates agreement with bias.
The correction
Test for systematic bias (paired t-test or Wilcoxon). Report mean differences. If substantial bias exists, agreement is limited even with high κw. Consider ICC which separates consistency from absolute agreement.
Why it's wrong
If most disagreements are extreme (e.g., 1 vs 5 on 5-point scale), weighted kappa may be similar or even lower than unweighted.
The correction
Examine confusion matrix. Many near-misses → weighted much higher. Few disagreements or extreme disagreements → similar values. Pattern informs about error types.
Why it's wrong
Standard weighted kappa is for 2 raters only. Extensions to >2 raters are complex and not well-supported in software.
The correction
For ordinal data with >2 raters, use intraclass correlation coefficient (ICC) which naturally handles ordinal/continuous data and multiple raters.
Why it's wrong
The difference between weighted and unweighted reveals information about disagreement patterns. If identical, ordering may be irrelevant.
The correction
Always report both weighted and unweighted kappa. Large difference (>0.10) indicates many adjacent disagreements. Small difference suggests ordering less important or extreme disagreements.
Why it's wrong
Standard linear/quadratic weights assume equal intervals. For scales like 'none/mild/severe/critical' where severe-critical gap may be larger than mild-severe, standard weights are inappropriate.
The correction
For unequal spacing, define custom weight matrix based on clinical/theoretical importance of disagreements, or use ICC treating as continuous.
Why it's wrong
High Pearson correlation (r=0.90) only means raters rank subjects similarly, but they could systematically disagree by a constant (e.g., Rater 2 always rates 2 points higher). Correlation measures association, not agreement.
The correction
Use weighted kappa or ICC for agreement. Supplement with Bland-Altman plot to visualize systematic bias. Report both correlation (for ranking consistency) and kappa/ICC (for actual agreement). A paired t-test detects systematic bias.
13Academic Lineage

References

Scholarly lineage and citation keys grounding the statistical framework.

We stand on the shoulders of giants. Honor the source of the method.
Academic Lineage
[1]
[2]
[3]
[4]
[5]
[6]
A miss is not always a fail. Use Weights to acknowledge the nuance of professional judgment, but audit the large gaps with extreme suspicion.
The Interpretive Rigor Directive
statminds · WeightedMind reference · v2.2 · updated 2026-01-1715 of 15 sections