Lably
Skip to content

Binary classification

Dividing things between two categories

  • 6 min read
  • 4 chapters

Related on Lably

Through Classification, Information retrieval and Administration (government)

  • Medical testing to determine if a patient has a certain disease or not;
  • Quality control in industry, deciding whether a specification has been met;
  • In information retrieval, deciding whether a page should be in the result set of a search or not
  • In administration, deciding whether someone should be issued with a driving licence or not
  • In cognition, deciding whether an object is food or not food.

A common statistical technique to effect the classification is binary regression.

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 different types of errors is of interest. For example, in medical testing, detecting a disease when it is not present (a false positive) is considered differently from not detecting a disease when it is present (a false negative).

Four outcomes

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), and false negatives FN (incorrect negative assignments).

These can be arranged into a 2×2 contingency 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.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Topics in mathematics