Median of a List

The median is the middle value of the data after the values have been arranged in order. Half the values lie at or below it and half at or above it.

Step 1: arrange. Write the values in ascending (or descending) order. If this step is skipped, the answer is wrong however careful the rest of the working is.

Step 2: find the middle position. For nn values:

  • if nn is odd, the median is the (n+12)\left(\frac{n+1}{2}\right)th value;
  • if nn is even, there are two middle values, the (n2)\left(\frac{n}{2}\right)th and the (n2+1)\left(\frac{n}{2} + 1\right)th, and the median is their mean.

Odd count. The runs scored by a batsman in 9 innings were 34, 12, 56, 78, 45, 9, 61, 40 and 23. Arranged, they are 9, 12, 23, 34, 40, 45, 56, 61, 78. The middle position is 9+12=5\frac{9 + 1}{2} = 5, so the median is the 5th value, 40. The 5th value of the list as it was written is 45, and that is not the median.

Even count. Ten students scored 48, 35, 62, 51, 40, 57, 44, 66, 38 and 53. Arranged: 35, 38, 40, 44, 48, 51, 53, 57, 62, 66. The 5th and 6th values are 48 and 51, so the median is 48+512=49.5\frac{48 + 51}{2} = 49.5. With an even count the median need not be one of the values.

Repeated values stay in the list as many times as they occur. The median of 3, 5, 5, 5, 8, 9 is 5+52=5\frac{5 + 5}{2} = 5. Do not drop the repeats while arranging.

Extreme values hardly move it. If the 78 in the first list had been 780, the median would still be 40, while the mean would jump from about 39.8 to about 117.8. The median depends on the order of the values, not on how far out the end values are. That is why it is preferred for incomes, house prices and other data with a few very large values.

Unknowns in a List, and Adding or Removing Values

An unknown in an arranged list. The values 11, 14, 17, xx, x+4x + 4, 26, 29, 33 are in ascending order and their median is 21. There are 8 values, so the median is the mean of the 4th and the 5th:

x+(x+4)2=21⇒2x+4=42⇒x=19\frac{x + (x + 4)}{2} = 21 \Rightarrow 2x + 4 = 42 \Rightarrow x = 19

Check that the order still holds with x=19x = 19: 17, 19, 23, 26. It does. If the value found broke the order, the list would have to be rearranged and the working done again.

When the order is not given. For the values x2,3x,x6,2x,x3\frac{x}{2}, 3x, \frac{x}{6}, 2x, \frac{x}{3} with x>0x > 0, arrange them first: x6<x3<x2<2x<3x\frac{x}{6} < \frac{x}{3} < \frac{x}{2} < 2x < 3x. The median is x2\frac{x}{2}, the middle one after arranging, not x6\frac{x}{6}, the middle one as written. If this median is 9, then x=18x = 18.

Adding values. Adding one value on each side of the median leaves it unchanged. The median of 4, 9, 13, 18, 21, 27, 30 is 18; add 2 and 35 and it is still 18. Adding two values on the same side moves the middle by one place. Add 6 and 11 instead, and the new list 4, 6, 9, 11, 13, 18, 21, 27, 30 has median 13.

Removing values works the other way. Remove the largest and the smallest and the median stays. Remove two values from the top and the middle moves one place down.

Arithmetic lists. For values in equal steps, the median equals the mean: both are the average of the first and last values. The median of the first nn natural numbers is n+12\frac{n+1}{2}; for the first 60 it is 30.5, halfway between 30 and 31.

Count the values of a pattern list first. The odd numbers from 21 to 59 number 59−212+1=20\frac{59 - 21}{2} + 1 = 20. With 20 values the median is the mean of the 10th and 11th, 39 and 41, which is 40. That is the same as 21+592\frac{21 + 59}{2}, as it should be for an arithmetic list.

Median of a Discrete Frequency Table

When values repeat, the data come as a table of values xx with frequencies ff. The idea is the same as for a list: arrange (the table usually is arranged already), find the middle position, and see which value sits there. Positions are found from the cumulative frequency cfcf, the running total of the frequencies.

The shoe sizes sold by a shop in one day:

Size (xx) 5 6 7 8 9 10
Pairs (ff) 4 9 15 11 7 3
cfcf 4 13 28 39 46 49

