Matrix factorization
The conceptHow a streaming service guesses your rating for a film you never saw
Matrix factorization fills in a mostly blank ratings table, one row per user and one column per film, by giving every user and every film a short list of numbers called factors.
Your predicted rating is the dot product of the two lists: multiply matching numbers and add. With your list (2, 1) and a film's (1, 3), that is 2×1 + 1×3 = 5 stars. Training discovers what each factor means.
What it’s forPredicts how user u would rate item i from their learned factor lists.
r̂ᵤᵢ = pᵤ · qᵢ = Σₖ pᵤₖ × qᵢₖ
- r̂ᵤᵢ
- the predicted rating of user u for item i
- pᵤ
- user u's list of k taste numbers, e.g. k = 50
- qᵢ
- item i's list of k matching numbers
- Σₖ
- add up the products over all k factors
What it givesA rating guess for any user and item pair, including ones never rated.
- You: p = (2, 1); film: q = (1, 3)
- 2×1 + 1×3 = 2 + 3 = 5 stars
- A quiet drama q = (0.5, 0.5): 2×0.5 + 1×0.5 = 1.5 stars