Binary classification is the task of putting things into one of two categories (each called a class). As such, it is the simplest form of the general task of classification into any number of classes. Typical binary classification problems include:
- 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.
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).