How recommendation systems work

Recommendation systems decide what to show you next: films, products, videos, songs. The two classic approaches are collaborative filtering ("people similar to you liked this") and content-based filtering ("this is similar to what you liked"). Most big platforms combine both with deep learning, using signals like clicks, watch time, ratings and searches.

Everyday analogy

A shopkeeper who knows you well: "Customers who buy what you buy also love this new pickle" (collaborative), or "You liked mango pickle, try this lime one" (content-based).

Example

You watch three Malayalam thrillers on a streaming app. It recommends a fourth because viewers with similar history loved it (collaborative), and because it shares the genre, language and actors (content-based).

🎬 Action💕 Romance🚀 Sci-fi😂 Comedy🧑 Asha★★★★★★★★★★?🧑 Ravi★★★★★★★★★★★★★★🧑 Meera★★★★★★★★★★★★Asha likes what Ravi likes → recommend Ravi's favourite she hasn't seen
Collaborative filtering: people with similar tastes predict what you'll like.

Collaborative filtering

Find users with similar tastes and recommend what they liked.

Strength: discovers surprising items. Weakness: needs lots of user data.

Content-based

Recommend items whose features match what you liked.

Strength: works for niche tastes. Weakness: can feel repetitive.

Hybrid

Combine both, often with deep learning on many signals.

Used by Netflix, Amazon, YouTube and Spotify.

The cold-start problem

A brand-new user or product has no history. Platforms ask for preferences at sign-up, use popularity, or rely on content features until data builds up.

Watch out: filter bubbles

Showing only more of the same can narrow what people see. Good systems add variety and let users reset or explain their recommendations.

Try it yourself

About 10 min

Reverse-engineer your feed

  1. Open YouTube, Netflix or a shopping app and note the top 5 suggestions.
  2. For each, guess why: similar to something you watched, or popular with similar people?
  3. Search something new and see how the suggestions change.

What you should see: Recommendations mix your history with what similar people liked.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectFind customer groups with K-means clusteringAbout 45 min · Copy-paste code · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.