# Statistical classification

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Statistical_classification
> Markdown URL: https://mediated.wiki/source/Statistical_classification.md
> Source: https://en.wikipedia.org/wiki/Statistical_classification
> Source revision: 1234696920
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Categorization of data using statistics

When [classification](/source/Classification) is performed by a computer, statistical methods are normally used to develop the algorithm.

Often, the individual observations are analyzed into a set of quantifiable properties, known variously as [explanatory variables](/source/Explanatory_variables) or *features*. These properties may variously be [categorical](/source/Categorical_data) (e.g. "A", "B", "AB" or "O", for [blood type](/source/Blood_type)), [ordinal](/source/Ordinal_data) (e.g. "large", "medium" or "small"), [integer-valued](/source/Integer) (e.g. the number of occurrences of a particular word in an [email](/source/Email)) or [real-valued](/source/Real_number) (e.g. a measurement of [blood pressure](/source/Blood_pressure)). Other classifiers work by comparing observations to previous observations by means of a [similarity](/source/Similarity_function) or [distance](/source/Metric_(mathematics)) function.

An [algorithm](/source/Algorithm) that implements classification, especially in a concrete implementation, is known as a **classifier**. The term "classifier" sometimes also refers to the mathematical [function](/source/Function_(mathematics)), implemented by a classification algorithm, that maps input data to a category.

Terminology across fields is quite varied. In [statistics](/source/Statistics), where classification is often done with [logistic regression](/source/Logistic_regression) or a similar procedure, the properties of observations are termed [explanatory variables](/source/Explanatory_variable) (or [independent variables](/source/Independent_variable), regressors, etc.), and the categories to be predicted are known as outcomes, which are considered to be possible values of the [dependent variable](/source/Dependent_variable). In [machine learning](/source/Machine_learning), the observations are often known as *instances*, the explanatory variables are termed *features* (grouped into a [feature vector](/source/Feature_vector)), and the possible categories to be predicted are *classes*. Other fields may use different terminology: e.g. in [community ecology](/source/Community_ecology), the term "classification" normally refers to [cluster analysis](/source/Cluster_analysis).

## Relation to other problems

[Classification](/source/Classification) and clustering are examples of the more general problem of [pattern recognition](/source/Pattern_recognition), which is the assignment of some sort of output value to a given input value. Other examples are [regression](/source/Regression_analysis), which assigns a real-valued output to each input; [sequence labeling](/source/Sequence_labeling), which assigns a class to each member of a sequence of values (for example, [part of speech tagging](/source/Part_of_speech_tagging), which assigns a [part of speech](/source/Part_of_speech) to each word in an input sentence); [parsing](/source/Parsing), which assigns a [parse tree](/source/Parse_tree) to an input sentence, describing the [syntactic structure](/source/Syntactic_structure) of the sentence; etc.

A common subclass of classification is [probabilistic classification](/source/Probabilistic_classification). Algorithms of this nature use [statistical inference](/source/Statistical_inference) to find the best class for a given instance. Unlike other algorithms, which simply output a "best" class, probabilistic algorithms output a [probability](/source/Probability) of the instance being a member of each of the possible classes. The best class is normally then selected as the one with the highest probability. However, such an algorithm has numerous advantages over non-probabilistic classifiers:

- It can output a confidence value associated with its choice (in general, a classifier that can do this is known as a *confidence-weighted classifier*).

- Correspondingly, it can *abstain* when its confidence of choosing any particular output is too low.

- Because of the probabilities which are generated, probabilistic classifiers can be more effectively incorporated into larger machine-learning tasks, in a way that partially or completely avoids the problem of *error propagation*.

## Frequentist procedures

