- Hands-On Exploratory Data Analysis with Python
- Suresh Kumar Mukhiya Usman Ahmed
- 296字
- 2021-06-24 16:44:48
Categorical data
This type of data represents the characteristics of an object; for example, gender, marital status, type of address, or categories of the movies. This data is often referred to as qualitative datasets in statistics. To understand clearly, here are some of the most common types of categorical data you can find in data:
Gender (Male, Female, Other, or Unknown)
Marital Status (Annulled, Divorced, Interlocutory, Legally Separated, Married, Polygamous, Never Married, Domestic Partner, Unmarried, Widowed, or Unknown)
Movie genres (Action, Adventure, Comedy, Crime, Drama, Fantasy, Historical, Horror, Mystery, Philosophical, Political, Romance, Saga, Satire, Science Fiction, Social, Thriller, Urban, or Western)
Blood type (A, B, AB, or O)
Types of drugs (Stimulants, Depressants, Hallucinogens, Dissociatives, Opioids, Inhalants, or Cannabis)
A variable describing categorical data is referred to as a categorical variable. These types of variables can have one of a limited number of values. It is easier for computer science students to understand categorical values as enumerated types or enumerations of variables. There are different types of categorical variables:
A binary categorical variable can take exactly two values and is also referred to as a dichotomous variable. For example, when you create an experiment, the result is either success or failure. Hence, results can be understood as a binary categorical variable.
Polytomous variables are categorical variables that can take more than two possible values. For example, marital status can have several values, such as annulled, divorced, interlocutory, legally separated, married, polygamous, never married, domestic partners, unmarried, widowed, domestic partner, and unknown. Since marital status can take more than two possible values, it is a polytomous variable.
Most of the categorical dataset follows either nominal or ordinal measurement scales. Let's understand what is a nominal or ordinal scale in the next section.
- Web應(yīng)用系統(tǒng)開發(fā)實踐(C#)
- SQL for Data Analytics
- DevOps Automation Cookbook
- Python 3網(wǎng)絡(luò)爬蟲實戰(zhàn)
- Swift 3 New Features
- C/C++常用算法手冊(第3版)
- OpenShift在企業(yè)中的實踐:PaaS DevOps微服務(wù)(第2版)
- HTML5入門經(jīng)典
- The Complete Coding Interview Guide in Java
- OpenCV with Python By Example
- Node.js 12實戰(zhàn)
- STM8實戰(zhàn)
- iOS開發(fā)項目化入門教程
- Java程序設(shè)計
- IBM DB2 9.7 Advanced Application Developer Cookbook