Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4.2.2 Calculate the mean, mode and median for grouped and ungrouped data.
• Median:
A number such that at most half of the measurements are below it and at most
half of the measurements are above it.
• Mode:
The most frequent measurement in the data.
DATA
Example :
Ungrouped data without a frequency distribution.
1, 3, 6, 4, 5, 6, 3, 4, 6, 3, 6
Example :
Ungrouped data with a frequency distribution.
0 2
1 13
2 18
3 0
4 10
5 2
TOTAL 45
Example :
Grouped data.
Number of games Frequency
1–5 2
6 – 10 7
11 – 15 8
16 – 20 3
The groups (1-5, 6-10, etc) also called class intervals, are of width 5
The numbers 1, 6, 11 and 16 are the lower class boundaries (lower limit)
The numbers 5, 10, 15 and 20 are the upper class boundaries (upper limit)
The midpoints are halfway between the lower and upper class boundaries
So the midpoints are 3, 8, 13 and 18
Mean Mean for population data: x
N
Where:
∑x = the sum of all values
N = the population size
n = the sample size,
µ = the population mean
x = the sample mean
The mean has the advantage that its calculation includes each value of
the data set.
The following data give the prices (rounded to thousand RM) of five homes sold recently
in Kemaman.
x
x
n
The median gives the center of a histogram, with half of the data values
to the left of (or, less than) the median and half to the right of (or, more
than) the median.
The advantage of using the median is that it is not influenced by outliers.
NOR AFZAN BINTI ARIFFIN | PSMZA
EXAMPLE 4.2
Therefore the median is located in the middle of 3rd position and 4th position of the
data set.
3 8 8 10 15 19
Median = 8 + 10 = 9
2
1. Mode = 68 69 71 74 74 77
After arranging the quantities in an array, we observe that 74 is the quantity that occurs
most frequently. Therefore the mode is 74.
2. Mode = 68 68 69 71 73 74 77 77 77 81
After arranging the quantities in an array, we observe that 77 is the quantity that occurs
most frequently. Therefore the mode is 77.
Remember ???
Number of order f
10 – 12 4
13 – 15 12
16 – 18 20
19 – 21 14
TOTAL n = 50
Solution:
Because the data set includes only 50 days, it represents a sample. The value of is calculated in the
following table:
10 – 12 4 11 44
13 – 15 12 14 168
16 – 18 20 17 340
19 – 21 14 20 280
n = 50 ∑fx = 832
Remember ???
Where x the midpoint and f is the frequency of a class.
Midpoint = lower limit of class + upper limit of class
2
So, compute the arithmetic mean,
Where:
n = sample size = ∑f = sum of frequency
∑fm-1 = cumulative frequency before the class median
C = median class size / class width
Lm = lower limit of the class median
fm = frequency of the class median
1 – 10 8
11 – 20 14
21 – 30 12
31 – 40 9
41 – 50 7
31 – 40 9 43 35 - 43
41 – 50 7 50 44 - 50
Total n = 50
1 – 10 8
11 – 20 14
21 – 30 12
31 – 40 9
41 – 50 7
41 – 50 7 50 44 - 50
Total n = 50
Where :
n = 50 sample size = ∑f = sum of frequency
∑fm-1 = 22 cumulative frequency before the class median
C = 10 median class size / class width
Lm = 20.5 lower boundary (limit) of the class median
fm = 12 frequency of the class median
Remember ???
Lower boundary of a class = Upper limit of previous class + Lower limit of class
2
11 – 20 4 14
2 22 9 - 22
5 The class
21 – 30 12 34 23 - 34
median
31 – 40 9 43 35 - 43
41 – 50 7 50 44 - 50
Total
1 n = 50
Where :
1. n = 50 sample size = ∑f = sum of frequency
2. ∑fm-1 = 22 cumulative frequency before the class median
3. C = 10 median class size / class width
4. Lm = 20.5 lower boundary (limit) of the class median
5. fm = 12 frequency of the class median
Where:
C = class width
Time to travel to
Frequency
work
1 – 10 8
11 – 20 14
21 – 30 12
31 – 40 9
41 – 50 7
TOTAL 50
C = class width
41 – 50 7
We can say "the modal group is 11 - 20"
TOTAL 50
But the actual Mode may not even be in that group! Or there may be more
than one mode. Without the raw data we don't really know.
class width
As discussed in previous topic, histogram or a frequency distribution curve can assume either skewed
shape or symmetrical shape.
Knowing the value of mean, median and mode can give us some idea about the shape of frequency
curve.
a) For a symmetrical histogram and frequency curve with one peak, the value of the mean, median
and mode are identical and they lie at the center of the distribution.
Mean, median, and mode for a symmetric histogram and frequency distribution curve
Mean, median, and mode for a histogram and frequency distribution curve skewed to the right
c) For a histogram and a frequency curve skewed to the left, the value of the mean is the smallest
and that of the mode is the largest and the value of the median lies between these two.
Mean, median, and mode for a histogram and frequency distribution curve skewed to the left
NOR AFZAN BINTI ARIFFIN | PSMZA
TUTORIAL 4.1
The table below shows the years of working experience for 120 employees of Jimmy’s Company.
1–4 16
5–8 20
9 – 12 28
13 – 16 24
17 – 20 16
21 – 24 11
25 – 28 5
TOTAL 120
Compute the mean, median & mode of employees years of working experience.
Number of
Weight
students
43.5 – 48.5 2
48.6 – 53.6 5
53.7 – 58.7 14
58.8 – 63.8 15
63.9 – 68.9 13
69.0 – 74.0 11
Compute the mean, median & mode for Level 1 student in Logistics Class at PSMZA in 2012 and
what can be inferred from the value.
35 – 39 5
40 – 44 25
45 – 49 35
50 – 54 44
55 – 59 18
60 – 64 22
65 – 79 11
TOTAL 160
Compute the mean, median & mode of employees years of working experience.
1–4 7
5–8 5
9 – 12 15
13 – 16 4
17 – 20 5
21 – 24 0
25 – 28 1
TOTAL 37
Compute the mean, median & mode of the exam score for 37 students.
1–4 16 16 1 – 16
5–8 20 36 17 - 36
The class 9 – 12 28 64 37 – 64
median
13 – 16 24 88 65 - 88
17 – 20 16 104 89 - 104
21 – 24 11 115 105 - 115
25 – 28 5 120 116 -120
TOTAL 120
1–4 16
5–8 20
9 – 12 28 Highest frequency
13 – 16 24
17 – 20 16
21 – 24 11
25 – 28 5
TOTAL 120
Number of
Years of experience Mid point
employees fx
(Data Interval) (x)
(f)
35 – 39 5 37 185
40 – 44 25 42 1050
45 – 49 35 47 1645
50 – 54 44 52 2288
55 – 59 18 57 1026
60 – 64 22 62 1364
65 – 79 11 72 792
TOTAL ∑f = 160 ∑fx = 8350
Mid point
Exam Score Frequency fx
(x)
1–4 7 2.5 17.5
5–8 5 6.5 32.5
9 – 12 15 10.5 157.5
13 – 16 4 14.5 58.0
17 – 20 5 18.5 92.5
21 – 24 0 22.5 0
25 – 28 1 26.5 26.5
TOTAL ∑f = 37 ∑fx =384.5
1–4 7
5–8 5
9 – 12 15 Highest frequency
13 – 16 4
17 – 20 5
21 – 24 0
25 – 28 1
TOTAL ∑f = 37
11 14 4 7 21 18 22 16 19 15 7 8 19 8 9 4 18
(b) The age distribution of insurance agents in an insurance company is as shown in Table at below:
Number of
Midpoint
Age (Year) agents fx
(x)
(f)
21 – 25 10 23 230
26 – 30 35 28 980
31 – 35 16 33 528
51 – 55 3 53 159
(i) Calculate the mean, median and mode for the data given.
25 55 34 32 25 18 25 32 29 28 44 40 34 28 25 42
x = ∑f = 516 = 32.25
n 16
So, compute the median,
So, compute the mode,
SOLUTION
18 25 25 25 28 28 28 29 32 32 34 34 40 42 44 55
Step 2:
After arranging the quantities in an array, we observe that 28 is the quantity that occurs most frequently.
Therefore the mode is 28.
NOR AFZAN BINTI ARIFFIN | PSMZA