https://patrick-adams.com/files/papers/PatrickAdams_JMP_Latest.pdf