lecture_2
lecture_2
Organising Data
Organising Data
Raw data
Raw data
Information obtained by observing values of a variable is called
raw data
if the variable is qualitative then the data are called
qualitative data
if the variable is quantitative then the data are said to be
quantitative data
quantitative data obtained from a discrete variable are also
referred to as discrete data
quantitative data obtained from a continuous variable are also
referred to as continuous data
Organising Data
Data presentation
Example
The following are the highest college degrees held by CEO s of
25 randomly selected companies;
Bachelors, Bachelors,Bachelors, None,Doctorate, Masters,
Doctorate, Masters, None,
Masters,Masters,Masters,Masters,Masters,
Bachelors,Bachelors,Bachelors,Masters,Masters,Bachelors,
Masters, None, None, None, Masters.
Note that the variable of interest is “highest college degree”,
and has four categories under it namely; None, Bachelors,
Masters, Doctorate.
The following is the corresponding frequency distribution;
Organising Data
Data presentation
Example
Example
Highest college degree Frequency (number of CEO s)
Bachelors 7
Masters 11
Doctorate 2
None 5
Organising Data
Data presentation
Frequency distribution for qualitative data
Points to note
P
Denote frequency by f , we note that f = 25, which equals
the total number of observations
Thus in general the sum of the frequencies equals the total
number of observations
Organising Data
Data presentation
Relative frequency and Percentage
Bar graph
comprises bars whose heights correspond to the frequencies of
the categories
to construct a bar graph you need
two axes; the horizontal and vertical axes
place the categories on the horizontal axis and mark the
frequencies along the vertical axis
for each category, draw a bar whose height corresponds to the
frequency of the category
Note that the bars should be disjoint
Organising Data
Bar graph
Bar graph
Bar graph
Organising Data
Bar graph
Bar graph
Points to note
note that bar graphs are ideal for presenting qualitative data
the above bar graph can be transposed in which case
the categories will be on the vertical axis, while the frequencies
will be on the horizontal axis
so for each category, draw horizontal bar whose length
corresponds to the frequency of the category
following this alternative procedure we obtain the following
bar graph
Organising Data
Bar graph
Bar chart
Bar chart
Organising Data
Pie chart
Pie chart
Qualitative data can also be graphically presented using a pie
chart
basically a pie chart is a circular diagram divided into portions
such that each portion represents a category in our data
thus each category has a corresponding portion with the size
of the portion being proportional to the frequency of the
category
Before we discuss how to construct a pie chart, let’s recall
high/secondary school geometry
a circle has 360◦
Organising Data
Pie chart
Pie chart
Pie chart
Organising Data
Frequency distribution for quantitative data
Example
The following shows the number of patients visiting a clinic
per day for twenty-three days;
50, 65, 35, 40, 57, 65, 35,29, 33, 44, 56, 60, 44, 50, 58, 46,
47, 35, 36, 44, 57, 60, 57
Note that the variable of interest is “ number of patients”
The following is the corresponding frequency distribution;
Organising Data
Frequency distribution for quantitative data
Bar graph