Education

Teaching Data Science Effectively

What I have learned from teaching data, code and biology: start with a real question, reason before syntax, and practise in small steps.

By Nijiati Abulizi2 min read

I have taught data science to graduate students, to researchers from other fields, and through short lessons online. The audiences differ, but the same few principles keep holding. I teach the way I wish I had been taught: real data, clear reasoning, no rote syntax.

Start with a question, not a function

Nobody is motivated by groupby. People are motivated by wanting to know something. Open with a real dataset and a question worth answering, and introduce each tool at the moment it becomes necessary. The syntax then has a reason to exist, and it is remembered.

Teach the reasoning before the code

Before any code is written, ask what the answer should look like. What shape will the table have? Roughly what size should the number be? Students who can predict an output can also notice when it is wrong, which is the skill that matters once they are working alone.

Keep the steps small

Long lectures produce the feeling of understanding without the ability. Short, focused units with immediate practice produce both. This is the idea behind BitSize Learning: lessons small enough to finish, a pass mark before the next one unlocks, and spaced review so that what was learned last week is still there next month.

Make mistakes ordinary

Write code live, and let it break. An instructor who reads an error message calmly and works out what it means teaches more than one whose examples always run. Debugging is most of the job, and students should see it done.

Assess by doing

If the goal is that someone can analyse data, the assessment should be an analysis: a dataset, a question and a short report. It shows what a quiz cannot, namely whether they can make reasonable choices and explain them.

Respect where people are coming from

A biologist learning Python already knows how to reason about evidence. A programmer learning statistics already knows how to build things. Good teaching finds what a learner brings and connects the new material to it, instead of starting everyone from zero.

In short

  • Real questions and real data.
  • Predict, then compute.
  • Small units, practised at once and revisited later.
  • Errors in the open.
  • Assessment that looks like the work.

All insights