← All work
Recommender systems · Methods study

Three ways to recommend a movie

Collaborative filtering, content-based filtering and Bayesian-weighted ranking, implemented side by side on public movie data to learn where each shines, where it fails cold and how they combine. It was the groundwork for production deal matching.

Three ways to recommend a movie

The problem

Every recommender family trades off cold start, diversity and explainability differently. Building them from scratch on the same data makes those trade-offs concrete before choosing a hybrid in production.

Approach

  • Collaborative filtering: a sparse user × item matrix from MovieLens ratings, neighbours found with cosine similarity and k-NN, and ratings predicted as similarity-weighted averages. It discovers taste without metadata but suffers from cold start.
  • Content-based filtering: TF-IDF on plot overviews plus genre, cast and crew features from TMDB 5000, ranked by cosine similarity. It works from day one and can explain why, but it over-specialises.
  • Bayesian weighted rating: shrinks each item's mean rating toward the global mean in proportion to vote count, so a 9.5 from three voters doesn't beat an 8.7 from fifty thousand.

Result

A clear map of when to use each family and how to compose them, applied directly to the hybrid content-based and collaborative matching I build at DealCircle.

Next

Search Semantically: an LLM and semantic-search course →