فهرست مقاله
پیش از مقایسهٔ دو موتورِ جستوجو، معمولاً به قضاوت دربارهٔ ارتباطِ پرسش و سند نیاز داریم. اگر دو ارزیاب دربارهٔ همین ورودیها اختلاف داشته باشند، یک عددِ رتبهبندی بهتنهایی این اختلاف را توضیح نمیدهد. در این آموزش، دو دنبالهٔ ساختگی از برچسبها را با کاپای کوهن بررسی میکنیم. هدف، دیدنِ اثرِ جفتشدنِ نمونهها و فراوانیِ برچسبهاست؛ هیچ ارزیابِ واقعی، خروجیِ مدل یا سنجشِ محصولی در مثال حضور ندارد.
۱. دو ارزیاب و یک مجموعهٔ جفتشدهٔ سندها

واحدِ مشاهده را «یک پرسش با یک سندِ مشخص» بگیریم. ارزیابِ A و ارزیابِ B باید دربارهٔ همان واحد نظر داده باشند. برچسبِ سندی با پرسشِ دیگر جایگزین نمیشود، حتی اگر شناسهٔ سند ثابت باشد. برای نمونه، یک راهنمای حسگر ممکن است برای پرسشِ تنظیمِ ابزار مرتبط و برای پرسشِ طراحیِ منو بیارتباط باشد. پیش از محاسبه، دستورِ قضاوت و ترتیبِ واحدها باید بیرون از این تابع ثبت شوند.
در قراردادِ آموزشی، صفر یعنی «بیارتباط»، یک یعنی «مرتبط» و دو یعنی «نیازمندِ بررسی». اینها سه نامِ ردهاند، نه سه درجهٔ عددیِ فایده. اختلافِ صفر و دو دوبرابرِ اختلافِ صفر و یک جریمه نمیشود. پس محاسبه، اسمی و بدونِ وزن است. اگر پروژه واقعاً درجههای مرتبِ ارتباط داشته باشد، انتخابِ وزن به تصمیمِ جداگانه نیاز دارد؛ این کد چنین تصمیمی نمیگیرد.
ورودی دقیقاً دو تاپلِ هماندازه با یک تا شش عضو است. هر عضو باید خودِ عددِ صحیحِ صفر، یک یا دو باشد؛ مقدارِ بولی، اعشاری و رشته پذیرفته نمیشود. تابع شناسهٔ پرسش و سند دریافت نمیکند، بنابراین جفتشدنِ درست را تأیید نمیکند. نبودِ قضاوت نیز برچسبِ صفر نیست. در آموزشِ ارزیابیِ رتبهبندی قضاوتها ورودیِ معیارهایی مانند nDCG بودند؛ اینجا سازگاریِ دو مجموعهٔ قضاوت را پیش از آن مرحله بررسی میکنیم.
۲. توافقِ مشاهدهشده با توافقِ حاشیهای برابر نیست

مثالِ اصلی شش واحد دارد: برچسبهای A برابر (0,0,0,1,1,2) و برچسبهای B برابر (0,0,1,1,2,2) هستند. جدول، ردهٔ A را در سطر و ردهٔ B را در ستون میگذارد. سطرهای آن بهترتیب (2,1,0)، (0,1,1) و (0,0,1) میشوند. جمعِ قطر چهار است؛ بنابراین توافقِ مشاهدهشده یا po برابر چهارششم، یعنی دوسوم است.
فراوانیِ برچسبهای A بهترتیب سه، دو و یک و برای B دو، دو و دو است. مبنای حاشیهایِ pe از جمعِ حاصلضربِ نسبتِ هر رده در دو ارزیاب به دست میآید: (3×2 + 2×2 + 1×2)/36 = 1/3. این مبنا از همین دادهٔ محدود برآورد میشود. منظور، اثباتِ رفتارِ تصادفیِ انسانها یا توزیعِ واقعیِ کاربران نیست؛ این فرضِ محاسباتیِ مشخص برای مقایسهٔ توافق است.
مستنداتِ رسمیِ scikit-learn کاپا را بهصورت (po-pe)/(1-pe) تعریف میکند و مبنا را از فراوانیِ جداگانهٔ هر ارزیاب میسازد. در مثال، صورت یکسوم و مخرج دوسوم است؛ پس کاپا دقیقاً یکدوم میشود. برای محاسبهٔ صحیحِ این کسرها از Fraction استفاده میکنیم. عددِ یکدوم توافقِ تعدیلشده نسبت به این مبناست و درصدِ پاسخِ درستِ موتورِ جستوجو نیست.
۳. کاپای نامعین، فراوانیِ نامتوازن و مرزِ تفسیر

