数据处理中四种基本数据类型的区别(Nominal, ordinal, interval, & ratio data)

5 篇文章 1 订阅
4 篇文章 0 订阅

Nominal,Ordinal,Interval and Ratio分别是定类、定序、定距、定比,定类变量值只是分类,如性别变量的男女;定序变量值可以排序,但不能加减,如年级变量;定距变量值是数字型变量,可以加减;定比变量值和定距变量值唯一区别是不存在基准0,即当变量值为0时不是表示没有,如温度变量,当温度为0时,并不是表示没有温度,这样温度就为定距变量,而不是定比变量.

Originally from http://www.psy.gla.ac.uk/~steve/best/ordinal.html

Basic definitions

NominalJust names, IDs
OrdinalHave / represent rank order (e.g. fully agree, mostly agree, somewhat agree)
IntervalHas a fixed size of interval between data points. (E.g. degrees Centigrade)
RatioHas a true zero point (e.g. mass, length)

Summary table: The four data types

AttributeNominalOrdinalIntervalRatio
Name2CategoricalSequenceEqual intervalRatio
Name3SetFully ordered, rank orderedUnit size fixedZero or ref.pt fixed
StatisticsCount, Mode, chi-squared+ median, rank order correlation+ ANOVA, mean, SDev+ logs??
Example1Set of participants, makes of carorder of finishing a racecentigrade scaleDegrees Kelvin or absolute
Transformations/ rescaling allowedRenameMontonic (any curve that always increases)Linear-
Transformations 2Hash functionMontonicAdd and multiplymultiply?
Transformation examples1:1 mapping, Assign colours for lines on a chartSorting. Log or expZ-transform, renormalise IQ scoresScale (zoom in or out)
Types of relativityA≠BA>B|(A-B)|  >  |(C-D)|?
Types of absoluteIdentity of individual entitiesorder, seqeuenceintervals, differencesratios, proportions

Transformations

  • Thurstone scaling takes in ordinal data and generates an interval scale.
  • Spreadsheet (re)sorting takes any kind of data and generates ordinal data as represented, say, by the row number after sorting.
  • Log (or log-log, or exp()) transformations create interval data out of ratio or other interval data. This corresponds to the fact that even when a measurement scale has a zero (a ratio scale), the measure of interest may not e.g. may be a difference.

    An alternative list of types

    (Attributed to Mosteller & Tukey.)
    Names 
    Grades  ordered labels such as Freshman, Sophomore, Junior, Senior
    Ranks  starting from one, which may represent either the largest or smallest
    Counted fractions  bounded by zero and one. These include percentages, for example.
    Counts  non-negative integers
    Amounts  non-negative real numbers
    Balances  unbounded, positive or negative values.
      
    Circles  (partially ordered, but in a circle). e.g. the points of the compass

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值