Paper ZeroSign in

IB Maths Analysis and Approaches SL

Descriptive statistics (sampling, averages, spread and data displays): question types and practice

Descriptive statistics: sampling, averages, spread and data displays carried 3% of the marks in the 20 recent exams, through 6 kinds of question. The one worth the most marks is Averages and spread.

Syllabus: AA SL 4.1, 4.2 and 4.3. SL 4.1 is population and sample, discrete and continuous data, the reliability of data and bias in sampling, the five sampling techniques (simple random, convenience, systematic, quota and stratified), and outliers. SL 4.2 is presenting data: frequency tables, histograms, cumulative frequency graphs (the median, quartiles, percentiles, range and IQR read from them) and box-and-whisker diagrams, including comparing two distributions. SL 4.3 is the mean, median and mode, the mean of grouped data estimated from mid-interval values, the modal class, the IQR, the standard deviation and the variance, the effect of constant changes on the data, and quartiles of discrete data. At SL a data set is treated as the whole population unless the question says otherwise. Calling the data "a sample" does not count as saying otherwise: the standard deviation is still σ\sigma, which divides by nn.
Papers: Both. On Paper 1 the data are short or kind: a list to put in order, a frequency table whose positions you count, a graph or a box plot to read, a fence to compare with, two equations from a mean. On Paper 2 the GDC's one-variable statistics gives the mean, the standard deviation and the quartiles of a list or a table, and the marks are for what you do with them: the variance, a fence, a missing value, a comparison in context. The standard deviation is always a GDC value.
Scope: AA SL only. Frequency density histograms are not required (SL 4.2); the modal class is used only with equal class widths (SL 4.3); the standard deviation and the variance are found by technology only. The effect of constant changes is about data: E(aX+b)\mathrm{E}(aX + b) and Var(aX+b)\mathrm{Var}(aX + b) for a random variable are AHL 4.14. Correlation and regression are in Correlation and regression, and the IQR or standard deviation of a normal model is in The normal and binomial distributions.
Formula booklet: the interquartile range, IQR=Q3−Q1\mathrm{IQR} = Q_3 - Q_1 (SL 4.2), and the mean of a set of data, xˉ=∑i=1kfixin\bar{x} = \frac{\sum_{i=1}^{k} f_i x_i}{n}, where n=∑i=1kfin = \sum_{i=1}^{k} f_i (SL 4.3).

  • Not given: where the median and the quartiles sit (their positions); that the variance is σ2\sigma^2; mid-interval values; the outlier rule (more than 1.5×IQR1.5 \times \mathrm{IQR} from the nearest quartile) and its two fences; the effect of constant changes; the sampling techniques, the systematic interval and the stratified count.

Try one now

A Descriptive statistics question of the type "Averages and spread". Work it out on paper, then type your answer here.

Calculator[1]

The number of goals a hockey team scored in each of its 4040 matches last season is shown in the table.

GoalsNumber of matches
0055
111212
221010
3377
4444
5522

Write down the mode.

Free, with no account. You see where each mark went.

The 6 question types

  1. Averages and spread

    Median, quartiles, mean and standard deviation

    • In 6 of 20 recent exams

    Paper 1 (no calculator) and Paper 2 (calculator), 1–3 marks a part: the opening parts of a statistics question, often several 1-mark "write down" parts in a row. Common (6 of 20 exam versions, 2 of them on Paper 1 (no calculator); 24 logged parts). On Paper 1 (no calculator) the list is short and the positions are counted by hand; on Paper 2 (calculator) everything comes from one-variable statistics, and the variance is the step with a method mark.

  2. Cumulative frequency graphs

    Median, quartiles, percentiles and counts

    • In 3 of 20 recent exams

    Paper 1 (no calculator) mostly, 1–4 marks a part, usually as a whole Section B question built on one graph. Typical (3 of 20 exam versions, 2 of them on Paper 1 (no calculator); 12 logged parts).

  3. Box plots

    Read them, draw them, count the quarters

    • In 6 of 20 recent exams

    Paper 1 (no calculator) and Paper 2 (calculator), 1–2 marks a part, inside a longer statistics question. Common (6 of 20 exam versions, 3 of them on Paper 1 (no calculator); 11 logged parts).

  4. Work backwards from the mean or median

    Missing values

    • In 5 of 20 recent exams

    Paper 2 (calculator) mostly, 2–5 marks, a short question on its own or one part of a longer one. Typical (5 of 20 exam versions, 1 of them on Paper 1 (no calculator)). Two of the five are inside a regression question.

  5. Outliers

    The 1.5 × IQR fences

    • In 5 of 20 recent exams

    Paper 1 (no calculator) and Paper 2 (calculator), 2–3 marks, often a "show that" inside a box-plot or summary-statistics question. Typical (5 of 20 exam versions, 3 of them on Paper 1 (no calculator); 6 logged parts).

  6. Compare two distributions in context

    Centre, spread and shape

    • In 3 of 20 recent exams

    Paper 2 (calculator), 1–2 marks a part, after the statistics have been found. Typical (3 of 20 exam versions, all on Paper 2 (calculator); 8 logged parts).

