I was researching various way to compute weighted averages, and came across something seemingly unrelated, called the Simpson’s paradox:
Simpson’s paradox, or the Yule–Simpson effect, is a phenomenon in probability and statistics, in which a trend appears in different groups of data but disappears or reverses when these groups are combined.
Wikipedia has a very good article on it:
https://en.wikipedia.org/wiki/Simpson’s_paradox