Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference between classified variables and numerical variables

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the differences between classified variables and numerical variables. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Numerical variables mean that values can take a series of numbers, which are meaningful for addition, subtraction, averaging and other operations, while classified variables are meaningless for the above operations.

Numerical variables can be divided into the following two categories:

1. Discrete variables (discrete)

Values can only be calculated in natural numbers or integer units, and their values are intermittent, and there are no other values between two adjacent values. The value of this variable is generally obtained by counting.

2. Continuous variable (continuous)

The value can be taken arbitrarily in a certain range, and its value is continuous, and the two adjacent values can be infinitely divided, that is, infinite values can be taken. Such as height, length of rope, etc.

Compared with discrete variables, continuous variables have the concept of "true zero", so they can be multiplied and divided.

Classification variables can be divided into the following two categories:

1. Ordered classification variable (ordinal)

To describe the level or order of things, the values of variables can be numerical or character, which can be used to compare the advantages and disadvantages, such as the degree of like: like very much, generally, do not like.

2. Unordered classification variables (nominal)

There is no order difference between values, only for classification, and can be divided into two classification variables and multi-classification variables. Two classification variables refer to dividing all data into two categories, such as male and female, right, wrong, yin and yang, etc., two classification variables are a special classification variable and have their own unique analysis methods. Multi-classification variables refer to more than two categories, such as blood type A, B, AB, O.

The difference between ordered classification variables and non-classification variables is that the former is meaningful for "comparison" operations, while the latter is meaningless for "comparison" operations.

On the classification of variables and numerical variables what is the difference to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report