The ideas you need

Population, sample and data

  • The population is every member of the group a question is about; a sample is the part of it that is actually measured. In a random sample, every member has the same chance of being chosen. At SL a data set is treated as the whole population unless the question says otherwise, and calling it a sample does not count. Its standard deviation is still the GDC's σ\sigma (it divides by nn), not ss (which divides by n−1n - 1) (Spread).
  • Discrete data are counted and take separate values: goals scored, people in a car. Continuous data are measured and can take any value in a range: time, mass, length. A continuous value is recorded to some accuracy, so a time of "12 s, to the nearest second" means 11.5≤t<12.511.5 \le t < 12.5.
  • Reliability. Ask where the data came from and whether a value can be right. A recording error should be corrected or removed before anything is calculated; a missing value makes the sample smaller; a sample that leaves out part of the population is biased (Sampling techniques).

Mini-example: a council wants to know how long its 90009000 adult residents spend commuting each day, and asks 250250 of them. The population is the 90009000 adults, the sample is the 250250, and a commuting time is continuous. A recorded time of 900900 minutes a day is not believable: check it, then correct it or leave it out.

Sampling techniques

  • Simple random
    How to describe it
    every member has the same chance of being chosen (and so does every possible sample): number the members, then choose with random numbers
    Calculation
    none
    What the markscheme needs
    "equal chance", and how the random choice is made
  • Convenience
    How to describe it
    whoever is easiest to reach: the first to arrive, one class, one street
    Calculation
    none
    What the markscheme needs
    to name it from a description, and to say why it is likely to be biased
  • Systematic
    How to describe it
    list the population, choose a random start, then take every kkth member
    Calculation
    k=population sizesample sizek = \dfrac{\text{population size}}{\text{sample size}}
    What the markscheme needs
    one mark for the regular interval (the word "every"), one for the value of kk
  • Quota
    How to describe it
    a fixed number from each group, chosen by the person collecting, not at random (e.g. the first 1010 men and 1010 women to walk past)
    Calculation
    the number from each group
    What the markscheme needs
    to name it from a description
  • Stratified
    How to describe it
    split the population into groups (strata), then sample each group at random, in proportion to its size
    Calculation
    group sizepopulation size×sample size\dfrac{\text{group size}}{\text{population size}} \times \text{sample size}, as a whole number
    What the markscheme needs
    M1 for the proportion, A1 for the whole number
  • A bias reason names who is left out, and why their values may be different. "The sample is too small", or a bare "it is not representative", scores 00.
  • A better method is one that reaches every group, usually stratified sampling.
  • Stratified or quota? Both take a number from each group. Stratified chooses at random inside each group; quota lets the collector choose.

Mini-example (exam-style). A gym has 15001500 members: 540540 are under 3030, 720720 are aged 3030 to 5959 and 240240 are 6060 or over. The manager wants a sample of 5050 members, to ask how many hours a week they train. (a) The manager asks the first 5050 members who arrive on a Monday morning. Name this sampling technique. [1] (b) Explain why this sample is likely to be biased. [1] (c) Describe how a systematic sample of 5050 could be taken from the list of members. [2] (d) A sample of 5050 is stratified by age group instead. Find the number of members aged 3030 to 5959 in it. [2] (e) Instead, the manager asks members as they arrive until there are 1818 under 3030, 2424 aged 3030 to 5959 and 88 aged 6060 or over. Name this sampling technique. [1]