N=49N = 49 is odd, so the median is the 49+12=25\frac{49 + 1}{2} = 25th value. The cfcf row says that sizes 5 and 6 cover the 1st to the 13th pairs, and size 7 covers the 14th to the 28th. The 25th pair is a size 7, so the median size is 7.

The rule: look along the cfcf row for the first entry that is equal to or greater than the middle position. The xx above it is the median.

Even NN. The number of books read in a month by 40 students:

Books (xx) 1 2 3 4 5
Students (ff) 6 10 4 12 8
cfcf 6 16 20 32 40

The middle values are the 20th and the 21st. The 3s run from the 17th to the 20th, so the 20th value is 3, and the 21st is the first of the 4s. The median is 3+42=3.5\frac{3 + 4}{2} = 3.5. When both positions fall in the same row, the median is simply that xx.

Wrong answers to avoid.

  • The middle xx of the table (7.5 for the shoes, 3 for the books) ignores the frequencies.
  • The xx with the largest frequency (4 books) is the mode, a different average.
  • The position (25th, or between the 20th and 21st) is not the median. It only tells you where to look.

Median of Grouped Data

In grouped data the exact values are lost, so the median is estimated. The steps:

  1. Write the cumulative frequencies and find N=∑fN = \sum f.
  2. Work out N2\frac{N}{2}.
  3. The median class is the first class whose cfcf is equal to or greater than N2\frac{N}{2}.
  4. Use

Median=L+N2−cff×h\text{Median} = L + \frac{\frac{N}{2} - cf}{f} \times h

where LL is the lower limit (boundary) of the median class, cfcf is the cumulative frequency of the class before the median class, ff is the frequency of the median class and hh is its width.

The marks of 100 students:

Marks 0-10 10-20 20-30 30-40 40-50 50-60
Students (ff) 6 14 20 25 20 15
cfcf 6 20 40 65 85 100

N2=50\frac{N}{2} = 50. The first cfcf to reach 50 is 65, so the median class is 30-40. Here L=30L = 30, cf=40cf = 40 (the class before), f=25f = 25 and h=10h = 10:

Median=30+50−4025×10=30+4=34\text{Median} = 30 + \frac{50 - 40}{25} \times 10 = 30 + 4 = 34

What the formula does. 40 students scored below 30. The 50th student is 10 places further on, inside the 30-40 class, whose 25 students are taken to be spread evenly over its width of 10. So the median is 1025\frac{10}{25} of the way through the class, 4 marks past 30.

N2\frac{N}{2}, not N+12\frac{N+1}{2}. For grouped data the formula uses N2\frac{N}{2} whether NN is odd or even. The N+12\frac{N+1}{2} rule belongs to lists and discrete tables.

Two mistakes to check for.

  • Taking the cfcf of the median class itself (65) instead of the class before it (40). That gives 30+50−6525×10=2430 + \frac{50 - 65}{25} \times 10 = 24, below the lower limit of its own class, which cannot happen.
  • Leaving out hh, which gives 30+1025=30.430 + \frac{10}{25} = 30.4.

A median found by the formula must lie inside the median class. If yours does not, one of these has gone wrong. If the classes differ in width, hh is the width of the median class.

[SSC Tip] You do not need the whole cfcf row. Add the frequencies from the left and stop as soon as the total passes N2\frac{N}{2}: the class where you stop is the median class, and the total just before it is the cfcf for the formula.

Inclusive Classes, and Less-Than and More-Than Tables

Inclusive classes. Classes written as 20-29, 30-39, 40-49 leave gaps: a value of 29.6 belongs to none of them. The median formula needs continuous classes, so close the gaps first. The gap between 29 and 30 is 1. Take half of it, 0.5, away from every lower limit and add it to every upper limit: 20-29 becomes 19.5-29.5, 30-39 becomes 29.5-39.5, and so on.

The ages of 50 employees:

Age (years) 20-29 30-39 40-49 50-59 60-69
Boundaries 19.5-29.5 29.5-39.5 39.5-49.5 49.5-59.5 59.5-69.5
ff 5 12 16 11 6
cfcf 5 17 33 44 50

N2=25\frac{N}{2} = 25, so the median class is 40-49, with L=39.5L = 39.5 (not 40), cf=17cf = 17, f=16f = 16 and h=10h = 10 (not 9):

Median=39.5+25−1716×10=39.5+5=44.5\text{Median} = 39.5 + \frac{25 - 17}{16} \times 10 = 39.5 + 5 = 44.5

