Source: https://alex.smola.org/drafts/thebook.pdf