Source: http://john.mccr.ae/papers/arcan2019inferring.pdf