(a) Convenience sampling (A1) (b) Members who can't come on a weekday morning, such as those who work, are left out, and they may train for a different number of hours (R1) (c) 150050=30\frac{1500}{50} = 30: choose one of the first 3030 members on the list at random, then take every 3030th member after it (A1)(A1) (d) 7201500×50\frac{720}{1500} \times 50 (M1) =24= 24 (A1) Check: the three groups give 18+24+8=5018 + 24 + 8 = 50 ✓ (e) Quota sampling: a fixed number from each group, but the members are not chosen at random (A1)

Frequency tables and histograms

  • A frequency table gives each value, or each class, with the number of times it occurs. The frequencies add up to nn.
  • Grouped data are put into classes written as inequalities with no gaps: 0≤t<100 \le t < 10, 10≤t<2010 \le t < 20, … (SL 4.2). The class 10≤t<2010 \le t < 20 has width 1010 and mid-interval value (midpoint) 10+202=15\frac{10 + 20}{2} = 15. Widths can differ: 20≤t<4020 \le t < 40 has midpoint 3030.
  • A frequency histogram has one bar per class, with no gaps between bars and height equal to the frequency; at SL its classes have equal widths. Frequency density histograms, for unequal widths, are not required.
  • Grouping loses the individual values, so any statistic worked out from a grouped table is an estimate.

Mini-example: 3030 times in the classes 0≤t<100 \le t < 10, 10≤t<2010 \le t < 20 and 20≤t<4020 \le t < 40, with frequencies 66, 1515 and 99. The midpoints are 55, 1515 and 3030, and every time in a class is treated as its midpoint: the estimated total is 6×5+15×15+9×30=5256 \times 5 + 15 \times 15 + 9 \times 30 = 525.

Averages: mean, median and mode

  • Mean: xˉ=∑fixin\bar{x} = \frac{\sum f_i x_i}{n} (booklet), the total of the values divided by how many there are. So total =n×xˉ= n \times \bar{x}: that line does the work in Work backwards from the mean or median. On P2 the mean comes from one-variable statistics.
  • Median: the middle value once the data are in order, at position n+12\frac{n + 1}{2}. For even nn it is halfway between the two middle values. Write the value, not its position.
  • Mode: the most frequent value. Modal class: the class with the highest frequency, used only when the classes have equal widths (SL 4.3). Give it as the interval, never as its midpoint.
  • Grouped data: the mean is estimated, using each class's midpoint for every value in the class.
  • Which values matter. The median depends only on the middle of the ordered list. With an odd number of values, one extra value below the median and one above it leave the median where it is. With an even number, that is true as long as neither new value falls between the two middle values: 1,2,4,51, 2, 4, 5 has median 33, but adding 2.92.9 and 1010 makes it 2.9+42=3.45\frac{2.9 + 4}{2} = 3.45. The mean uses every value, so one extreme value pulls it.

Mini-example: the number of people in each of 3030 cars.

PeopleCars
111212
2299
3366
4433

Mean: 12+18+18+1230=6030=2\frac{12 + 18 + 18 + 12}{30} = \frac{60}{30} = 2. Median: the 15th and 16th cars. The first 1212 cars have 11 person and the next 99 (the 13th to 21st) have 22, so the median is 22. Mode: 11. Two more cars pass, with 11 person and 44 people: the two middle cars both had 22 people, and the new cars are on opposite sides of 22, so the median stays 22, but the mean becomes 6532≈2.03\frac{65}{32} \approx 2.03.

Spread: range, quartiles, IQR and standard deviation

  • Range == largest value −- smallest value.
  • Quartiles cut the ordered data into four equal parts. By hand: the median splits the data into a lower half and an upper half; for odd nn, the median itself is left out of both halves. Q1Q_1 is the median of the lower half and Q3Q_3 the median of the upper half. GDCs normally use this method too, but other methods exist, so a quartile found another way can differ slightly (SL 4.3 notes that quartiles found by hand and by technology may differ).
  • IQR =Q3−Q1= Q_3 - Q_1 (booklet): the spread of the middle half of the data. Extreme values don't affect it.
  • Standard deviation σ\sigma: roughly, the typical distance of the values from the mean. At SL it comes from technology only (one-variable statistics). Read σ\sigma, the value for the whole data set, not the sample value ss. The variance is σ2\sigma^2: square the unrounded standard deviation, as a written step.

