Normalize three unscaled weights
Keep the numerator and denominator in the stated order. · 173 words
An unscaled weight is a nonnegative score used to compare options. A shopping recommender might score three museum-store books at 4, 2, and 1. These scores do not yet mean 4 percent or 1 out of 7. To normalize them, add them and divide each score by the total. Here the total is 7, so the normalized probabilities are 4/7 = 0.571, 2/7 = 0.286, and 1/7 = 0.143. Normalization converts relative preference into values that can be used directly by a sampling rule.
Consider a navigation app that assigns weights 12, 6, and 2 to three suggested routes. The total is 20, so the route probabilities are 0.60, 0.30, and 0.10. If the app samples in proportion to these weights, they describe the long-run share of selections. Normalization does not make a weak option likely. It only puts all options on one probability scale. It also preserves their ratio: multiplying every weight by the same positive number changes the raw scores but not the final probabilities. A zero weight receives probability zero.
Check your recall
A classifier gives three classes weights 5, 3, and 2. What are their normalized probabilities?
Check your answer
The total weight is 10. Divide each weight by 10, giving 0.50 for the first class, 0.30 for the second, and 0.20 for the third.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.