Source: https://www.unige.ch/fapse/SSE/teachers/maulini/2006/sem-rech-note-lecture.pdf