×

Loading...

@Ottawa

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / 学科技术 / 数据分析中通常遇到的三种变量。性质不同,处理方法也不同. +2

    (1), A continuous variable can take on any value in a range (subject to roundoff error). Examples are height, stock price, price, voltage, IQ, or paper thickness.

    (2), A categorical variable (also called a nominal or discrete variable) is often not a number. A categorical variable can only take on a small number of discrete values. Examples of categorical variables are gender, employment status, dog breed, country of origin.

    (3), An ordinal variable, which is a compromise between continuous and categorical. They can be ordered but are not continuous. For example, year in school (freshman, sophomore, junior, senior), military rank, letter grade for a course.

    Reference: http://facweb.cs.depaul.edu/sjost/csc423/notes/0717.htm