Calculate weighted mean, median, and weighted median.