Imho, in the documentation the weighted average is wrong.
https://reference.wolfram.com/language/ref/Mean.html
1/n is wrong
Maybe there is a different definition, but I tried 2 examples on the given websites and everything is fine.
It seems that it is an error in the documentation, but the implementation is right.