Source: https://freakonometrics.github.io/documents/teaching/NTF.pdf