Using the written limit 40 would give 45, and using 9 as the width would give 44.

A less-than table. Here the table gives running totals instead of class frequencies (Chapter 18 reads such tables):

Marks Students
Less than 10 4
Less than 20 11
Less than 30 24
Less than 40 39
Less than 50 51
Less than 60 60

These numbers are already the cfcf column. The classes are 0-10, 10-20, and so on up to 50-60, and each class frequency is a difference of neighbouring entries: 4, 7, 13, 15, 12, 9. N2=30\frac{N}{2} = 30; the first entry to reach 30 is “less than 40: 39”, so the median class is 30-40, with cf=24cf = 24 and f=39−24=15f = 39 - 24 = 15:

Median=30+30−2415×10=30+4=34\text{Median} = 30 + \frac{30 - 24}{15} \times 10 = 30 + 4 = 34

A more-than table counts from the top: “30 or more: 36” means 36 students scored at least 30. The same 60 students in this form read 60, 56, 49, 36, 21, 9 for “0 or more” up to “50 or more”. The class frequencies are again differences (60−56=460 - 56 = 4 for 0-10, and so on), and the last class is the last entry, 9. Rebuild the ordinary cfcf row from these frequencies before using the formula. The more-than numbers themselves never go into the formula as cfcf.

A Missing Frequency from a Given Median

When the median is given and a frequency is missing, the median formula itself becomes the equation. The given median tells you the median class straight away, so LL, ff and hh are known; the unknown frequency turns up in NN, in the cfcf, or in both.

Two unknowns, total given. The median of the distribution below is 28 and the total frequency is 50. Find xx and yy.

Class 0-10 10-20 20-30 30-40 40-50
ff 5 xx 20 yy 7

From the total, 5+x+20+y+7=505 + x + 20 + y + 7 = 50, so x+y=18x + y = 18.

The median 28 lies in 20-30, so that is the median class: L=20L = 20, f=20f = 20, h=10h = 10, and the cfcf before it is 5+x5 + x. With N2=25\frac{N}{2} = 25:

28=20+25−(5+x)20×10⇒8=20−x2⇒x=428 = 20 + \frac{25 - (5 + x)}{20} \times 10 \Rightarrow 8 = \frac{20 - x}{2} \Rightarrow x = 4

and then y=18−4=14y = 18 - 4 = 14.

One unknown, total not given. Now NN contains the unknown, so N2\frac{N}{2} does too. Suppose the classes 0-10 to 40-50 have frequencies 4, xx, 15, 9, 6 and the median is 24. The median class is 20-30, so L=20L = 20, f=15f = 15, h=10h = 10, the cfcf before it is 4+x4 + x, and N=34+xN = 34 + x:

24=20+34+x2−(4+x)15×10⇒6=13−x2⇒x=1424 = 20 + \frac{\frac{34 + x}{2} - (4 + x)}{15} \times 10 \Rightarrow 6 = 13 - \frac{x}{2} \Rightarrow x = 14

Check the median class. Put the value back and make sure N2\frac{N}{2} really falls in the class you assumed. With x=14x = 14, N=48N = 48 and the cfcf row begins 4, 18, 33, so N2=24\frac{N}{2} = 24 does fall in 20-30, and the formula gives 20+24−1815×10=2420 + \frac{24 - 18}{15} \times 10 = 24.

[SSC Tip] With two unknowns and the total given, the options are pairs that already add up to the right total. Only one pair puts the median where the question says, so testing the options in the formula is as quick as solving.

The Median from Ogives

An ogive is the graph of a cumulative frequency table. There are two kinds:

  • the less than ogive joins the points (upper boundary, number less than it), starting at the first lower boundary with 0 and rising to NN;
  • the more than ogive joins the points (lower boundary, number at least that much), starting at NN and falling to 0 at the last upper boundary.

The figure shows both ogives for the daily travel time of 80 office workers, in the classes 10-20, 20-30, …, 60-70 minutes with frequencies 4, 10, 16, 20, 18 and 12.

Less than and more than ogives crossing at the median

From one ogive. Mark N2=40\frac{N}{2} = 40 on the vertical axis, go across to the less than ogive and drop down to the horizontal axis. The foot of that line is the median: 45 minutes.

From both ogives. The two curves cross at one point. Its horizontal coordinate is the median and its vertical coordinate is N2\frac{N}{2}, because at the median exactly half the observations are below and half are above. Here the ogives cross at (45, 40).