Early work on statistical classification was undertaken by [Fisher](/source/Ronald_Fisher),[1][2] in the context of two-group problems, leading to [Fisher's linear discriminant](/source/Fisher's_linear_discriminant) function as the rule for assigning a group to a new observation.[3] This early work assumed that data-values within each of the two groups had a [multivariate normal distribution](/source/Multivariate_normal_distribution). The extension of this same context to more than two groups has also been considered with a restriction imposed that the classification rule should be [linear](/source/Linear).[3][4] Later work for the multivariate normal distribution allowed the classifier to be [nonlinear](/source/Nonlinear):[5] several classification rules can be derived based on different adjustments of the [Mahalanobis distance](/source/Mahalanobis_distance), with a new observation being assigned to the group whose centre has the lowest adjusted distance from the observation.

## Bayesian procedures

Unlike frequentist procedures, Bayesian classification procedures provide a natural way of taking into account any available information about the relative sizes of the different groups within the overall population.[6] Bayesian procedures tend to be computationally expensive and, in the days before [Markov chain Monte Carlo](/source/Markov_chain_Monte_Carlo) computations were developed, approximations for Bayesian clustering rules were devised.[7]

Some Bayesian procedures involve the calculation of [group-membership probabilities](/source/Group-membership_probabilities): these provide a more informative outcome than a simple attribution of a single group-label to each new observation.

## Binary and multiclass classification

Classification can be thought of as two separate problems – [binary classification](/source/Binary_classification) and [multiclass classification](/source/Multiclass_classification). In binary classification, a better understood task, only two classes are involved, whereas multiclass classification involves assigning an object to one of several classes.[8] Since many classification methods have been developed specifically for binary classification, multiclass classification often requires the combined use of multiple binary classifiers.

## Feature vectors

Main article: [Feature vector](/source/Feature_vector)

Most algorithms describe an individual instance whose category is to be predicted using a [feature vector](/source/Feature_vector) of individual, measurable properties of the instance. Each property is termed a [feature](/source/Feature_(pattern_recognition)), also known in statistics as an [explanatory variable](/source/Explanatory_variable) (or [independent variable](/source/Independent_variable), although features may or may not be [statistically independent](/source/Statistically_independent)). Features may variously be [binary](/source/Binary_data) (e.g. "on" or "off"); [categorical](/source/Categorical_data) (e.g. "A", "B", "AB" or "O", for [blood type](/source/Blood_type)); [ordinal](/source/Ordinal_data) (e.g. "large", "medium" or "small"); [integer-valued](/source/Integer) (e.g. the number of occurrences of a particular word in an email); or [real-valued](/source/Real_number) (e.g. a measurement of blood pressure). If the instance is an image, the feature values might correspond to the pixels of an image; if the instance is a piece of text, the feature values might be occurrence frequencies of different words. Some algorithms work only in terms of discrete data and require that real-valued or integer-valued data be *discretized* into groups (e.g. less than 5, between 5 and 10, or greater than 10).

## Linear classifiers

Main article: [Linear classifier](/source/Linear_classifier)

A large number of [algorithms](/source/Algorithm) for classification can be phrased in terms of a [linear function](/source/Linear_function) that assigns a score to each possible category *k* by [combining](/source/Linear_combination) the feature vector of an instance with a vector of weights, using a [dot product](/source/Dot_product). The predicted category is the one with the highest score. This type of score function is known as a [linear predictor function](/source/Linear_predictor_function) and has the following general form: score ⁡ ( X i , k ) = β k ⋅ X i , {\displaystyle \operatorname {score} (\mathbf {X} _{i},k)={\boldsymbol {\beta }}_{k}\cdot \mathbf {X} _{i},} where **X***i* is the feature vector for instance *i*, **β***k* is the vector of weights corresponding to category *k*, and score(**X***i*, *k*) is the score associated with assigning instance *i* to category *k*. In [discrete choice](/source/Discrete_choice) theory, where instances represent people and categories represent choices, the score is considered the [utility](/source/Utility) associated with person *i* choosing category *k*.

Algorithms with this basic setup are known as [linear classifiers](/source/Linear_classifier). What distinguishes them is the procedure for determining (training) the optimal weights/coefficients and the way that the score is interpreted.

