Categorical and quantitative variables
分类变量与数值变量
How do categorical and quantitative variables differ?
A categorical variable records a category; a quantitative one records a number and may be discrete or continuous.
ConceptKP000909
Sign in to read the whole lesson, with 1 exercise
Sign in / Sign upMastery goals
- Can classify variables as categorical or quantitative (discrete or continuous)
In general, the central tendency of numerical data (such as water use, height, income or output) can be described by the mean and the median, while the central tendency of categorical data (such as uniform size, sex or product quality grade) can be described by the mode.
Common mistakes
- Data written as numbers are not necessarily numerical data: the uniform sizes in Example 5 are written as numbers but are really a few different categories, so they are categorical data and their central tendency is described by the mode.
Related points
All points in this topicCite this page: Categorical and quantitative variables · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000909