اگر هر دو ارزیاب همهٔ نمونهها را صفر بزنند، هم po و هم pe یک میشوند. تقسیم بر صفر تعریف نشده است. تابع، None همراهِ وضعیتِ undefined_expected_one برمیگرداند؛ در JSON مقدارِ آن null است. این حالت با کاپای صفر یکسان نیست. اگر همهٔ برچسبهای A صفر و همهٔ برچسبهای B یک باشند، هر دو توافق صفرند، مخرج یک است و کاپا واقعاً صفر میشود.
حالتِ دیگری بسازیم: A شش بار صفر و B پنج بار صفر و یک بار یک میزند. توافقِ خام پنجششم است، اما مبنای حاشیهای هم پنجششم میشود و کاپا صفر است. این تناقضِ حساب نیست؛ فراوانیِ بسیار متمرکز، مبنای مقایسه را بالا برده است. عددِ خام، جدول و فراوانیهای هر ارزیاب را کنار کاپا نگه داریم تا خلاصهٔ تکعددی، ساختارِ مثال را پنهان نکند.
دو ارزیاب ممکن است با اطمینان بر دستورِ غلط توافق کنند. کاپا نه درستیِ معناییِ برچسب را میسنجد و نه حدِ عمومیِ پذیرشِ یک سامانه را تعیین میکند. حتی توافقِ خامِ یکسان با فراوانیهای متفاوت، کاپای متفاوت میدهد. در آموزشِ Brier و فراوانیِ نمونهها احتمالهای دادهشده در برابر برچسب سنجیده میشدند؛ اینجا احتمالِ خروجی یا برچسبِ حقیقت نداریم و دو قضاوتِ همرتبه را مقایسه میکنیم.
۴. کدِ کامل و مرجعِ جایگشتهایِ مستقل

