Skip to content
Lesson 1 of 10 · Introductory Statistics

Data, sampling and graphs

Classify variables, choose the right graph, describe a distribution's shape, and spot the sampling and graphing tricks that mislead.

18 min

Statistics is the science of learning from data when you cannot see everything. It has two jobs: describe the data you have, and infer what is true of a bigger group from a part of it.

TypeExamplesRight summaries
Categorical (nominal)eye colour, country, yes/nocounts, percentages, bar chart
Categorical (ordinal)star rating, "agree to disagree"counts, order matters
Quantitative (discrete)number of siblingsmean, median, dot plot
Quantitative (continuous)height, time, blood pressuremean, median, histogram, box plot

A number is not always quantitative: a phone number or a postcode is a label. Ask whether averaging it would mean anything.

  • Bar chart: counts or percentages for categories (bars separated).
  • Histogram: distribution of a quantitative variable (bars touch, equal-width bins).
  • Box plot: median, quartiles and outliers; best for comparing groups side by side.
  • Scatterplot: two quantitative variables.
  • Line chart: one quantity over time.

Describe a distribution by its centre, spread, shape and unusual values. Shape can be symmetric, right-skewed (a long tail to the high side, like incomes) or left-skewed. It may have one peak (unimodal) or two (bimodal, often two groups mixed). In a right-skewed set the mean is pulled above the median.

Where data comes from

Everything you can conclude depends on how the data was collected.

  • A population is the whole group you care about. A sample is the part you actually measure.
  • A simple random sample gives every member the same chance of selection. It is the standard because it avoids systematic bias.
  • Convenience samples (people who happen to be nearby) and voluntary response samples (people who choose to reply to an online poll) are biased: the people who opt in differ from those who do not.
  • Survivor bias is looking only at what remains: study only the companies still trading and you will conclude they all did well.

An observational study records what happens. An experiment assigns a treatment at random, which is the only way to support a claim that the treatment caused the difference. Random assignment spreads other influences evenly across groups.

  • A truncated axis: starting a bar chart at 90 instead of 0 makes a small difference look huge. Bars should start at zero.
  • Area and 3D effects that exaggerate size.
  • Cherry-picked time windows that hide the long trend.

Always read the axis labels and scale before reading the shape.

Four ways to pick a sample from a school of 2,000 students.

Ask the first 50 students through the gate

Method
Convenience: those who arrive early
Biased?
Likely biased

Put a link in the school app; anyone may answer

Method
Voluntary response
Biased?
Likely biased: strong opinions respond

Number all students, draw 50 using random numbers

Method
Simple random sample
Biased?
Unbiased in design

Best for Best option

Ask only the debate club

Method
Not representative
Biased?
Biased
  • Check whether a variable is categorical or quantitative before choosing a summary or graph.
  • Describe a distribution by centre, spread, shape and unusual values.
  • In a right-skewed distribution the mean sits above the median.
  • Voluntary response and convenience samples are biased; random sampling is the fix.
  • Only a randomised experiment supports a cause-and-effect claim.
Check yourself

Practice.

1Multiple choice

Which variable is quantitative?

  • APostcode
  • BShoe size in cm
  • CFavourite colour
  • DPassport number
2Multiple choice

A distribution of house prices has a long tail of expensive houses. Its shape is:

  • Aleft-skewed
  • Bsymmetric
  • Cright-skewed
  • Duniform
3Multiple choice

A news site asks readers to vote in an online poll. This is a:

  • Asimple random sample
  • Bvoluntary response sample
  • Cstratified sample
  • Dcensus
4Multiple choice

A bar chart's vertical axis starts at 90 instead of 0. The main risk is that it:

  • Ahides the labels
  • Bexaggerates small differences
  • Cshows the wrong categories
  • Duses the wrong type of graph
5Multiple choice

To show that a new teaching method causes better scores you should:

  • Acompare last year's class with this year's
  • Bsurvey students about it
  • Crandomly assign students to methods
  • Dask teachers which is better

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Introductory Statistics is planned around your week. Free.