Nonlinear methods

Non-linearity may result in models that trade interpretability for increased predictive accuracy. These notes discuss the challenges of non-linearity and introduce nearest neighbors and kernel methods.

Joshua Loftus

Nearest neighbors

Kernel methods

Slides, notebooks

Slides for non-linearity video ([PDF])

Slides for \(k\)-NN video ([PDF])

Slides for kernel video ([PDF])

Notebook for \(k\)-NN


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, March 8). Neurath's Speedboat: Nonlinear methods. Retrieved from

BibTeX citation

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