https://pjcs-pwc.blogspot.com/2022/07/tricky-partitions-and-easy-stats.html