So if you are told only that the two ogives of a distribution meet at (52.5, 36), the median is 52.5 and the total frequency is 2×36=722 \times 36 = 72. Taking 36 as the median is the mistake to avoid.

Why the graph and the formula agree. Between the points (40, 30) and (50, 50) the less than ogive is a straight line, and a straight line is exactly the “spread evenly” assumption behind the formula:

Median=40+40−3020×10=45\text{Median} = 40 + \frac{40 - 30}{20} \times 10 = 45

The quartiles can be read off the less than ogive in the same way, going across from N4\frac{N}{4} for the lower quartile and from 3N4\frac{3N}{4} for the upper one (see the quartiles at the end of these notes).

Changing Every Value: the Effect on the Median

Making the same change to every value does not alter their order (a negative multiplier reverses it exactly), so the middle value stays in the middle. The median goes through the same change.

Change made to every value New median
Add kk M+kM + k
Subtract kk M−kM - k
Multiply by kk kMkM
Divide by kk (k≠0k \neq 0) Mk\frac{M}{k}
Replace xx by ax+bax + b aM+baM + b

For the list 6, 10, 13, 17, 21 the median is 13. Adding 4 to each value gives median 17, and multiplying each by 3 gives 39. Replacing each xx by 50−2x50 - 2x gives 38, 30, 24, 16, 8, whose median is 50−2×13=2450 - 2 \times 13 = 24. The order has flipped, but the middle value is still the middle one.

These are the same rules as for the mean (see Mean). So under such a change the gap between the mean and the median is multiplied by aa and is not affected by bb.

Changes that leave the median alone. Only the middle of the arranged list matters.

  • Increasing the largest value, or decreasing the smallest, does not change the median. It does change the mean.
  • Moving any value below the median to another place below it, or a value above it to another place above it, leaves the median where it is.

For example, 7 values have median 41 and mean 44. If the smallest value is reduced by 14, the median stays 41, but the mean falls by 147=2\frac{14}{7} = 2, to 42.

Combining two lists. Unlike the mean, the median of two lists put together cannot be found from their separate medians. The lists 1, 2, 3 (median 2) and 4, 10, 20 (median 10) together give 1, 2, 3, 4, 10, 20, whose median is 3.5, not 6, the average of the two medians. The values have to be merged and arranged again.

Quartiles and the Interquartile Range

The median cuts the arranged data into two halves. The quartiles cut it into four quarters:

  • the lower quartile Q1Q_1, with a quarter of the values below it;
  • the median Q2Q_2;
  • the upper quartile Q3Q_3, with three quarters of the values below it.

For a list of nn values arranged in ascending order:

Q1=(n+14)th value,Q3=(3(n+1)4)th valueQ_1 = \left(\frac{n+1}{4}\right)\text{th value}, \qquad Q_3 = \left(\frac{3(n+1)}{4}\right)\text{th value}

For example: 11 values arranged in order: 14, 17, 19, 22, 24, 27, 29, 32, 35, 38, 42. Here n+14=3\frac{n+1}{4} = 3, so Q1Q_1 is the 3rd value, 19. Q3Q_3 is the 9th value, 35, and the median is the 6th value, 27.

Interquartile range =Q3−Q1=35−19=16= Q_3 - Q_1 = 35 - 19 = 16. It measures the spread of the middle half of the data, and like the median it is not upset by one extreme value. Half of it, Q3−Q12=8\frac{Q_3 - Q_1}{2} = 8, is the quartile deviation (also called the semi-interquartile range).

When the position is not a whole number. For 9 values, n+14=2.5\frac{n+1}{4} = 2.5, so Q1Q_1 is halfway between the 2nd and 3rd values, and Q3Q_3, the 7.5th value, is halfway between the 7th and the 8th.

Grouped data. The median formula works for quartiles with N4\frac{N}{4} or 3N4\frac{3N}{4} in place of N2\frac{N}{2}. For the lower quartile:

Q1=L+N4−cff×hQ_1 = L + \frac{\frac{N}{4} - cf}{f} \times h

using the class where the cfcf first reaches N4\frac{N}{4}.

As with the median, arrange the list before counting positions. The 3rd value of an unsorted list is not a quartile of anything.

Solved Examples

Question 1

The weights (in kg) of 9 boys are 52, 47, 60, 55, 49, 58, 44, 63 and 51. What is the median weight? (a) 49 kg (b) 55 kg (c) 52 kg (d) 51 kg

