15
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      The Matthews correlation coefficient (MCC) is more reliable than balanced accuracy, bookmaker informedness, and markedness in two-class confusion matrix evaluation

      research-article

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Evaluating binary classifications is a pivotal task in statistics and machine learning, because it can influence decisions in multiple areas, including for example prognosis or therapies of patients in critical conditions. The scientific community has not agreed on a general-purpose statistical indicator for evaluating two-class confusion matrices (having true positives, true negatives, false positives, and false negatives) yet, even if advantages of the Matthews correlation coefficient (MCC) over accuracy and F 1 score have already been shown.In this manuscript, we reaffirm that MCC is a robust metric that summarizes the classifier performance in a single value, if positive and negative cases are of equal importance. We compare MCC to other metrics which value positive and negative cases equally: balanced accuracy (BA), bookmaker informedness (BM), and markedness (MK). We explain the mathematical relationships between MCC and these indicators, then show some use cases and a bioinformatics scenario where these metrics disagree and where MCC generates a more informative response.Additionally, we describe three exceptions where BM can be more appropriate: analyzing classifications where dataset prevalence is unrepresentative, comparing classifiers on different datasets, and assessing the random guessing level of a classifier. Except in these cases, we believe that MCC is the most informative among the single metrics discussed, and suggest it as standard measure for scientists of all fields. A Matthews correlation coefficient close to +1, in fact, means having high values for all the other confusion matrix metrics. The same cannot be said for balanced accuracy, markedness, bookmaker informedness, accuracy and F 1 score.

          Supplementary Information

          The online version contains supplementary material available at (10.1186/s13040-021-00244-z).

          Related collections

          Most cited references79

          • Record: found
          • Abstract: not found
          • Article: not found

          A Coefficient of Agreement for Nominal Scales

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            Index for rating diagnostic tests

              Bookmark
              • Record: found
              • Abstract: found
              • Article: found
              Is Open Access

              The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation

              Background To evaluate binary classifications and their confusion matrices, scientific researchers can employ several statistical rates, accordingly to the goal of the experiment they are investigating. Despite being a crucial issue in machine learning, no widespread consensus has been reached on a unified elective chosen measure yet. Accuracy and F1 score computed on confusion matrices have been (and still are) among the most popular adopted metrics in binary classification tasks. However, these statistical measures can dangerously show overoptimistic inflated results, especially on imbalanced datasets. Results The Matthews correlation coefficient (MCC), instead, is a more reliable statistical rate which produces a high score only if the prediction obtained good results in all of the four confusion matrix categories (true positives, false negatives, true negatives, and false positives), proportionally both to the size of positive elements and the size of negative elements in the dataset. Conclusions In this article, we show how MCC produces a more informative and truthful score in evaluating binary classifications than accuracy and F1 score, by first explaining the mathematical properties, and then the asset of MCC in six synthetic use cases and in a real genomics scenario. We believe that the Matthews correlation coefficient should be preferred to accuracy and F1 score in evaluating binary classification tasks by all scientific communities.
                Bookmark

                Author and article information

                Contributors
                davidechicco@davidechicco.it
                niklas.toetsch@uni-due.de
                jurman@fbk.eu
                Journal
                BioData Min
                BioData Min
                BioData Mining
                BioMed Central (London )
                1756-0381
                4 February 2021
                4 February 2021
                2021
                : 14
                : 13
                Affiliations
                [1 ]GRID grid.231844.8, ISNI 0000 0004 0474 0428, Krembil Research Institute, ; Toronto, Ontario, Canada
                [2 ]GRID grid.5718.b, ISNI 0000 0001 2187 5445, Universität Duisburg-Essen, ; Essen, Germany
                [3 ]GRID grid.11469.3b, ISNI 0000 0000 9780 0901, Fondazione Bruno Kessler, ; Trento, Italy
                Author information
                http://orcid.org/0000-0001-9655-7142
                Article
                244
                10.1186/s13040-021-00244-z
                7863449
                33541410
                9d8a42b5-45d7-4d39-815f-2508f64c7336
                © The Author(s) 2021

                Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver ( http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

                History
                : 1 October 2020
                : 18 January 2021
                Categories
                Methodology
                Custom metadata
                © The Author(s) 2021

                Bioinformatics & Computational biology
                matthews correlation coefficient,balanced accuracy,bookmaker informedness,markedness,confusion matrix,binary classification,machine learning

                Comments

                Comment on this article