Consider the following example:
A shipment of 10 cases of widgets costs $0.20 per case.
Due to heavy consumption of widgets, a second shipment of 40 cases now costs $0.30 per case.
The average cost of the cases in each shipment, ($0.20+$0.30)/2 = $0.25,
would not be an accurate measure of the average cost of the cases, since
it does not take into account that there are thirty more cases being
purchased at $0.30 than at $0.20. The weighted average would return
$0.28, a more accurate representation of the average cost of a case
of widgets.
Due to heavy consumption of widgets, a second shipment of 40 cases now costs $0.30 per case.