The “sum” approach is the most straightforward. One sums up all resource counts within a category across all individuals to get the population's use, then determine the proportion of each resource category in the population's repertoire. The proportion \(q_j\) of the resource j in the population's diet is:
$$q_j = \frac{\sum_i{n_{ij}}}{\sum_{ji}{n_{ij}}}$$
The drawback of this approach is that individuals that eat large numbers of items, or larger total mass of items, will bias the population to look more like them.
The “average” method (average proportion) circumvents this problem by first converting individual diets into proportions \(p_{ik}\), then averaging these proportions for each resource k.
Along with the population's diet the procedure calculates the Levins' D index (Levins 1968) of diversity as:
$$ D = 1 - \frac{1}{\sum{q_{j}^2}}$$