Mini-example: 3,5,6,8,9,11,143, 5, 6, 8, 9, 11, 14 (n=7n = 7). The median is the 4th value, 88. The lower half is 3,5,63, 5, 6, so Q1=5Q_1 = 5; the upper half is 9,11,149, 11, 14, so Q3=11Q_3 = 11. IQR=11−5=6\mathrm{IQR} = 11 - 5 = 6 and the range is 14−3=1114 - 3 = 11. The GDC gives xˉ=8\bar{x} = 8 and σ=3.4641…\sigma = 3.4641\ldots, so the variance is σ2=12\sigma^2 = 12.

Constant changes to every value

Every value …has cc addedis multiplied by kk
Mean, median, mode, quartiles+ c+\,c× k\times\,k
Range, IQR, standard deviationunchanged×∣k∣\times \lvert k \rvert
Varianceunchanged× k2\times\,k^2

If k<0k < 0, the order of the values reverses as well: the new Q1Q_1 is kk times the old Q3Q_3, and the new Q3Q_3 is kk times the old Q1Q_1 (the IQR is still multiplied by ∣k∣\lvert k \rvert). Exam questions use k>0k > 0, for example a change of units or a percentage change.

Adding cc slides every value along together: the centre moves, but the gaps between the values don't change. Multiplying by kk stretches every gap by ∣k∣\lvert k \rvert, and the variance is a square, so it is multiplied by k2k^2. For both at once, y=kx+cy = kx + c: the new mean is kxˉ+ck\bar{x} + c and the new standard deviation is ∣k∣σ\lvert k \rvert\sigma.

Mini-example (exam-style). The masses of 3030 loaves of bread add up to 24 00024\,000 g. The scales were found to read 1212 g too low, so 1212 g is added to every recorded mass. (a) Find the mean of the corrected masses. [3] (b) State the effect of the correction on the variance of the masses. [1]

(a) Method 1: the old mean is 24 00030=800\frac{24\,000}{30} = 800 g (A1). Adding 1212 g to every value adds 1212 g to the mean (M1): 800+12=812800 + 12 = 812 g (A1) Method 2: the new total is 24 000+30×1224\,000 + 30 \times 12 (M1) =24 360= 24\,360 g (A1), so the new mean is 24 36030=812\frac{24\,360}{30} = 812 g (A1) (b) The variance is unchanged (A1)

If the corrected masses are then written in kilograms (every value × 0.001\times\,0.001), the mean becomes 0.8120.812 kg, the standard deviation is multiplied by 0.0010.001 and the variance by 0.000 0010.000\,001.

Scope: this is about data. The same rules for a random variable, E(aX+b)\mathrm{E}(aX + b) and Var(aX+b)\mathrm{Var}(aX + b), are AHL 4.14.

Cumulative frequency

  • The cumulative frequency at a value is the number of data values up to and including it: a running total of the frequencies. For grouped data it is the number of values below a class boundary.
  • For grouped data, plot each running total at the upper boundary of its class, start at the lowest boundary with 00, and join the points with a smooth curve (or straight lines).
  • A count → a value (read across to the curve, then down): the median at n2\frac{n}{2}, Q1Q_1 at n4\frac{n}{4}, Q3Q_3 at 3n4\frac{3n}{4}, and the ppth percentile (the value with pp % of the data below it) at pp % of nn. On a graph the data are treated as spread out continuously, so read at n2\frac{n}{2}, not the list position n+12\frac{n+1}{2}. Markschemes accept either, and on a graph the difference is too small to see.
  • A value → a count (read up to the curve, then across): the number below the value. The number above it is n−n - that reading.
  • A class's frequency is the difference between the readings at its two boundaries.

Mini-example: the marks of 5050 students.

