Docsity

Types of Data, Study notes of Advanced Computer Programming

Partial preview of the text

Download Types of Data and more Study notes Advanced Computer Programming in PDF only on Docsity!

Types of DataTypes

of Data

Types of data

  • Categorical data• Measurement data

Measurement data

Examples: Categorical Data

  • Hair color
    • blonde, brown, red, black, etc.

blonde, brown, red, black, etc.

  • Opinion of students about riots

ticked off neutral happy

  • ticked off, neutral, happy
    • Smoking status

k

k

  • smoker, non-smoker

Categorical data classified asCategorical

data classified as

Nominal, Ordinal, and/or BinaryNominal, Ordinal, and/or Binary

Categorical data

Ordinal

Nominal

data

data

Not binary

Binary

Binary

Not binary

y^

y

Examples: Nominal Data

  • Hair color
    • blonde, brown, red, black, etc.

blonde, brown, red, black, etc.

  • Race

Caucasian African American Asian etc

  • Caucasian, African-American, Asian, etc.
    • Smoking status

k

k

  • smoker, non-smoker

Ordinal

Data

  • A type of categorical data in which

order

is

important.

p

Binary

Data

  • A type of categorical data in which there are

only two categories

y

g

  • Binary data can either be nominal or

ordinalordinal.

Examples: Binary Data

  • Smoking status
    • smoker, non-smoker

smoker, non smoker

  • Attendance

present absent

  • present, absent
    • Class

l^

l^

l

  • lower classman, upper classman

Examples: Measurement Data

  • Cholesterol level• Height

Height

  • Age

SAT

  • SAT score• Number of students late for class• Time to complete a homework assignment

Measurement data classified asMeasurement

data classified as

Discrete or ContinuousDiscrete or Continuous

Measurement

data

Continuous

Discrete

Discrete data

Gaps between possible values

Discrete

data

-- Gaps between possible values

Continuous data

--

Theoretically

,

no gaps between possible valuesno gaps between possible values

Examples:Examples:

Discrete Measurement Data

  • SAT scores• Number of students late for class

Number of students late for class

  • Number of crimes reported to SC police

N

b

f i

h

d

b

i^

d

  • Number of times the word number is used

Generally, discrete data are counts.

Who Cares?The type(s) of data collectedThe type(s) of data collected

in a study determine the type

of statistical analysis usedof statistical analysis used.

For example ...

  • Categorical data are commonly summarized

using “

p

ercentages

” (or “

p

roportions

g

p

g

(^

p

p

  • 11% of students have a tattoo– 2%, 33%, 39%, and 26% of the students in

2%, 33%, 39%, and 26% of the students inclass are, respectively, freshmen, sophomores,juniors, and seniors