3descriptive Numerical Summary Measures
3descriptive Numerical Summary Measures
19 February 2017 1
Mathematical Presentation (Summery Statistics)
• Single numbers which quantify the characteristics
of a distribution of data
A. Measures of location
Measures of central tendency
Measures of non central locations
(Quartiles, Percentiles )
B. Measures of dispersion
• A frequency distribution is a general picture of the
distribution of a variable
• But, can’t indicate the average value and the spread
of the values
19 February 2017 2
Summary Measures: Population
Parameters and Sample Statistics
Measures of Central Measures of Variability
Tendency Range
Median Inter-quartile range
Mode Variance
Standard Deviation
Mean
Coefficient of variation
Weighted Mean
Other summary
measures:
Skewness
Kurtosis
19 February 2017 3
Measures of Central Tendency
(MCT)
• On the scale of values of a variable there is a certain
stage at which the largest number of items tend to
cluster.
19 February 2017 5
MCT …
Position
20
15
10
0
0-9 10-19 20-29 30-39 40-49 50-59 60-69 70-79 80-89 90-99
19 February 2017 6
Characteristics of a good MCT
A MCT is good or satisfactory if it possesses the
following characteristics.
1. It should be based on all the observations
2. It should not be affected by the extreme values
3. It should be as close to the maximum number of values as
possible
4. It should have a definite value
5. It should not be subjected to complicated and tedious
calculations
6. It should be capable of further algebraic treatment
7. It should be stable with regard to sampling
19 February 2017 7
MCT …
19 February 2017 8
Measures of Central Tendency
or Location
Mean Average
19 February 2017 9
1. Arithmetic Mean
A. Ungrouped Data
• The arithmetic mean is the "average" of the data set and
by far the most widely used measure of central location
• It is usually denoted by
• Is the sum of all the observations divided by the total
number of observations.
19 February 2017 10
The Summation Notation
19 February 2017 11
1. Arithmetic Mean…
19 February 2017 12
1. Arithmetic Mean…
∑xi = 2+5+1+4+10-5+8 = 25
19 February 2017 13
Rules for working with summation
19 February 2017 14
1. Arithmetic Mean…
Example 2: The heart rates for n=10 patients were
as follows (beats per minute):
167, 120, 150, 125, 150, 140, 40, 136, 120, 150
What is the arithmetic mean for the heart rate of
these patients?
19 February 2017 15
Exercise 1
In 2005 epidemiology course, the final exam result of
10 2nd year public health student was: 40, 25, 40, 41,
50, 41, 39, 37, 39, 41
What is the mean score of the above result?
Answer
mean= 40+25+40+41+50+41+39+37+39+41
10
Mean =39.3
19 February 2017 16
1. Arithmetic Mean …
b) Grouped data
In calculating the mean from grouped data, we assume that all values falling into a
particular class interval are located at the mid-point of the interval. It is calculated as
follow:
k
m f
i=1
i i
x= k
f i=1
i
where,
k = the number of class intervals
mi = the mid-point of the ith class interval
fi = the frequency of the ith class interval
19 February 2017 17
Example.3: Compute the mean age of 169 subjects from the
grouped data.
19 February 2017 18
1. Arithmetic Mean …
19 February 2017 19
When the data are skewed, the mean is “dragged” in the
direction of the skewness
Advantages Disadvantages
• It is based on all values • It may be greatly
given in the distribution. affected by extreme
• It is most easly items
understood. • When the distribution
• It is most amenable to has open-end classes, its
algebraic treatment. computation may not be
valid
19 February 2017 22
2. Median
a) Ungrouped data
• An alternative measure of central location, perhaps second
in popularity to the arithmetic mean
• Is the value which divides the data set into two equal parts
• If the number of values is odd, the median will be the
middle value when all values are arranged in order of
magnitude.
• When the number of observations is even, there is no
single middle value but two middle observations.
In this case the median is the mean of these two middle
observations, when all observations have been arranged
in the order of their magnitude.
19 February 2017 23
2. Median …
19 February 2017 24
2. Median …
19 February 2017 25
Example 4 – Median
Sales Sorted Sales
9 6
6 9
12 10
10 12 Median =
13 13
15 14 50th Percentile= [(n+1)p]th
16 14
14 15
(20+1)50/100=10.5
14 16
16 16
17 16
Median
16 + 16 = 16
16 17
2
24 17
21 18
22 18
18 19 The median is the middle
19 20
18 21 value of data sorted in
20 22
17 24 order of magnitude. It is
19 February 2017 the 50th percentile. 26
2. Median …
19 February 2017 27
• The median is a better description (than the mean) of
the majority when the distribution is skewed
• Example 5:
– Data: 14, 89, 93, 95, 96
– Skewness is reflected in the outlying low value of 14
– The sample mean is 77.4
– The median is 93
19 February 2017 28
2. Median ….
B) Grouped Data: In calculating the median from
grouped data, we assume that the values within a
class-interval are evenly distributed through the
interval.
• The first step is to locate the class interval in
which the median is located, using the following
procedure.
• Find n/2 and see a class interval with a minimum
cumulative frequency which contains n/2.
• Then, use the following formula.
19 February 2017 29
2. Median ….
n
Fc
x = Lm 2
~ W
fm
where,
Lm = lower true class boundary of the interval containing the median
Fc = cumulative frequency of the interval just above the median class
interval
fm = frequency of the interval containing the median
W= class interval width
n = total number of observations
19 February 2017 30
Example 6. Compute the median age of 169
subjects from the grouped data.
Class interval Mid-point (mi) Frequency (fi) Cum. freq
10-19 14.5 4 4
20-29 24.5 66 70
30-39 34.5 47 117
40-49 44.5 36 153
50-59 54.5 12 165
60-69 64.5 4 169
Total 169
19 February 2017 32
Properties of the median
• There is only one median for a given set of data
(uniqueness)
• The median is easy to calculate
• Median is a positional average and hence it is not
sensitive to extreme values can be calculated even in
the case of open end intervals
• It is determined mainly by the middle points and less
sensitive to the remaining data points (weakness).
19 February 2017 33
Median …
Advantages Disadvantages
• It is easily calculated and is • The median is not so
not much disturbed by well suited to algebraic
extreme values
treatment as the means.
• It is more typical of the
series • It is not so generally
• The median may be located familiar as the
even when the data are arithmetic mean
incomplete,
• Good with ordinal data
19 February 2017 34
3. Mode
• The mode is the most frequently occurring value
among all the observations in a set of data.
• It is not influenced by extreme values.
• It is possible to have more than one mode or no
mode.
• It is even less amenable (responsive) to mathematical
treatment than the median
• It is not a good summary of the majority of the data.
19 February 2017 35
Mode
Mode
Mode
20
18
16
14
12
10
8
6
4
2
0 2017
19 February 36
T. Ancelle, D. Coulombie
Example 7 - Mode
.
. . . . . : . : : : . . . . .
---------------------------------------------------------------
6 9 10 12 13 14 15 16 17 18 19 20 21 22 24
Mode = 16
19 February 2017 38
• Example 8
• Data are: 1, 2, 3, 4, 4, 4, 4, 5, 5, 6
• Mode is 4 “Unimodal”
• Example 9
• Data are: 1, 2, 2, 2, 3, 4, 5, 5, 5, 6, 6, 8
• There are two modes – 2 & 5
• This distribution is said to be “bi-modal”
• Example 10
• Data are: 2.62, 2.75, 2.76, 2.86, 3.05, 3.12
• No mode, since all the values are different
19 February 2017 39
Mode…
b) Grouped data
• we usually frist refer to the modal class, where the
modal class is the class interval with the highest
frequency.
• If a single value for the mode of grouped data
must be specified, it is taken as the mid-point of
the modal class interval.
19 February 2017 40
Mode …
19 February 2017 41
• Lcbmod=63.5
Fl=16
∆1=fmod-fl=27-16=11
Fh=20
∆2=fmod-fh =27-20=7
Mode = 63.5+(11)3
11+7
Mode= 65.33beats/min
19 February 2017 42
Properties of mode
It is not affected by extreme values
It can be calculated for distributions with open end
classes
It is the most typical value of the distribution
Often its value is not unique
The main drawback of mode is that often it does
not exist
19 February 2017 43
Mode …
Advantages Disadvantages
• Since it is the most typical • It is not capable of
value it is the most mathematical
descriptive average treatment
• Since the mode is usually • In a small number of
an “actual value”, it items the mode may
indicates the precise value not exist.
of an important part of the
series.
19 February 2017 44
4. Geometric mean (GM)
• Mainly used in many types of laboratory data,
specifically data in the form of concentrations of one
substance in another
• Example 11: the minimum inhibitory concentration of
penicillin in urine for N. gonorrhoeae in 71 patients
0.03125 21 0.250 19
0.0625 6 0.50 17
0.1250 8 1.0 3
19 February 2017 45
4. Geometric mean (GM) …
If x 1 , x 2 , ..., x n are n positive observed values, then
n
GM = n x i
i=1
and
n
logx
i=1
i
logGM = .
n
The geometric mean is generally used with data measured on a logarithmic scale, such
as titers of anti-neutrophil immunoglobulin G.
It is also preferred when several values in a data set are much higher
than all of the others. These higher values would tend to inflate or
distort an arithmetic mean.
19 February 2017 46
Example 11: the Geometric mean (GM) of the
above data is:
19 February 2017 47
Characteristics of Geometric mean
Advantages Disadvantages
• since it is less affected • Its computation is
by extremes it is a more relatively difficult.
preferable average than • It cannot be determined
the arithmetic mean if there is any negative
• It is capable of algebraic value in the distribution,
treatment or where one of the
• It is based on all values items has a zero value.
given in the distribution.
19 February 2017 49
5. Harmonic mean (HM)
19 February 2017 50
5. Harmonic mean (HM) …
19 February 2017 51
6. Weighted mean (WM)
19 February 2017 52
Example 12:
19 February 2017 53
Which measure of central tendency is best with a
given set of data?
19 February 2017 54
• The mode can be used for all types of data, but may
be especially useful for nominal and ordinal
measurements
For discrete or continuous data, the “modal class”
can be used
• The geometric mean is used primarily for
observations measured on a logarithmic scale.
• Harmonic mean is a suitable MCT when the data
pertains to rates and time.
• Weighted mean is commonly used in the calculation
of mean for different outcomes.
19 February 2017 55
Skewness
• If extremely low or extremely high observations are
present in a distribution, then the mean tends to shift
towards those scores (misses central location in case).
19 February 2017 56
(a) Symmetrical distribution: one half of the
curve is the mirror image of the other half
i. Symmetric and unimodal distribution —
Mean, median, and mode should all be
approximately the same
Mean =Median=Mode
19 February 2017 57
ii. Symmetric Bimodal distribution
• Mean and median should be about the same,
but may take a value that is unlikely to occur;
two modes might be best
19 February 2017 58
(b) Skewed to the right (positively skewed)
• Occurs when the majority of scores are at the left end
of the curve and a few extreme large scores are
scattered at the right end
• Mean is sensitive to extreme values, so median might
be more appropriate
Mode
Median
Mean
Median
Mean
19 February 2017 60
19 February 2017 61
19 February 2017 62
Skewness and Sample Distributions
Not all curves are normal, even if still bell-shaped
7. Percentiles
19 February 2017 65
Example 13-1
Sales Sorted Sales
A large department store
9 6
collects data on sales made by 6
12
9
10
each of its salespeople. The 10
13
12
13
number of sales made on a 15
16
14
14
given day by each of 14
14
15
16
20 salespeople is as shown on 16
17
16
16
the this slide. Also, the data 16
24
17
17
has been sorted in magnitude. 21
22
18
18
18 19
19 20
18 21
20 22
17 24
Example 13-1 (Continued) Percentiles
Find the 50th, 80th, and the 90th percentiles of this
data set.
To find the 50th percentile, determine the data point
in position (n + 1)P/100 = (20 + 1)(50/100)
= 10.5.
Thus, the percentile is located at the 10.5th
position.
The 10th observation is 16, and the 11th observation
is also 16.
The 50th percentile will lie halfway between the
10th and 11th values (which are both 16 in this case)
and is thus 16.
Example 13-1(Continued) Percentiles
Two or more sets may have the same mean and/or median but they
may be quite different.
19 February 2017 73
These two distributions have the same mean,
median, and mode
19 February 2017 74
• MCT are not enough to give a clear
understanding about the distribution of
the data.
19 February 2017 75
Measures of Dispersion
• Measures that quantify the variation or
dispersion of a set of data from its central
location
19 February 2017 76
Measures of Dispersion
Other synonymous term:
– ―Measure of Variation‖
– ―Measure of Spread‖
– ―Measures of Scatter‖
19 February 2017 77
• Measures of dispersion include:
– Range
– Inter-quartile range
– Variance
– Standard deviation
– Coefficient of variation
– Standard error
– Others
19 February 2017 78
1. Range (R)
• The difference between the largest and
smallest observations in a sample.
• Example –
– Data values: 5, 9, 12, 16, 23, 34, 37, 42
– Range = 42-5 = 37
• Data set with higher range exhibit more
variability
19 February 2017 79
Properties of range
It is the simplest crude measure and can be
easily understood
It takes into account only two values which
causes it to be a poor measure of dispersion
Very sensitive to extreme observations
The larger the sample size, the larger the
range
19 February 2017 80
2. Interquartile range (IQR)
• Indicates the spread of the middle 50% of
the observations, and used with median
IQR = Q3 - Q1
19 February 2017 82
Properties of IQR:
• It is a simple and versatile measure
• It encloses the central 50% of the observations
• It is not based on all observations but only on
two specific values
• It is important in selecting cut-off points in the
formulation of clinical standards
• Since it excludes the lowest and highest 25%
values, it is not affected by extreme values
• Less sensitive to the size of the sample
19 February 2017 83
Example - Range and Interquartile Range
(Data is used from Example 1-1)
Sorted
Sales Sales Rank
9 6 1 Minimum Range: Maximum - Minimum =
6 9 2 24 - 6 = 18
12 10 3
10 12 4
13 13 5 Q1 = 13 + (.25)(1) = 13.25
15 14 6 First Quartile
16 14 7
14 15 8
14 16 9
16 16 10 Q2 = Median =P50
17 16 11
16 17 12
24 17 13 Q3 = 18+ (.75)(1) = 18.75
21 18 14
22 18 15 Third Quartile
18 19 16 Interquartile Q3 - Q1 =
19 20 17
Range: 18.75 - 13.25 = 5.5
18 21 18
20 22 19 Maximum
17 24 20
3. Quartile deviation (QD)
QD =
Q 3 Q1
2
19 February 2017 85
4. Coefficient of quartile deviation
(CQD)
• CQD = Q 3 Q 1
Q 3 Q1
• CQD is an absolute quantity (unitless)
and is useful to compare the variability
among the middle 50% observations.
19 February 2017 86
5. Mean deviation (MD)
• Mean deviation is the average of the
absolute deviations taken from a central
value, generally the mean or median.
• Consider a set of n observations x1, x2,
..., xn. Then:
n
1
MD x i A
n i 1
• ‗A‘ is a central value (arithmetic mean or
median).
19 February 2017 87
Properties of mean deviation:
MD removes one main objection of the earlier
measures, that it involves each value
19 February 2017 88
6. Variance 2
( , 2
s)
• The main objection of mean deviation, that
the negative signs are ignored, is removed
by taking the square of the deviations from
the mean.
19 February 2017 89
Variance and Standard
Deviation
Population Variance Sample Variance
(x x)
n
N 2
(x m) 2
s
2 i 1
2 i1
N
(n 1)
( )
2
( x)
2
N n
x
i 1
N
x
n
x 2 i 1 2
n
i 1
i1 N
N (n 1)
2
s s 2
• It is squared because the sum of the
deviations of the individual observations of
a sample about the sample mean is
always 0
0 = ( x i - x )
19 February 2017 92
a) Ungrouped data
Let X1, X2, ..., XN be the measurement on
N population units, then:
N
(X i m) 2
2 i 1
where
N
N
X i
m= i=1
is the population mean.
N
19 February 2017 93
A sample variance is calculated for a sample of
individual values (X1, X2, … Xn) and uses the sample
mean (e.g. ) rather than the population mean µ.
19 February 2017 94
Why divide by n‐1?
19 February 2017 95
Another feature about n-1
• In many statistical tests we sum variances
from groups and we lose a data point or what
is sometimes referred to as degrees of
freedom.
• For each sample estimate we therefore lose
a degree of freedom-all numbers on which
the estimate is based are free to vary except
one
19 February 2017 96
19 February 2017 97
Calculation of Sample Variance
x xx (x x) 2 x2 n
(x x)
2
16
17
0.15
1.15
0.0225
1.3225
256
289 (n 1)
17 1.15 1.3225 289 2
100489
317
18 2.15 4.6225 324 5403 5403
18 2.15 4.6225 324 20 20
19
20
3.15
4.15
9.9225
17.2225
361
400
(20 1) 19
21 5.15 26.5225 441 5403 5024.45 378.55
22 6.15 37.8225 484 19.923684
24 8.15 66.4225 576 19 19
317 0 378.5500 5403 s s 19.923684 4.46
2
b) Grouped data
k
i
(m x) 2
fi
S2 i=1
k
f
i=1
i -1
where
mi = the mid-point of the ith class interval
fi = the frequency of the ith class interval
x = the sample mean
k = the number of class intervals
19 February 2017 99
Properties of Variance:
The main disadvantage of variance is
that its unit is the square of the unit of
the original measurement values
The variance gives more weight to the
extreme values as compared to those
which are near to mean value, because
the difference is squared in variance.
• The drawbacks of variance are
overcome by the standard deviation.
19 February 2017 100
7. Standard deviation (, s)
• It is the square root of the variance.
• This produces a measure having the
same scale as that of the individual
values.
and S = S
2 2
• For example, imagine 5,000 samples, each of the same size n=11.
This would produce 5,000 sample means. This new collection has
its own pattern of variability. We describe this new pattern of
variability using the SE, not the SD.
• What happens if we repeat the study? What will our next mean be? Will
it be close? How different will it be?
• The behavior of mean from one replication of the study to the next
replication is referred to as the sampling distribution of mean.
• We can also have sampling distribution of the median or the SD
S
CV 100
x
SD Mean CV (%)
SBP 15mm 130mm 11.5
Cholesterol 40mg/dl 200mg/dl 20.0