Movatterモバイル変換


[0]ホーム

URL:


Wikipedia

Binary classification

This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Binary classification" – news ·newspapers ·books ·scholar ·JSTOR
(May 2011) (Learn how and when to remove this message)

Binary classification is the task ofclassifying the elements of aset into one of two groups (each calledclass). Typical binary classification problems include:

When measuring the accuracy of a binary classifier, the simplest way is to count the errors. But in the real world often one of the two classes is more important, so that the number of both of the differenttypes of errors is of interest. For example, in medical testing, detecting a disease when it is not present (afalse positive) is considered differently from not detecting a disease when it is present (afalse negative).

In this set of tested instances, the instances left of the divider have the condition being tested; the right half do not. The oval bounds those instances that a test algorithm classifies as having the condition. The green areas highlight the instances that the test algorithm correctly classified. Labels refer to:
TP=true positive; TN=true negative; FP=false positive (type I error); FN=false negative (type II error); TPR=set of instances to determine true positive rate; FPR=set of instances to determine false positive rate; PPV=positive predictive value; NPV=negative predictive value.

Four outcomes

edit

Given a classification of a specific data set, there are four basic combinations of actual data category and assigned category:true positives TP (correct positive assignments),true negatives TN (correct negative assignments),false positives FP (incorrect positive assignments), andfalse negatives FN (incorrect negative assignments).

Assigned
Actual
Test outcomepositiveTest outcomenegative
Condition positiveTruepositiveFalsenegative
Condition negativeFalsepositiveTruenegative

These can be arranged into a 2×2contingency table, with rows corresponding to actual value – condition positive or condition negative – and columns corresponding to classification value – test outcome positive or test outcome negative.

Evaluation

edit

From tallies of the four basic outcomes, there are many approaches that can be used to measure the accuracy of a classifier or predictor. Different fields have different preferences.

The eight basic ratios

edit

A common approach to evaluation is to begin by computing two ratios of a standard pattern. There are eight basic ratios of this form that one can compute from the contingency table, which come in four complementary pairs (each pair summing to 1). These are obtained by dividing each of the four numbers by the sum of its row or column, yielding eight numbers, which can be referred to generically in the form "true positive row ratio" or "false negative column ratio".

There are thus two pairs of column ratios and two pairs of row ratios, and one can summarize these with four numbers by choosing one ratio from each pair – the other four numbers are the complements.

The row ratios are:

The column ratios are:

In diagnostic testing, the main ratios used are the true column ratios – true positive rate and true negative rate – where they are known assensitivity and specificity. In informational retrieval, the main ratios are the true positive ratios (row and column) – positive predictive value and true positive rate – where they are known asprecision and recall.

Cullerne Bown has suggested a flow chart for determining which pair of indicators should be used when.[1] Otherwise, there is no general rule for deciding. There is also no general agreement on how the pair of indicators should be used to decide on concrete questions, such as when to prefer one classifier over another.

One can take ratios of a complementary pair of ratios, yielding fourlikelihood ratios (two column ratio of ratios, two row ratio of ratios). This is primarily done for the column (condition) ratios, yieldinglikelihood ratios in diagnostic testing. Taking the ratio of one of these groups of ratios yields a final ratio, thediagnostic odds ratio (DOR). This can also be defined directly as (TP×TN)/(FP×FN) = (TP/FN)/(FP/TN); this has a useful interpretation – as anodds ratio – and is prevalence-independent.

Other metrics

edit

There are a number of other metrics, most simply theaccuracy or Fraction Correct (FC), which measures the fraction of all instances that are correctly categorized; the complement is the Fraction Incorrect (FiC). TheF-score combines precision and recall into one number via a choice of weighing, most simply equal weighing, as the balanced F-score (F1 score). Some metrics come fromregression coefficients: themarkedness and theinformedness, and theirgeometric mean, theMatthews correlation coefficient. Other metrics includeYouden's J statistic, theuncertainty coefficient, thephi coefficient, andCohen's kappa.

Statistical binary classification

edit

Statistical classification is a problem studied inmachine learning in which the classification is performed on the basis of aclassification rule. It is a type ofsupervised learning, a method of machine learning where the categories are predefined, and is used to categorize new probabilistic observations into said categories. When there are only two categories the problem is known as statistical binary classification.

Some of the methods commonly used for binary classification are:

Each classifier is best in only a select domain based upon the number of observations, the dimensionality of thefeature vector, the noise in the data and many other factors. For example,random forests perform better thanSVM classifiers for 3D point clouds.[2][3]

Converting continuous values to binary

edit

Binary classification may be a form ofdichotomization in which a continuous function is transformed into a binary variable. Tests whose results are of continuous values, such as mostblood values, can artificially be made binary by defining acutoff value, with test results being designated aspositive or negative depending on whether the resultant value is higher or lower than the cutoff.

However, such conversion causes a loss of information, as the resultant binary classification does not tellhow much above or below the cutoff a value is. As a result, when converting a continuous value that is close to the cutoff to a binary one, the resultantpositive ornegative predictive value is generally higher than thepredictive value given directly from the continuous value. In such cases, the designation of the test of being either positive or negative gives the appearance of an inappropriately high certainty, while the value is in fact in an interval of uncertainty. For example, with the urine concentration ofhCG as a continuous value, a urinepregnancy test that measured 52 mIU/ml of hCG may show as "positive" with 50 mIU/ml as cutoff, but is in fact in an interval of uncertainty, which may be apparent only by knowing the original continuous value. On the other hand, a test result very far from the cutoff generally has a resultant positive or negative predictive value that is lower than the predictive value given from the continuous value. For example, a urine hCG value of 200,000 mIU/ml confers a very high probability of pregnancy, but conversion to binary values results in that it shows just as "positive" as the one of 52 mIU/ml.

See also

edit

References

edit
  1. ^William Cullerne Bown (2024)."Sensitivity and Specificity versus Precision and Recall, and Related Dilemmas".Journal of Classification.41 (2):402–426.doi:10.1007/s00357-024-09478-y.
  2. ^Zhang & Zakhor, Richard & Avideh (2014). "Automatic Identification of Window Regions on Indoor Point Clouds Using LiDAR and Cameras".VIP Lab Publications.CiteSeerX 10.1.1.649.303.
  3. ^Y. Lu and C. Rasmussen (2012)."Simplified markov random fields for efficient semantic labeling of 3D point clouds"(PDF).IROS.

Bibliography

edit

[8]ページ先頭

©2009-2025 Movatter.jp