Imho, in the documentation the weighted average is wrong.
https://reference.wolfram.com/language/ref/Mean.html
1/n is wrong