Examples of such algorithms include

- [Logistic regression](/source/Logistic_regression) – Statistical model for a binary dependent variable - [Multinomial logistic regression](/source/Multinomial_logistic_regression) – Regression for more than two discrete outcomes

- [Probit regression](/source/Probit_regression) – Statistical regression where the dependent variable can take only two valuesPages displaying short descriptions of redirect targets

- The [perceptron](/source/Perceptron) algorithm

- [Support vector machine](/source/Support_vector_machine) – Set of methods for supervised statistical learning

- [Linear discriminant analysis](/source/Linear_discriminant_analysis) – Method used in statistics, pattern recognition, and other fields

## Algorithms

Since no single form of classification is appropriate for all data sets, a large toolkit of classification algorithms has been developed. The most commonly used include:[9]

- [Artificial neural networks](/source/Artificial_neural_networks) – Computational model used in machine learningPages displaying short descriptions of redirect targets

- [Boosting (machine learning)](/source/Boosting_(machine_learning)) – Ensemble learning method

- [Random forest](/source/Random_forest) – Tree-based ensemble machine learning methods

- [Genetic programming](/source/Genetic_programming) – Evolving computer programs with techniques analogous to natural genetic processes - [Gene expression programming](/source/Gene_expression_programming) – Evolutionary algorithm - [Multi expression programming](/source/Multi_expression_programming) - [Linear genetic programming](/source/Linear_genetic_programming)

- [Kernel estimation](/source/Kernel_estimation) – Concept in statisticsPages displaying short descriptions of redirect targets - [k-nearest neighbor](/source/K-nearest_neighbor_algorithm) – Non-parametric classification methodPages displaying short descriptions of redirect targets

- [Learning vector quantization](/source/Learning_vector_quantization)

- [Linear classifier](/source/Linear_classifier) – Statistical classification in machine learning - [Fisher's linear discriminant](/source/Fisher's_linear_discriminant) – Method used in statistics, pattern recognition, and other fieldsPages displaying short descriptions of redirect targets - [Logistic regression](/source/Logistic_regression) – Statistical model for a binary dependent variable - [Naive Bayes classifier](/source/Naive_Bayes_classifier) – Probabilistic classification algorithm - [Perceptron](/source/Perceptron) – Algorithm for supervised learning of binary classifiers

- [Quadratic classifier](/source/Quadratic_classifier) – Statistical classifier in machine learning

- [Support vector machine](/source/Support_vector_machine) – Set of methods for supervised statistical learning - [Least squares support vector machine](/source/Least_squares_support_vector_machine)

