Statistics and Probability — Grouped Data, Ogives and Classical Probability
Median, mode and ogives for grouped data
Cumulative frequency (cf) is the running total of frequencies. For the data above, cf = 5, 13, 28, 44, 50. Median = l + [(N/2 − cf) / f] × h, where the median class is the first class whose cf reaches N/2, l is its lower limit, cf is the cumulative frequency of the class before it, f its frequency and h its width. Here N/2 = 25, which first falls inside 30–40 (cf 28); with cf before = 13 and f = 15: median = 30 + (25 − 13)/15 × 10 = 30 + 8 = 38.
- Build the cf column
- Find N/2
- Median class: first cf ≥ N/2
- Read l, cf (before), f, h
- Median = l + (N/2 − cf)/f × h
Mode = l + [(f₁ − f₀) / (2f₁ − f₀ − f₂)] × h, where the modal class has the largest frequency f₁, f₀ is the frequency of the class before it and f₂ of the class after. Here the modal class is 40–50 (f₁ = 16), f₀ = 15, f₂ = 6, h = 10: mode = 40 + (16 − 15)/(32 − 15 − 6) × 10 = 40 + 10/11 ≈ 40.91. The three measures are linked for moderately skewed data by the empirical relation Mode = 3 Median − 2 Mean; with median 38 and mean 37 it gives 40, close to the computed 40.91 (it is an approximation, not an identity).
Ogives. A less-than ogive plots (upper class limit, cumulative frequency) and joins the points: here (10, 0), (20, 5), (30, 13), (40, 28), (50, 44), (60, 50). A more-than ogive plots (lower class limit, number of items at or above that limit). To find the median from the graph, mark N/2 = 25 on the cumulative-frequency axis, move across to the less-than ogive and drop to the x-axis: the reading is about 38, agreeing with the formula. The two ogives drawn on one graph cross exactly at the median (the point whose x-value is the median and whose height is N/2).
Cumulative frequency (cf) is the running total of frequencies. For the data above, cf = 5, 13, 28, 44, 50. Median = l + [(N/2 − cf) / f] × h, where the median class is the first class whose…
Probability: the classical definition
An experiment has outcomes; the set of all outcomes is the sample space; an event is a part of it. When the outcomes are equally likely, the probability of an event E is P(E) = (number of favourable outcomes) / (total number of outcomes). So 0 ≤ P(E) ≤ 1: an impossible event has probability 0, a sure event 1, and P(E) + P(not E) = 1. This is the theoretical probability. Experimental (empirical) probability uses trials: if a coin is tossed 100 times and heads comes up 54 times, the experimental probability of heads is 54/100 = 0.54, while the theoretical value is 1/2; the two come closer as the number of trials grows.
- HH2 heads
- HT1 head
- TH1 head
- TT0 heads
Coins and dice. Two coins: the outcomes are HH, HT, TH, TT, so P(at least one head) = 3/4 and P(exactly one head) = 2/4 = 1/2. Three coins have 8 outcomes, and exactly two heads occurs in 3 of them, so the probability is 3/8. One die: P(a prime) = P(2, 3 or 5) = 3/6 = 1/2. Two dice have 6 × 6 = 36 outcomes: a sum of 8 occurs in 5 (2+6, 3+5, 4+4, 5+3, 6+2) so P = 5/36; a sum of 7 in 6, so P = 1/6; a doublet in 6, so P = 1/6; a sum of at least 10 in 6, so P = 1/6; a sum of 12 only in (6, 6), so P = 1/36; and a product of 12 in 4 outcomes, so P = 1/9.
Cards and selections. A pack has 52 cards: 4 suits of 13, 26 red and 26 black, 12 face cards (kings, queens, jacks) and 4 kings. P(a king) = 4/52 = 1/13; P(a red face card) = 6/52 = 3/26; P(a red card that is not a king) = (26 − 2)/52 = 6/13. From the numbers 1 to 20, the multiples of 3 are 6 and of 5 are 4, with 15 in both, so 9 numbers are multiples of 3 or 5 and P = 9/20. A bag with 3 red and 5 blue balls gives P(red) = 3/8; after removing 4 blue balls, 3 red and 1 blue remain, so P(red) = 3/4. In a non-leap year (365 days = 52 weeks + 1 day) the chance of 53 Sundays is 1/7; in a leap year (52 weeks + 2 days) it is 2/7.
Without replacement and complements. A box holds 12 bulbs of which 3 are defective: P(defective) = 3/12 = 1/4. If one good bulb is drawn and set aside, the box now holds 11 bulbs with the same 3 defective, so the next probability is 3/11 — the total changes, so the probability changes. If the probability that a team wins is 0.62, the probability that it does not win is 1 − 0.62 = 0.38. Use the complement when "at least one" is asked: the only way to have no head in two tosses is TT, so P(at least one head) = 1 − 1/4 = 3/4.
An experiment has outcomes; the set of all outcomes is the sample space; an event is a part of it. When the outcomes are equally likely, the probability of an event E is P(E) = (number of…
Key takeaways
- Mean = Σfx/Σf using class marks; the assumed-mean and step-deviation methods give the same value (here 37) with less arithmetic.
- Median of grouped data = l + [(N/2 − cf)/f] × h, with cf of the class before the median class; here it is 38.
- Mode = l + [(f₁ − f₀)/(2f₁ − f₀ − f₂)] × h; the empirical relation Mode = 3 Median − 2 Mean is only an approximation.
- A less-than ogive plots upper limits against cumulative frequency; the median is read at height N/2, where the two ogives also cross.
- Classical probability P(E) = favourable/total for equally likely outcomes; 0 ≤ P(E) ≤ 1 and P(E) + P(not E) = 1.
- List the sample space correctly: two coins have 4 outcomes, two dice 36; a pack has 52 cards with 26 red, 12 face cards and 4 kings.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
The mean of 3, 5, 7, 7, 9, 11, 14 is
Show answer
Answer: A — 8
The sum is 56 and there are 7 observations, so the mean is 56/7 = 8. 7 is the median and the mode; 56 is only the sum.The median of 12, 15, 18, 20 is
Show answer
Answer: B — 15
With an even number of values the median is the average of the two middle ones: (15 + 18)/2 = 16.5. Picking one of the middle values alone is the usual slip.The class mark of the class 30–40 is
Show answer
Answer: C — 35
The class mark is the midpoint, (30 + 40)/2 = 35. The limits 30 and 40 are not class marks, and 70 is their sum before halving.
Show the other 21 questions
Classes 10–20, 20–30, 30–40, 40–50, 50–60 have frequencies 5, 8, 15, 16, 6. The mean is
Show answer
Answer: D — 37
Σfx = 75 + 200 + 525 + 720 + 330 = 1850 and Σf = 50, so the mean is 37. 35 is the middle class mark, not the mean; 1850 is Σfx before dividing.In the assumed-mean method with a = 35, Σfd = 100 and Σf = 50. The mean is
Show answer
Answer: A — 37
Mean = a + Σfd/Σf = 35 + 100/50 = 37. Subtracting would give 33, but the deviations d were taken as x − a, so the correction is added.The classes 10–19, 20–29, 30–39 are converted to continuous classes. The first becomes
Show answer
Answer: B — 9.5–19.5
The gap between 19 and 20 is 1, so subtract 0.5 from lower limits and add 0.5 to upper limits: 9.5–19.5, with width 10. 10–20 ignores the gap correction.The mean of 5 numbers is 20. If one number, 30, is removed, the mean of the remaining 4 is
Show answer
Answer: C — 17.5
The total is 5 × 20 = 100; removing 30 leaves 70, and 70/4 = 17.5. The mean does not stay 20 because the removed number was above the mean.Which measure is least affected by one very large extreme value in the data?
Show answer
Answer: D — Median
The median depends only on the middle position, so an extreme value hardly moves it. The mean, sum and range all change when the largest value changes.The cumulative frequencies of frequencies 5, 8, 15, 16, 6 are
Show answer
Answer: A — 5, 13, 28, 44, 50
Each entry is the running total: 5, 5 + 8 = 13, 13 + 15 = 28, 28 + 16 = 44, 44 + 6 = 50. The third list is the "more than" type, running from the top.The modal class of a grouped distribution is the class with the
Show answer
Answer: B — highest frequency
The modal class is the one that occurs most often, that is, has the highest frequency. The last class always has the highest cumulative frequency, so that is not the test.A less-than ogive is drawn by plotting cumulative frequency against the
Show answer
Answer: C — lower class limits
A "less than" count is complete only at the upper limit of each class, so the points are (upper limit, cf). Lower limits belong to the more-than ogive.For frequencies 5, 8, 15, 16, 6 over classes 10–20 … 50–60, the median class is
Show answer
Answer: D — 30–40
N/2 = 25 first lies within the cumulative frequency 28 of the class 30–40, since the previous cf is only 13. 40–50 is the modal class, not the median class.For the same data, the median is
Show answer
Answer: A — 38
Median = 30 + (25 − 13)/15 × 10 = 30 + 8 = 38. Using cf = 28 instead of 13 would give 30 − 2 = 28, an impossible value for that class.For the same data, the mode (to two decimals) is
Show answer
Answer: B — 40.91
Modal class 40–50: mode = 40 + (16 − 15)/(32 − 15 − 6) × 10 = 40 + 10/11 ≈ 40.91. 45 is just the class mark, and 40 is the empirical estimate 3 × 38 − 2 × 37.If the median is 38 and the mean is 37, the empirical relation estimates the mode as
Show answer
Answer: C — 40
Mode = 3 × median − 2 × mean = 114 − 74 = 40. It is only an approximation for moderately skewed data; the exact formula gave 40.91.The less-than and more-than ogives of a distribution, drawn on one graph, intersect at the point whose x-coordinate is the
Show answer
Answer: D — median
At the median the number of items below equals the number above, so both ogives have height N/2 there. The mean and mode are not located by this crossing.The probability of a sure event is
Show answer
Answer: B — 1
A sure event always happens, so favourable outcomes equal total outcomes and P = 1. 0 is the probability of an impossible event.When one die is thrown, the probability of getting a prime number is
Show answer
Answer: A — 1/2
The primes on a die are 2, 3, 5, so P = 3/6 = 1/2. 1 is not prime, which is why 4/6 is wrong.If P(E) = 0.35, then P(not E) is
Show answer
Answer: C — 0.35
P(E) + P(not E) = 1, so P(not E) = 1 − 0.35 = 0.65. A probability can never be negative, so −0.65 is impossible.Two coins are tossed together. The probability of at least one head is
Show answer
Answer: D — 3/4
The outcomes HH, HT, TH, TT are equally likely, and three contain a head, so P = 3/4. 2/3 comes from wrongly counting only three outcomes.Two dice are thrown together. The probability that the sum is 8 is
Show answer
Answer: A — 5/36
The sum 8 comes from (2,6), (3,5), (4,4), (5,3), (6,2): 5 of 36 outcomes. 1/6 is the probability of sum 7, which has six pairs.A card is drawn from a well-shuffled pack of 52 cards. The probability that it is a red card that is not a king is
Show answer
Answer: B — 1/2
There are 26 red cards, 2 of them kings, so 24 qualify: 24/52 = 6/13. 1/2 forgets to remove the two red kings.A number is chosen at random from 1 to 20. The probability that it is a multiple of 3 or 5 is
Show answer
Answer: C — 9/20
Multiples of 3 are 6 and of 5 are 4, but 15 is in both, so 6 + 4 − 1 = 9 numbers and P = 9/20. Adding 6 + 4 = 10 double-counts 15.A bag has 3 red and 5 blue balls. After 4 blue balls are removed, the probability of drawing a red ball is
Show answer
Answer: D — 3/4
After removal 3 red and 1 blue remain, so P(red) = 3/4. The original 3/8 no longer applies, since the total has changed from 8 to 4.