When values come with counts (or weights) , their weighted average is
total of the values, divided by total of the weights.
Examples
Example 61.8
A test was taken by two groups: group 1, students, average ; group 2, students, average . Average of the whole class:
Not : the larger group pulls the average towards its own — the weights matter.
Example 61.9 (Average speed over two legs)
A cyclist rides km at km/h, then km at km/h. The average speed over the whole trip is not km/h. Compute with the definition:
- times: h, then h; total h;
- total distance km, so km/h.
The slow leg lasts longer, so it weighs more — an average of speeds must be weighted by time.