Choices between different possible algorithms are frequently made on the basis of quantitative [evaluation of accuracy](/source/Classification#Evaluation_of_accuracy).

## Application domains

See also: [Cluster analysis § Applications](/source/Cluster_analysis#Applications)

Classification has many applications. In some of these, it is employed as a [data mining](/source/Data_mining) procedure, while in others more detailed statistical modeling is undertaken.

- [Biological classification](/source/Biological_classification) – The science of identifying, describing, defining and naming groups of biological organisms

- [Biometric](/source/Biometric) – Metrics related to human characteristicsPages displaying short descriptions of redirect targets identification

- [Computer vision](/source/Computer_vision) – Computerized information extraction from images - Medical image analysis and [medical imaging](/source/Medical_imaging) – Technique and process of creating visual representations of the interior of a body - [Optical character recognition](/source/Optical_character_recognition) – Computer recognition of visual text - [Video tracking](/source/Video_tracking) – Locating a moving object by analyzing frames of a video

- [Credit scoring](/source/Credit_scoring) – Numerical expression representing a person's creditworthinessPages displaying short descriptions of redirect targets

- [Document classification](/source/Document_classification) – Process of categorizing documents

- [Drug discovery](/source/Drug_discovery) and [development](/source/Drug_development) – Process of bringing a new pharmaceutical drug to the market - [Toxicogenomics](/source/Toxicogenomics) - [Quantitative structure-activity relationship](/source/Quantitative_structure-activity_relationship) – Predictive chemical modelPages displaying short descriptions of redirect targets

- [Geostatistics](/source/Geostatistics) – Branch of statistics focusing on spatial data sets

- [Handwriting recognition](/source/Handwriting_recognition) – Ability of a computer to receive and interpret intelligible handwritten input

- Internet [search engines](/source/Search_engines)

- [Micro-array classification](https://en.wikipedia.org/w/index.php?title=Micro-array_classification&action=edit&redlink=1)

- [Pattern recognition](/source/Pattern_recognition) – Automated recognition of patterns and regularities in data

- [Recommender system](/source/Recommender_system) – System to predict users' preferences

- [Speech recognition](/source/Speech_recognition) – Automatic conversion of spoken language into text

- [Statistical natural language processing](/source/Statistical_natural_language_processing) – Processing of natural language by a computerPages displaying short descriptions of redirect targets

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (January 2010) (Learn how and when to remove this message)

## See also

- [Mathematics portal](https://en.wikipedia.org/wiki/Portal:Mathematics)

- [Artificial intelligence](/source/Artificial_intelligence) – Intelligence of machines

- [Binary classification](/source/Binary_classification) – Dividing things between two categories

- [Multiclass classification](/source/Multiclass_classification) – Problem in machine learning and statistical classification

- [Class membership probabilities](/source/Class_membership_probabilities) – Machine learning problemPages displaying short descriptions of redirect targets

- [Classification rule](/source/Classification_rule)

- [Compound term processing](/source/Compound_term_processing)

- [Confusion matrix](/source/Confusion_matrix) – Table layout for visualizing performance; also called an error matrix

- [Data mining](/source/Data_mining) – Process of analyzing large data sets

- [Data warehouse](/source/Data_warehouse) – Centralized storage of knowledge

- [Fuzzy logic](/source/Fuzzy_logic) – System for reasoning about vagueness

- [Information retrieval](/source/Information_retrieval) – Finding information for an information need

- [List of datasets for machine learning research](/source/List_of_datasets_for_machine_learning_research)

- [Machine learning](/source/Machine_learning) – Subset of artificial intelligence

- [Recommender system](/source/Recommender_system) – System to predict users' preferences

## References

Wikimedia Commons has media related to [Statistical classification](https://commons.wikimedia.org/wiki/Category:Statistical_classification).

1. **[^](#cite_ref-1)** Fisher, R. A. (1936). "The Use of Multiple Measurements in Taxonomic Problems". *[Annals of Eugenics](/source/Annals_of_Eugenics)*. **7** (2): 179–188. [doi](/source/Doi_(identifier)):[10.1111/j.1469-1809.1936.tb02137.x](https://doi.org/10.1111%2Fj.1469-1809.1936.tb02137.x). [hdl](/source/Hdl_(identifier)):[2440/15227](https://hdl.handle.net/2440%2F15227).

1. **[^](#cite_ref-2)** Fisher, R. A. (1938). "The Statistical Utilization of Multiple Measurements". *[Annals of Eugenics](/source/Annals_of_Eugenics)*. **8** (4): 376–386. [doi](/source/Doi_(identifier)):[10.1111/j.1469-1809.1938.tb02189.x](https://doi.org/10.1111%2Fj.1469-1809.1938.tb02189.x). [hdl](/source/Hdl_(identifier)):[2440/15232](https://hdl.handle.net/2440%2F15232).

1. ^ [***a***](#cite_ref-G1977_3-0) [***b***](#cite_ref-G1977_3-1) Gnanadesikan, R. (1977) *Methods for Statistical Data Analysis of Multivariate Observations*, Wiley. [ISBN](/source/ISBN_(identifier)) [0-471-30845-5](https://en.wikipedia.org/wiki/Special:BookSources/0-471-30845-5) (p. 83–86)

1. **[^](#cite_ref-4)** [Rao, C.R.](/source/C._R._Rao) (1952) *Advanced Statistical Methods in Multivariate Analysis*, Wiley. (Section 9c)

1. **[^](#cite_ref-5)** [Anderson, T.W.](/source/T._W._Anderson) (1958) *An Introduction to Multivariate Statistical Analysis*, Wiley.

1. **[^](#cite_ref-6)** Binder, D. A. (1978). "Bayesian cluster analysis". *[Biometrika](/source/Biometrika)*. **65**: 31–38. [doi](/source/Doi_(identifier)):[10.1093/biomet/65.1.31](https://doi.org/10.1093%2Fbiomet%2F65.1.31).

1. **[^](#cite_ref-7)** Binder, David A. (1981). "Approximations to Bayesian clustering rules". *[Biometrika](/source/Biometrika)*. **68**: 275–285. [doi](/source/Doi_(identifier)):[10.1093/biomet/68.1.275](https://doi.org/10.1093%2Fbiomet%2F68.1.275).

1. **[^](#cite_ref-8)** [Har-Peled, S.](/source/Sariel_Har-Peled), Roth, D., Zimak, D. (2003) "Constraint Classification for Multiclass Classification and Ranking." In: Becker, B., [Thrun, S.](/source/Sebastian_Thrun), Obermayer, K. (Eds) *Advances in Neural Information Processing Systems 15: Proceedings of the 2002 Conference*, MIT Press. [ISBN](/source/ISBN_(identifier)) [0-262-02550-7](https://en.wikipedia.org/wiki/Special:BookSources/0-262-02550-7)

1. **[^](#cite_ref-9)** ["A Tour of The Top 10 Algorithms for Machine Learning Newbies"](https://builtin.com/data-science/tour-top-10-algorithms-machine-learning-newbies). *Built In*. 2018-01-20. Retrieved 2019-06-10.

v t e Statistics Outline Index Descriptive statistics Continuous data Center Mean Arithmetic Arithmetic-Geometric Contraharmonic Cubic Generalized/power Geometric Harmonic Heronian Heinz Lehmer Median Mode Dispersion Average absolute deviation Coefficient of variation Interquartile range Percentile Range Standard deviation Variance Shape Central limit theorem Moments Kurtosis L-moments Skewness Count data Index of dispersion Summary tables Contingency table Frequency distribution Grouped data Dependence Partial correlation Pearson product-moment correlation Rank correlation Kendall's τ Spearman's ρ Scatter plot Graphics Bar chart Biplot Box plot Control chart Correlogram Fan chart Forest plot Histogram Pie chart Q–Q plot Radar chart Run chart Scatter plot Stem-and-leaf display Violin plot Heatmap Scatter Plot Matrix ECDF plot Line chart Statistical data processing Transformations Data transformation Log transformation Power transform Box–Cox transformation Yeo–Johnson transformation Variance-stabilizing transformation Anscombe transform Fisher transformation Scaling and normalization Feature scaling Normalization Standardization (z-score) Min–max normalization Unit vector normalization Data cleaning Data cleaning Outlier Winsorizing Truncation Missing data Data reduction Dimensionality reduction Principal component analysis Factor analysis Time-series preprocessing Differencing Detrending Seasonal adjustment Stationarity transformation Data collection Study design Effect size Missing data Optimal design Population Replication Sample size determination Statistic Statistical power Survey methodology Sampling Cluster Stratified Opinion poll Questionnaire Standard error Controlled experiments Blocking Factorial experiment Interaction Random assignment Randomized controlled trial Randomized experiment Scientific control Adaptive designs Adaptive clinical trial Stochastic approximation Up-and-down designs Observational studies Cohort study Cross-sectional study Natural experiment Quasi-experiment Statistical inference Statistical theory Population Statistic Probability distribution Sampling distribution Order statistic Empirical distribution Density estimation Statistical model Model specification Lp space Parameter location scale shape Parametric family Likelihood (monotone) Location–scale family Exponential family Completeness Sufficiency Statistical functional Bootstrap U V Optimal decision loss function Efficiency Statistical distance divergence Asymptotics Robustness Frequentist inference Point estimation Estimating equations Maximum likelihood Method of moments M-estimator Minimum distance Unbiased estimators Mean-unbiased minimum-variance Rao–Blackwellization Lehmann–Scheffé theorem Median unbiased Plug-in Interval estimation Confidence interval Pivot Likelihood interval Prediction interval Tolerance interval Resampling Bootstrap Jackknife Testing hypotheses 1- & 2-tails Power Uniformly most powerful test Permutation test Randomization test Multiple comparisons Parametric tests Likelihood-ratio Score/Lagrange multiplier Wald Specific tests Z-test (normal) Student's t-test F-test Goodness of fit Chi-squared G-test Kolmogorov–Smirnov Anderson–Darling Lilliefors Jarque–Bera Normality (Shapiro–Wilk) Likelihood-ratio test Model selection Cross validation AIC BIC Rank statistics Sign Sample median Signed rank (Wilcoxon) Hodges–Lehmann estimator Rank sum (Mann–Whitney) Nonparametric anova 1-way (Kruskal–Wallis) 2-way (Friedman) Ordered alternative (Jonckheere–Terpstra) Van der Waerden test Bayesian inference Bayesian probability prior posterior Credible interval Bayes factor Bayesian estimator Maximum posterior estimator Correlation Regression analysis Correlation Pearson product-moment Partial correlation Confounding variable Coefficient of determination Regression analysis Errors and residuals Regression validation Mixed effects models Simultaneous equations models Multivariate adaptive regression splines (MARS) Template:Least squares and regression analysis Linear regression Simple linear regression Ordinary least squares General linear model Bayesian regression Non-standard predictors Nonlinear regression Nonparametric Semiparametric Isotonic Robust Homoscedasticity and Heteroscedasticity Generalized linear model Exponential families Logistic (Bernoulli) / Binomial / Poisson regressions Partition of variance Analysis of variance (ANOVA, anova) Analysis of covariance Multivariate ANOVA Degrees of freedom Categorical / multivariate / time-series / survival analysis Categorical Cohen's kappa Contingency table Graphical model Log-linear model McNemar's test Cochran–Mantel–Haenszel statistics Multivariate Regression Manova Principal components Canonical correlation Discriminant analysis Cluster analysis Classification Structural equation model Factor analysis Multivariate distributions Elliptical distributions Normal Time-series General Decomposition Trend Stationarity Seasonal adjustment Exponential smoothing Cointegration Structural break Granger causality Specific tests Dickey–Fuller Johansen Q-statistic (Ljung–Box) Durbin–Watson Breusch–Godfrey Time domain Autocorrelation (ACF) partial (PACF) Cross-correlation (XCF) ARMA model ARIMA model (Box–Jenkins) Autoregressive conditional heteroskedasticity (ARCH) Vector autoregression (VAR) (Autoregressive model (AR)) Frequency domain Spectral density estimation Fourier analysis Least-squares spectral analysis Wavelet Whittle likelihood Survival Survival function Kaplan–Meier estimator (product limit) Proportional hazards models Accelerated failure time (AFT) model First hitting time Hazard function Nelson–Aalen estimator Test Log-rank test Applications Biostatistics Bioinformatics Clinical trials / studies Epidemiology Medical statistics Engineering statistics Chemometrics Methods engineering Probabilistic design Process / quality control Reliability System identification Social statistics Actuarial science Census Crime statistics Demography Econometrics Jurimetrics National accounts Official statistics Population statistics Psychometrics Spatial statistics Cartography Environmental statistics Geographic information system Geostatistics Kriging Category Mathematics portal Commons WikiProject

Authority control databases: National Czech Republic

---
Adapted from the Wikipedia article [Statistical classification](https://en.wikipedia.org/wiki/Statistical_classification) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Statistical_classification?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
