Statistics and Probability — Grouped Data, Ogives and Classical Probability

Statistics and probability turn uncertainty into numbers a teacher can compute and explain. This chapter takes one worked frequency table through the mean (three methods), the median, the mode and the ogive, so that the same data checks every formula; it then builds classical probability from the sample space, with coins, dice, cards and selections. The recurring traps are exact: using the right class, the right cumulative frequency and the right sample space. Every value here has been computed and checked.
Overview

Statistics: mean of data and grouped data

3 min read · 5 parts

Statistics summarises data by one representative number. For raw data the mean is the sum divided by the number of observations; the median is the middle value after arranging in order (for an even number, the average of the two middle values); the mode is the most frequent value. For 3, 5, 7, 7, 9, 11, 14 the sum is 56, so the mean is 8, the median is 7 and the mode is 7. For 12, 15, 18, 20 the median is (15 + 18)/2 = 16.5.

Mean, median and mode
Mean
  • Sum ÷ number of items
  • Uses every value
  • Pulled by extreme values
Median
  • Middle value in order
  • Half the data lies each side
  • Not pulled by extremes
Mode
  • Most frequent value
  • Read from the largest frequency
  • Can be more than one

Grouped data. Take the classes 10–20, 20–30, 30–40, 40–50, 50–60 with frequencies 5, 8, 15, 16, 6 (total N = 50). Each class is represented by its class mark (midpoint) x = 15, 25, 35, 45, 55. Direct method: Σfx = 75 + 200 + 525 + 720 + 330 = 1850, so mean = Σfx / Σf = 1850/50 = 37. Assumed-mean method: take a = 35 and d = x − a = −20, −10, 0, 10, 20; Σfd = −100 − 80 + 0 + 160 + 120 = 100, so mean = a + Σfd/Σf = 35 + 2 = 37. Step-deviation method: with class width h = 10 and u = (x − a)/h = −2, −1, 0, 1, 2, Σfu = −10 − 8 + 0 + 16 + 12 = 10, so mean = a + h × Σfu/Σf = 35 + 10 × 10/50 = 37. All three methods must agree; the last two only save arithmetic.

Properties of the mean and a missing frequency. The deviations from the mean add to zero: for 3, 5, 7, 7, 9, 11, 14 (mean 8) they are −5, −3, −1, −1, 1, 3, 6, which total 0. Adding 5 to every observation adds 5 to the mean (8 becomes 13); multiplying every observation by 3 multiplies the mean by 3 (8 becomes 24). To find missing frequencies, use both the total and the mean. In the classes above let the frequencies be 5, x, 15, y, 6 with total 50 and mean 37: x + y = 24, and Σfx = 75 + 25x + 525 + 45y + 330 = 1850 gives 25x + 45y = 920. Substituting y = 24 − x, 1080 − 20x = 920, so x = 8 and y = 16.

⚠️ Class mark, not class limit; continuous classes
Use the midpoint of the class, not its lower or upper limit. If the classes are written 10–19, 20–29, … (gaps between them), first make them continuous by subtracting 0.5 from each lower limit and adding 0.5 to each upper limit (9.5–19.5, 19.5–29.5, …); the class width is then 10, not 9. The mean of grouped data is an estimate, because it assumes each class's values sit at its midpoint.

Statistics summarises data by one representative number. For raw data the mean is the sum divided by the number of observations; the median is the middle value after arranging in order (for…

Median, mode and ogives for grouped data

2 min read · 5 parts

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.

Median of grouped data
  1. Build the cf column
  2. Find N/2
  3. Median class: first cf ≥ N/2
  4. Read l, cf (before), f, h
  5. 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).

⚠️ Which class, and which cf
The "cf" in the median formula is the cumulative frequency of the class BEFORE the median class, not of the median class itself (13, not 28). The modal class is chosen by the largest frequency, which need not be the median class. Plot a less-than ogive against UPPER limits and a more-than ogive against LOWER limits; mixing them is the standard error. The mode of grouped data needs equal class widths.

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

3 min read · 5 parts

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.

Two coin tosses: the sample space
Two tosses: 4 equally likely outcomes
  • 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.

