Académique Documents
Professionnel Documents
Culture Documents
Christine Crisp
"Certain images and/or photos on this presentation are the copyrighted property of JupiterImages and are being used with permission under license. These images and/or photos may not be copied or downloaded without permission from JupiterImages"
13 34 23
28 17 31 32
13 17 23 28 31 32 34
The median is the middle value, which we can see is the 5th value, so, median = 23 n1 The formula telling us which value we want is , 2 where n is the number of data items. If n is an even number, we average the 2 middle values.
x f
1 4
2 7
3 9
4 6
5 2
28 1 14 5 th 2 We need to average the 14th and 15th numbers. Accumulating the frequencies:
n1 we need: 2
x Cu. f
1 4
2 11
3 20
so, the 14th and 15th observations are both 3. The median is 3.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7,
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class. Coming up with our own method, needing 4 out of the frequency of 5, we would go 4/5th along the class. The class is 10 wide
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class. Coming up with our own method, needing 4 out of the frequency of 5, we would go 4/5th along the class. The class is 10 wide and 4/5th of 10 is 8.
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class. Coming up with our own method, needing 4 out of the frequency of 5, we would go 4/5th along the class. The class is 10 wide and 4/5th of 10 is 8. We would go 8 along the class, which starts at 205,
The Median of Grouped Data 205 estimate the median. With a grouped distribution, we can only
e.g. 3
1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 3 4 5 6 3
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class. Coming up with our own method, needing 4 out of the frequency of 5, we would go 4/5th along the class. The class is 10 wide and 4/5th of 10 is 8. We would go 8 along the class, which starts at 205,
Frequency, f
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. The first 2 classes have a cumulative frequency of 7, so to reach 11, we need 4 more. The 3rd class has a frequency of 5 so we need to go part-way along this class. Coming up with our own method, needing 4 out of the frequency of 5, we would go 4/5th along the class. The class is 10 wide and 4/5th of 10 is 8. We would go 8 along the class, which starts at 205, giving 28 5. This is a reasonable estimate but not quite the accepted method which is called Linear Interpolation.
Frequency, f
Our reasoning was: The median is the 11th observation. There are 7 in class 1 and class 2. We need to add 4 to reach the median. We need to assume the data are evenly distributed in the 3rd class and it can be shown that this means the median is found at 35 along the class not 4. You dont need to know the reason for this but Ive put an explanation at the end of the presentation. If you liked our reasoning to get to the estimate, stick to it, but in locating the median use instead of you will get the correct answer. 2
n1 and 2
Frequency, f
If you prefer to use a formula to find the estimate of the median, the formula is given by
l.c.b. 20 5
n F median l.c.b. 2 w f
where,
F7 f 5 w 10
n 2
10 5
median 20 5
27 5
10 5 7 10 5
SUMMARY To use linear interpolation to find an estimate of the median for a grouped frequency distribution, we locate the class containing the median using total frequency divided by 2, use
n F median l.c.b. 2 w f
where,
containing the median, ( think of n/2 F as the distance along the class to the median ),
f is the frequency of the class containing the median, w is the width of the class containing the median.
or, use reasoning to save the need to remember the formula.
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
The median is in the 2nd class. Method 1: Without the formula, The 1st class has 7 . . .
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
The median is in the 2nd class. Method 1: Without the formula, The 1st class has 7 . . . so we need to go 15 7 = 8 along the 2nd class. There are 10 in the 2nd class . . .
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
The median is in the 2nd class. Method 1: Without the formula, The 1st class has 7 . . . so we need to go 15 7 = 8 along the 2nd class. There are 10 in the 2nd class . . . so we want 8/10
th
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
The median is in the 2nd class. Method 1: Without the formula, The 1st class has 7 . . . so we need to go 15 7 = 8 along the 2nd class. There are 10 in the 2nd class . . . so we want 8/10
th
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
distance along class: n
where,
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
distance along class: n
where,
F 15
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
distance along class: n
where,
F 15 7
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
distance along class: n frequency of class,
where,
F 15 7 8
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
where,
F 15 7 8 2 frequency of class, f 10
distance along class: n
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
where,
F 15 7 8 2 frequency of class, f 10
distance along class: n width of class, w 10 5 5 5 5
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
where,
F 15 7 8 2 frequency of class, f 10
distance along class: n width of class, w 10 5 5 5 5
8 median 5 5 5 9 5 10
If you find it easy to work each problem out using reasoning, just stick to that. Its all the formula is doing anyway.
1-5 2
6 - 10 11 - 15 16 - 20 3 4 2
n 11
21 - 30 31 - 35 36 - 40 41 - 50 5 7 10 6 10 - 12 13 - 15 16 - 18 20 24 16
2.
Length(cm) Frequency, f
21 - 30 31 - 35 36 - 40 41 - 50 5 7 10 6
n 14 2
n 28
n F median l.c.b. 2 w f
distance along class: n
2 class width = 40 5 35 5 5
F 14 12 2
median 35 5
2 5 36 5 10
10 - 12 13 - 15 16 - 18 20 24 16
Solution:
F 30 20 10
As the data give ages, the boundaries are 13 and 16, not 125 and 155.
class width = 16 13 3
10 median 13 3 14 3 24
The next 4 slides show you how the linear interpolation formula is derived. You are not expected to know the derivation so you can skip over them unless you are interested. SKIP
1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 3 4 5 6 3
There are 21 observations so we want to estimate the size of the 11th one. It lies in the 3rd class. Since we have 7 observations in the first 2 classes, the median is the 4th value in the 3rd class. The observations could be anywhere in the class but on average we expect them to be evenly spaced so we assume that the 3rd class looks like this:
205 215
x
295
1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 3 4 5 6 3
05 1
x x
205
1
x
1
x
215
295
305
We need to express this as a formula. The diagram shows we want to add 7 to the l.c.b. 7 10 This is 7 tenths of the class width or 10
1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 3 4 5 6 3
x x x x x
205
305
215
295
We need to express this as a formula. The diagram shows we want to add 7 to the l.c.b. 7 10 This is 7 tenths of the class width or 10
3 5 10 27 5 5
1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 3 4 5 6 3
x x x x x
205
305
215
295
n F median l.c.b. 2 w f
We can think of n/2 F as the distance along the class to the median.
The following slides contain repeats of information on earlier slides, shown without colour, so that they can be printed and photocopied.
For most purposes the slides can be printed as Handouts with up to 6 slides per sheet.
SUMMARY To use linear interpolation to find an estimate of the median for a grouped frequency distribution, we locate the class containing the median using total frequency divided by 2,
use
n F median l.c.b. 2 w f
where,
containing the median, ( think of n/2 F as the distance along the class to the median ), f is the frequency of the class containing the median, w is the width of the class containing the median. or, use reasoning to save the need to remember the formula.
1-5 7
6 - 10 11 - 15 16 - 20 10 8 5
n 15 2
n 30
n F median l.c.b. 2 w f
where,
F 15 7 8 2 frequency of class, f 10
distance along class: n width of class, w 10 5 5 5 5
8 median 5 5 5 9 5 10
1-5 2
6 - 10 11 - 15 16 - 20 3 4 2
n 11