CINXE.COM

Precision and recall - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Precision and recall - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"5db44396-81cf-4d26-bd6d-e282a01ece05","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Precision_and_recall","wgTitle":"Precision and recall","wgCurRevisionId":1268160106,"wgRevisionId":1268160106,"wgArticleId":14343887,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Articles with short description","Short description is different from Wikidata","Information retrieval evaluation","Information science","Bioinformatics"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Precision_and_recall","wgRelevantArticleId":14343887,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia", "wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q2359161","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles": "ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.math.styles":"ready","ext.cite.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.tablesorter.styles":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","mediawiki.page.media","site","mediawiki.page.ready","jquery.tablesorter","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader", "ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cjquery.tablesorter.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.16"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/1200px-Precisionrecall.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="2182"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/800px-Precisionrecall.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="1455"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/640px-Precisionrecall.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="1164"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Precision and recall - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Precision_and_recall"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Precision_and_recall&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Precision_and_recall"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Precision_and_recall rootpage-Precision_and_recall skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Precision+and+recall" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Precision+and+recall" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Precision+and+recall" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Precision+and+recall" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Introduction" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Introduction"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Introduction</span> </div> </a> <ul id="toc-Introduction-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Definition" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Definition"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Definition</span> </div> </a> <button aria-controls="toc-Definition-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Definition subsection</span> </button> <ul id="toc-Definition-sublist" class="vector-toc-list"> <li id="toc-Precision_vs._Recall" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Precision_vs._Recall"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Precision vs. Recall</span> </div> </a> <ul id="toc-Precision_vs._Recall-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Probabilistic_Definition" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Probabilistic_Definition"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Probabilistic Definition</span> </div> </a> <ul id="toc-Probabilistic_Definition-sublist" class="vector-toc-list"> <li id="toc-No-Skill_Classifiers" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#No-Skill_Classifiers"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.1</span> <span>No-Skill Classifiers</span> </div> </a> <ul id="toc-No-Skill_Classifiers-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Imbalanced_data" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Imbalanced_data"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Imbalanced data</span> </div> </a> <ul id="toc-Imbalanced_data-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-F-measure" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#F-measure"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>F-measure</span> </div> </a> <ul id="toc-F-measure-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Limitations_as_goals" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Limitations_as_goals"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Limitations as goals</span> </div> </a> <ul id="toc-Limitations_as_goals-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Multi-class_evaluation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Multi-class_evaluation"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Multi-class evaluation</span> </div> </a> <ul id="toc-Multi-class_evaluation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Precision and recall</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 16 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-16" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">16 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%AF%D9%82%D8%A9_%D9%88%D9%85%D8%B1%D8%A7%D8%AC%D8%B9%D8%A9" title="دقة ومراجعة – Arabic" lang="ar" hreflang="ar" data-title="دقة ومراجعة" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/D%C9%99qiqlik_v%C9%99_tan%C4%B1ma" title="Dəqiqlik və tanıma – Azerbaijani" lang="az" hreflang="az" data-title="Dəqiqlik və tanıma" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%BF%E0%A6%B8%E0%A6%BF%E0%A6%B6%E0%A6%A8_%E0%A6%93_%E0%A6%B0%E0%A6%BF%E0%A6%95%E0%A6%B2" title="প্রিসিশন ও রিকল – Bangla" lang="bn" hreflang="bn" data-title="প্রিসিশন ও রিকল" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Precisi%C3%B3_i_reclam" title="Precisió i reclam – Catalan" lang="ca" hreflang="ca" data-title="Precisió i reclam" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-de badge-Q70894304 mw-list-item" title=""><a href="https://de.wikipedia.org/wiki/Precision_und_Recall" title="Precision und Recall – German" lang="de" hreflang="de" data-title="Precision und Recall" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/T%C3%A4psus_ja_saagis" title="Täpsus ja saagis – Estonian" lang="et" hreflang="et" data-title="Täpsus ja saagis" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Precisi%C3%B3n_y_exhaustividad" title="Precisión y exhaustividad – Spanish" lang="es" hreflang="es" data-title="Precisión y exhaustividad" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Doitasun_eta_estaldura" title="Doitasun eta estaldura – Basque" lang="eu" hreflang="eu" data-title="Doitasun eta estaldura" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%AF%D9%82%D8%AA_%D9%88_%D8%A8%D8%A7%D8%B2%DB%8C%D8%A7%D8%A8%DB%8C" title="دقت و بازیابی – Persian" lang="fa" hreflang="fa" data-title="دقت و بازیابی" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Pr%C3%A9cision_et_rappel" title="Précision et rappel – French" lang="fr" hreflang="fr" data-title="Précision et rappel" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EC%A0%95%EB%B0%80%EB%8F%84%EC%99%80_%EC%9E%AC%ED%98%84%EC%9C%A8" title="정밀도와 재현율 – Korean" lang="ko" hreflang="ko" data-title="정밀도와 재현율" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Precisione_e_recupero" title="Precisione e recupero – Italian" lang="it" hreflang="it" data-title="Precisione e recupero" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Presisjon_og_dekning" title="Presisjon og dekning – Norwegian Nynorsk" lang="nn" hreflang="nn" data-title="Presisjon og dekning" data-language-autonym="Norsk nynorsk" data-language-local-name="Norwegian Nynorsk" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Precis%C3%A3o_e_revoca%C3%A7%C3%A3o" title="Precisão e revocação – Portuguese" lang="pt" hreflang="pt" data-title="Precisão e revocação" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%92%D0%BB%D1%83%D1%87%D0%BD%D1%96%D1%81%D1%82%D1%8C_%D1%82%D0%B0_%D0%BF%D0%BE%D0%B2%D0%BD%D0%BE%D1%82%D0%B0" title="Влучність та повнота – Ukrainian" lang="uk" hreflang="uk" data-title="Влучність та повнота" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E7%B2%BE%E7%A2%BA%E7%8E%87%E5%90%8C%E5%8F%AC%E5%9B%9E%E7%8E%87" title="精確率同召回率 – Cantonese" lang="yue" hreflang="yue" data-title="精確率同召回率" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2359161#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Precision_and_recall" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Precision_and_recall" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Precision_and_recall"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Precision_and_recall"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Precision_and_recall" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Precision_and_recall" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;oldid=1268160106" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Precision_and_recall&amp;id=1268160106&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPrecision_and_recall"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPrecision_and_recall"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Precision_and_recall&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Precision_and_recall&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Precision_and_recall" hreflang="en"><span>Wikimedia Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2359161" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Pattern-recognition performance metrics</div> <figure typeof="mw:File/Thumb"><a href="/wiki/File:Precisionrecall.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/350px-Precisionrecall.svg.png" decoding="async" width="350" height="636" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/525px-Precisionrecall.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/26/Precisionrecall.svg/700px-Precisionrecall.svg.png 2x" data-file-width="440" data-file-height="800" /></a><figcaption>Precision and recall</figcaption></figure> <p>In pattern recognition, information <a href="/wiki/Information_retrieval" title="Information retrieval">retrieval</a>, <a href="/wiki/Object_detection" title="Object detection">object detection</a> and <a href="/wiki/Classification_(machine_learning)" class="mw-redirect" title="Classification (machine learning)">classification (machine learning)</a>, <b>precision</b> and <b>recall</b> are performance metrics that apply to data retrieved from a <a href="/wiki/Data_store" title="Data store">collection</a>, <a href="/wiki/Text_corpus" title="Text corpus">corpus</a> or <a href="/wiki/Sample_space" title="Sample space">sample space</a>. </p><p><b>Precision</b> (also called <a href="/wiki/Positive_predictive_value" class="mw-redirect" title="Positive predictive value">positive predictive value</a>) is the fraction of relevant instances among the retrieved instances. Written as a formula: </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Precision}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {retrieved}}{\text{ instances}}}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Precision</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mtext>Relevant retrieved instances</mtext> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>All&#xA0;</mtext> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mtext mathvariant="bold">retrieved</mtext> </mrow> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>&#xA0;instances</mtext> </mrow> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Precision}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {retrieved}}{\text{ instances}}}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/6bf4ff05845a63d65d7a43394f708e0882dba7c1" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:41.518ex; height:5.509ex;" alt="{\displaystyle {\text{Precision}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {retrieved}}{\text{ instances}}}}}"></span> </p><p><b>Recall</b> (also known as <a href="/wiki/Sensitivity_and_specificity" title="Sensitivity and specificity">sensitivity</a>) is the fraction of relevant instances that were retrieved. Written as a formula: </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Recall}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {relevant}}{\text{ instances}}}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Recall</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mtext>Relevant retrieved instances</mtext> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>All&#xA0;</mtext> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mtext mathvariant="bold">relevant</mtext> </mrow> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>&#xA0;instances</mtext> </mrow> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Recall}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {relevant}}{\text{ instances}}}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/541bb1ab5d962d6dfcbc9298d9c7da2a97133dbe" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:38.525ex; height:5.509ex;" alt="{\displaystyle {\text{Recall}}={\frac {\text{Relevant retrieved instances}}{{\text{All }}{\textbf {relevant}}{\text{ instances}}}}}"></span> </p><p>Both precision and recall are therefore based on <a href="/wiki/Relevance_(information_retrieval)" title="Relevance (information retrieval)">relevance</a>. </p><p>Consider a computer program for recognizing dogs (the <b>relevant</b> element) in a digital photograph. Upon processing a picture which contains ten cats and twelve dogs, the program identifies eight dogs. Of the eight elements identified as dogs, only five actually are dogs (<a href="/wiki/True_positive" class="mw-redirect" title="True positive">true positives</a>), while the other three are cats (<a href="/wiki/False_positives_and_false_negatives" title="False positives and false negatives">false positives</a>). Seven dogs were missed (<a href="/wiki/False_positives_and_false_negatives" title="False positives and false negatives">false negatives</a>), and seven cats were correctly excluded (<a href="/wiki/False_positives_and_false_negatives" title="False positives and false negatives">true negatives</a>). The program's precision is then 5/8 (true positives / selected elements) while its recall is 5/12 (true positives / relevant elements). </p><p>Adopting a <a href="/wiki/Statistical_hypothesis_testing" class="mw-redirect" title="Statistical hypothesis testing">hypothesis-testing</a> approach, where in this case, the <a href="/wiki/Null_hypothesis" title="Null hypothesis">null hypothesis</a> is that a given item is <i>irrelevant</i> (not a dog), absence of <a href="/wiki/Type_I_and_type_II_errors" title="Type I and type II errors">type I and type II errors</a> (perfect <a href="/wiki/Specificity_and_sensitivity" class="mw-redirect" title="Specificity and sensitivity">specificity and sensitivity</a>) corresponds respectively to perfect precision (no false positives) and perfect recall (no false negatives). </p><p>More generally, recall is simply the complement of the type II error rate (i.e., one minus the type II error rate). Precision is related to the type I error rate, but in a slightly more complicated way, as it also depends upon the <a href="/wiki/Prior_distribution" class="mw-redirect" title="Prior distribution">prior distribution</a> of seeing a relevant vs. an irrelevant item. </p><p>The above cat and dog example contained 8 &#8722; 5 = 3 type I errors (false positives) out of 10 total cats (true negatives), for a type I error rate of 3/10, and 12 &#8722; 5 = 7 type II errors (false negatives), for a type II error rate of 7/12. Precision can be seen as a measure of quality, and recall as a measure of quantity. Higher precision means that an algorithm returns more relevant results than irrelevant ones, and high recall means that an algorithm returns most of the relevant results (whether or not irrelevant ones are also returned). </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Introduction">Introduction</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=1" title="Edit section: Introduction"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In a <a href="/wiki/Classification_(machine_learning)" class="mw-redirect" title="Classification (machine learning)">classification</a> task, the precision for a class is the <i>number of true positives</i> (i.e. the number of items correctly labelled as belonging to the positive class) <i>divided by the total number of elements labelled as belonging to the positive class</i> (i.e. the sum of true positives and <a href="/wiki/Type_I_and_type_II_errors" title="Type I and type II errors">false positives</a>, which are items incorrectly labelled as belonging to the class). Recall in this context is defined as the <i>number of true positives divided by the total number of elements that actually belong to the positive class</i> (i.e. the sum of true positives and <a href="/wiki/Type_I_and_type_II_errors" title="Type I and type II errors">false negatives</a>, which are items which were not labelled as belonging to the positive class but should have been). </p><p>Precision and recall are not particularly useful metrics when used in isolation. For instance, it is possible to have perfect recall by simply retrieving every single item. Likewise, it is possible to achieve perfect precision by selecting only a very small number of extremely likely items. </p><p>In a classification task, a precision score of 1.0 for a class C means that every item labelled as belonging to class C does indeed belong to class C (but says nothing about the number of items from class C that were not labelled correctly) whereas a recall of 1.0 means that every item from class C was labelled as belonging to class C (but says nothing about how many items from other classes were incorrectly also labelled as belonging to class C). </p><p>Often, there is an inverse relationship between precision and recall, where it is possible to increase one at the cost of reducing the other, but context may dictate if one is more valued in a given situation: </p><p>A smoke detector is generally designed to commit many Type I errors (to alert in many situations when there is no danger), because the cost of a Type II error (failing to sound an alarm during a major fire) is prohibitively high. As such, smoke detectors are designed with recall in mind (to catch all real danger), even while giving little weight to the losses in precision (and making many false alarms). In the other direction, <a href="/wiki/Blackstone%27s_ratio" title="Blackstone&#39;s ratio">Blackstone's ratio</a>, "It is better that ten guilty persons escape than that one innocent suffer," emphasizes the costs of a Type I error (convicting an innocent person). As such, the criminal justice system is geared toward precision (not convicting innocents), even at the cost of losses in recall (letting more guilty people go free). </p><p>A brain surgeon removing a cancerous tumor from a patient's brain illustrates the tradeoffs as well: The surgeon needs to remove all of the tumor cells since any remaining cancer cells will regenerate the tumor. Conversely, the surgeon must not remove healthy brain cells since that would leave the patient with impaired brain function. The surgeon may be more liberal in the area of the brain they remove to ensure they have extracted all the cancer cells. This decision increases recall but reduces precision. On the other hand, the surgeon may be more conservative in the brain cells they remove to ensure they extracts only cancer cells. This decision increases precision but reduces recall. That is to say, greater recall increases the chances of removing healthy cells (negative outcome) and increases the chances of removing all cancer cells (positive outcome). Greater precision decreases the chances of removing healthy cells (positive outcome) but also decreases the chances of removing all cancer cells (negative outcome). </p><p>Usually, precision and recall scores are not discussed in isolation. A <i>precision-recall curve</i> plots precision as a function of recall; usually precision will decrease as the recall increases. Alternatively, values for one measure can be compared for a fixed level at the other measure (e.g. <i>precision at a recall level of 0.75</i>) or both are combined into a single measure. Examples of measures that are a combination of precision and recall are the <a href="#F-measure">F-measure</a> (the weighted <a href="/wiki/Harmonic_mean" title="Harmonic mean">harmonic mean</a> of precision and recall), or the <a href="/wiki/Matthews_correlation_coefficient" class="mw-redirect" title="Matthews correlation coefficient">Matthews correlation coefficient</a>, which is a <a href="/wiki/Geometric_mean" title="Geometric mean">geometric mean</a> of the chance-corrected variants: the <a href="/wiki/Regression_coefficient" class="mw-redirect" title="Regression coefficient">regression coefficients</a> <a href="/wiki/Informedness" class="mw-redirect" title="Informedness">Informedness</a> (DeltaP') and <a href="/wiki/Markedness" title="Markedness">Markedness</a> (DeltaP).<sup id="cite_ref-Powers2011_1-0" class="reference"><a href="#cite_note-Powers2011-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Accuracy_(binary_classification)" class="mw-redirect" title="Accuracy (binary classification)">Accuracy</a> is a weighted arithmetic mean of Precision and Inverse Precision (weighted by Bias) as well as a weighted arithmetic mean of Recall and Inverse Recall (weighted by Prevalence).<sup id="cite_ref-Powers2011_1-1" class="reference"><a href="#cite_note-Powers2011-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> Inverse Precision and Inverse Recall are simply the Precision and Recall of the inverse problem where positive and negative labels are exchanged (for both real classes and prediction labels). <a href="/wiki/True_Positive_Rate" class="mw-redirect" title="True Positive Rate">True Positive Rate</a> and <a href="/wiki/False_Positive_Rate" class="mw-redirect" title="False Positive Rate">False Positive Rate</a>, or equivalently Recall and 1 - Inverse Recall, are frequently plotted against each other as <a href="/wiki/Receiver_operating_characteristic" title="Receiver operating characteristic">ROC</a> curves and provide a principled mechanism to explore operating point tradeoffs. Outside of Information Retrieval, the application of Recall, Precision and F-measure are argued to be flawed as they ignore the true negative cell of the <a href="/wiki/Contingency_table" title="Contingency table">contingency table</a>, and they are easily manipulated by biasing the predictions.<sup id="cite_ref-Powers2011_1-2" class="reference"><a href="#cite_note-Powers2011-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> The first problem is 'solved' by using <a href="/wiki/Accuracy_(binary_classification)" class="mw-redirect" title="Accuracy (binary classification)">Accuracy</a> and the second problem is 'solved' by discounting the chance component and renormalizing to <a href="/wiki/Cohen%27s_kappa" title="Cohen&#39;s kappa">Cohen's kappa</a>, but this no longer affords the opportunity to explore tradeoffs graphically. However, <a href="/wiki/Informedness" class="mw-redirect" title="Informedness">Informedness</a> and <a href="/wiki/Markedness" title="Markedness">Markedness</a> are Kappa-like renormalizations of Recall and Precision,<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> and their geometric mean <a href="/wiki/Matthews_correlation_coefficient" class="mw-redirect" title="Matthews correlation coefficient">Matthews correlation coefficient</a> thus acts like a debiased F-measure. </p> <div class="mw-heading mw-heading2"><h2 id="Definition">Definition</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=2" title="Edit section: Definition"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>For classification tasks, the terms <i>true positives</i>, <i>true negatives</i>, <i>false positives</i>, and <i>false negatives</i> compare the results of the classifier under test with trusted external judgments. The terms <i>positive</i> and <i>negative</i> refer to the classifier's prediction (sometimes known as the <i>expectation</i>), and the terms <i>true</i> and <i>false</i> refer to whether that prediction corresponds to the external judgment (sometimes known as the <i>observation</i>). </p><p>Let us define an experiment from <i>P</i> positive instances and <i>N</i> negative instances for some condition. The four outcomes can be formulated in a 2×2 <a href="/wiki/Contingency_table" title="Contingency table">contingency table</a> or <a href="/wiki/Confusion_matrix" title="Confusion matrix">confusion matrix</a>, as follows: </p> <table class="wikitable" align="center" style="border:none; background:transparent; text-align:center;"> <tbody><tr> <td style="border:none;" rowspan="2"> </td> <td style="border:none;"> </td> <td style="background:#bbeeee;" colspan="2"><b>Predicted condition</b> </td> <td style="border:none; text-align:right;" colspan="2"><sup>Sources: </sup><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> <sup><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist"><ul><li class="nv-view"><a href="/wiki/Template:Diagnostic_testing_diagram" title="Template:Diagnostic testing diagram"><span title="View this template">view</span></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Diagnostic_testing_diagram" title="Template talk:Diagnostic testing diagram"><span title="Discuss this template">talk</span></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Diagnostic_testing_diagram" title="Special:EditPage/Template:Diagnostic testing diagram"><span title="Edit this template">edit</span></a></li></ul></div></sup> </td></tr> <tr> <td style="background:#eeeeee;"><a href="/wiki/Statistical_population" title="Statistical population">Total population</a> <br /><span class="texhtml">= P + N</span> </td> <td style="background:#ccffff;"><b>Predicted positive</b> </td> <td style="background:#aadddd;"><b>Predicted negative</b> </td> <td style="border-left:double silver;background:#ffffff"><a href="/wiki/Youden%27s_J_statistic" title="Youden&#39;s J statistic">Informedness</a>, <span style="font-size:85%;">bookmaker informedness (BM)</span> <br /><span class="texhtml">= TPR + TNR − 1</span> </td> <td style="background:#ffffff;"><a href="/wiki/Prevalence_threshold" class="mw-redirect" title="Prevalence threshold">Prevalence threshold</a> (PT) <br /><span class="texhtml">= <style data-mw-deduplicate="TemplateStyles:r1214402035">.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center}.mw-parser-output .sfrac .num{display:block;line-height:1em;margin:0.0em 0.1em;border-bottom:1px solid}.mw-parser-output .sfrac .den{display:block;line-height:1em;margin:0.1em 0.1em}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}</style><span class="sfrac">&#8288;<span class="tion"><span class="num"><span class="nowrap">&#8730;<span style="border-top:1px solid; padding:0 0.1em;">TPR × FPR</span></span> - FPR</span><span class="sr-only">/</span><span class="den">TPR - FPR</span></span>&#8288;</span></span> </td></tr> <tr> <td rowspan="2" class="nowrap ts-vertical-header is-valign-middle" style="background:#eeeebb;"><div style=""><style data-mw-deduplicate="TemplateStyles:r1221560606">@supports(writing-mode:vertical-rl){.mw-parser-output .ts-vertical-header{line-height:1;max-width:1em;padding:0.4em;vertical-align:bottom;width:1em}html.client-js .mw-parser-output .sortable:not(.jquery-tablesorter) .ts-vertical-header:not(.unsortable),html.client-js .mw-parser-output .ts-vertical-header.headerSort{background-position:50%.4em;padding-right:0.4em;padding-top:21px}.mw-parser-output .ts-vertical-header.is-valign-top{vertical-align:top}.mw-parser-output .ts-vertical-header.is-valign-middle{vertical-align:middle}.mw-parser-output .ts-vertical-header.is-normal{font-weight:normal}.mw-parser-output .ts-vertical-header>*{display:inline-block;transform:rotate(180deg);writing-mode:vertical-rl}@supports(writing-mode:sideways-lr){.mw-parser-output .ts-vertical-header>*{transform:none;writing-mode:sideways-lr}}}</style><b>Actual condition</b></div> </td> <td style="background:#ffffcc;"><b>Positive (P)</b> <sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>a<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#ccffcc;"><b><a href="/wiki/True_positive" class="mw-redirect" title="True positive">True positive</a></b> (TP), <br /><span style="font-size:85%;">hit</span><sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#ffdddd;"><b><a href="/wiki/False_negative" class="mw-redirect" title="False negative">False negative</a></b> (FN), <br /><span style="font-size:85%;">miss, underestimation</span> </td> <td style="background:#eeffee;"><a href="/wiki/True_positive_rate" class="mw-redirect" title="True positive rate">True positive rate</a> (TPR), <a href="/wiki/Recall_(information_retrieval)" class="mw-redirect" title="Recall (information retrieval)">recall</a>, <a href="/wiki/Sensitivity_(tests)" class="mw-redirect" title="Sensitivity (tests)">sensitivity</a> (SEN), <span style="font-size:85%;">probability&#160;of&#160;detection, hit&#160;rate, <a href="/wiki/Statistical_power" class="mw-redirect" title="Statistical power">power</a></span> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TP</span><span class="sr-only">/</span><span class="den">P</span></span>&#8288;</span></span> <span class="texhtml">= 1 − FNR</span> </td> <td style="background:#ffeeee;"><a href="/wiki/False_negative_rate" class="mw-redirect" title="False negative rate">False negative rate</a> (FNR), <br /><span style="font-size:85%;">miss&#160;rate</span> <br /><span style="font-size:85%;"><a href="/wiki/Type_II_error" class="mw-redirect" title="Type II error">type&#160;II&#160;error</a></span> <sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">&#91;</span>c<span class="cite-bracket">&#93;</span></a></sup> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">FN</span><span class="sr-only">/</span><span class="den">P</span></span>&#8288;</span></span> <span class="texhtml">= 1 − TPR</span> </td></tr> <tr> <td style="background:#ddddaa;"><b>Negative (N)</b><sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">&#91;</span>d<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#ffcccc;"><b><a href="/wiki/False_positive" class="mw-redirect" title="False positive">False positive</a></b> (FP), <br /><span style="font-size:85%;">false alarm, overestimation</span> </td> <td style="background:#bbeebb;"><b><a href="/wiki/True_negative" class="mw-redirect" title="True negative">True negative</a></b> (TN), <br /><span style="font-size:85%;">correct rejection</span><sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">&#91;</span>e<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#eedddd;"><a href="/wiki/False_positive_rate" title="False positive rate">False positive rate</a> (FPR), <br /><span style="font-size:85%;">probability&#160;of&#160;false&#160;alarm, <a href="/wiki/Evaluation_measures_(information_retrieval)#Fall-out" title="Evaluation measures (information retrieval)"><span class="nowrap">fall-out</span></a></span> <br /><span style="font-size:85%;"><a href="/wiki/Type_I_error" class="mw-redirect" title="Type I error">type&#160;I&#160;error</a></span> <sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">&#91;</span>f<span class="cite-bracket">&#93;</span></a></sup> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">FP</span><span class="sr-only">/</span><span class="den">N</span></span>&#8288;</span></span> <span class="texhtml">= 1 − TNR</span> </td> <td style="background:#ddeedd;"><a href="/wiki/True_negative_rate" class="mw-redirect" title="True negative rate">True negative rate</a> (TNR), <br /><span style="font-size:85%;"><a href="/wiki/Specificity_(tests)" class="mw-redirect" title="Specificity (tests)">specificity</a> (SPC), selectivity</span> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TN</span><span class="sr-only">/</span><span class="den">N</span></span>&#8288;</span></span> <span class="texhtml">= 1 − FPR</span> </td></tr> <tr> <td style="border:none;" rowspan="3"> </td> <td style="border-top:double silver; border-right:double silver;background:#ffffff;"><a href="/wiki/Prevalence" title="Prevalence">Prevalence</a> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">P</span><span class="sr-only">/</span><span class="den">P + N</span></span>&#8288;</span></span> </td> <td style="background:#eeffee;"><span class="nowrap"><a href="/wiki/Positive_predictive_value" class="mw-redirect" title="Positive predictive value">Positive predictive value</a> (PPV),</span> <span style="font-size:85%;"><a href="/wiki/Precision_(information_retrieval)" class="mw-redirect" title="Precision (information retrieval)">precision</a></span> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TP</span><span class="sr-only">/</span><span class="den">TP + FP</span></span>&#8288;</span></span> <span class="texhtml">= 1 − FDR</span> </td> <td style="background:#ffeeee;border-right:double silver;"><a href="/wiki/False_omission_rate" class="mw-redirect" title="False omission rate">False omission rate</a> (FOR) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">FN</span><span class="sr-only">/</span><span class="den">TN + FN</span></span>&#8288;</span></span> <span class="texhtml">= 1 − NPV</span> </td> <td style="background:#eeeeff;"><a href="/wiki/Positive_likelihood_ratio" class="mw-redirect" title="Positive likelihood ratio">Positive likelihood ratio</a> (LR+) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TPR</span><span class="sr-only">/</span><span class="den">FPR</span></span>&#8288;</span></span> </td> <td style="background:#eeeeff;"><a href="/wiki/Negative_likelihood_ratio" class="mw-redirect" title="Negative likelihood ratio">Negative likelihood ratio</a> (LR−) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">FNR</span><span class="sr-only">/</span><span class="den">TNR</span></span>&#8288;</span></span> </td></tr> <tr> <td style="border-right:double silver;background:#ffffff;"><a href="/wiki/Accuracy_and_precision#In_classification" title="Accuracy and precision">Accuracy</a> (ACC) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TP + TN</span><span class="sr-only">/</span><span class="den">P + N</span></span>&#8288;</span></span> </td> <td style="background:#eedddd;"><a href="/wiki/False_discovery_rate" title="False discovery rate">False discovery rate</a> (FDR) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">FP</span><span class="sr-only">/</span><span class="den">TP + FP</span></span>&#8288;</span></span> <span class="texhtml">= 1 − PPV</span> </td> <td style="background:#ddeedd;"><a href="/wiki/Negative_predictive_value" class="mw-redirect" title="Negative predictive value">Negative predictive value</a> (NPV) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TN</span><span class="sr-only">/</span><span class="den">TN + FN</span></span>&#8288;</span></span> <span class="texhtml">= 1 − FOR</span> </td> <td style="border-top:double silver;border-right:double silver;background:#ffffff;"><a href="/wiki/Markedness" title="Markedness">Markedness</a> (MK), <span style="font-size:85%;">deltaP (&#916;p)</span> <br /><span class="texhtml">= PPV + NPV − 1</span> </td> <td style="background:#eeeeff;"><a href="/wiki/Diagnostic_odds_ratio" title="Diagnostic odds ratio">Diagnostic <span class="nowrap">odds ratio</span></a> (DOR) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">LR+</span><span class="sr-only">/</span><span class="den">LR−</span></span>&#8288;</span></span> </td></tr> <tr> <td style="background:#ffffff;">Balanced accuracy (BA) <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TPR + TNR</span><span class="sr-only">/</span><span class="den">2</span></span>&#8288;</span></span> </td> <td style="border-top:double silver;background:#ffffff;"><a href="/wiki/F1_score" class="mw-redirect" title="F1 score">F<sub>1</sub> score</a> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">2 PPV × TPR</span><span class="sr-only">/</span><span class="den">PPV + TPR</span></span>&#8288;</span></span> <span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">2 TP</span><span class="sr-only">/</span><span class="den">2 TP + FP + FN</span></span>&#8288;</span></span> </td> <td style="border-top:double silver;background:#ffffff;"><a href="/wiki/Fowlkes%E2%80%93Mallows_index" title="Fowlkes–Mallows index">Fowlkes–Mallows index</a> (FM) <br /><span class="texhtml">= <span class="nowrap">&#8730;<span style="border-top:1px solid; padding:0 0.1em;">PPV × TPR</span></span></span> </td> <td style="border-top:double silver;background:#ffffff;"><a href="/wiki/Matthews_correlation_coefficient" class="mw-redirect" title="Matthews correlation coefficient">Matthews correlation coefficient</a> (MCC) <br /><span class="texhtml texhtml-big" style="font-size:80%;">= <span class="nowrap">&#8730;<span style="border-top:1px solid; padding:0 0.1em;">TPR × TNR × PPV × NPV</span></span></span> <span class="texhtml texhtml-big" style="font-size:80%;">- <span class="nowrap">&#8730;<span style="border-top:1px solid; padding:0 0.1em;">FNR × FPR × FOR × FDR</span></span></span> </td> <td style="border-top:double silver;background:#ffffff;" colspan="2">Threat score (TS), critical success index (CSI), <a href="/wiki/Jaccard_index#Jaccard_index_in_binary_classification_confusion_matrices" title="Jaccard index">Jaccard index</a> <br /><span class="texhtml">= <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1214402035"><span class="sfrac">&#8288;<span class="tion"><span class="num">TP</span><span class="sr-only">/</span><span class="den">TP + FN + FP</span></span>&#8288;</span></span> </td></tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-lower-alpha"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text">the number of real positive cases in the data</span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text">A test result that correctly indicates the presence of a condition or characteristic</span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text">Type II error: A test result which wrongly indicates that a particular condition or attribute is absent</span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text">the number of real negative cases in the data</span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text">A test result that correctly indicates the absence of a condition or characteristic</span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text">Type I error: A test result which wrongly indicates that a particular condition or attribute is present</span> </li> </ol></div></div> <p><br /> Precision and recall are then defined as:<sup id="cite_ref-OlsonDelen_18-0" class="reference"><a href="#cite_note-OlsonDelen-18"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{aligned}{\text{Precision}}&amp;={\frac {tp}{tp+fp}}\\{\text{Recall}}&amp;={\frac {tp}{tp+fn}}\,\end{aligned}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"> <mtr> <mtd> <mrow class="MJX-TeXAtom-ORD"> <mtext>Precision</mtext> </mrow> </mtd> <mtd> <mi></mi> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>t</mi> <mi>p</mi> </mrow> <mrow> <mi>t</mi> <mi>p</mi> <mo>+</mo> <mi>f</mi> <mi>p</mi> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow class="MJX-TeXAtom-ORD"> <mtext>Recall</mtext> </mrow> </mtd> <mtd> <mi></mi> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>t</mi> <mi>p</mi> </mrow> <mrow> <mi>t</mi> <mi>p</mi> <mo>+</mo> <mi>f</mi> <mi>n</mi> </mrow> </mfrac> </mrow> <mspace width="thinmathspace" /> </mtd> </mtr> </mtable> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\begin{aligned}{\text{Precision}}&amp;={\frac {tp}{tp+fp}}\\{\text{Recall}}&amp;={\frac {tp}{tp+fn}}\,\end{aligned}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d37e557b5bfc8de22afa8aad1c187a357ac81bdb" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -5.338ex; width:21.82ex; height:11.843ex;" alt="{\displaystyle {\begin{aligned}{\text{Precision}}&amp;={\frac {tp}{tp+fp}}\\{\text{Recall}}&amp;={\frac {tp}{tp+fn}}\,\end{aligned}}}"></span> </p><p>Recall in this context is also referred to as the true positive rate or <a href="/wiki/Sensitivity_and_specificity" title="Sensitivity and specificity">sensitivity</a>, and precision is also referred to as <a href="/wiki/Positive_predictive_value" class="mw-redirect" title="Positive predictive value">positive predictive value</a> (PPV); other related measures used in classification include true negative rate and <a href="/wiki/Accuracy_(binary_classification)" class="mw-redirect" title="Accuracy (binary classification)">accuracy</a>.<sup id="cite_ref-OlsonDelen_18-1" class="reference"><a href="#cite_note-OlsonDelen-18"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> True negative rate is also called <a href="/wiki/Specificity_(tests)#Specificity" class="mw-redirect" title="Specificity (tests)">specificity</a>. </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{True negative rate}}={\frac {tn}{tn+fp}}\,}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>True negative rate</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>t</mi> <mi>n</mi> </mrow> <mrow> <mi>t</mi> <mi>n</mi> <mo>+</mo> <mi>f</mi> <mi>p</mi> </mrow> </mfrac> </mrow> <mspace width="thinmathspace" /> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{True negative rate}}={\frac {tn}{tn+fp}}\,}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/af37c5d528612c6dce5987718585ae5313abf79a" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:30.393ex; height:5.676ex;" alt="{\displaystyle {\text{True negative rate}}={\frac {tn}{tn+fp}}\,}"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Precision_vs._Recall">Precision vs. Recall</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=3" title="Edit section: Precision vs. Recall"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Both precision and recall may be useful in cases where there is imbalanced data. However, it may be valuable to prioritize one metric over the other in cases where the outcome of a false positive or false negative is costly. For example, in medical diagnosis, a false positive test can lead to unnecessary treatment and expenses. In this situation, it is useful to value precision over recall. In other cases, the cost of a false negative is high, and recall may be a more valuable metric. For instance, the cost of a false negative in fraud detection is high, as failing to detect a fraudulent transaction can result in significant financial loss.<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Probabilistic_Definition">Probabilistic Definition</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=4" title="Edit section: Probabilistic Definition"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Precision and recall can be interpreted as (estimated) <a href="/wiki/Conditional_probability" title="Conditional probability">conditional probabilities</a>:<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> Precision is given by <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/c7d7191f6cc960525459ffc8325649ac04002f97" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.097ex; height:3.343ex;" alt="{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)}"></span> while recall is given by <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/2aebeedf10af01d84586e09bea105fe22c9500f3" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.097ex; height:3.343ex;" alt="{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)}"></span>,<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> where <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\hat {C}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\hat {C}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/7691287b1a9fdf0a9b86dbc296679667e836892c" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.766ex; height:2.843ex;" alt="{\displaystyle {\hat {C}}}"></span> is the predicted class and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle C}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>C</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle C}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/4fc55753007cd3c18576f7933f6f089196732029" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.766ex; height:2.176ex;" alt="{\displaystyle C}"></span> is the actual class (i.e. <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle C=P}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>C</mi> <mo>=</mo> <mi>P</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle C=P}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/59df237dd6bd01dd6087dbdffe245b9857ba4ccd" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.61ex; height:2.176ex;" alt="{\displaystyle C=P}"></span> means the actual class is positive). Both quantities are, therefore, connected by <a href="/wiki/Bayes%27_theorem" title="Bayes&#39; theorem">Bayes' theorem</a>. </p> <div class="mw-heading mw-heading4"><h4 id="No-Skill_Classifiers">No-Skill Classifiers</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=5" title="Edit section: No-Skill Classifiers"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The probabilistic interpretation allows to easily derive how a no-skill classifier would perform. A no-skill classifiers is defined by the property that the joint probability <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {P} (C=P,{\hat {C}}=P)=\mathbb {P} (C=P)\mathbb {P} ({\hat {C}}=P)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo>,</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathbb {P} (C=P,{\hat {C}}=P)=\mathbb {P} (C=P)\mathbb {P} ({\hat {C}}=P)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9117c4e45615a0f2b1277509dcd146b82dc7be11" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:40.262ex; height:3.343ex;" alt="{\displaystyle \mathbb {P} (C=P,{\hat {C}}=P)=\mathbb {P} (C=P)\mathbb {P} ({\hat {C}}=P)}"></span> is just the product of the unconditional probabilites since the classification and the presence of the class are <a href="/wiki/Independent_event" class="mw-redirect" title="Independent event">independent</a>. </p><p>For example the precision of a no-skill classifier is simply a constant <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} ({\hat {C}}=P)}}=\mathbb {P} (C=P),}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo>,</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mrow> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mrow> </mfrac> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> <mo>,</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} ({\hat {C}}=P)}}=\mathbb {P} (C=P),}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/feaeded7ac9f1fe184cdba3b88748abfe000e09e" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:52.1ex; height:7.509ex;" alt="{\displaystyle \mathbb {P} (C=P|{\hat {C}}=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} ({\hat {C}}=P)}}=\mathbb {P} (C=P),}"></span> i.e. determined by the probability/frequency with which the class P occurs. </p><p>A similar argument can be made for the recall: <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} (C=P)}}=\mathbb {P} ({\hat {C}}=P)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo>,</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mrow> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mi>C</mi> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mrow> </mfrac> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">P</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi>C</mi> <mo stretchy="false">&#x005E;<!-- ^ --></mo> </mover> </mrow> </mrow> <mo>=</mo> <mi>P</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} (C=P)}}=\mathbb {P} ({\hat {C}}=P)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/eb908712cb0e31d1191b236420ed9a6d5cf1b087" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.671ex; width:51.454ex; height:7.009ex;" alt="{\displaystyle \mathbb {P} ({\hat {C}}=P|C=P)={\frac {\mathbb {P} (C=P,{\hat {C}}=P)}{\mathbb {P} (C=P)}}=\mathbb {P} ({\hat {C}}=P)}"></span> which is the probability for a positive classification. </p> <div class="mw-heading mw-heading2"><h2 id="Imbalanced_data">Imbalanced data</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=6" title="Edit section: Imbalanced data"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Accuracy}}={\frac {TP+TN}{TP+TN+FP+FN}}\,}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Accuracy</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>T</mi> <mi>P</mi> <mo>+</mo> <mi>T</mi> <mi>N</mi> </mrow> <mrow> <mi>T</mi> <mi>P</mi> <mo>+</mo> <mi>T</mi> <mi>N</mi> <mo>+</mo> <mi>F</mi> <mi>P</mi> <mo>+</mo> <mi>F</mi> <mi>N</mi> </mrow> </mfrac> </mrow> <mspace width="thinmathspace" /> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Accuracy}}={\frac {TP+TN}{TP+TN+FP+FN}}\,}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/7588abeafe63ab4b8ae63f954978186276e54d01" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:36.649ex; height:5.343ex;" alt="{\displaystyle {\text{Accuracy}}={\frac {TP+TN}{TP+TN+FP+FN}}\,}"></span> </p><p>Accuracy can be a misleading metric for imbalanced data sets. Consider a sample with 95 negative and 5 positive values. Classifying all values as negative in this case gives 0.95 accuracy score. There are many metrics that don't suffer from this problem. For example, balanced accuracy<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> (bACC) normalizes true positive and true negative predictions by the number of positive and negative samples, respectively, and divides their sum by two: </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Balanced accuracy}}={\frac {TPR+TNR}{2}}\,}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Balanced accuracy</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>T</mi> <mi>P</mi> <mi>R</mi> <mo>+</mo> <mi>T</mi> <mi>N</mi> <mi>R</mi> </mrow> <mn>2</mn> </mfrac> </mrow> <mspace width="thinmathspace" /> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Balanced accuracy}}={\frac {TPR+TNR}{2}}\,}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f36a0a23620dcc20bb32cde7335179175f3cb63b" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:36.473ex; height:5.176ex;" alt="{\displaystyle {\text{Balanced accuracy}}={\frac {TPR+TNR}{2}}\,}"></span> </p><p>For the previous example (95 negative and 5 positive samples), classifying all as negative gives 0.5 balanced accuracy score (the maximum bACC score is one), which is equivalent to the expected value of a random guess in a balanced data set. Balanced accuracy can serve as an overall performance metric for a model, whether or not the true labels are imbalanced in the data, assuming the cost of FN is the same as FP. </p><p>The TPR and FPR are a property of a given classifier operating at a specific threshold. However, the overall number of TPs, FPs <i>etc</i> depend on the class imbalance in the data via the class ratio <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle r=P/N}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="false" scriptlevel="0"> <mi>r</mi> <mo>=</mo> <mi>P</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>/</mo> </mrow> <mi>N</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\textstyle r=P/N}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a39843e1befdc1e378b0d2a6387fdcc12ac287d8" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.119ex; height:2.843ex;" alt="{\textstyle r=P/N}"></span>. As the recall (or TPR) depends only on positive cases, it is not affected by <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle r}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="false" scriptlevel="0"> <mi>r</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\textstyle r}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f2dfb06630b52c9e18fcc0a4688da10774206729" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.049ex; height:1.676ex;" alt="{\textstyle r}"></span>, but the precision is. We have that </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Precision}}={\frac {TP}{TP+FP}}={\frac {P\cdot TPR}{P\cdot TPR+N\cdot FPR}}={\frac {TPR}{TPR+{\frac {1}{r}}FPR}}.}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Precision</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>T</mi> <mi>P</mi> </mrow> <mrow> <mi>T</mi> <mi>P</mi> <mo>+</mo> <mi>F</mi> <mi>P</mi> </mrow> </mfrac> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>P</mi> <mo>&#x22C5;<!-- ⋅ --></mo> <mi>T</mi> <mi>P</mi> <mi>R</mi> </mrow> <mrow> <mi>P</mi> <mo>&#x22C5;<!-- ⋅ --></mo> <mi>T</mi> <mi>P</mi> <mi>R</mi> <mo>+</mo> <mi>N</mi> <mo>&#x22C5;<!-- ⋅ --></mo> <mi>F</mi> <mi>P</mi> <mi>R</mi> </mrow> </mfrac> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>T</mi> <mi>P</mi> <mi>R</mi> </mrow> <mrow> <mi>T</mi> <mi>P</mi> <mi>R</mi> <mo>+</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mi>r</mi> </mfrac> </mrow> <mi>F</mi> <mi>P</mi> <mi>R</mi> </mrow> </mfrac> </mrow> <mo>.</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Precision}}={\frac {TP}{TP+FP}}={\frac {P\cdot TPR}{P\cdot TPR+N\cdot FPR}}={\frac {TPR}{TPR+{\frac {1}{r}}FPR}}.}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/2a6c7b7b356278b3c4b1ffef2aba5dc57bcb4f2b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:66.681ex; height:6.509ex;" alt="{\displaystyle {\text{Precision}}={\frac {TP}{TP+FP}}={\frac {P\cdot TPR}{P\cdot TPR+N\cdot FPR}}={\frac {TPR}{TPR+{\frac {1}{r}}FPR}}.}"></span> </p><p>Thus the precision has an explicit dependence on <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle r}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="false" scriptlevel="0"> <mi>r</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\textstyle r}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f2dfb06630b52c9e18fcc0a4688da10774206729" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.049ex; height:1.676ex;" alt="{\textstyle r}"></span>.<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup> Starting with balanced classes at <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle r=1}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="false" scriptlevel="0"> <mi>r</mi> <mo>=</mo> <mn>1</mn> </mstyle> </mrow> <annotation encoding="application/x-tex">{\textstyle r=1}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/df7ec5c211e5421110d2d05b930edd3dccaf3ed6" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.31ex; height:2.176ex;" alt="{\textstyle r=1}"></span> and gradually decreasing <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle r}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="false" scriptlevel="0"> <mi>r</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\textstyle r}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f2dfb06630b52c9e18fcc0a4688da10774206729" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.049ex; height:1.676ex;" alt="{\textstyle r}"></span>, the corresponding precision will decrease, because the denominator increases. </p><p>Another metric is the predicted positive condition rate (PPCR), which identifies the percentage of the total population that is flagged. For example, for a search engine that returns 30 results (retrieved documents) out of 1,000,000 documents, the PPCR is 0.003%. </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{Predicted positive condition rate}}={\frac {TP+FP}{TP+FP+TN+FN}}\,}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>Predicted positive condition rate</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mi>T</mi> <mi>P</mi> <mo>+</mo> <mi>F</mi> <mi>P</mi> </mrow> <mrow> <mi>T</mi> <mi>P</mi> <mo>+</mo> <mi>F</mi> <mi>P</mi> <mo>+</mo> <mi>T</mi> <mi>N</mi> <mo>+</mo> <mi>F</mi> <mi>N</mi> </mrow> </mfrac> </mrow> <mspace width="thinmathspace" /> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{Predicted positive condition rate}}={\frac {TP+FP}{TP+FP+TN+FN}}\,}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d7a7ffb0a3e6a146dcba376bb64fa311f9692fd3" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:59.959ex; height:5.343ex;" alt="{\displaystyle {\text{Predicted positive condition rate}}={\frac {TP+FP}{TP+FP+TN+FN}}\,}"></span> </p><p>According to Saito and Rehmsmeier, precision-recall plots are more informative than ROC plots when evaluating binary classifiers on imbalanced data. In such scenarios, ROC plots may be visually deceptive with respect to conclusions about the reliability of classification performance.<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> </p><p>Different from the above approaches, if an imbalance scaling is applied directly by weighting the confusion matrix elements, the standard metrics definitions still apply even in the case of imbalanced datasets.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> The weighting procedure relates the confusion matrix elements to the support set of each considered class. </p> <div class="mw-heading mw-heading2"><h2 id="F-measure">F-measure</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=7" title="Edit section: F-measure"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/F1_score" class="mw-redirect" title="F1 score">F1 score</a></div> <p>A measure that combines precision and recall is the <a href="/wiki/Harmonic_mean" title="Harmonic mean">harmonic mean</a> of precision and recall, the traditional F-measure or balanced F-score: </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F=2\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\mathrm {precision} +\mathrm {recall} }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>F</mi> <mo>=</mo> <mn>2</mn> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">p</mi> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">s</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">o</mi> <mi mathvariant="normal">n</mi> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">a</mi> <mi mathvariant="normal">l</mi> <mi mathvariant="normal">l</mi> </mrow> </mrow> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">p</mi> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">s</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">o</mi> <mi mathvariant="normal">n</mi> </mrow> <mo>+</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">a</mi> <mi mathvariant="normal">l</mi> <mi mathvariant="normal">l</mi> </mrow> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F=2\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\mathrm {precision} +\mathrm {recall} }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/dd577aee2dd35c5b0e349327528a5ac606c7bbbf" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:25.724ex; height:5.843ex;" alt="{\displaystyle F=2\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\mathrm {precision} +\mathrm {recall} }}}"></span> </p><p>This measure is approximately the average of the two when they are close, and is more generally the <a href="/wiki/Harmonic_mean" title="Harmonic mean">harmonic mean</a>, which, for the case of two numbers, coincides with the square of the <a href="/wiki/Geometric_mean" title="Geometric mean">geometric mean</a> divided by the <a href="/wiki/Arithmetic_mean" title="Arithmetic mean">arithmetic mean</a>. There are several reasons that the F-score can be criticized, in particular circumstances, due to its bias as an evaluation metric.<sup id="cite_ref-Powers2011_1-3" class="reference"><a href="#cite_note-Powers2011-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> This is also known as the <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{1}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>1</mn> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{1}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/100c7fbf174fe8b06eacc2a6b0bb2e1badd1c7ce" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.549ex; height:2.509ex;" alt="{\displaystyle F_{1}}"></span> measure, because recall and precision are evenly weighted. </p><p>It is a special case of the general <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{\beta }}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B2;<!-- β --></mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{\beta }}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/eb39f5958eb83bc3c28cd8b1a5397d3bb14fecdf" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:2.669ex; height:2.843ex;" alt="{\displaystyle F_{\beta }}"></span> measure (for non-negative real values of&#160;<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \beta }"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>&#x03B2;<!-- β --></mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \beta }</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/7ed48a5e36207156fb792fa79d29925d2f7901e8" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.332ex; height:2.509ex;" alt="{\displaystyle \beta }"></span>): </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{\beta }=(1+\beta ^{2})\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\beta ^{2}\cdot \mathrm {precision} +\mathrm {recall} }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B2;<!-- β --></mi> </mrow> </msub> <mo>=</mo> <mo stretchy="false">(</mo> <mn>1</mn> <mo>+</mo> <msup> <mi>&#x03B2;<!-- β --></mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> <mo stretchy="false">)</mo> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">p</mi> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">s</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">o</mi> <mi mathvariant="normal">n</mi> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">a</mi> <mi mathvariant="normal">l</mi> <mi mathvariant="normal">l</mi> </mrow> </mrow> <mrow> <msup> <mi>&#x03B2;<!-- β --></mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">p</mi> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">s</mi> <mi mathvariant="normal">i</mi> <mi mathvariant="normal">o</mi> <mi mathvariant="normal">n</mi> </mrow> <mo>+</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">r</mi> <mi mathvariant="normal">e</mi> <mi mathvariant="normal">c</mi> <mi mathvariant="normal">a</mi> <mi mathvariant="normal">l</mi> <mi mathvariant="normal">l</mi> </mrow> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{\beta }=(1+\beta ^{2})\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\beta ^{2}\cdot \mathrm {precision} +\mathrm {recall} }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/49d1ff4917ee4c464f6efbee08735b4a8694e8c0" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:37.763ex; height:6.009ex;" alt="{\displaystyle F_{\beta }=(1+\beta ^{2})\cdot {\frac {\mathrm {precision} \cdot \mathrm {recall} }{\beta ^{2}\cdot \mathrm {precision} +\mathrm {recall} }}}"></span> </p><p>Two other commonly used <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>F</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/545fd099af8541605f7ee55f08225526be88ce57" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.741ex; height:2.176ex;" alt="{\displaystyle F}"></span> measures are the <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{2}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{2}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/0fd17e0779153d765b40ebef91533489b87b2e37" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.549ex; height:2.509ex;" alt="{\displaystyle F_{2}}"></span> measure, which weights recall higher than precision, and the <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{0.5}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>0.5</mn> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{0.5}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f9709537931fdd8af9c100ef8fc9ef1caa0efcd7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:3.828ex; height:2.509ex;" alt="{\displaystyle F_{0.5}}"></span> measure, which puts more emphasis on precision than recall. </p><p>The F-measure was derived by van Rijsbergen (1979) so that <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{\beta }}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B2;<!-- β --></mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{\beta }}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/eb39f5958eb83bc3c28cd8b1a5397d3bb14fecdf" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:2.669ex; height:2.843ex;" alt="{\displaystyle F_{\beta }}"></span> "measures the effectiveness of retrieval with respect to a user who attaches <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \beta }"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>&#x03B2;<!-- β --></mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \beta }</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/7ed48a5e36207156fb792fa79d29925d2f7901e8" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.332ex; height:2.509ex;" alt="{\displaystyle \beta }"></span> times as much importance to recall as precision". It is based on van Rijsbergen's effectiveness measure <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle E_{\alpha }=1-{\frac {1}{{\frac {\alpha }{P}}+{\frac {1-\alpha }{R}}}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>E</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B1;<!-- α --></mi> </mrow> </msub> <mo>=</mo> <mn>1</mn> <mo>&#x2212;<!-- − --></mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mi>&#x03B1;<!-- α --></mi> <mi>P</mi> </mfrac> </mrow> <mo>+</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mn>1</mn> <mo>&#x2212;<!-- − --></mo> <mi>&#x03B1;<!-- α --></mi> </mrow> <mi>R</mi> </mfrac> </mrow> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle E_{\alpha }=1-{\frac {1}{{\frac {\alpha }{P}}+{\frac {1-\alpha }{R}}}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/123f907849440c9bb96f55e97548e0e1ae91295b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.671ex; width:19.836ex; height:7.009ex;" alt="{\displaystyle E_{\alpha }=1-{\frac {1}{{\frac {\alpha }{P}}+{\frac {1-\alpha }{R}}}}}"></span>, the second term being the weighted harmonic mean of precision and recall with weights <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (\alpha ,1-\alpha )}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo stretchy="false">(</mo> <mi>&#x03B1;<!-- α --></mi> <mo>,</mo> <mn>1</mn> <mo>&#x2212;<!-- − --></mo> <mi>&#x03B1;<!-- α --></mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle (\alpha ,1-\alpha )}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d467f7d2541240bcbff9eb2eaf46977d1f5e9c14" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.821ex; height:2.843ex;" alt="{\displaystyle (\alpha ,1-\alpha )}"></span>. Their relationship is <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F_{\beta }=1-E_{\alpha }}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>F</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B2;<!-- β --></mi> </mrow> </msub> <mo>=</mo> <mn>1</mn> <mo>&#x2212;<!-- − --></mo> <msub> <mi>E</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>&#x03B1;<!-- α --></mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle F_{\beta }=1-E_{\alpha }}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a714da3eb67b6d6c3fdc306b231dd00d0c41333b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:12.769ex; height:2.843ex;" alt="{\displaystyle F_{\beta }=1-E_{\alpha }}"></span> where <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \alpha ={\frac {1}{1+\beta ^{2}}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>&#x03B1;<!-- α --></mi> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>+</mo> <msup> <mi>&#x03B2;<!-- β --></mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> </mrow> </mfrac> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \alpha ={\frac {1}{1+\beta ^{2}}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/db630a6a3c5f1561bd101535d7cba0512de48b0f" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:11.816ex; height:5.843ex;" alt="{\displaystyle \alpha ={\frac {1}{1+\beta ^{2}}}}"></span>. </p> <div class="mw-heading mw-heading2"><h2 id="Limitations_as_goals">Limitations as goals</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=8" title="Edit section: Limitations as goals"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>There are other parameters and strategies for performance metric of information retrieval system, such as the area under the <a href="/wiki/ROC_curve" class="mw-redirect" title="ROC curve">ROC curve</a> (AUC)<sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> or <a href="/wiki/Pseudo-R-squared" title="Pseudo-R-squared">pseudo-R-squared</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Multi-class_evaluation">Multi-class evaluation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=9" title="Edit section: Multi-class evaluation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Precision and recall values can also be calculated for classification problems with more than two classes.<sup id="cite_ref-op24_27-0" class="reference"><a href="#cite_note-op24-27"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> To obtain the precision for a given class, we divide the number of true positives by the classifier bias towards this class (number of times that the classifier has predicted the class). To calculate the recall for a given class, we divide the number of true positives by the prevalence of this class (number of times that the class occurs in the data sample). </p><p>The class-wise precision and recall values can then be combined into an overall multi-class evaluation score, e.g., using the <a href="/wiki/F-score#Macro_F1" title="F-score">macro F1 metric</a>.<sup id="cite_ref-op24_27-1" class="reference"><a href="#cite_note-op24-27"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=10" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Uncertainty_coefficient" title="Uncertainty coefficient">Uncertainty coefficient</a>, also called <i>proficiency</i></li> <li><a href="/wiki/Sensitivity_and_specificity" title="Sensitivity and specificity">Sensitivity and specificity</a></li> <li><a href="/wiki/Confusion_matrix" title="Confusion matrix">Confusion matrix</a></li> <li><a href="/wiki/Scoring_rule" title="Scoring rule">Scoring rule</a></li> <li><a href="/wiki/Base_rate_fallacy" title="Base rate fallacy">Base rate fallacy</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=11" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-Powers2011-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-Powers2011_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Powers2011_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Powers2011_1-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Powers2011_1-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFPowers2011" class="citation journal cs1">Powers, David M W (2011). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20191114213255/https://www.flinders.edu.au/science_engineering/fms/School-CSEM/publications/tech_reps-research_artfcts/TRRA_2007.pdf">"Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness &amp; Correlation"</a> <span class="cs1-format">(PDF)</span>. <i>Journal of Machine Learning Technologies</i>. <b>2</b> (1): <span class="nowrap">37–</span>63. Archived from <a rel="nofollow" class="external text" href="http://www.flinders.edu.au/science_engineering/fms/School-CSEM/publications/tech_reps-research_artfcts/TRRA_2007.pdf">the original</a> <span class="cs1-format">(PDF)</span> on 2019-11-14.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Journal+of+Machine+Learning+Technologies&amp;rft.atitle=Evaluation%3A+From+Precision%2C+Recall+and+F-Measure+to+ROC%2C+Informedness%2C+Markedness+%26+Correlation&amp;rft.volume=2&amp;rft.issue=1&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E37-%3C%2Fspan%3E63&amp;rft.date=2011&amp;rft.aulast=Powers&amp;rft.aufirst=David+M+W&amp;rft_id=http%3A%2F%2Fwww.flinders.edu.au%2Fscience_engineering%2Ffms%2FSchool-CSEM%2Fpublications%2Ftech_reps-research_artfcts%2FTRRA_2007.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPerruchetPeereman2004" class="citation journal cs1">Perruchet, P.; Peereman, R. (2004). "The exploitation of distributional information in syllable processing". <i>J. Neurolinguistics</i>. <b>17</b> (<span class="nowrap">2–</span>3): <span class="nowrap">97–</span>119. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fs0911-6044%2803%2900059-9">10.1016/s0911-6044(03)00059-9</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:17104364">17104364</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=J.+Neurolinguistics&amp;rft.atitle=The+exploitation+of+distributional+information+in+syllable+processing&amp;rft.volume=17&amp;rft.issue=%3Cspan+class%3D%22nowrap%22%3E2%E2%80%93%3C%2Fspan%3E3&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E97-%3C%2Fspan%3E119&amp;rft.date=2004&amp;rft_id=info%3Adoi%2F10.1016%2Fs0911-6044%2803%2900059-9&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A17104364%23id-name%3DS2CID&amp;rft.aulast=Perruchet&amp;rft.aufirst=P.&amp;rft.au=Peereman%2C+R.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPowers2012" class="citation conference cs1">Powers, David M. W. (2012). <a rel="nofollow" class="external text" href="https://www.aclweb.org/anthology/E12-1035">"The Problem with Kappa"</a>. <i>Conference of the European Chapter of the Association for Computational Linguistics (EACL2012) Joint ROBUS-UNSUP Workshop</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=conference&amp;rft.atitle=The+Problem+with+Kappa&amp;rft.btitle=Conference+of+the+European+Chapter+of+the+Association+for+Computational+Linguistics+%28EACL2012%29+Joint+ROBUS-UNSUP+Workshop&amp;rft.date=2012&amp;rft.aulast=Powers&amp;rft.aufirst=David+M.+W.&amp;rft_id=https%3A%2F%2Fwww.aclweb.org%2Fanthology%2FE12-1035&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFawcett2006" class="citation journal cs1">Fawcett, Tom (2006). <a rel="nofollow" class="external text" href="http://people.inf.elte.hu/kiss/11dwhdm/roc.pdf">"An Introduction to ROC Analysis"</a> <span class="cs1-format">(PDF)</span>. <i>Pattern Recognition Letters</i>. <b>27</b> (8): <span class="nowrap">861–</span>874. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.patrec.2005.10.010">10.1016/j.patrec.2005.10.010</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:2027090">2027090</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Pattern+Recognition+Letters&amp;rft.atitle=An+Introduction+to+ROC+Analysis&amp;rft.volume=27&amp;rft.issue=8&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E861-%3C%2Fspan%3E874&amp;rft.date=2006&amp;rft_id=info%3Adoi%2F10.1016%2Fj.patrec.2005.10.010&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A2027090%23id-name%3DS2CID&amp;rft.aulast=Fawcett&amp;rft.aufirst=Tom&amp;rft_id=http%3A%2F%2Fpeople.inf.elte.hu%2Fkiss%2F11dwhdm%2Froc.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFProvostTom_Fawcett2013" class="citation web cs1">Provost, Foster; Tom Fawcett (2013-08-01). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/256438799">"Data Science for Business: What You Need to Know about Data Mining and Data-Analytic Thinking"</a>. <i>O'Reilly Media, Inc</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=O%27Reilly+Media%2C+Inc.&amp;rft.atitle=Data+Science+for+Business%3A+What+You+Need+to+Know+about+Data+Mining+and+Data-Analytic+Thinking.&amp;rft.date=2013-08-01&amp;rft.aulast=Provost&amp;rft.aufirst=Foster&amp;rft.au=Tom+Fawcett&amp;rft_id=https%3A%2F%2Fwww.researchgate.net%2Fpublication%2F256438799&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPowers2011" class="citation journal cs1">Powers, David M. W. (2011). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/228529307">"Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness &amp; Correlation"</a>. <i>Journal of Machine Learning Technologies</i>. <b>2</b> (1): <span class="nowrap">37–</span>63.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Journal+of+Machine+Learning+Technologies&amp;rft.atitle=Evaluation%3A+From+Precision%2C+Recall+and+F-Measure+to+ROC%2C+Informedness%2C+Markedness+%26+Correlation&amp;rft.volume=2&amp;rft.issue=1&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E37-%3C%2Fspan%3E63&amp;rft.date=2011&amp;rft.aulast=Powers&amp;rft.aufirst=David+M.+W.&amp;rft_id=https%3A%2F%2Fwww.researchgate.net%2Fpublication%2F228529307&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTing2011" class="citation book cs1">Ting, Kai Ming (2011). Sammut, Claude; Webb, Geoffrey I. (eds.). <i>Encyclopedia of machine learning</i>. Springer. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2F978-0-387-30164-8">10.1007/978-0-387-30164-8</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-387-30164-8" title="Special:BookSources/978-0-387-30164-8"><bdi>978-0-387-30164-8</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Encyclopedia+of+machine+learning&amp;rft.pub=Springer&amp;rft.date=2011&amp;rft_id=info%3Adoi%2F10.1007%2F978-0-387-30164-8&amp;rft.isbn=978-0-387-30164-8&amp;rft.aulast=Ting&amp;rft.aufirst=Kai+Ming&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBrooksBrownEbertFerro2015" class="citation web cs1">Brooks, Harold; Brown, Barb; Ebert, Beth; Ferro, Chris; Jolliffe, Ian; Koh, Tieh-Yong; Roebber, Paul; Stephenson, David (2015-01-26). <a rel="nofollow" class="external text" href="https://www.cawcr.gov.au/projects/verification/">"WWRP/WGNE Joint Working Group on Forecast Verification Research"</a>. <i>Collaboration for Australian Weather and Climate Research</i>. World Meteorological Organisation<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-07-17</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Collaboration+for+Australian+Weather+and+Climate+Research&amp;rft.atitle=WWRP%2FWGNE+Joint+Working+Group+on+Forecast+Verification+Research&amp;rft.date=2015-01-26&amp;rft.aulast=Brooks&amp;rft.aufirst=Harold&amp;rft.au=Brown%2C+Barb&amp;rft.au=Ebert%2C+Beth&amp;rft.au=Ferro%2C+Chris&amp;rft.au=Jolliffe%2C+Ian&amp;rft.au=Koh%2C+Tieh-Yong&amp;rft.au=Roebber%2C+Paul&amp;rft.au=Stephenson%2C+David&amp;rft_id=https%3A%2F%2Fwww.cawcr.gov.au%2Fprojects%2Fverification%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFChiccoJurman2020" class="citation journal cs1">Chicco D, Jurman G (January 2020). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6941312">"The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation"</a>. <i>BMC Genomics</i>. <b>21</b> (1): 6-1–6-13. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1186%2Fs12864-019-6413-7">10.1186/s12864-019-6413-7</a></span>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a>&#160;<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6941312">6941312</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a>&#160;<a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/31898477">31898477</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=BMC+Genomics&amp;rft.atitle=The+advantages+of+the+Matthews+correlation+coefficient+%28MCC%29+over+F1+score+and+accuracy+in+binary+classification+evaluation&amp;rft.volume=21&amp;rft.issue=1&amp;rft.pages=6-1-6-13&amp;rft.date=2020-01&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC6941312%23id-name%3DPMC&amp;rft_id=info%3Apmid%2F31898477&amp;rft_id=info%3Adoi%2F10.1186%2Fs12864-019-6413-7&amp;rft.aulast=Chicco&amp;rft.aufirst=D&amp;rft.au=Jurman%2C+G&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC6941312&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFChiccoToetschJurman2021" class="citation journal cs1">Chicco D, Toetsch N, Jurman G (February 2021). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7863449">"The Matthews correlation coefficient (MCC) is more reliable than balanced accuracy, bookmaker informedness, and markedness in two-class confusion matrix evaluation"</a>. <i>BioData Mining</i>. <b>14</b> (13): 13. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1186%2Fs13040-021-00244-z">10.1186/s13040-021-00244-z</a></span>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a>&#160;<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7863449">7863449</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a>&#160;<a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/33541410">33541410</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=BioData+Mining&amp;rft.atitle=The+Matthews+correlation+coefficient+%28MCC%29+is+more+reliable+than+balanced+accuracy%2C+bookmaker+informedness%2C+and+markedness+in+two-class+confusion+matrix+evaluation&amp;rft.volume=14&amp;rft.issue=13&amp;rft.pages=13&amp;rft.date=2021-02&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC7863449%23id-name%3DPMC&amp;rft_id=info%3Apmid%2F33541410&amp;rft_id=info%3Adoi%2F10.1186%2Fs13040-021-00244-z&amp;rft.aulast=Chicco&amp;rft.aufirst=D&amp;rft.au=Toetsch%2C+N&amp;rft.au=Jurman%2C+G&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC7863449&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTharwat_A.2018" class="citation journal cs1">Tharwat A. (August 2018). <a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.aci.2018.08.003">"Classification assessment methods"</a>. <i>Applied Computing and Informatics</i>. <b>17</b>: <span class="nowrap">168–</span>192. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.aci.2018.08.003">10.1016/j.aci.2018.08.003</a></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Applied+Computing+and+Informatics&amp;rft.atitle=Classification+assessment+methods&amp;rft.volume=17&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E168-%3C%2Fspan%3E192&amp;rft.date=2018-08&amp;rft_id=info%3Adoi%2F10.1016%2Fj.aci.2018.08.003&amp;rft.au=Tharwat+A.&amp;rft_id=https%3A%2F%2Fdoi.org%2F10.1016%252Fj.aci.2018.08.003&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-OlsonDelen-18"><span class="mw-cite-backlink">^ <a href="#cite_ref-OlsonDelen_18-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-OlsonDelen_18-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Olson, David L.; and Delen, Dursun (2008); <i>Advanced Data Mining Techniques</i>, Springer, 1st edition (February 1, 2008), page 138, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/3-540-76916-1" title="Special:BookSources/3-540-76916-1">3-540-76916-1</a></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.v7labs.com/blog/precision-vs-recall-guide#accuracy-precision-or-recallwhen-to-use-what">"Precision vs. Recall: Differences, Use Cases &amp; Evaluation"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Precision+vs.+Recall%3A+Differences%2C+Use+Cases+%26+Evaluation&amp;rft_id=https%3A%2F%2Fwww.v7labs.com%2Fblog%2Fprecision-vs-recall-guide%23accuracy-precision-or-recallwhen-to-use-what&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text">Fatih Cakir, Kun He, Xide Xia, Brian Kulis, Stan Sclaroff, <a rel="nofollow" class="external text" href="http://cs-people.bu.edu/fcakir/papers/fastap_cvpr2019.pdf"><i>Deep Metric Learning to Rank</i></a>, In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.</span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRoelleke2022" class="citation book cs1">Roelleke, Thomas (2022-05-31). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=YX9yEAAAQBAJ&amp;pg=PA76"><i>Information Retrieval Models: Foundations &amp; Relationships</i></a>. Springer Nature. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-3-031-02328-6" title="Special:BookSources/978-3-031-02328-6"><bdi>978-3-031-02328-6</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Information+Retrieval+Models%3A+Foundations+%26+Relationships&amp;rft.pub=Springer+Nature&amp;rft.date=2022-05-31&amp;rft.isbn=978-3-031-02328-6&amp;rft.aulast=Roelleke&amp;rft.aufirst=Thomas&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DYX9yEAAAQBAJ%26pg%3DPA76&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMower2005" class="citation journal cs1">Mower, Jeffrey P. (2005-04-12). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1087475">"PREP-Mt: predictive RNA editor for plant mitochondrial genes"</a>. <i>BMC Bioinformatics</i>. <b>6</b>: 96. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1186%2F1471-2105-6-96">10.1186/1471-2105-6-96</a></span>. <a href="/wiki/ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&#160;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/1471-2105">1471-2105</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a>&#160;<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1087475">1087475</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a>&#160;<a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/15826309">15826309</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=BMC+Bioinformatics&amp;rft.atitle=PREP-Mt%3A+predictive+RNA+editor+for+plant+mitochondrial+genes&amp;rft.volume=6&amp;rft.pages=96&amp;rft.date=2005-04-12&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC1087475%23id-name%3DPMC&amp;rft.issn=1471-2105&amp;rft_id=info%3Apmid%2F15826309&amp;rft_id=info%3Adoi%2F10.1186%2F1471-2105-6-96&amp;rft.aulast=Mower&amp;rft.aufirst=Jeffrey+P.&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC1087475&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFWilliams2021" class="citation journal cs1">Williams, Christopher K. I. (2021-04-01). <a rel="nofollow" class="external text" href="https://doi.org/10.1162/neco_a_01362">"The Effect of Class Imbalance on Precision-Recall Curves"</a>. <i>Neural Computation</i>. <b>33</b> (4): <span class="nowrap">853–</span>857. <a href="/wiki/ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/2007.01905">2007.01905</a></span>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1162%2Fneco_a_01362">10.1162/neco_a_01362</a>. <a href="/wiki/Hdl_(identifier)" class="mw-redirect" title="Hdl (identifier)">hdl</a>:<a rel="nofollow" class="external text" href="https://hdl.handle.net/20.500.11820%2F8a709831-cbfe-4c8e-a65b-aee5429e5b9b">20.500.11820/8a709831-cbfe-4c8e-a65b-aee5429e5b9b</a>. <a href="/wiki/ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&#160;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0899-7667">0899-7667</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Neural+Computation&amp;rft.atitle=The+Effect+of+Class+Imbalance+on+Precision-Recall+Curves&amp;rft.volume=33&amp;rft.issue=4&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E853-%3C%2Fspan%3E857&amp;rft.date=2021-04-01&amp;rft_id=info%3Aarxiv%2F2007.01905&amp;rft.issn=0899-7667&amp;rft_id=info%3Ahdl%2F20.500.11820%2F8a709831-cbfe-4c8e-a65b-aee5429e5b9b&amp;rft_id=info%3Adoi%2F10.1162%2Fneco_a_01362&amp;rft.aulast=Williams&amp;rft.aufirst=Christopher+K.+I.&amp;rft_id=https%3A%2F%2Fdoi.org%2F10.1162%2Fneco_a_01362&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSaitoRehmsmeier2015" class="citation journal cs1">Saito, Takaya; Rehmsmeier, Marc (2015-03-04). Brock, Guy (ed.). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4349800">"The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets"</a>. <i>PLOS ONE</i>. <b>10</b> (3): e0118432. <a href="/wiki/Bibcode_(identifier)" class="mw-redirect" title="Bibcode (identifier)">Bibcode</a>:<a rel="nofollow" class="external text" href="https://ui.adsabs.harvard.edu/abs/2015PLoSO..1018432S">2015PLoSO..1018432S</a>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1371%2Fjournal.pone.0118432">10.1371/journal.pone.0118432</a></span>. <a href="/wiki/ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&#160;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/1932-6203">1932-6203</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a>&#160;<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4349800">4349800</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a>&#160;<a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/25738806">25738806</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=PLOS+ONE&amp;rft.atitle=The+Precision-Recall+Plot+Is+More+Informative+than+the+ROC+Plot+When+Evaluating+Binary+Classifiers+on+Imbalanced+Datasets&amp;rft.volume=10&amp;rft.issue=3&amp;rft.pages=e0118432&amp;rft.date=2015-03-04&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC4349800%23id-name%3DPMC&amp;rft_id=info%3Abibcode%2F2015PLoSO..1018432S&amp;rft_id=info%3Apmid%2F25738806&amp;rft_id=info%3Adoi%2F10.1371%2Fjournal.pone.0118432&amp;rft.issn=1932-6203&amp;rft.aulast=Saito&amp;rft.aufirst=Takaya&amp;rft.au=Rehmsmeier%2C+Marc&amp;rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC4349800&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSuzanne_Ekelund2017" class="citation web cs1">Suzanne Ekelund (March 2017). <a rel="nofollow" class="external text" href="https://acutecaretesting.org/en/articles/precision-recall-curves-what-are-they-and-how-are-they-used">"Precision-recall curves – what are they and how are they used?"</a>. <i>Acute Care Testing</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Acute+Care+Testing&amp;rft.atitle=Precision-recall+curves+%E2%80%93+what+are+they+and+how+are+they+used%3F&amp;rft.date=2017-03&amp;rft.au=Suzanne+Ekelund&amp;rft_id=https%3A%2F%2Facutecaretesting.org%2Fen%2Farticles%2Fprecision-recall-curves-what-are-they-and-how-are-they-used&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></li></ul> </span></li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTripicchioCamacho-GonzalezD&#39;Avella2020" class="citation journal cs1">Tripicchio, Paolo; Camacho-Gonzalez, Gerardo; D'Avella, Salvatore (2020). <a rel="nofollow" class="external text" href="https://link.springer.com/article/10.1007/s00170-020-06146-4">"Welding defect detection: coping with artifacts in the production line"</a>. <i>The International Journal of Advanced Manufacturing Technology</i>. <b>111</b> (5): <span class="nowrap">1659–</span>1669. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2Fs00170-020-06146-4">10.1007/s00170-020-06146-4</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:225136860">225136860</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=The+International+Journal+of+Advanced+Manufacturing+Technology&amp;rft.atitle=Welding+defect+detection%3A+coping+with+artifacts+in+the+production+line&amp;rft.volume=111&amp;rft.issue=5&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E1659-%3C%2Fspan%3E1669&amp;rft.date=2020&amp;rft_id=info%3Adoi%2F10.1007%2Fs00170-020-06146-4&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A225136860%23id-name%3DS2CID&amp;rft.aulast=Tripicchio&amp;rft.aufirst=Paolo&amp;rft.au=Camacho-Gonzalez%2C+Gerardo&amp;rft.au=D%27Avella%2C+Salvatore&amp;rft_id=https%3A%2F%2Flink.springer.com%2Farticle%2F10.1007%2Fs00170-020-06146-4&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text">Zygmunt Zając. What you wanted to know about AUC. <a rel="nofollow" class="external free" href="http://fastml.com/what-you-wanted-to-know-about-auc/">http://fastml.com/what-you-wanted-to-know-about-auc/</a></span> </li> <li id="cite_note-op24-27"><span class="mw-cite-backlink">^ <a href="#cite_ref-op24_27-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-op24_27-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFOpitz2024" class="citation journal cs1">Opitz, Juri (2024). <a rel="nofollow" class="external text" href="https://doi.org/10.1162/tacl_a_00675">"A Closer Look at Classification Evaluation Metrics and a Critical Reflection of Common Evaluation Practice"</a>. <i>Transactions of the Association for Computational Linguistics</i>. <b>12</b>: <span class="nowrap">820–</span>836. <a href="/wiki/ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/2404.16958">2404.16958</a></span>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1162%2Ftacl_a_00675">10.1162/tacl_a_00675</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Transactions+of+the+Association+for+Computational+Linguistics&amp;rft.atitle=A+Closer+Look+at+Classification+Evaluation+Metrics+and+a+Critical+Reflection+of+Common+Evaluation+Practice&amp;rft.volume=12&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E820-%3C%2Fspan%3E836&amp;rft.date=2024&amp;rft_id=info%3Aarxiv%2F2404.16958&amp;rft_id=info%3Adoi%2F10.1162%2Ftacl_a_00675&amp;rft.aulast=Opitz&amp;rft.aufirst=Juri&amp;rft_id=https%3A%2F%2Fdoi.org%2F10.1162%2Ftacl_a_00675&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APrecision+and+recall" class="Z3988"></span></span> </li> </ol></div></div> <style data-mw-deduplicate="TemplateStyles:r1239549316">.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}@media screen{.mw-parser-output .refbegin{font-size:90%}}</style><div class="refbegin" style=""> <ul><li>Baeza-Yates, Ricardo; Ribeiro-Neto, Berthier (1999). <i>Modern Information Retrieval</i>. New York, NY: ACM Press, Addison-Wesley, Seiten 75 ff. <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/0-201-39829-X" title="Special:BookSources/0-201-39829-X">0-201-39829-X</a></li> <li>Hjørland, Birger (2010); <i>The foundation of the concept of relevance</i>, Journal of the American Society for Information Science and Technology, 61(2), 217-237</li> <li><a href="/wiki/John_Makhoul" title="John Makhoul">Makhoul, John</a>; Kubala, Francis; Schwartz, Richard; and Weischedel, Ralph (1999); <a rel="nofollow" class="external text" href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.27.4637"><i>Performance measures for information extraction</i></a>, in <i>Proceedings of DARPA Broadcast News Workshop, Herndon, VA, February 1999</i></li> <li>van Rijsbergen, Cornelis Joost "Keith" (1979); <i>Information Retrieval</i>, London, GB; Boston, MA: Butterworth, 2nd Edition, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/0-408-70929-4" title="Special:BookSources/0-408-70929-4">0-408-70929-4</a></li></ul> </div> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Precision_and_recall&amp;action=edit&amp;section=12" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="http://www.dcs.gla.ac.uk/Keith/Preface.html">Information Retrieval – C. J. van Rijsbergen 1979</a></li> <li><a rel="nofollow" class="external text" href="http://www.text-analytics101.com/2014/10/computing-precision-and-recall-for.html">Computing Precision and Recall for a Multi-class Classification Problem</a></li></ul> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Machine_learning_evaluation_metrics329" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Machine_learning_evaluation_metrics" title="Template:Machine learning evaluation metrics"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Machine_learning_evaluation_metrics" title="Template talk:Machine learning evaluation metrics"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Machine_learning_evaluation_metrics" title="Special:EditPage/Template:Machine learning evaluation metrics"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Machine_learning_evaluation_metrics329" style="font-size:114%;margin:0 4em"><a href="/wiki/Machine_learning" title="Machine learning">Machine learning</a> evaluation metrics</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Regression_analysis" title="Regression analysis">Regression</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Mean_squared_error" title="Mean squared error">MSE</a></li> <li><a href="/wiki/Mean_absolute_error" title="Mean absolute error">MAE</a></li> <li><a href="/wiki/Symmetric_mean_absolute_percentage_error" title="Symmetric mean absolute percentage error">sMAPE</a></li> <li><a href="/wiki/Mean_absolute_percentage_error" title="Mean absolute percentage error">MAPE</a></li> <li><a href="/wiki/Mean_absolute_scaled_error" title="Mean absolute scaled error">MASE</a></li> <li><a href="/wiki/Mean_squared_prediction_error" title="Mean squared prediction error">MSPE</a></li> <li><a href="/wiki/Root_mean_square" title="Root mean square">RMS</a></li> <li><a href="/wiki/Root-mean-square_deviation" class="mw-redirect" title="Root-mean-square deviation">RMSE/RMSD</a></li> <li><a href="/wiki/Coefficient_of_determination" title="Coefficient of determination">R<sup>2</sup></a></li> <li><a href="/wiki/Mean_directional_accuracy" title="Mean directional accuracy">MDA</a></li> <li><a href="/wiki/Median_absolute_deviation" title="Median absolute deviation">MAD</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Statistical_classification" title="Statistical classification">Classification</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/F-score" title="F-score">F-score</a></li> <li><a href="/wiki/P4-metric" title="P4-metric">P4</a></li> <li><a href="/wiki/Accuracy_and_precision" title="Accuracy and precision">Accuracy</a></li> <li><a class="mw-selflink selflink">Precision</a></li> <li><a class="mw-selflink selflink">Recall</a></li> <li><a href="/wiki/Cohen%27s_kappa" title="Cohen&#39;s kappa">Kappa</a></li> <li><a href="/wiki/Phi_coefficient" title="Phi coefficient">MCC</a></li> <li><a href="/wiki/Receiver_operating_characteristic#Area_under_the_curve" title="Receiver operating characteristic">AUC</a></li> <li><a href="/wiki/Receiver_operating_characteristic" title="Receiver operating characteristic">ROC</a></li> <li><a href="/wiki/Sensitivity_and_specificity" title="Sensitivity and specificity">Sensitivity and specificity</a></li> <li><a href="/wiki/Cross-entropy#Cross-entropy_loss_function_and_logistic_regression" title="Cross-entropy">Logarithmic Loss</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Cluster_analysis" title="Cluster analysis">Clustering</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Silhouette_(clustering)" title="Silhouette (clustering)">Silhouette</a></li> <li><a href="/wiki/Calinski-Harabasz_index" class="mw-redirect" title="Calinski-Harabasz index">Calinski-Harabasz index</a></li> <li><a href="/wiki/Davies%E2%80%93Bouldin_index" title="Davies–Bouldin index">Davies-Bouldin</a></li> <li><a href="/wiki/Dunn_index" title="Dunn index">Dunn index</a></li> <li><a href="/wiki/Hopkins_statistic" title="Hopkins statistic">Hopkins statistic</a></li> <li><a href="/wiki/Jaccard_index" title="Jaccard index">Jaccard index</a></li> <li><a href="/wiki/Rand_index" title="Rand index">Rand index</a></li> <li><a href="/wiki/Similarity_measure" title="Similarity measure">Similarity measure</a></li> <li><a href="/wiki/Simple_matching_coefficient" title="Simple matching coefficient">SMC</a></li> <li><a href="/wiki/SimHash" title="SimHash">SimHash</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Ranking_(information_retrieval)" title="Ranking (information retrieval)">Ranking</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Mean_reciprocal_rank" title="Mean reciprocal rank">MRR</a></li> <li><a href="/wiki/NDCG" class="mw-redirect" title="NDCG">NDCG</a></li> <li><a href="/wiki/Average_precision" class="mw-redirect" title="Average precision">AP</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Computer_Vision" class="mw-redirect" title="Computer Vision">Computer Vision</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/PSNR" class="mw-redirect" title="PSNR">PSNR</a></li> <li><a href="/wiki/SSIM" class="mw-redirect" title="SSIM">SSIM</a></li> <li><a href="/wiki/Intersection_over_union" class="mw-redirect" title="Intersection over union">IoU</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Natural_language_processing" title="Natural language processing">NLP</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Perplexity" title="Perplexity">Perplexity</a></li> <li><a href="/wiki/BLEU" title="BLEU">BLEU</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Deep Learning Related Metrics</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Inception_score" title="Inception score">Inception score</a></li> <li><a href="/wiki/Fr%C3%A9chet_inception_distance" title="Fréchet inception distance">FID</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Recommender_system" title="Recommender system">Recommender system</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Coverage_probability" title="Coverage probability">Coverage</a></li> <li><a href="/w/index.php?title=Intra-list_Similarity&amp;action=edit&amp;redlink=1" class="new" title="Intra-list Similarity (page does not exist)">Intra-list Similarity</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Similarity</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Cosine_similarity" title="Cosine similarity">Cosine similarity</a></li> <li><a href="/wiki/Euclidean_distance" title="Euclidean distance">Euclidean distance</a></li> <li><a href="/wiki/Pearson_correlation_coefficient" title="Pearson correlation coefficient">Pearson correlation coefficient</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow hlist" colspan="2"><div> <ul><li><a href="/wiki/Confusion_matrix" title="Confusion matrix">Confusion matrix</a></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐84b999ff94‐nwhqq Cached time: 20250204092649 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.583 seconds Real time usage: 0.800 seconds Preprocessor visited node count: 4625/1000000 Post‐expand include size: 94067/2097152 bytes Template argument size: 9378/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 2/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 112820/5000000 bytes Lua time usage: 0.305/10.000 seconds Lua memory usage: 5794380/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 568.500 1 -total 41.77% 237.447 2 Template:Reflist 31.54% 179.305 1 Template:Diagnostic_testing_diagram 25.27% 143.647 12 Template:Cite_journal 13.29% 75.546 1 Template:Short_description 11.68% 66.406 32 Template:Math 9.25% 52.577 1 Template:Navbar 8.02% 45.582 2 Template:Pagetype 6.63% 37.718 1 Template:Machine_learning_evaluation_metrics 5.93% 33.699 1 Template:Navbox --> <!-- Saved in parser cache with key enwiki:pcache:14343887:|#|:idhash:canonical and timestamp 20250204092649 and revision id 1268160106. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&amp;type=1x1&amp;usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Precision_and_recall&amp;oldid=1268160106">https://en.wikipedia.org/w/index.php?title=Precision_and_recall&amp;oldid=1268160106</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Information_retrieval_evaluation" title="Category:Information retrieval evaluation">Information retrieval evaluation</a></li><li><a href="/wiki/Category:Information_science" title="Category:Information science">Information science</a></li><li><a href="/wiki/Category:Bioinformatics" title="Category:Bioinformatics">Bioinformatics</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 8 January 2025, at 11:30<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Precision_and_recall&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" lang="en" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">Precision and recall</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>16 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-6b9576b97f-5tnkz","wgBackendResponseTime":151,"wgPageParseReport":{"limitreport":{"cputime":"0.583","walltime":"0.800","ppvisitednodes":{"value":4625,"limit":1000000},"postexpandincludesize":{"value":94067,"limit":2097152},"templateargumentsize":{"value":9378,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":2,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":112820,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 568.500 1 -total"," 41.77% 237.447 2 Template:Reflist"," 31.54% 179.305 1 Template:Diagnostic_testing_diagram"," 25.27% 143.647 12 Template:Cite_journal"," 13.29% 75.546 1 Template:Short_description"," 11.68% 66.406 32 Template:Math"," 9.25% 52.577 1 Template:Navbar"," 8.02% 45.582 2 Template:Pagetype"," 6.63% 37.718 1 Template:Machine_learning_evaluation_metrics"," 5.93% 33.699 1 Template:Navbox"]},"scribunto":{"limitreport-timeusage":{"value":"0.305","limit":"10.000"},"limitreport-memusage":{"value":5794380,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-84b999ff94-nwhqq","timestamp":"20250204092649","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Precision and recall","url":"https:\/\/en.wikipedia.org\/wiki\/Precision_and_recall","sameAs":"http:\/\/www.wikidata.org\/entity\/Q2359161","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q2359161","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2007-11-21T09:25:49Z","dateModified":"2025-01-08T11:30:33Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/2\/26\/Precisionrecall.svg"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10