RightSignal
1 of 4

Your RightSignal

Concept of the day1 / 3

Matrix factorization

The concept

How 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.

  1. You: p = (2, 1); film: q = (1, 3)
  2. 2×1 + 1×3 = 2 + 3 = 5 stars
  3. A quiet drama q = (0.5, 0.5): 2×0.5 + 1×0.5 = 1.5 stars