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 up

Mastery 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.

00.050.10.15relative frequency / class width0.0770.1070.0430.0300.0300.0170.0100.0130.0071.24.27.210.213.216.219.222.225.228.2water use / t
Numerical data: the average monthly water use of the households in 9.2.1 (Figure 9.2-1); its central tendency can be described by the mean and the median ( t and t in Example 4).
050100150200frequency39641679026155160165170175
Categorical data: the uniform sizes needed by the Year 10 girls in Example 5 (Figure 9.2-9); its central tendency is 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 topic

Cite this page: Categorical and quantitative variables · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000909