Skip to main content

1.2 AI, data and assumptions

Start with the task, the data and what a prediction can actually tell you.

A prediction is not an explanation

Machine learning fits patterns in examples. A trained model applies those patterns to new inputs. This can be useful for classification, forecasting or ranking, but a good prediction does not establish why an outcome happened.

Imagine a model that prioritizes research papers. Its output is a ranking, not a scientific judgment. You still need to define what relevance means and check whether important evidence was left out.

  • Input: the information available when a decision is made.
  • Target: the outcome or label you want the model to predict.
  • Training data: examples used to fit the model.
  • Evaluation data: separate examples used to estimate performance.

Make assumptions visible

A model can learn shortcuts. If every positive example comes from one laboratory and every negative example from another, laboratory-specific patterns may masquerade as biology. Randomly splitting these records can conceal the problem.

Choose an evaluation split that resembles the real use case. A new hospital, time period or instrument may require testing on held-out groups rather than a random sample.

  • Ask who and what is missing from the data.
  • Check whether labels reflect the question you actually care about.
  • Keep information unavailable at prediction time out of the inputs.
  • Compare with a simple baseline before celebrating a complex model.

Keep the claim proportional to the evidence

Accuracy alone can hide uneven performance. Record the types of mistakes, their consequences and the populations affected. A model that works on one dataset is not automatically ready for a different setting.

For this course, use public or invented examples. The exercises are educational demonstrations, not validated tools for clinical decisions.

Further reading

Original reference materials. External notebooks run on their own services, not on this site.