https://michael-franke.github.io/blog/posts/CorrelationMultinomial/