คู่มือทางเทคนิค

คัปปาของโคเฮน

Cohen's kappa measures agreement between two sets of categorical labels after accounting for agreement expected from their label frequencies.

  • อ่าน 3 นาที
  • อัปเดตล่าสุด
บนหน้านี้อ่าน 3 นาที
  1. ภาพรวม
  2. เจาะลึก
  3. ผลกระทบเชิงกลยุทธ์
  4. The Future of Cohen's Kappa
  5. การใช้งานจริงในโลกแห่งความเป็นจริง
  6. ความเสี่ยงและรั้ว
  7. แผนงานการดำเนินงาน
  8. สำรวจต่อไป
  9. คำถามที่พบบ่อย

ภาพรวม

It helps teams assess annotation consistency, but a high score does not establish that either annotator is factually correct.

เจาะลึก

Suppose two annotators agree on most examples. That sounds reassuring, but the category frequencies matter. If both almost always choose the same common category, frequent agreement can arise without much ability to distinguish cases. Cohen's kappa compares observed agreement with an expected-agreement calculation based on each annotator's label proportions. The formula subtracts expected agreement from observed agreement, then divides by one minus expected agreement. If observed agreement is 0.8 and expected agreement is 0.5, kappa is 0.6. These values form an illustrative calculation. A kappa of one represents perfect agreement when the denominator is defined; zero means agreement matches the frequency-based expectation. Negative values indicate less agreement than that expectation. The expected term does not prove that either person guessed randomly. It is a mathematical reference constructed from the marginal label frequencies. For example, if one annotator uses a category 60% of the time and the other uses it 50% of the time, that category contributes 0.3 to expected agreement. Add the contributions for every category. Use independently assigned labels on the same cases. If the second annotator copies the first, their agreement says little about independent reliability. Examine disagreement patterns before changing the instructions, then evaluate revised instructions on a fresh sample where practical. Kappa also depends on category prevalence and the annotators' use of labels. There is no universally appropriate cutoff that makes a dataset trustworthy. Report sample size, raw agreement and the agreement table alongside the score. Scikit-learn offers unweighted and weighted calculations. Weighted kappa is suitable when category order and the consequences of different-sized disagreements have been defined clearly.

ผลกระทบเชิงกลยุทธ์

ต้นทุนและงบประมาณ

การตัดสินใจด้านสถาปัตยกรรมขับเคลื่อนประสิทธิภาพและต้นทุนการดำเนินงานเป็นเวลาหลายปี

การตัดสินใจที่ชัดเจนยิ่งขึ้น

การศึกษาด้านเทคนิคช่วยให้ทีมเลือกกลุ่มที่เหมาะสม ไม่ใช่แค่กลุ่มใหม่ล่าสุด

การควบคุมคุณภาพ

ตัวเลือกทางวิศวกรรมที่ดีกว่าจะช่วยลดเหตุการณ์ด้านความน่าเชื่อถือในการผลิต

The Future of Cohen's Kappa

AI-assisted annotation makes it more important to record how each label was produced. Two reviewers who saw the same model suggestion may share an error, even when their agreement is high. Teams can strengthen their process by preserving a sample labeled independently, keeping a record of instruction changes and discussing recurring disagreements with domain experts. Kappa can remain one part of that review, alongside checks against well-supported reference answers. The goal is a dataset whose labels have a clear meaning and a defensible review process, rather than a single impressive agreement number.

การใช้งานจริงในโลกแห่งความเป็นจริง

Two people independently label the same support tickets as billing or technical. A kappa report measures their agreement and a disagreement review reveals where the labeling instructions need clarification.

In a hypothetical sample, observed agreement is 80% and expected agreement is 50%. Kappa is (0.8 minus 0.5) divided by (1 minus 0.5), or 0.6.

Reviewers assign low, medium or high severity to incidents. A weighted kappa can distinguish a one-level disagreement from a disagreement between the lowest and highest levels.

An analyst uses scikit-learn's cohen_kappa_score for two aligned label arrays, then reports the category counts and agreement table so readers can interpret the summary.

ความเสี่ยงและรั้ว

  • การเพิ่มประสิทธิภาพเกณฑ์มาตรฐานหนึ่งรายการสามารถซ่อนจุดอ่อนของระบบในวงกว้างได้

  • ต้นทุนโครงสร้างพื้นฐานและการบำรุงรักษามักถูกประเมินต่ำไป

  • ช่องว่างด้านความปลอดภัยและความสามารถในการสังเกตสามารถเพิ่มขึ้นได้เมื่อระบบมีความซับซ้อนมากขึ้น

แผนงานการดำเนินงาน

  1. กำหนดเป้าหมายเวลาแฝง คุณภาพ และต้นทุนก่อนนำไปใช้งาน

  2. เกณฑ์มาตรฐานภายใต้สภาวะโหลดและข้อมูลจริง

  3. การตรวจสอบเครื่องมือเพื่อหาข้อผิดพลาด การเบี่ยงเบน และผลกระทบต่อผู้ใช้

  4. เตรียมเส้นทางการย้อนกลับและการตอบสนองต่อเหตุการณ์ก่อนปรับขนาด

สำรวจต่อไป

Free newsletter

Get the daily AI briefing

Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.

One email each weekday. Unsubscribe in one click. We never sell or share your address.

Test yourself

Take the Cohen's Kappa quiz

Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.

เริ่มแบบทดสอบ

Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation

คำถามที่พบบ่อย

What is Cohen's Kappa?

Cohen's kappa measures agreement between two sets of categorical labels after accounting for agreement expected from their label frequencies. It helps teams assess annotation consistency, but a high score does not establish that either annotator is factually correct.

Two annotators have observed agreement of 0.8 and expected agreement of 0.5. Which kappa value follows?

Kappa is (0.8 minus 0.5) divided by (1 minus 0.5), which equals 0.6.

Why does the expected-agreement term in kappa not establish that annotators were guessing randomly?

The expected term is a mathematical baseline constructed from marginal frequencies; it does not describe the annotators' actual thought process.

For low, medium and high incident severity, why might a team choose weighted kappa?

Weights allow the score to reflect the distance between ordered categories, provided that order and weighting are appropriate.

Both annotators assign every case to the same single category. Why should ordinary kappa not be reported as a straightforward reliability success?

The denominator is one minus expected agreement. When expected agreement is one, the ordinary formula is undefined.

A second reviewer copies the first reviewer's labels and achieves perfect agreement. Which conclusion is justified?

Copied decisions do not provide an independent assessment, even if their numerical agreement is perfect.