Linear regression

Reviewing linear regression and framing it as a prototypical example and source of intuition for other machine learning methods.

Joshua Loftus

Machine learning before the information age

Slides and notebooks

Notebook for gapminder example

Slides for simple regression video (PDF)

Slides for risk and CEFs video (PDF)

Notebook for seminar


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Loftus (2021, Jan. 25). Neurath's Speedboat: Linear regression. Retrieved from

BibTeX citation

  author = {Loftus, Joshua},
  title = {Neurath's Speedboat: Linear regression},
  url = {},
  year = {2021}