Professional Documents
Culture Documents
ADVANCED STATISTICS
Professor: Dr. Ibrahim Mangondato
Reporter: Najiyyah D. Abduljaleel - Sumayan
REPORT OUTLINE
PART 1. PRESENTATION OF DATA
2
1. PRESENTATION OF
DATA
1.1 INTRODUCTION
4
PRESENTATION OF DATA
Method by which the people organize, summarize and
communicate information using a variety of tools such as tables,
graphs and diagrams.
Tabular Visual
Graphical Diagrammatical
5
PRINCIPLES OF
USES OF PRESENTATION PRESENTATION
6
1.2 TABULAR FORMS
7
1.2.1 ARRAYS
An array is a matrix of rows and columns of numbers which have been
arranged in some order (preferably ascending). It is probably the most
primitive way of tabulating information but can be very useful if it is small in
size. Some important statistics can immediately be located by mere
inspection.
Without any calculations, one can easily find the
1. Minimum observation
2. Maximum observation
3. Number of observations, n
4. Mode
5. Median, if n is odd
8
Example 2 7 8 11 15
16 18 19 19 19
23 23 24 26 27
29 33 40 44 47
49 51 54 63 68
Table 1.2.1
9
1.2.2 SIMPLE TABLES
A table is slightly more complex than an array since it needs a heading and
the names of the variables involved. We can also use symbols to represent
the variables at times, provided they are sufficiently explicit for the reader.
Optionally, the table may also include totals or percentages (relative figures).
10
Example
Table 1.2.2
11
1.2.3 COMPOUND TABLES
A compound table is just an extension of a simple in which there are more
than one variable distributed among its attributes (sub-variable). An attribute
is just a quality, property or component of a variable according to which it
can be differentiated with respect to other variables.
12
Example
Table 1.2.3
13
1.3 LINE GRAPHS
14
Example
Using the data from the table below,
Table 1.3..1.1
15
1.3.2 Multiple Line Graphs
Multiple line graphs illustrate information on several variables so that
comparison is possible between them. Consider the following table
containing information on the ages of first-year students attending courses
the University of Mauritius (UoM), the De Chazal du Mée Business School
(DCDMBS) and the University of Technology of Mauritius (UTM) respectively.
17
This data, when displayed on a
multiple line graph, enables a
comparison between the
frequencies for each age
among the institutions (maybe
in an attempt to know whether
younger students prefer to enrol
for courses at one of these
institutions)
18
1.4 PIE CHARTS
20
Merits
1. It gives a simple pictorial display of the relative sizes of classes.
2. It shows clearly when one class is more important than another.
3. It can be used for comparison of the same elements but in two or more
different populations.
Limitations
1. It only shows the relative sizes of classes.
2. It involves calculation of angles of sectors and drawing them
accurately.
3. It is sometimes difficult to compare sectors sizes accurately by eye.
21
1.4.1 Simple pie chart
Example
Using the same data from Table 1.2.3, but this time, including the total
number of students enrolled for BA, B Com and B Sc, we shall now display
the distribution of students for these three courses the population.
22
23
1.4.2 Enhanced pie chart
This is just an enhancement (as the name says itself) of a simple pie chart
in order to lay emphasis on particular sector.
Example
Again, using the same data from Table 1.2.3, but this time, including the
total number of students enrolled for BA, B Com and B Sc, we shall now
display the distribution of students for these three courses the population.
24
25
1.2 TABULAR FORMS
26
1.5 BAR CHARTS
27
1.5 BAR CHARTS
General merits
1. The quantities can be easily read in terms of heights of the bars.
2. 2. Comparison can be made between values of a variable.
3. 3. It can be used even for non-numerical data.
General limitations
4. The class intervals must be equal in the distribution.
5. 2. It cannot be used for continuous variables.
Note Any additional merit or limitation for each type of bar chart will be
mentioned in its corresponding section.
28
1.5.1 Simple bar chart
The simple bar chart is used for the case of one variable only. In Table
1.5.1.1 below, our variable is age.
Example
29
1.5.2 Multiple bar chart
The multiple bar chart is an extension of a simple bar chart when there are
quantities of several variables to be displayed. The bars representing the
quantities for the different variables are piled next to one another for each
attribute.
Example
31
Fig. 1.5.2.2
shows how an array
of frequencies may
be very easily
displayed on a
multiple bar chart.
32
1.5.3 Component bar chart
In this type of bar chart, the components (quantities) of each variable are
piled on top of one another.
Example
33
1.5.4 Percentage (Component) bar chart
A percentage (component) bar chart displays the components (quantities)
percentages of each variable, piled on top of one another. This is a
refinement of the component bar chart since, irrespective of the number of
components, the heights of the bars are always kept to a given value
(100%).
Example
35
1.6 HISTOGRAMS
The histogram should be clearly distinguished from the bar chart. The most
striking physical difference between these two diagrams is that, unlike the
bar chart, there are no ‘gaps’ between successive rectangles of a histogram.
A bar chart is one-dimensional since only the length, and not the width,
matters whereas a histogram is two-dimensional since both length and width
are important.
A histogram is mainly used to display data for continuous variables but can
also be adjusted so as to present discrete data by making an appropriate
continuity correction. Moreover, it can be quite misleading if the distribution
has unequal class intervals.
37
1.6.1 Histograms for equal class intervals
Example
Consider the set of data in Fig. 1.6.1.1, which represents the ages of
workers of a private company. The real limits and mid-class values have
already been computed.
38
The data is presented on the histogram in Fig. 1.6.1.2.
Presentation of grouped data (uniform class interval) on a histogram
39
1.6.2 Histograms for unequal class intervals
When class intervals are unequal, a correction must be made. This
consists of finding the frequency density for each class, which is the ratio of
the frequency to the class interval. The frequency densities now become
the actual heights of the rectangles since the areas of the rectangles
should be proportional to the frequencies.
Example:
40
1.7 FREQUENCY POLYGONS
43
1.7.1 By first drawing a histogram for the data
44
Example Presentation of grouped data on a histogram and
frequency polygon
1.7.2 Direct Construction
The frequency polygon may also be directly drawn by finding the points
on the figure. The x-coordinate of each point is the mid-class value of
the cell whilst the y-coordinate is the frequency of the cell (or frequency
density if class intervals are unequal). Successive points are then
linked by means of line segments.
In that state, the polygon would be ‘hanging in the air’, that is, it would
not touch the x-axis. To satisfy this ultimate requirement, we determine
its left (right) x-intercept by respectively subtracting (adding) the class
intervals of the first (last) classes from the x-intercept of the first (last)
point.
46
Example
Using the data from Table 1.6.2.1, we have the
following polygon: Presentation of grouped data on a
frequency polygon
A frequency polygon sketches
an outline of the data pattern
more clearly. In fact, it is the
refinement of a histogram, as it
does not assume that the
frequencies of observations
within a class are equal. The
polygon becomes increasingly
smooth and curve-like as we
increase the number of classes
in a distribution.
1.8 OGIVES
48
1.8.1 Cumulative Frequency (CF)
49
Note For the rest of this course, we will denote ‘cumulative frequency’ by CF.
Example
Note Careful inspection of Table 1.8.1 reveals that the ‘less than’ CF of a class is also the overall rank of the
last observation in that class. This is a very important finding since it will be of tremendous help to us when
calculating percentiles.
1.8.2 ‘Less than’ cumulative frequency ogive
The points on a ‘more than’ CF ogive have lower real limits for x-coordinates
and mores than’ CF for y-coordinates. Remember that ‘more than’ CFs are
defined according to lower real limits!
Again, if we use the data from Table 1.8.1, the following ‘more than’ CF curve
is obtained.
Note The ‘less than’ CF ogive has an x-intercept equal to the upper real limit of the last
class
1.9 STEM AND LEAF DIAGRAMS
Stem and leaf diagrams, or stemplots, are used to represent raw data,
that is, individual observations, without loss of information. The ‘leaves’
in the diagram are actually the last digits of the values (observations)
while the ‘stems’ are the remaining part of the values. For example, the
value 117 would be split as ‘11’, the stem, and ‘7’, the leaf. By splitting
all the values and distributing them appropriately, we form a stemplot.
The example in Section 1.9.1 would be a better illustration of the above
explanation.
55
1.9.1 Simple stem and leaf plot
Example
The following are the marks (out of 100) obtained by 20 students in an
assignment:
In the first instance, the data is classified in the order that it appears on a
stemplot (see Fig. 1.9.1.2). The leaves are then arranged in ascending order
(see Fig. 1.9.1.3) – this is indeed a very practical way of arranging a set of
data in order if the number of observations is not very large.
60
A boxplot is drawn according to five descriptive statistics:
1. Minimum value
2. Lower quartile
3. Median
4. Upper quartile
Apart from the five descriptive statistics, we can deduce the following about
the distribution:
1. The range – the numerical difference between the maximum and the
minimum values.
2. The inter-quartile range – the difference between the upper and lower
quartiles. It measures the dispersion for the middle 50% of the distribution.
Several boxplots may even be plotted on the same axes for comparison
purposes. We might wish to compare marks obtained by students in French
and English so as to study any similarities and differences between their
performances in these subjects.
A scatterplot enables us to
verify whether there does
exist a causal relationship
between two variables by
checking the pattern of
points. In fact, it even reveals
the nature of the relationship,
that is, if it is linear or non-
linear, by the shape of the
pattern. Scatter diagrams are
especially very useful in
regression and correlation
analyses.
1.12 TIME SERIES HISTORIGRAMS
A time series is a series of figures which show the evolution of a variable over
time. The horizontal axis is labelled as the time axis instead of the usual
xaxis. The graph of a time series is known as a historigram. Points on the
graph are plotted with x-coordinates as time units while the y-coordinates are
the values assumed by the variable at those particular times. Successive
points are then linked by means of straight lines (similar to a line graph,
Section 1.3).
Example The following data represent the annual sales of petrol in Iraq in
millions of dollars for the period 1985-96.
67
A time series shows the
trend, cycle and
seasonality in the
behaviour of a variable.
It is a very sophisticated
means of forecasting the
values of the variable on
the assumption that
history repeats itself.
1.13 LORENZ CURVES
The Lorenz curve is a device for demonstrating the evenness, by verifying the
degree of concentration of a property, of a distribution. A common application
of the Lorenz curve is to show the distribution of wealth in a population. The
explanation for the construction of such a diagram is given by means of the
example below.
69
Example
Table 1.13.1 below refers to tax paid by people in various income groups in a
sample. Construct a Lorenz curve for the data and comment on it.
Table 1.13.1 now should be altered in such a way that relative cumulative
frequencies may now be displayed for both variables, that is, ‘number of
people’ and ‘tax paid’. We must change the labels for the first column,
determine the cumulative frequencies and then convert these to percentages
(proportions) as shown in Table 1.13.2.
Next, we plot one relative cumulative frequency against another. It does not
really matter which axis is to be used for which variable, the reason being
that we only wish to observe the departure of the Lorenz curve from the line
of uniform distribution. On graph, this is simply the line y = x, which
represents the ideal situation where, for our example, the proportion of tax
paid is equally distributed among the various classes of income earners.
This line is also to be drawn on the same graph in order to make the ‘bulge’
of the Lorenz curve more visible. This is clearly illustrated in Fig. 1.13.3.
The further the curve is from the line of uniform distribution, the more uneven
is the distribution. It can be observed, for example, that approximately 36%
of the population of taxpayers pays only 10% of the total tax. This shows a
considerable degree of unevenness in the population. In an ideal situation,
36% of the population would have paid 36% of the total tax.
The annual moving total is the sum of the values of the variable for the 12-
month period up to the end of the month under consideration. A line for the
budget for the year to data may be added to a Z-chart, for comparison with
the cumulative sum of actual values.
75
Table 1.14.2 will now include the cumulative sales for 2003 and the annual
moving total, that is, the 12-month period will be updated from the period
Jan-Dec 2003 to Feb 2003-Jan 2004, then Mar 2003- Feb 2004 and so on
until Jan-Dec 2004, whilst these total sales will be continuously calculated
and recorded.
Note:
Z-charts do not have to cover 12 months of a year. They could, for example,
also be drawn for four quarters of a year or seven days of a week.
Interpretation of Z-charts
The popularity of Z-charts in practical applications derives from the wealth of
information which they can contain.
1. Monthly totals show the monthly results at a glance with any seasonal
variations.
2. Cumulative totals show the performance to data and can be easily
compared with planned and budgeted performance by superimposing
the budget line.
3. Annual moving totals compare the current levels of performance with
those of the previous year. If the line is rising, then this year’s monthly
results are better than the results of the corresponding month last year.
The opposite applies if the line is falling. The annual moving total line
indicates the long-term trend of the variable, whether rising, falling or
steady.
Note:
While the values of the annual moving total and the cumulative values are
plotted on month-end positions, the values for the current monthly figures
are plotted on mid-month positions. This is because monthly figures
represent achievement over a particular month whereas the annual moving
totals and the cumulative values represent achievement up to a particular
month end.
2. MEASURES OF CENTRAL
TENDENCY and THEIR
ANALYSIS
INTRODUCTION
83
2.1 MEAN (ARITHMETIC)
The mean (or average) is the most popular and well known measure of
central tendency. It can be used with both discrete and continuous data,
although its use is most often with continuous data (see our Types of Variable
guide for data types). The mean is equal to the sum of all the values in the
data set divided by the number of values in the data set. So, if we
have n values in a data set and they have values x1,x2, …,xn, the sample
mean, usually denoted by x― (pronounced "x bar"), is:
84
The mean, median and mode are all valid measures of central tendency, but
under different conditions, some measures of central tendency become more
appropriate to use than others. In the following sections, we will look at the
mean, mode and median, and learn how to calculate them and under what
conditions they are most appropriate to be used.
85
This formula is usually written in a slightly different manner using the Greek
capitol letter, ∑, pronounced "sigma", which means "sum of...":
You may have noticed that the above formula refers to the sample mean. So,
why have we called it a sample mean? This is because, in statistics, samples
and populations have very different meanings and these differences are very
important, even if, in the case of the mean, they are calculated in the same
way. To acknowledge that we are calculating the population mean and not the
sample mean, we use the Greek lower case letter "mu", denoted as μ:
86
The mean is essentially a model of your data set. It is the value that is most
common. You will notice, however, that the mean is not often one of the
actual values that you have observed in your data set. However, one of its
important properties is that it minimises error in the prediction of any one
value in your data set. That is, it is the value that produces the lowest
amount of error from all other values in the data set.
An important property of the mean is that it includes every value in your data
set as part of the calculation. In addition, the mean is the only measure of
central tendency where the sum of the deviations of each value from the
mean is always zero.
87
When not to use the mean
88
The mean salary for these ten staff is $30.7k. However, inspecting the raw
data suggests that this mean value might not be the best way to
accurately reflect the typical salary of a worker, as most workers have
salaries in the $12k to 18k range. The mean is being skewed by the two
large salaries. Therefore, in this situation, we would like to have a better
measure of central tendency. As we will find out later, taking the median
would be a better measure of central tendency in this situation.
89
Another time when we usually prefer the median over the mean (or mode)
is when our data is skewed (i.e., the frequency distribution for our data is
skewed). If we consider the normal distribution - as this is the most
frequently assessed in statistics - when the data is perfectly normal, the
mean, median and mode are identical. Moreover, they all represent the
most typical value in the data set. However, as the data becomes skewed
the mean loses its ability to provide the best central location for the data
because the skewed data is dragging it away from the typical value.
However, the median best retains this position and is not as strongly
influenced by the skewed values. This is explained in more detail in the
skewed distribution section later in this guide.
90
2.2 MEDIAN
The median is the middle score for a set of data that has been arranged in
order of magnitude. The median is less affected by outliers and skewed data.
In order to calculate the median, suppose we have the data below:
We first need to rearrange that data into order of magnitude (smallest first)
91
Our median mark is the middle mark - in this case, 56 (highlighted in bold). It
is the middle mark because there are 5 scores before it and 5 scores after it.
This works fine when you have an odd number of scores, but what happens
when you have an even number of scores? What if you had only 10 scores?
Well, you simply have to take the middle two scores and average the result.
So, if we look at the example below:
Only now we have to take the 5th and 6th score in our data set and
average them to get a median of 55.5.
92
2.3 MODE
93
Normally, the mode is
used for categorical
data where we wish to
know which is the most
common category, as
illustrated
94
We can see above that the
most common form of
transport, in this particular
data set, is the bus. However,
one of the problems with the
mode is that it is not unique,
so it leaves us with problems
when we have two or more
values that share the highest
frequency, such as
95
We are now stuck as to which mode best describes the central tendency of
the data. This is particularly problematic when we have continuous data
because we are more likely not to have any one value that is more frequent
than the other. For example, consider measuring 30 peoples' weight (to the
nearest 0.1 kg). How likely is it that we will find two or more people
with exactly the same weight (e.g., 67.4 kg)? The answer, is probably very
unlikely - many people might be close, but with such a small sample (30
people) and a large range of possible weights, you are unlikely to find two
people with exactly the same weight; that is, to the nearest 0.1 kg. This is why
the mode is very rarely used with continuous data.
96
Another problem with the mode is
that it will not provide us with a
very good measure of central
tendency when the most common
mark is far away from the rest of
the data in the data set, as
depicted in the diagram
Tthe mode has a value of 2. We
can clearly see, however, that the
mode is not representative of the
data, which is mostly
concentrated around the 20 to 30
value range. To use the mode to
describe the central tendency of
this data set would be misleading.
97
2.4 SKEWED
DISTRIBUTIONS AND THE
MEAN AND MEDIAN
98
When you have a normally distributed sample you can legitimately use both
the mean or the median as your measure of central tendency. In fact, in any
symmetrical distribution the mean, median and mode are equal. However, in
this situation, the mean is widely preferred as the best measure of central
tendency because it is the measure that includes all the values in the data
set for its calculation, and any change in any of the scores will affect the
value of the mean. This is not the case with the median or mode.
99
However, when our data is skewed, for example, as with the right-skewed
data set below:
100
We find that the mean is being dragged in the direct of the skew. In these
situations, the median is generally considered to be the best representative
of the central location of the data. The more skewed the distribution, the
greater the difference between the median and mean, and the greater
emphasis should be placed on using the median as opposed to the mean. A
classic example of the above right-skewed distribution is income (salary),
where higher-earners provide a false representation of the typical income if
expressed as a mean and not a median.
If dealing with a normal distribution, and tests of normality show that the
data is non-normal, it is customary to use the median instead of the mean.
However, this is more a rule of thumb than a strict guideline. Sometimes,
researchers wish to report the mean of a skewed distribution if the median
and mean are not appreciably different (a subjective assessment), and if it
allows easier comparisons to previous research to be made.
101
3. SUMMARY OF WHEN TO USE THE MEAN, MEDIAN
AND MODE
Please use the following summary table to know what the best measure of
central tendency is with respect to the different types of variable.
102
Thank you.
References
◉ https://www.rajgunesh.com/resources/downloads/statistics/presentationofdata.pdf
◉ https://www.slideshare.net/Sujarvs/presentation-of-data-ppt
◉ https://statistics.laerd.com/statistical-guides/measures-central-tendency-mean-
mode-median.php
103