Answer. First I arrange the weights: 44, 47, 49, 51, 52, 55, 58, 60, 63. There are 9 of them, so the 9+12=5\frac{9 + 1}{2} = 5th value, (c) 52 kg, is the median. The 5th weight in the list as given is 49, but that list was not in order.

Question 2

Find the median of 27, 19, 33, 24, 40, 30, 22, 36, 18, 29. (a) 28 (b) 27 (c) 35 (d) 29

Answer. Arranged: 18, 19, 22, 24, 27, 29, 30, 33, 36, 40. There are 10 numbers, an even count, so I need the 5th and the 6th, which are 27 and 29. The median is 27+292=\frac{27 + 29}{2} = (a) 28.

Question 3

The observations 8, 11, 15, xx, x+2x + 2, 24, 28, 31 are arranged in ascending order, and their median is 17. What is the value of xx? (a) 17 (b) 16 (c) 15 (d) 18

Answer. There are 8 observations, so the median is the average of the 4th and 5th, which are xx and x+2x + 2:

x+x+22=17⇒x+1=17⇒x=16\frac{x + x + 2}{2} = 17 \Rightarrow x + 1 = 17 \Rightarrow x = 16

So the answer is (b) 16. I checked the order: 15, 16, 18, 24 still goes up, so the list really is arranged.

Question 4

For the data 3, 8, 10, 12, 15, 20, 30, by how much does the mean exceed the median? (a) 0 (b) 4 (c) 1 (d) 2

Answer. The data are already in order and there are 7 values, so the median is the 4th, 12. The sum is 3+8+10+12+15+20+30=983 + 8 + 10 + 12 + 15 + 20 + 30 = 98, so the mean is 987=14\frac{98}{7} = 14. The mean is more than the median by 14−12=214 - 12 = 2, which is (d) 2. The big value 30 pulls the mean up but does not move the median.

Question 5

The median of 6, 9, 13, 16, 20, 24, 27 is 16. If 10 and 15 are added to the data, what is the new median? (a) 15 (b) 16 (c) 14 (d) 13

Answer. Both new values are below 16, so the middle moves down. The new list in order is 6, 9, 10, 13, 15, 16, 20, 24, 27. There are 9 values, so the median is the 5th, (a) 15.

Question 6

What is the median of the numbers 3, 7, 11, 15, …, 83? (a) 41 (b) 45 (c) 43 (d) 40

Answer. The numbers go up by 4. First I count them: 83−34+1=21\frac{83 - 3}{4} + 1 = 21. With 21 numbers the median is the 11th, 3+10×4=3 + 10 \times 4 = (c) 43. Shortcut: in a list with equal steps the median is the average of the ends, 3+832=43\frac{3 + 83}{2} = 43.

Question 7

The table shows the number of members in each of 35 families.

Table of family sizes of 35 families

What is the median family size? (a) 5 (b) 4 (c) 18 (d) 4.5

Answer. N=35N = 35 is odd, so the median is the 35+12=18\frac{35 + 1}{2} = 18th value. I write the cumulative frequencies: 3, 11, 21, 27, 31, 33, 35. The 4-member families run from the 12th to the 21st, so the 18th family has (b) 4 members. The middle value of the top row, 5, is not the answer because it ignores how many families there are of each size.

Question 8

The table shows how many hours of television 40 children watch in a day.

Table of daily TV hours of 40 children

What is the median? (a) 3.5 hours (b) 3 hours (c) 4 hours (d) 20.5 hours

Answer. N=40N = 40 is even, so I need the 20th and 21st values. Cumulative frequencies: 5, 14, 20, 32, 38, 40. The 3-hour children end exactly at the 20th, and the 21st is the first of the 4-hour group. So the median is 3+42=3.5\frac{3 + 4}{2} = 3.5 hours, which is (a) 3.5 hours. Here the two middle values fall in different rows, so I could not just read one value off.

Question 9

The daily wages of 50 workers are shown below.

Table of daily wages of 50 workers

Which is the median class? (a) 350-400 (b) 450-500 (c) 300-350 (d) 400-450

Answer. N2=502=25\frac{N}{2} = \frac{50}{2} = 25. I add the frequencies from the top: 6, then 15, then 35. The total first goes past 25 at the class 400-450, so that is the median class, (d) 400-450. The class 350-400 brings the total only to 15, which is still short of 25.

