It was brought to my attention in this video that, where you have some attribute of your data that is the ratio of two other attributes, there are two ways of generating the mean "average" of this ratio.
Taking the example from the beginning of the video, suppose that $x_i$ is the total sales (in \$) for a given line item, and $k_i$ is the quantity sold:
| Item ID | Sales | Qty sold |
|---|---|---|
| Accessory #1 | $x_1$ | $k_1$ |
| Accessory #2 | $x_2$ | $k_2$ |
| Accessory #3 | $x_3$ | $k_3$ |
For each individual line item, you might define "Sales per unit" as $u_i=\frac{x_i}{k_i}$. However, as the video points out, there are two ways one might then define the average Sales per unit for an Accessory. Using the video's terminology:
$$\text{AGG}=\frac{x_1+x_2+x_3}{k_1+k_2+k_3}$$
$$\text{AVG}=\frac{1}{3}\left(\frac{x_1}{k_1}+\frac{x_2}{k_2}+\frac{x_3}{k_3}\right)$$
So $\text{AVG}$ is just $\bar{u}$, whereas $\text{AGG}$ creates a composite Accessory item $\left(X, K\right)$, whose sales and quantity are the sum of the individual line items', and calculates $U=\frac{X}{K}$ for that composite item.
Plugging in example numbers for the $x_i$ and $k_i$ suggests that $\text{AGG}$ and $\text{AVG}$ do not in general give the same value. My question is: what are the qualitative differences in what $\text{AGG}$ and $\text{AVG}$ are doing? Which provides the better view of what average sales per unit for an Accessory are?
The simple average $$\text{AVG}=\frac{1}{3}\left(\frac{x_1}{k_1}+\frac{x_2}{k_2}+\frac{x_3}{k_3}\right)$$ is the mean selling price of the three types of accessories, whereas the weighted average $$\text{AGG}=\frac{x_1+x_2+x_3}{k_1+k_2+k_3}$$ is the mean selling price of the units of accessories, accounting for the unequal sales volumes among the three types.