R-What is Kappa coefficient?

June 2, 2016


While learning logistic regression, I had question that while evaluating model only considering accuracy or error rate is fine or should we have any other parameter to consider. I an got to know that, we should consider Kappa value to check the robustness of the model means accuracy we are getting is not by chance.


What is Kappa Coefficient or Cohen's Kappa value?

It is used to calculate the agreement between the two types of values in our case actual values and predicted values. It compares observed/predicted accuracy with the expected/actual accu



Formula - 

Kappa = (Observed accuracy - Expected accuracy)/(1 - Expected accuracy)


Let us consider following contingency table where we have actual and predicted values.



  • Poor agreement = Less than 0.20

  • Fair agreement = 0.20 to 0.40

  • Moderate agreement = 0.40 to 0.60

  • Good agreement = 0.60 to 0.80

  • Very good agreement = 0.80 to 1.00



SAS Base Installation

Share on Facebook
Share on Twitter
Please reload

About Author

Dattatray Shinde have over 6+ years of experience in Software Design, Development & Maintenance of Web Based Applications; worked on Healthcare, Insurance, E-commerce and Learning Management System domains. Over 2.5 + years as Data Scientist worked mainly in predictive analytics, survey analytics, risk analytics platforms.

Featured Posts

SAS - 1. Starting with SAS ... How to Install University edition?

March 20, 2017

Please reload

Recent Posts

June 21, 2017

January 19, 2014

Please reload

Search By Tags
Please reload


Contact Me

Mobile: +91 - 956 130 9595 


  • Google+ Social Icon
  • Facebook Social Icon
  • LinkedIn Social Icon
  • Twitter Social Icon

© 2023 by Dattatray Shinde