Question 10

For the same data, what is the median wage? (a) ₹ 375 (b) ₹ 426.25 (c) ₹ 425 (d) ₹ 400.50

Answer. The median class is 400-450, so L=400L = 400, h=50h = 50 and f=20f = 20. The cfcf I need is the one before this class, which is 15:

Median=400+25−1520×50=400+25=425\text{Median} = 400 + \frac{25 - 15}{20} \times 50 = 400 + 25 = 425

The answer is (c) ₹ 425. If I had used 35, the cfcf of the median class itself, I would have got 375, which is not even inside 400-450.

Question 11

The marks of 50 students in an examination are given below.

Table of marks of 50 students in inclusive classes

What is the median mark? (a) 47 (b) 46.5 (c) 45.9 (d) 45.5

Answer. The classes have gaps (30 and 31, 40 and 41), so first I make them continuous by taking 0.5 off each lower limit and adding 0.5 to each upper limit. 41-50 becomes 40.5-50.5.

N2=25\frac{N}{2} = 25 and the running totals are 2, 13, 33, so the median class is 40.5-50.5, with cf=13cf = 13, f=20f = 20 and h=10h = 10:

Median=40.5+25−1320×10=40.5+6=46.5\text{Median} = 40.5 + \frac{25 - 13}{20} \times 10 = 40.5 + 6 = 46.5

The answer is (b) 46.5. Using 41 as LL would have given 47.

Question 12

The table gives the marks of 72 students. No student scored less than 10.

Less than cumulative table of marks of 72 students

What is the median mark? (a) 45 (b) 50 (c) 46 (d) 40

Answer. The numbers are already cumulative, so the classes are 10-20, 20-30, …, 60-70. N2=36\frac{N}{2} = 36. The first entry to reach 36 is “less than 50: 46”, so the median class is 40-50. Its frequency is 46−26=2046 - 26 = 20, and the cfcf before it is 26:

Median=40+36−2620×10=40+5=45\text{Median} = 40 + \frac{36 - 26}{20} \times 10 = 40 + 5 = 45

The answer is (a) 45. Answering 50 just because “less than 50” is the row where 36 is passed would skip the formula.

Question 13

The weights of 90 persons are given below. Nobody weighs 70 kg or more.

More than cumulative table of weights of 90 persons

What is the median weight? (a) 55 kg (b) 57.5 kg (c) 56 kg (d) 58 kg

Answer. First I get the class frequencies by subtracting neighbours: 40-45 has 90−83=790 - 83 = 7, then 13, 20, 25, 16, and the last class 65-70 has 9. The ordinary running totals are 7, 20, 40, 65, …

N2=45\frac{N}{2} = 45, and 65 is the first total to reach 45, so the median class is 55-60, with cf=40cf = 40, f=25f = 25, h=5h = 5:

Median=55+45−4025×5=55+1=56\text{Median} = 55 + \frac{45 - 40}{25} \times 5 = 55 + 1 = 56

The answer is (c) 56 kg.

Question 14

The median of the following distribution is 32.

Grouped table with one missing frequency x

What is the value of xx? (a) 4 (b) 6 (c) 8 (d) 10

Answer. The median 32 is in 30-40, so that is the median class: L=30L = 30, f=15f = 15, h=10h = 10. The total is N=40+xN = 40 + x, and the cfcf before 30-40 is 6+8+x=14+x6 + 8 + x = 14 + x. So

32=30+40+x2−(14+x)15×1032 = 30 + \frac{\frac{40 + x}{2} - (14 + x)}{15} \times 10

2=23(6−x2)⇒3=6−x22 = \frac{2}{3}\left(6 - \frac{x}{2}\right) \Rightarrow 3 = 6 - \frac{x}{2}

So x2=3\frac{x}{2} = 3 and x=x = (b) 6. Check: N=46N = 46, half is 23, and the running totals 6, 14, 20, 35 put the 23rd value in 30-40, with median 30+315×10=3230 + \frac{3}{15} \times 10 = 32.

Question 15

The distribution below has 60 observations in all, and its median is 46.

Grouped table with two missing frequencies a and b

What are the values of aa and bb? (a) a=8a = 8, b=17b = 17 (b) a=15a = 15, b=10b = 10 (c) a=16a = 16, b=9b = 9 (d) a=17a = 17, b=8b = 8

