Unit 3 - Data Types

Close All | Expand All


Edit   Delete - Last Modified By: BJO at 15/02/2015 8:44:13 AM

Delving further into categorical data, we may have the categories ‘thin’, ‘average’, or ‘fat’ as categorical descriptors for body-type, but now we have an order: ‘fat’ is inferred to be heavier than ‘average’, which in turn is inferred to be heavier than ‘thin’.  So, categorical data can be either non-ordered (so-called nominal categorical data), or ordered (so-called ordinal categorical data).


Edit   Delete - Last Modified By: BJO at 15/02/2015 8:45:02 AM

Quiz:

What would be an appropriate data type for the following objects?

  • The number of eggs collected per month in the TC chicken run?
  • The weight of an individual egg?
  • The colour of each egg?

Edit   Delete - Last Modified By: BJO at 15/02/2015 11:05:34 AM

Data are not just data!  We can link data to its type.  For example, think of the data that is about you. Your sex, height, body-type, weight etc. are all data that have specific types.

Sex – can be one of two things, ‘female’ and ‘male’.  This is what we call categorical data, putting something into a category where nothing is ‘ordered’ i.e  ‘male’ is not ‘bigger’ than ‘female’ (or vice versa!). 

Height – is usually specified as a number, maybe in centimetres or metres.  This is what we call numerical data.  If we specified that height data had to be measured to the nearest whole centimetr (e.g. 173 cm), then we can call this discrete numerical data – only whole numbers are allowed.  If we allow the height measurement to take any value (e.g. 1.732 metres), then we call this continuous numerical data.

You need to understand the different types of data: categorical and numerical.  If the data are numerical, then you also need to understand the difference between discrete and continuous numerical data.

Examples:

  • Sex: Categorical – e.g. female or male.
  • Body-type: Categorical – e.g. endomorphic, mesomorphic, ectomorphic.
  • Height: Numerical, and usually continuous and discrete e.g. most people quote their height to the nearest whole centimetre, but express it in continuous metres. Your author is “one seventy three” (metres).

Weight: Numerical and usually discrete.  Most people quote their weight to the nearest whole kilogram.