Practice only: admissions registration is not open on this websitePractice only · Registration not openPractice onlyTry it free

Practice test
Free sample class

Try a free sample class

How does an app decide what you see next? In about ten minutes you will rate five movies, work out a recommendation the way a computer does, and check what you learned. No sign-up.

Video: A student in a headset working at a computer. Sample classHow a recommendation system decides what you see

Representative video.

  • About 10 minutes
  • Works on your phone
  • No sign-up. Your answers stay on your device
  • Written for class 12 students
Step 1 of 4

What a recommender does

Open a video app, a shopping app or a music app, and much of what you see was picked for you. A recommendation system made that pick: its best guess at what you will watch, buy or play next.

What to watch next

Video apps line up the next video before this one ends.

You may also like

Shopping apps show products that people bought together.

The next song

Music apps build playlists around what you already play.

Two ways to make the guess

Look at the thing

You liked a cricket drama, so here is another cricket drama.

Engineers call this content-based filtering.
Today’s lessonLook at people like you

People who rated movies the way you did loved this one, so you probably will too.

Engineers call this collaborative filtering.
Step 2 of 4

Rate five movies

How much would you enjoy each one? Tap the stars. Rate at least 3. The movies are made up for this lesson, so go by the kind of film.

Last Ball SixA cricket drama
Canteen ChroniclesA college comedy
Beyond SaturnA space adventure
The Locked HaveliA horror film
Letters in the RainA love story

Your own recommendation is worked out on this page with JavaScript, which is switched off. Step 3 shows a worked example instead.

0 of 5 rated

See how it decides
Step 3 of 4

How the computer decides

It compares you with four other viewers, then listens to the two whose taste is closest to yours. Three small steps:

  1. Compare

    For each viewer, take the gap in stars on every movie you rated, and average the gaps. A gap of 0 means you agree; a gap of 4 is as far apart as 1 star and 5 stars.

    Match = 1 − (average gap ÷ 4)

  2. Predict

    Keep the two viewers who match you best; engineers call them your nearest neighbours. For each movie you have not rated, multiply their stars by their match, add them up, and divide by the total of the two matches.

    Prediction = (match × stars + match × stars) ÷ (match + match)

  3. Recommend

    Suggest the movie with the highest predicted stars.

Below: an example student who loves cricket dramas and college comedies.

Star ratings from you and four made-up viewers, the predicted stars for movies you have not rated, and how closely each viewer matches you
MovieExampleViewer AViewer BViewer CViewer D
Last Ball SixCricket drama55212
Canteen ChroniclesCollege comedy54521
Beyond SaturnSpace adventure12153
The Locked HaveliHorror film11235
Letters in the RainLove story33421
Not rated yet: the computer predicts these
Six Balls to GoCricket drama3.65213
Backbench HeroesCollege comedy4.54511
Signal from TitanSpace thriller1.52153
The Third KnockHorror film1.51235
Match–90%75%30%25%

Stars from 1 to 5: the darker the green, the more stars. Dark headings mark your two closest viewers; only their stars go into the predictions (dashed boxes).

Recommended for the example student

Backbench HeroesA college comedy

Predicted 4.5 stars from the two closest matches: Viewer A (90%) gave it 4 stars and Viewer B (75%) gave it 5 stars.

The sum(0.90 × 4 + 0.75 × 5) ÷ (0.90 + 0.75) = 4.5

Step 4 of 4

What real apps add

Real apps use the same idea you just worked through by hand, with a few things added.

Millions of people, not four

Comparing everyone with everyone is far too slow, so real systems use shortcuts to find close matches fast.

More than stars

What you watch to the end, skip, search for or come back to can all count as signals.

Models that learn taste

Machine-learning models find patterns in taste from the data, instead of a formula written by hand.

Something new, now and then

Teams often mix in new and different picks, so people do not see only one kind of thing.

Check yourself

Three quick questions

Pick an answer to see if you are right. Nothing is marked or saved.

  1. Question 1Two viewers gave the same five movies almost the same stars. What does the system learn from that?
    Show the answer

    Their tastes match, so what one loves is a good guess for the other. A close match on the movies they both rated is the whole idea. Each one’s other favourites become good guesses for the other.

  2. Question 2Viewer A matches you 90% and Viewer C matches you 20%. Whose stars count more in your prediction?
    Show the answer

    Viewer A. The closer the match, the more a viewer’s stars count. Only the closest viewers are used at all, and each one’s stars are multiplied by their match.

  3. Question 3A brand-new movie comes out and nobody has rated it yet. Can this method recommend it?
    Show the answer

    Not yet: it needs some ratings first. This is called the cold-start problem. Real apps also use what a movie is about, such as its genre and language, until ratings come in.

What you would build in year 2

From ten minutes to a real recommender

In the B.Tech in CS and AI, the semester 4 module “Machine learning and data preparation” includes a project: a movie recommender trained on real ratings. The same idea as today, with real ratings instead of made-up ones.

Year 2, Semester 4

Machine learning and data preparation

  • Supervised and unsupervised learning
  • Regression and clustering
  • Accuracy, precision and recall
  • Cleaning data and building features

Project: A movie recommender trained on real ratings

Also in year 2

Backends and APIs, Data, Machine-learning basics

  • The ordering backend of a food-delivery style app
  • A price tracker that alerts you when prices drop

By the end of the year: You can build the back end of a real app and train a simple model.

The plan for 2027. The detailed curriculum is published with the partner campus.