Answer. From the total, 7+a+20+b+8=607 + a + 20 + b + 8 = 60, so a+b=25a + b = 25.

The median 46 lies in 40-60, so L=40L = 40, f=20f = 20, h=20h = 20, and the cfcf before it is 7+a7 + a. With N2=30\frac{N}{2} = 30:

46=40+30−7−a20×20⇒6=23−a⇒a=1746 = 40 + \frac{30 - 7 - a}{20} \times 20 \Rightarrow 6 = 23 - a \Rightarrow a = 17

Then b=25−17=8b = 25 - 17 = 8. The answer is (d) a=17a = 17, b=8b = 8.

Question 16

The less than and more than ogives of the ages of 120 people are drawn below. They meet at the point P.

Two ogives of ages of 120 people meeting at P

What is the median age? (a) 52 years (b) 60 years (c) 55 years (d) 50 years

Answer. The ogives meet at the median, and the height of P is N2=60\frac{N}{2} = 60. So the median is the age where the less than ogive reaches 60. From the graph, 54 people are under 50 and 84 are under 60, so the median class is 50-60 with f=84−54=30f = 84 - 54 = 30:

Median=50+60−5430×10=50+2=52\text{Median} = 50 + \frac{60 - 54}{30} \times 10 = 50 + 2 = 52

The answer is (a) 52 years. The 60 is the height of P, a number of people, not an age.

Question 17

The less than ogive below shows the distance driven in a day by each of 60 taxis.

Less than ogive of distance driven by 60 taxis

What is the median distance? (a) 30 km (b) 50 km (c) 60 km (d) 70 km

Answer. The last point of the ogive is 60, so N=60N = 60 and N2=30\frac{N}{2} = 30. I go across from 30 on the vertical axis to the curve. It meets the curve exactly at a plotted point, the one above 60 km, so the median is (c) 60 km. The formula agrees: the median class is 40-60 with cf=13cf = 13 and f=30−13=17f = 30 - 13 = 17, and 40+30−1317×20=40+20=6040 + \frac{30 - 13}{17} \times 20 = 40 + 20 = 60.

Question 18

The median of 11 observations is 18. Each observation is multiplied by 2 and then 3 is added to it. What is the new median? (a) 36 (b) 42 (c) 21 (d) 39

Answer. Doubling every value and adding 3 does not change their order, so the middle observation stays in the middle. It becomes 2×18+3=392 \times 18 + 3 = 39, which is (d) 39.

Question 19

The mean and the median of 9 observations are 32 and 30. If the largest observation is increased by 18, what are the new mean and median? (a) Mean 32, median 32 (b) Mean 34, median 30 (c) Mean 34, median 32 (d) Mean 50, median 30

Answer. The sum goes up by 18, so the mean goes up by 189=2\frac{18}{9} = 2, to 34. The largest observation was already at the top and it stays at the top, so the 5th value in order is the same as before and the median stays 30. The answer is (b) Mean 34, median 30.

Question 20

Find the lower quartile and the upper quartile of 45, 32, 58, 27, 50, 39, 62, 35, 41, 55, 30. (a) Q1=30Q_1 = 30, Q3=58Q_3 = 58 (b) Q1=35Q_1 = 35, Q3=50Q_3 = 50 (c) Q1=32Q_1 = 32, Q3=55Q_3 = 55 (d) Q1=58Q_1 = 58, Q3=41Q_3 = 41

Answer. Arranged: 27, 30, 32, 35, 39, 41, 45, 50, 55, 58, 62. With n=11n = 11, n+14=3\frac{n+1}{4} = 3 and 3(n+1)4=9\frac{3(n+1)}{4} = 9, so the quartiles are the 3rd and 9th values, (c) Q1=32Q_1 = 32, Q3=55Q_3 = 55.

Question 21

For the data 21, 25, 28, 31, 34, 38, 42, 47, 53, find the interquartile range. (a) 18 (b) 17 (c) 9 (d) 32

Answer. The data are already in order and n=9n = 9. Q1Q_1 is the 104=2.5\frac{10}{4} = 2.5th value, halfway between 25 and 28, so Q1=26.5Q_1 = 26.5. Q3Q_3 is the 7.5th value, halfway between 42 and 47, so Q3=44.5Q_3 = 44.5. The interquartile range is 44.5−26.5=1844.5 - 26.5 = 18, which is (a) 18. Half of it, 9, would be the quartile deviation.