What is the difference between categorical variables and numerical variables?
Numerical variables refer to values that can take a series of numbers. These values are meaningful for operations such as addition, subtraction, and averaging, while categorical variables are for the above The operation is meaningless.
Numerical variables can be divided into the following two categories:
1. Discrete variables (discrete)
The value can only be calculated using natural numbers or integer units. The values are discontinuous, and there are no other values between two adjacent values. The value of this variable is generally obtained using the counting method.
2. Continuous variable (continuous)
can take any value within a certain range. Its value is continuous. Two adjacent values can be infinitely divided, that is, infinite numbers can be taken. numerical value. Such as height, length of rope, etc.
Compared with discrete variables, continuous variables have the concept of "true zero", so multiplication and division operations can be performed.
Categorical variables can be divided into the following two categories:
1. Ordered categorical variables (ordinal)
Describes the level or order of things. The variable value can be numerical or Character type can be used to compare the pros and cons, such as the degree of liking: like very much, average, dislike.
2. Unordered categorical variables (nominal)
There is no order difference between the values. They are only used for classification and can be divided into two-category variables and multi-category variables. Two-category variables refer to All data are divided into two categories, such as male and female, right and wrong, yin and yang, etc. The binary variable is a special categorical variable with its own unique analysis method. Multi-categorical variables refer to two or more categories, such as blood type is divided into A, B, AB, O.
The difference between ordered categorical variables and unnecessary categorical variables is that the former is meaningful for "comparison" operations, while the latter is meaningless for "comparison" operations.
The above is the detailed content of What is the difference between categorical variables and numerical variables?. For more information, please follow other related articles on the PHP Chinese website!

1. Ao3 official website quark entrance☜☜☜☜☜☜Click to save. 2. Ao3 Quark entrance official website☜☜☜☜☜☜☜Click to save. 【ao3】1. AO3 (Archive of Our Own) is a huge online archive website created by fans. 2. It mainly contains fan works, covering a wide variety of media, from books and movies to TV series and games, almost everything is included. 3. AO3 has rich content and diverse types, which can meet the needs of different readers.

1. Ao3 mirror URL Quark☜☜☜☜☜☜☜☜ Click to enter. 2. Ao3 mirror address quark entrance ☜☜☜☜☜☜☜ Click to enter. 3. AO3 (Archives Our Own) is a non-profit fan and fan-fiction archive website launched on October 29, 2008. 4. AO3 is a website founded by fans and run by fans, dedicated to protecting the works created by fans and providing a censorship-free environment for fan novel writers.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