کدِ کامل را با نامِ relevance_kappa.py ذخیره و با پایتون اجرا کنید؛ نصبِ بسته لازم نیست. جدولِ اصلی با شمارشِ جفتها ساخته میشود. مستنداتِ statsmodels نیز جدولِ مربعیِ دو ارزیاب را با سطر و ستونِ جدا توضیح میدهد. اینجا هیچ تابعی از statsmodels یا scikit-learn اجرا نشده است؛ قراردادِ محدودِ ورودی و نمایشِ پاسخِ نامعین، متعلق به همین مثالاند.
"""Exact nominal agreement of supplied synthetic paired labels; no ground truth."""
from fractions import Fraction
from itertools import permutations, product
import json
import math
import platform
def cohen_kappa(a, b):
"""Own bounded contract: exact tuples, length 1..6, exact int labels 0..2."""
if type(a) is not tuple or type(b) is not tuple:
raise ValueError("both inputs must be exact tuples")
if not 1 <= len(a) <= 6 or len(b) != len(a):
raise ValueError("equal nonempty lengths, at most six pairs")
if any(type(x) is not int or not 0 <= x <= 2 for x in a + b):
raise ValueError("labels must be exact integers zero, one or two")
n = len(a)
table = [[0 for _ in range(3)] for _ in range(3)]
for x, y in zip(a, b):
table[x][y] += 1
rows = tuple(sum(row) for row in table)
columns = tuple(sum(table[i][j] for i in range(3)) for j in range(3))
observed = Fraction(sum(table[i][i] for i in range(3)), n)
expected = Fraction(sum(rows[i] * columns[i] for i in range(3)), n * n)
kappa = None if expected == 1 else (observed - expected) / (1 - expected)
return {"n": n, "table_rows_A_columns_B": tuple(tuple(row) for row in table),
"counts_A": rows, "counts_B": columns, "observed": observed,
"expected_from_marginals": expected, "kappa": kappa,
"status": "undefined_expected_one" if kappa is None else "defined"}
def positional_permutation_oracle(a, b):
"""Valid fixtures only. No contingency table or marginal-product formula.
permutations(b) visits all n! positional arrangements. Repeated tuples
remain repeated: each permutation of positions has equal mass. This is
an arithmetic reference, not a p-value or a significance test.
"""
n = len(a)
observed = Fraction(sum(x == y for x, y in zip(a, b)), n)
match_sum = 0
arrangements = 0
for moved in permutations(b):
match_sum += sum(a[i] == moved[i] for i in range(n))
arrangements += 1
expected = Fraction(match_sum, n * arrangements)
kappa = None if expected == 1 else (observed - expected) / (1 - expected)
return observed, expected, kappa, arrangements
def rejects(a, b):
try:
cohen_kappa(a, b)
except ValueError:
return True
return False
def jsonable(value):
if isinstance(value, Fraction):
return {"numerator": value.numerator, "denominator": value.denominator}
if isinstance(value, dict):
return {key: jsonable(v) for key, v in value.items()}
if isinstance(value, (tuple, list)):
return [jsonable(v) for v in value]
return value
def run_example():
a = (0, 0, 0, 1, 1, 2)
b = (0, 0, 1, 1, 2, 2)
hand = cohen_kappa(a, b)
checks = {}
checks["hand_six_pairs_table_marginals_and_exact_half"] = (
hand["table_rows_A_columns_B"] == ((2, 1, 0), (0, 1, 1), (0, 0, 1))
and hand["counts_A"] == (3, 2, 1) and hand["counts_B"] == (2, 2, 2)
and hand["observed"] == Fraction(2, 3)
and hand["expected_from_marginals"] == Fraction(1, 3)
and hand["kappa"] == Fraction(1, 2) and hand["status"] == "defined")
perfect = cohen_kappa((0, 1, 2), (0, 1, 2))
checks["perfect_nonconstant_agreement_is_one"] = (
perfect["observed"] == 1 and perfect["expected_from_marginals"] == Fraction(1, 3)
and perfect["kappa"] == 1)
negative = cohen_kappa((0, 0, 1, 1), (1, 1, 0, 0))
checks["balanced_opposite_labels_have_kappa_minus_one"] = (
negative["observed"] == 0 and negative["expected_from_marginals"] == Fraction(1, 2)
and negative["kappa"] == -1)
constant_ok = True
for label, n in product(range(3), range(1, 7)):
result = cohen_kappa((label,) * n, (label,) * n)
constant_ok &= (result["observed"] == result["expected_from_marginals"] == 1
and result["kappa"] is None
and result["status"] == "undefined_expected_one")
checks["common_constant_all_lengths_is_undefined_not_zero"] = bool(constant_ok)
different_ok = True
for first, second, n in product(range(3), range(3), range(1, 7)):
if first != second:
result = cohen_kappa((first,) * n, (second,) * n)
different_ok &= (result["observed"] == result["expected_from_marginals"] == 0
and result["kappa"] == 0 and result["status"] == "defined")
checks["different_constant_labels_have_defined_zero"] = bool(different_ok)
prevalence = cohen_kappa((0,) * 6, (0, 0, 0, 0, 0, 1))
checks["five_of_six_raw_matches_can_have_zero_kappa"] = (
prevalence["observed"] == prevalence["expected_from_marginals"] == Fraction(5, 6)
and prevalence["kappa"] == 0)
same_raw_first = cohen_kappa((0, 0, 1, 1), (0, 1, 0, 1))
same_raw_second = cohen_kappa((0, 0, 0, 1), (0, 0, 1, 0))
checks["same_raw_agreement_different_marginals_different_kappa"] = (
same_raw_first["observed"] == same_raw_second["observed"] == Fraction(1, 2)
and same_raw_first["expected_from_marginals"] == Fraction(1, 2)
and same_raw_second["expected_from_marginals"] == Fraction(5, 8)
and same_raw_first["kappa"] == 0 and same_raw_second["kappa"] == Fraction(-1, 3))
swapped = cohen_kappa(b, a)
checks["swapping_raters_transposes_table_preserves_metrics"] = (
swapped["table_rows_A_columns_B"] == tuple(zip(*hand["table_rows_A_columns_B"]))
and swapped["counts_A"] == hand["counts_B"]
and swapped["counts_B"] == hand["counts_A"]
and all(swapped[key] == hand[key] for key in
("observed", "expected_from_marginals", "kappa", "status")))
relabel_ok = True
relabelings = 0
for mapping in permutations((0, 1, 2)):
result = cohen_kappa(tuple(mapping[x] for x in a), tuple(mapping[y] for y in b))
relabel_ok &= all(result[key] == hand[key] for key in
("observed", "expected_from_marginals", "kappa", "status"))
relabelings += 1
checks["consistent_nominal_relabeling_preserves_agreement"] = bool(relabel_ok and relabelings == 6)
pairing_ok = True
paired_orders = 0
for order in permutations(range(6)):
result = cohen_kappa(tuple(a[i] for i in order), tuple(b[i] for i in order))
pairing_ok &= result == hand
paired_orders += 1
unpaired = cohen_kappa(a, b[2:] + b[:2])
checks["paired_reordering_preserves_but_unpaired_reordering_changes"] = bool(
pairing_ok and paired_orders == math.factorial(6)
and unpaired["expected_from_marginals"] == hand["expected_from_marginals"]
and unpaired["observed"] == 0 and unpaired["kappa"] == Fraction(-1, 2))
small_a, small_b = (0, 0, 1), (0, 1, 1)
small = cohen_kappa(small_a, small_b)
doubled = cohen_kappa(small_a * 2, small_b * 2)
checks["duplicating_each_paired_sample_preserves_rates_doubles_counts"] = (
doubled["n"] == 2 * small["n"]
and doubled["table_rows_A_columns_B"] == tuple(
tuple(2 * value for value in row) for row in small["table_rows_A_columns_B"])
and all(doubled[key] == small[key] for key in
("observed", "expected_from_marginals", "kappa", "status")))
oracle_ok = True
ternary_pairs = arrangements = 0
fixtures = tuple(product(range(3), repeat=3))
for first, second in product(fixtures, repeat=2):
result = cohen_kappa(first, second)
observed, expected, kappa, visits = positional_permutation_oracle(first, second)
direct_table = tuple(tuple(sum(x == i and y == j for x, y in zip(first, second))
for j in range(3)) for i in range(3))
oracle_ok &= (result["observed"], result["expected_from_marginals"], result["kappa"]) == (
observed, expected, kappa)
oracle_ok &= result["table_rows_A_columns_B"] == direct_table
oracle_ok &= (sum(result["counts_A"]) == sum(result["counts_B"]) == 3
and 0 <= observed <= 1 and 0 <= expected <= 1
and (kappa is None or -1 <= kappa <= 1))
ternary_pairs += 1
arrangements += visits
hand_reference = positional_permutation_oracle(a, b)
checks["independent_positional_permutation_mean_and_cell_count_oracle"] = bool(
oracle_ok and ternary_pairs == 729 and arrangements == 4374
and hand_reference == (Fraction(2, 3), Fraction(1, 3), Fraction(1, 2), 720))
class TupleSubclass(tuple):
pass
checks["tuple_pair_count_and_container_bounds_are_strict"] = all(
rejects(first, second) for first, second in (
((), ()), ((0,), ()), ((0,), (0, 1)), ((0,) * 7, (0,) * 7),
([0], (0,)), ((0,), [0]), ("0", (0,)), ((0,), "0"),
(iter((0,)), (0,)), (TupleSubclass((0,)), (0,)),
((0,), TupleSubclass((0,))), (None, (0,))))
class IntegerSubclass(int):
pass
invalid_labels = (True, False, 0.0, "0", None, -1, 3, Fraction(1, 1), IntegerSubclass(1))
checks["exact_integer_label_types_and_ranges_reject_coercion"] = all(
rejects((value,), (0,)) and rejects((0,), (value,)) for value in invalid_labels)
assert len(checks) == 14 and all(type(v) is bool and v for v in checks.values()), checks
return {"python": platform.python_version(),
"dependencies": {"standard_library_only": True, "scikit_learn_executed": False,
"statsmodels_executed": False},
"contract": {"exact_tuple_inputs": True, "pairs_min": 1, "pairs_max": 6,
"exact_integer_labels": [0, 1, 2], "unweighted_nominal": True},
"example": jsonable({"labels_A": a, "labels_B": b, "hand_six_pairs": hand,
"prevalence_witness": prevalence,
"common_constant": cohen_kappa((0, 0), (0, 0)),
"different_constant": cohen_kappa((0, 0), (1, 1)),
"same_raw_first": same_raw_first, "same_raw_second": same_raw_second}),
"oracle_inside_one_group": {"ternary_three_pair_fixtures": ternary_pairs,
"positional_permutations_visited": arrangements,
"additional_six_pair_fixture_permutations": hand_reference[3],
"duplicates_retain_positional_multiplicity": True,
"not_a_significance_test": True},
"paired_sample_orders_inside_one_group": paired_orders,
"checks": checks,
"limitations": ["Supplied paired synthetic nominal labels; neither rater is ground truth",
"No document alignment, missing-label policy, weighted kappa or inference",
"Kappa is not accuracy, semantic validity, or a universal quality threshold",
"None plus explicit status when expected agreement is one; JSON null, no NaN"]}
if __name__ == "__main__":
print(json.dumps(run_example(), ensure_ascii=True, allow_nan=False, indent=2))
مرجعِ مستقل جدولِ حاشیهای نمیسازد. A را ثابت نگه میدارد، همهٔ جایگشتهای جایگاهیِ B را میبیند و میانگینِ نسبتِ تطابق را حساب میکند. هر برچسبِ B در هر جایگاه به یک اندازه ظاهر میشود؛ پس میانگین، همان مبنای حاشیهای است. برچسبهای تکراری باعث حذفِ جایگشتها نمیشوند: برای شش عضو، همهٔ ۷۲۰ جایگشتِ موقعیتها با تکرارِ دنبالههای برابر شمرده میشوند. این روش، مرجعِ حساب است و آزمونِ معناداری یا مقدارِ احتمالِ آماری تولید نمیکند.
چهارده گروهِ معنادار، جوابِ دستی، حالتهای ثابت، توافقِ منفی، اثرِ فراوانی، تعویضِ ارزیابها و مرزِ ورودی را پوشش میدهند. خانوادهٔ کاملِ دو دنبالهٔ سهعضوی با سه برچسب، ۷۲۹ جفت دارد و داخل یک گروه بررسی میشود. جابهجاییِ مشترکِ نمونهها نتیجه را ثابت نگه میدارد؛ جابهجاییِ تنها یک ارزیاب جفتها را عوض میکند. سقفِ شش عضو برای محدودماندنِ مرجعِ فاکتوریلی است و محدودیتِ نظریِ کاپا نیست.
خروجیِ زیر از اجرای همین فایل ثبت شده است. کسرها با صورت و مخرج نمایش داده میشوند تا با گردکردنِ اعشار اشتباه نشوند. نسخهٔ اجرای محلی در خروجی آمده است. منابع در ۲۸ مهر ۱۴۰۵ خوانده شدند؛ نسخهٔ مستنداتِ scikit-learn برابر 1.9.1 و statsmodels برابر 0.15.0 بود. تاریخِ اصلیِ انتشارِ این دو صفحه نامعلوم ثبت شده و این مطلب، خبرِ پژوهشی تازه محسوب نمیشود.
{
"python": "3.14.5",
"dependencies": {
"standard_library_only": true,
"scikit_learn_executed": false,
"statsmodels_executed": false
},
"contract": {
"exact_tuple_inputs": true,
"pairs_min": 1,
"pairs_max": 6,
"exact_integer_labels": [
0,
1,
2
],
"unweighted_nominal": true
},
"example": {
"labels_A": [
0,
0,
0,
1,
1,
2
],
"labels_B": [
0,
0,
1,
1,
2,
2
],
"hand_six_pairs": {
"n": 6,
"table_rows_A_columns_B": [
[
2,
1,
0
],
[
0,
1,
1
],
[
0,
0,
1
]
],
"counts_A": [
3,
2,
1
],
"counts_B": [
2,
2,
2
],
"observed": {
"numerator": 2,
"denominator": 3
},
"expected_from_marginals": {
"numerator": 1,
"denominator": 3
},
"kappa": {
"numerator": 1,
"denominator": 2
},
"status": "defined"
},
"prevalence_witness": {
"n": 6,
"table_rows_A_columns_B": [
[
5,
1,
0
],
[
0,
0,
0
],
[
0,
0,
0
]
],
"counts_A": [
6,
0,
0
],
"counts_B": [
5,
1,
0
],
"observed": {
"numerator": 5,
"denominator": 6
},
"expected_from_marginals": {
"numerator": 5,
"denominator": 6
},
"kappa": {
"numerator": 0,
"denominator": 1
},
"status": "defined"
},
"common_constant": {
"n": 2,
"table_rows_A_columns_B": [
[
2,
0,
0
],
[
0,
0,
0
],
[
0,
0,
0
]
],
"counts_A": [
2,
0,
0
],
"counts_B": [
2,
0,
0
],
"observed": {
"numerator": 1,
"denominator": 1
},
"expected_from_marginals": {
"numerator": 1,
"denominator": 1
},
"kappa": null,
"status": "undefined_expected_one"
},
"different_constant": {
"n": 2,
"table_rows_A_columns_B": [
[
0,
2,
0
],
[
0,
0,
0
],
[
0,
0,
0
]
],
"counts_A": [
2,
0,
0
],
"counts_B": [
0,
2,
0
],
"observed": {
"numerator": 0,
"denominator": 1
},
"expected_from_marginals": {
"numerator": 0,
"denominator": 1
},
"kappa": {
"numerator": 0,
"denominator": 1
},
"status": "defined"
},
"same_raw_first": {
"n": 4,
"table_rows_A_columns_B": [
[
1,
1,
0
],
[
1,
1,
0
],
[
0,
0,
0
]
],
"counts_A": [
2,
2,
0
],
"counts_B": [
2,
2,
0
],
"observed": {
"numerator": 1,
"denominator": 2
},
"expected_from_marginals": {
"numerator": 1,
"denominator": 2
},
"kappa": {
"numerator": 0,
"denominator": 1
},
"status": "defined"
},
"same_raw_second": {
"n": 4,
"table_rows_A_columns_B": [
[
2,
1,
0
],
[
1,
0,
0
],
[
0,
0,
0
]
],
"counts_A": [
3,
1,
0
],
"counts_B": [
3,
1,
0
],
"observed": {
"numerator": 1,
"denominator": 2
},
"expected_from_marginals": {
"numerator": 5,
"denominator": 8
},
"kappa": {
"numerator": -1,
"denominator": 3
},
"status": "defined"
}
},
"oracle_inside_one_group": {
"ternary_three_pair_fixtures": 729,
"positional_permutations_visited": 4374,
"additional_six_pair_fixture_permutations": 720,
"duplicates_retain_positional_multiplicity": true,
"not_a_significance_test": true
},
"paired_sample_orders_inside_one_group": 720,
"checks": {
"hand_six_pairs_table_marginals_and_exact_half": true,
"perfect_nonconstant_agreement_is_one": true,
"balanced_opposite_labels_have_kappa_minus_one": true,
"common_constant_all_lengths_is_undefined_not_zero": true,
"different_constant_labels_have_defined_zero": true,
"five_of_six_raw_matches_can_have_zero_kappa": true,
"same_raw_agreement_different_marginals_different_kappa": true,
"swapping_raters_transposes_table_preserves_metrics": true,
"consistent_nominal_relabeling_preserves_agreement": true,
"paired_reordering_preserves_but_unpaired_reordering_changes": true,
"duplicating_each_paired_sample_preserves_rates_doubles_counts": true,
"independent_positional_permutation_mean_and_cell_count_oracle": true,
"tuple_pair_count_and_container_bounds_are_strict": true,
"exact_integer_label_types_and_ranges_reject_coercion": true
},
"limitations": [
"Supplied paired synthetic nominal labels; neither rater is ground truth",
"No document alignment, missing-label policy, weighted kappa or inference",
"Kappa is not accuracy, semantic validity, or a universal quality threshold",
"None plus explicit status when expected agreement is one; JSON null, no NaN"
]
}
۵. چهار پرسش برای بازبینیِ قضاوتهایِ ارتباط

