. . . "In equation form, this can be written as W=sum(w[x])=sum (w[1]. . . w[x]), where x is a numerical identifier of each category, and x is incremented over the number of categories." .