⚠️ Equally likely is the whole point
Two coins give FOUR outcomes (HT and TH are different), not three; the three "number of heads" cases 0, 1, 2 are not equally likely. The sums of two dice, 2 to 12, are likewise not equally likely — the 36 ordered pairs are. A probability can never be negative or more than 1, and "P(not E)" is 1 − P(E), not P(E) − 1.

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.

  1. The mean of 3, 5, 7, 7, 9, 11, 14 is

    1. 8
    2. 7
    3. 9
    4. 56
    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.
  2. The median of 12, 15, 18, 20 is

    1. 16.5
    2. 15
    3. 18
    4. 17.5
    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.
  3. The class mark of the class 30–40 is

    1. 30
    2. 40
    3. 35
    4. 70
    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
  1. Classes 10–20, 20–30, 30–40, 40–50, 50–60 have frequencies 5, 8, 15, 16, 6. The mean is

    1. 35
    2. 40
    3. 1850
    4. 37
    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.
  2. In the assumed-mean method with a = 35, Σfd = 100 and Σf = 50. The mean is

    1. 37
    2. 33
    3. 135
    4. 36
    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.
  3. The classes 10–19, 20–29, 30–39 are converted to continuous classes. The first becomes

    1. 10–20
    2. 9.5–19.5
    3. 9–20
    4. 10.5–19.5
    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.
  4. The mean of 5 numbers is 20. If one number, 30, is removed, the mean of the remaining 4 is

    1. 20
    2. 15
    3. 17.5
    4. 18
    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.
  5. Which measure is least affected by one very large extreme value in the data?

    1. Mean
    2. Sum of values
    3. Range
    4. Median
    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.
  6. The cumulative frequencies of frequencies 5, 8, 15, 16, 6 are

    1. 5, 13, 28, 44, 50
    2. 5, 8, 15, 16, 6
    3. 50, 45, 37, 22, 6
    4. 5, 13, 23, 39, 45
    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.
  7. The modal class of a grouped distribution is the class with the

    1. highest cumulative frequency
    2. highest frequency
    3. largest class mark
    4. widest class
    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.
  8. A less-than ogive is drawn by plotting cumulative frequency against the

    1. class marks
    2. upper class limits
    3. lower class limits
    4. class widths
    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.
  9. For frequencies 5, 8, 15, 16, 6 over classes 10–20 … 50–60, the median class is

    1. 40–50
    2. 20–30
    3. 50–60
    4. 30–40
    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.
  10. For the same data, the median is

    1. 38
    2. 35
    3. 40
    4. 36
    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.
  11. For the same data, the mode (to two decimals) is

    1. 45
    2. 40.91
    3. 41.5
    4. 40
    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.
  12. If the median is 38 and the mean is 37, the empirical relation estimates the mode as

    1. 39
    2. 41
    3. 40
    4. 38
    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.
  13. The less-than and more-than ogives of a distribution, drawn on one graph, intersect at the point whose x-coordinate is the

    1. mean
    2. mode
    3. range
    4. median
    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.
  14. The probability of a sure event is

    1. 0
    2. 1
    3. 1/2
    4. 100
    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.
  15. When one die is thrown, the probability of getting a prime number is

    1. 1/2
    2. 1/3
    3. 2/3
    4. 1/6
    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.
  16. If P(E) = 0.35, then P(not E) is

    1. −0.65
    2. 0.65
    3. 0.35
    4. 0.5
    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.
  17. Two coins are tossed together. The probability of at least one head is

    1. 1/2
    2. 2/3
    3. 1/4
    4. 3/4
    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.
  18. Two dice are thrown together. The probability that the sum is 8 is

    1. 5/36
    2. 1/6
    3. 1/11
    4. 6/36
    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.
  19. 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

    1. 6/13
    2. 1/2
    3. 3/26
    4. 12/13
    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.
  20. A number is chosen at random from 1 to 20. The probability that it is a multiple of 3 or 5 is

    1. 1/2
    2. 7/20
    3. 9/20
    4. 10/20
    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.
  21. A bag has 3 red and 5 blue balls. After 4 blue balls are removed, the probability of drawing a red ball is

    1. 3/8
    2. 3/7
    3. 1/4
    4. 3/4
    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.