Mark, mmFrequencyCumulative frequency
0≤m<200 \le m < 204444
20≤m<4020 \le m < 4011111515
40≤m<6040 \le m < 6020203535
60≤m<8060 \le m < 8010104545
80≤m<10080 \le m < 100555050

Plot (0,0)(0, 0), (20,4)(20, 4), (40,15)(40, 15), (60,35)(60, 35), (80,45)(80, 45) and (100,50)(100, 50). The median is across from 2525: about 5050 marks. The 90th percentile is across from 0.9×50=450.9 \times 50 = 45: 8080 marks. The number of students with 6060 marks or more is 50−35=1550 - 35 = 15.

Each running total is plotted at the upper boundary of its class. Across from 2525 (half of 5050) the median is about 5050 marks; across from 4545 the 90th percentile is 8080; and up from 6060 the reading is 3535, so 50−35=1550 - 35 = 15 students scored 6060 or more.

Box plots (box-and-whisker diagrams)

  • A box plot shows the five-number summary: the least value, Q1Q_1, the median, Q3Q_3 and the greatest value. On a scale, the box runs from Q1Q_1 to Q3Q_3 with a line at the median, and the whiskers run out to the least and greatest values.
  • Each of the four sections holds a quarter of the data, however long it is on the scale. A long whisker means the values there are spread out, not that there are more of them.
  • Outliers are marked with a cross, and the whisker then stops at the most extreme value that is not an outlier (SL 4.2).
  • Shape. If the box and the whiskers are roughly symmetric about the median, the data may be normally distributed (SL 4.2). A median close to Q1Q_1 and a long right whisker mean a tail of high values: the data are positively skewed. A median close to Q3Q_3 and a long left whisker mean a tail of low values: negatively skewed.

Mini-example: for 3,5,6,8,9,11,143, 5, 6, 8, 9, 11, 14 (Spread), the box runs from 55 to 1111 with a line at 88, and the whiskers go to 33 and 1414. The median is in the middle of the box and the whiskers are similar (22 and 33 long), so the data are roughly symmetric.

The five-number summary on a scale: whiskers from the least value 33 to Q1=5Q_1 = 5 and from Q3=11Q_3 = 11 to the greatest value 1414, the box between the quartiles with the median 88 inside it. Each of the four sections holds a quarter of the data, and here the diagram is roughly symmetric.

Outliers

An outlier is a value more than 1.5×IQR1.5 \times \mathrm{IQR} from the nearest quartile (SL 4.1). That gives two fences:

lower fence=Q1−1.5×IQR,upper fence=Q3+1.5×IQR\text{lower fence} = Q_1 - 1.5 \times \mathrm{IQR}, \qquad \text{upper fence} = Q_3 + 1.5 \times \mathrm{IQR}
  • A value below the lower fence or above the upper fence is an outlier. A value exactly on a fence is not.
  • An outlier can be a genuine value, which stays in the data, or an error, which is corrected or removed. The context decides (SL 4.1).

Mini-example: Q1=20Q_1 = 20 and Q3=28Q_3 = 28, so IQR=8\mathrm{IQR} = 8 and 1.5×8=121.5 \times 8 = 12. The fences are 20−12=820 - 12 = 8 and 28+12=4028 + 12 = 40. So 4141 and 77 are outliers, but 4040 and 88 are not.

