Rate movies, find users with similar taste, and watch the algorithm recommend films you've never seen — exactly how Netflix, Spotify, and YouTube work inside!
Users rate items (1–5 stars). These ratings form a giant matrix — rows are users, columns are items.
Compare your ratings to everyone else's using cosine similarity. High similarity = shared taste.
Your "taste twins" rated items you haven't seen. Predict your rating based on their scores.
Show the highest predicted-rating items you haven't rated yet. That's your personalised recommendation!
You built a collaborative filtering recommendation engine from scratch!
"Users who liked what you liked also liked X." No content analysis needed — just patterns in ratings.
Treats ratings as vectors. cos(θ) between two vectors = similarity. 1.0 = same direction = same taste.
Most users rate very few items — the matrix is 99% empty. Matrix factorisation (SVD) solves this.
A brand new user has no ratings — can't find taste twins. Fix: ask for preferences at sign-up.
Recommenders only show what you already like, narrowing your experience. A real ethical concern!
Instead of user similarity, analyse item features (genre, director). Netflix uses both methods together.