Intuitional

Free revision notes · 14-page PDF

Data Analysis: Dot Diagrams, Histograms, Stem-and-Leaf and Averages Notes — Sec 2 Math

Data analysis in Sec 2 is about displaying, summarising and comparing data. These skills are the base for the statistics you will study in upper secondary.

These notes cover how to construct and read dot diagrams, stem-and-leaf diagrams and histograms, and how to describe and compare distributions. They also cover how to calculate the mean, median and mode, including from frequency tables and grouped data, and how to justify which average suits the data.

What these notes cover

  • •Dot diagrams
  • •Stem-and-leaf diagrams
  • •Back-to-back stem-and-leaf diagrams
  • •Class intervals and class width
  • •Drawing and reading histograms
  • •Histogram or bar graph?
  • •Describing a distribution
  • •Choosing a suitable diagram
  • •Mean, median and mode
  • •Averages from frequency tables and grouped data
  • •Choosing an average and the effect of an outlier
  • •Common mistakes and exam technique

Key definitions

Dot diagram
A diagram showing how often each value occurs in a small set of data. One dot is marked for each observation, directly above its value on an evenly spaced number line.
Stem-and-leaf diagram
A diagram that groups the data but keeps every original value. Each value is split into a leaf (its last digit) and a stem (all the digits before it), and a key with the unit must be given.
Histogram
A diagram showing numerical data grouped into class intervals, with touching bars whose heights equal the class frequencies. It is especially useful when there are too many values to show one by one.
Modal class
For grouped data with equal class widths, the class with the highest frequency, shown by the tallest bar of a histogram.
Outlier
A value that lies far from the rest of the data. It pulls the mean towards it but has little effect on the median.

Key formulas

Class width

class width = upper boundary − lower boundary

For 10 < t ≤ 20 the class width is 20 − 10 = 10. This class excludes 10 and includes 20, so a boundary value falls into exactly one class.

Percentage of the data in chosen classes

percentage=frequency in those classestotal frequency×100%\text{percentage} = \frac{\text{frequency in those classes}}{\text{total frequency}} \times 100\%

Add the frequencies of the classes you need. For example, if 12 of 40 values are more than 30, the percentage is (12 ÷ 40) × 100% = 30%.

Mean of raw data

xˉ=∑xn\bar{x} = \frac{\sum x}{n}

Σ means “the sum of”, n is the number of values and x̄ is the mean.

Total from the mean

∑x=n×xˉ\sum x = n \times \bar{x}

Use this for reverse-mean problems: turn every mean into a total, then compare the totals.

Position of the median

median position=n+12\text{median position} = \frac{n + 1}{2}

Order the data first. This gives the position, not the median. If n is even, the median is the mean of the two middle values.

Mean from a frequency table

xˉ=∑fx∑f\bar{x} = \frac{\sum fx}{\sum f}

A value x that occurs f times adds fx to the total. For grouped data, take x as the mid-interval value, (lower boundary + upper boundary) ÷ 2; the result is then only an estimate, x̄ ≈ Σfx ÷ Σf.

Worked example

The time, t minutes, that each of 40 students took to travel to school is grouped as follows: 0 < t ≤ 10: 5 students; 10 < t ≤ 20: 9 students; 20 < t ≤ 30: 14 students; 30 < t ≤ 40: 8 students; 40 < t ≤ 50: 4 students. State the modal class and the class containing the median. Find the percentage of students who took more than 30 minutes, estimate the mean time and describe the shape of the distribution.

  1. 1The highest frequency is 14, for the class 20 < t ≤ 30, so the modal class is 20 < t ≤ 30.
  2. 2With 40 values, the median lies halfway between the 20th and 21st values; the running totals are 5, 5 + 9 = 14 and 14 + 14 = 28, so both values lie in 20 < t ≤ 30, which is the class containing the median.
  3. 3The students who took more than 30 minutes are in the last two classes: 8 + 4 = 12, so the percentage is (12 ÷ 40) × 100% = 30%.
  4. 4The mid-values are (0 + 10) ÷ 2 = 5, and similarly 15, 25, 35 and 45 for the other classes.
  5. 5Multiplying each mid-value by its frequency gives fx = 5 × 5 = 25, 15 × 9 = 135, 25 × 14 = 350, 35 × 8 = 280 and 45 × 4 = 180, so Σfx = 970 and Σf = 40.
  6. 6Estimated mean = Σfx ÷ Σf = 970 ÷ 40 = 24.25 min; this is only an estimate because each mid-value stands in for every time in its class.
  7. 7The distribution is roughly symmetrical, with a cluster of times between 20 and 30 minutes and frequencies falling away on both sides of this class.

Watch out: Give the modal class as the class interval, 20 < t ≤ 30, not the frequency 14.

Common mistakes

Giving the position as the median

Wrong: Finding the median from unordered data, or giving its position, (n + 1) ÷ 2, as the answer.

Right: Order the data first. (n + 1) ÷ 2 gives the position, not the median. If n is even, take the mean of the two middle values.

Giving the highest frequency as the mode

Wrong: Stating the number of times a value occurs as the mode.

Right: The mode is the value that occurs most often, not the number of times it occurs. There may be more than one mode.

Wrong divisor for the mean of a frequency table

Wrong: Dividing Σfx by the number of rows in the table.

Right: Divide Σfx by Σf, the total frequency. Data values of 0 still count towards Σf.

Questions students ask

How do you find the median from a frequency table?

Find the position using (n + 1) ÷ 2, where n is the total frequency, then use running totals to see which value lies in that position. For 20 values the position is 10.5, so the median is the mean of the 10th and 11th values.

What is the difference between a histogram and a bar graph?

A histogram shows numerical data grouped into class intervals, such as heights or travelling times; its bars touch and their order is fixed by the number scale. A bar graph shows separate categories, such as CCA or mode of transport; its bars are separated by gaps and the categories can often be arranged in any order.

How do you describe the shape of a distribution?

Use a four-point checklist: where the data cluster, how spread out they are from the smallest value to the largest, whether the shape is roughly symmetrical or has a longer tail on one side, and any gaps or extreme values. Name the direction by the tail, not by the peak, and use the context and units in your description.

When should I use the median instead of the mean?

Use the median when the data have outliers or a long tail, because extreme values have little effect on it, while they pull the mean towards them. Justify your choice with a feature of the data, such as “the median, because one salary is far larger than the rest”.

In the full PDF

  • •Drawn dot diagram and stem-and-leaf diagrams (unordered and ordered) with keys, and the full rules for each
  • •A worked comparison of two groups using a back-to-back stem-and-leaf diagram, with mode, median, mean and percentage
  • •Histogram drawing rules, a drawn histogram of the travel times, and sketches of the three common distribution shapes
  • •A table comparing dot diagrams, stem-and-leaf diagrams and histograms, with guidance on justifying your choice
  • •A worked example on reverse-mean and missing-frequency problems, and a step-by-step look at how an outlier changes the mean, median and mode
  • •The remaining common mistakes, exam technique, a model comparison answer and a five-point summary