← Data and scatterplots

πŸ“– Shape of the data

The rule

  • A histogram groups numbers into ranges. A bar's height is how many values fall in its range. The bars touch because the ranges run on with no gaps.
  • Symmetric: the left half mirrors the right half. The mean and median are about equal.
  • Positively skewed: a long tail to the right. The mean is greater than the median.
  • Negatively skewed: a long tail to the left. The mean is less than the median.
  • Name a skew by its tail, not by where the peak is.
  • Two peaks (bimodal) often mean two different groups mixed together, such as children and adults.
  • A tail pulls the mean toward it, because the mean uses every value. The median only cares about the middle.
  • For a skewed set, or one with outliers, use the median and IQR. For a symmetric set, the mean is fine.

Examples

Seven bars: 2, 5, 9, 12, 9, 5, 2. Describe the shape. β†’ Symmetric, with one peak in the middle

  1. The tallest bar is the 4th, in the middle.
  2. Left side 2, 5, 9 matches right side 9, 5, 2.
  3. So it is symmetric, with one peak.

The two halves match.

0246810120–1010–2020–3030–4040–5050–6060–70

Seven bars: 3, 12, 9, 6, 4, 2, 1. Describe the shape. β†’ Positively skewed

  1. The peak is the 2nd bar, near the left.
  2. The bars trail off to the right.
  3. The tail is on the right, so it is positively skewed.

The tail is on the right.

0246810120–1010–2020–3030–4040–5050–6060–70

Seven bars: 3, 9, 5, 2, 5, 9, 3. Describe the shape. β†’ Two peaks (bimodal)

  1. The tall bars are the 2nd and the 6th.
  2. The middle bar dips to 2.
  3. Two peaks: bimodal.

There are two tall humps with a dip between.

01234567890–1010–2020–3030–4040–5050–6060–70

House prices ($000) in a suburb are skewed right. Quote the mean, 750, or the median, 600? β†’ The median, 600

  1. Skewed right: a few very dear houses make a long tail.
  2. Those houses pull the mean up to 750.
  3. The median is not dragged, so 600 is more typical.
  4. Quote the median, 600.

A few very dear houses drag the mean up.

024681012400–500500–600600–700700–800800–900900–10001000–1100

Watch out

  • β€œThe peak is on the left, so it is negatively skewed.” No: the tail is on the right, so it is positively skewed.
  • β€œThe tallest bar is the mean.” No: the tallest bar is the most common range, the mode.
  • β€œSkewed data is wrong data.” No: skew is only a shape. Incomes and house prices are often skewed.
Start the lesson β–Ά