Metraipolis › archive › dc_f4851f9b4b0c

Categorical variable — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Categorical_variable
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T17:38:32.671Z
SHA-256 of the archived text
fdc8481b8667de4f000128a92aa7dd843c96cf4f7ac6573586059fea1f521fb0
Stable URL of this page
https://metraipolis.com/documento/dc_f4851f9b4b0c

How to cite

Categorical variable — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Categorical_variable (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_f4851f9b4b0c (Metraipolis archive dc_f4851f9b4b0c, sha256 fdc8481b8667de4f000128a92aa7dd843c96cf4f7ac6573586059fea1f521fb0)
BibTeX
@misc{dcf4851f9b4b0c,
  title = {Categorical variable — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Categorical_variable},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_f4851f9b4b0c; sha256 fdc8481b8667de4f000128a92aa7dd843c96cf4f7ac6573586059fea1f521fb0},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Categorical_variable. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In statistics, a categorical variable (also called qualitative variable) is a variable that can take on one of a limited, and usually fixed, number of possible values, assigning each individual or other unit of observation to a particular group or nominal category on the basis of some qualitative property. In computer science and some branches of mathematics, categorical variables are referred to as enumerations or enumerated types. Commonly (though not in this article), each of the possible values of a categorical variable is referred to as a level. The probability distribution associated with a random categorical variable is called a categorical distribution. Categorical data is the statistical data type consisting of categorical variables or of data that has been converted into that form, for example as grouped data. More specifically, categorical data may derive from observations made of qualitative data that are summarised as counts or cross tabulations, or from observations of quantitative data grouped within given intervals. Often, purely categorical data are summarised in the form of a contingency table. However, particularly when considering data analysis, it is common to use the term "categorical data" to apply to data sets that, while containing some categorical variables, may also contain non-categorical variables. Ordinal variables have a meaningful ordering, while nominal variables have no meaningful ordering. A categorical variable that can take on exactly two values is termed a binary variable or a dichotomous variable; an important special case is the Bernoulli variable. Categorical variables with more than two possible values are called polytomous variables; categorical variables are often assumed to be polytomous unless otherwise specified. Discretization is treating continuous data as if it were categorical. Dichotomization is treating continuous data or polytomous variables as if they were binary variables. Regression analysis often treats category membership with one or more quantitative dummy variables.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «regression analysis»).
Fonte: Wikipedia in inglese, voce «Categorical variable» — https://en.wikipedia.org/wiki/Categorical_variable
Wikidata Q2285707 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q2285707
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Categorical_variable?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1354293560, consultata il 2026-10-06T16:04:56.314Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: affa010e6d64df4383020976a6a04ab746e5a47156e490a7a94b64fe17844fe3