پرسشِ اول: در مثالِ ششعضوی چرا کاپا یکدوم است، درحالیکه چهار توافق داریم؟ پاسخ: توافقِ خام چهارششم است، اما فراوانیهای سهتاییِ A و B مبنای یکسوم میسازند. پس (2/3-1/3)/(1-1/3)=1/2. شمارِ چهار بهتنهایی مخرجِ محاسبه و مبنای مقایسه را مشخص نمیکند.
پرسشِ دوم: دو دنبالهٔ یکنواخت را همیشه نامعین گزارش کنیم؟ پاسخ: خیر. اگر هر دو یک ردهٔ مشترک داشته باشند، مخرج صفر و پاسخ تهی است؛ مثلاً دو دنبالهٔ تمامصفر. اگر یکی تمامصفر و دیگری تمامیک باشد، po=pe=0 و کاپا صفرِ تعریفشده است. وضعیت و مقدار باید با هم خوانده شوند.
پرسشِ سوم: پنج توافق از شش مورد، چرا کاپای مثبت را تضمین نمیکند؟ پاسخ: در نمونهٔ تمامصفرِ A و پنج صفرِ B، مبنا نیز پنجششم است. صورت صفر میشود. این خروجی مجوزِ خوب یا بد نامیدنِ ارزیاب نیست؛ باید دستورِ قضاوت، فراوانی و خودِ مواردِ اختلاف دوباره بررسی شوند.
پرسشِ چهارم: آیا توافقِ خامِ یکدوم همیشه کاپای یکسان دارد؟ پاسخ: برای A=(0,0,1,1) و B=(0,1,0,1) مبنا یکدوم و کاپا صفر است. برای A=(0,0,0,1) و B=(0,0,1,0) مبنا پنجهشتم و کاپا منفیِ یکسوم میشود. بنابراین گزارشِ توافق باید کنار جدول، قراردادِ برچسبها و محدودیتِ نمونه خوانده شود؛ هیچیک بهتنهایی صحتِ قضاوت دربارهٔ سند را ثابت نمیکنند.
منابع و مطالعهٔ بیشتر
بررسی منابع: ۲۸ مهر ۱۴۰۵. تحلیلها و پیشنهادهای اجرایی، جمعبندی نویسندهاند.