Which type?

  • a list, or values with frequencies
    Asked
    median, quartiles, IQR, mode, mean, standard deviation, variance
    First move
    order the list (P1), or one-variable statistics (P2)
  • a grouped table
    Asked
    an estimated mean or variance, midpoints, the modal class
    First move
    midpoints with the frequencies
  • a mean or a median, and a value or frequency missing
    Asked
    the missing value
    First move
    total =n×= n \times mean; or the running totals of the frequencies up to the median's position
  • a cumulative frequency graph
    Asked
    the median, a percentile, a count, table frequencies, a population estimate
    First move
    turn the request into a cumulative count, or read up from a value
  • a box plot or its five numbers; or data, with a box plot to draw
    Asked
    a count between markers, a missing marker, a drawing
    First move
    each section is a quarter of the data
  • quartiles and a value, or a value that is not an outlier
    Asked
    outlier or not, a fence, an unknown quartile
    First move
    the fences Q1−1.5×IQRQ_1 - 1.5 \times \mathrm{IQR} and Q3+1.5×IQRQ_3 + 1.5 \times \mathrm{IQR}
  • two groups, or a box plot's shape
    Asked
    a comparison, a claim, the skew, which graph fits
    First move
    one measure of centre and one of spread, compared with numbers, then in context
  • every value changed by the same rule
    Asked
    the new mean, standard deviation or variance
    First move
    the table in Constant changes
    Type
    (concept, no type)
  • a description of how a sample was chosen
    Asked
    the technique, a bias reason, a count
    First move
    the table in Sampling techniques
    Type
    (concept, no type)
  • a normal model with an IQR, a quartile or a percentage
    Asked
    σ\sigma or μ\mu
    First move
    zz-values from inverse normal
  • a normal model with μ\mu and σ\sigma, and a top or bottom percentage
    Asked
    the cut-off value
    First move
    inverse normal

Where descriptive statistics hides in other topics

Averages and spread turn up inside other topics, usually as one step. The first move is to notice that a list of numbers (terms, data values, outcomes) is being summarised, or that a total is hiding behind a mean.

  • The terms of a sequence treated as data: the mean and median of the first 88 terms of 7,10,13,…7, 10, 13, \ldots (Arithmetic sequences)
    It becomes
    Averages: mean =S88=1408=17.5= \frac{S_8}{8} = \frac{140}{8} = 17.5; median =u4+u52=16+192=17.5= \frac{u_4 + u_5}{2} = \frac{16 + 19}{2} = 17.5
    Watch for
    an even number of terms has two middle terms; for an arithmetic sequence the mean and the median are equal
  • A missing data value in a regression question (The mean point)
    It becomes
    Work backwards from the mean or median: yˉ\bar{y} from the line at xˉ\bar{x}, then total =nyˉ= n\bar{y}
    Watch for
    the line need not pass through any data point; only the mean point is certain to be on it. Substituting the missing point's xx into the line earns nothing
  • A frequency table used as a probability distribution (Probability distribution tables)
    It becomes
    the relative frequencies are the probabilities, so ∑xfn=∑x P(X=x)\frac{\sum xf}{n} = \sum x\,\mathrm{P}(X = x): frequencies 10,25,1510, 25, 15 for x=0,1,2x = 0, 1, 2 give a mean of 1.11.1, the E(X)\mathrm{E}(X) of the probabilities 0.2,0.5,0.30.2, 0.5, 0.3
    Watch for
    the same sum; "expected value" is the random-variable wording
  • The IQR or the standard deviation of a normal model (Unknown mean or standard deviation)
    It becomes
    not a data set: the quartiles are the 2525 % and 7575 % points of the curve, each 0.6745σ0.6745\sigma from μ\mu. An IQR of 1010 gives σ=50.67448…=7.41\sigma = \frac{5}{0.67448\ldots} = 7.41
    Watch for
    a box plot's IQR is read from data; a normal model's needs inverse normal
  • "The top pp %" of a normal model (Find the value from a probability)
    It becomes
    inverse normal with an upper-tail area of p100\frac{p}{100}
    Watch for
    with a cumulative frequency graph it is a reading at n−p100nn - \frac{p}{100}n (Cumulative frequency graphs)
  • Every value changed by the same rule, next to a transformed graph (Transform a graph)
    It becomes
    Constant changes: adding cc moves the centre (like a translation); multiplying by kk scales the spread by ∣k∣\lvert k \rvert (like a stretch)
    Watch for
    adding a constant never changes the spread
  • The mean of consecutive odd numbers in a proof (Prove it: from one side to the other)
    It becomes
    total ÷\div number of values, in algebra: 2k−3,2k−1,2k+1,2k+3,2k+52k - 3, 2k - 1, 2k + 1, 2k + 3, 2k + 5 add up to 10k+510k + 5, so their mean is 2k+12k + 1, the middle one
    Watch for
    the mean of an odd number of equally spaced values is the middle one (for an even number, it is halfway between the two middle ones)

More in Statistics and probability

Every topic of the course

Guides