Source: http://www.hec.unil.ch/gcampono/teaching/bda/exercices/exe04_normalisation.pdf