How Recommendation Algorithms Work: A Lesson for Grades 6–9
How Recommendation Algorithms Work: A Lesson for Grades 6–9
For a recommendation algorithms lesson that explains the computer science, not just the social effects, this grades 6–9 unit shows students how a system turns their clicks into suggestions. Recommendation Algorithms and Filter Bubbles includes a detailed reading text, worksheets on four levels, a hands-on deep-dive task, slides and answer keys with a marking guide.
Open the algorithms unit →Recommendation Algorithms and Filter Bubbles ($24.99, grades 6–9) is a computer science unit on how recommendation algorithms work and what they lead to. It contains a reading text, worksheets on Basic, Standard, Plus and Project levels, a hands-on deep-dive task, slides for the unit and full answer keys with a marking guide. For algorithms more broadly, the Computer Science Activities Bundle ($119.99) adds computational thinking and algorithms, Python and AI.
The resources
Recommendation Algorithms and Filter Bubbles, Grades 6–9
Start with the first resource; the others are optional add-ons. Open any cover for the full contents and price.

Recommendation Algorithms and Filter Bubbles – Computer Science Unit (Grades 6–9)

Computer Science Activities Bundle | Artificial Intelligence, Python Programming, Cybersecurity & Digital Literacy | Middle School Grades 7–10

AI Literacy & Cybersecurity Activities | Artificial Intelligence, Prompt Engineering & Online Safety | Grades 7–10

Teach-Life-Balance: The Complete Time-Saving Course for Teachers (incl. Planner, Guides & Templates)
The real problem
Getting from it just knows me to how it works
Ask students why their video app suggests what it does and the usual answer is that it knows them. That answer hides the computer science. A recommendation algorithm is a set of steps: it collects signals such as what you watched, how long you stayed and what you skipped, compares them with patterns from other users, and ranks what to show next. Teaching that process is the point of a recommendation algorithms lesson, and it is a good bridge between abstract algorithm work and the technology students actually use. The challenge is level. Real recommendation systems are complex, and accurate explanations can slide into data science jargon. Simplify too much and students learn a cartoon. The lesson needs a model that is honest about the basic steps without pretending to show how any particular company does it. It also needs active work. Algorithms are understood by tracing them, not by hearing about them, so students need tasks where they follow the logic themselves. And a teacher needs answer keys, because questions like why did it rank this first have answers that are easy to fumble live.
Why it fits
Teaching the algorithm, not just the effect
The unit treats recommendation as a computer science topic first, then looks at what it means for users.
- The reading text explains how recommendation algorithms turn user behavior into suggestions.
- The hands-on deep-dive task has students follow the logic of a recommendation themselves.
- Basic and Standard worksheets build the step-by-step model for students new to algorithms.
- Plus and Project levels let stronger students reason about more complex cases.
- Covering filter bubbles too lets you connect the algorithm to a consequence students care about.
- Answer keys with a marking guide give you reliable answers to tricky why-questions.
Getting started
Sequencing the lesson
A suggested approach that puts the algorithm first. Change the pace and order to fit your class.
- List the signalsAsk students what an app could notice about them while they scroll. Build a list on the board: views, likes, skips, time spent. These are the inputs for the rest of the lesson.
- Explain the stepsUse the slides and reading text to walk through how a recommendation algorithm turns those inputs into a ranked list of suggestions. Pause after each step.
- Trace it on worksheetsStudents complete their worksheet level, applying the steps to examples. Ask them to show their reasoning as well as the final suggestion. Pair students to check reasoning.
- Work the deep-dive taskGive a lesson to the hands-on deep-dive task. Students should be able to explain why the algorithm made the choices it did. Ask groups to present briefly.
- Connect to filter bubblesFinish by showing how repeating the steps can narrow what a user sees. Check work against the answer keys and marking guide. Collect final reflections.
What to buy
Where this unit fits in an algorithms sequence
If you need one lesson block on recommendation algorithms, the unit at $24.99 is enough. If it belongs in a larger algorithms strand, consider adding Algorithms and Computational Thinking, another $24.99 unit, so students learn what an algorithm is before tackling recommendations. For a full course, the Computer Science Activities Bundle ($119.99, grades 7–10) includes both topics among its 10 units and 30 lessons, plus Python, AI, binary numbers and networks. AI Literacy & Cybersecurity Activities ($69.99) suits teachers more focused on AI and safety.
Honest limits
Limits of the unit
The unit explains how recommendation algorithms work in general; it does not reveal how any specific platform ranks content, and it is not a programming unit. It includes no software, platform account or device. If you want an on-screen demonstration, use what your school already has. Check the content against your own course requirements. The licence is for your own teaching, and team use needs a short message to Teach Lessons first. If it is not a fit, exchange it within 7 days for store credit of equal value. There is no cash refund.
Good to know
Frequently asked questions
Does this algorithms unit meet computer science standards?
Teach Lessons does not claim alignment or endorsement. The unit is written for grades 6–9 and covers recommendation algorithms and filter bubbles. If your course must address specific algorithm standards, compare the unit with them yourself and decide whether you need further material on algorithms. The unit is a good companion to an algorithms strand.
Do students write code?
No. The unit explains how recommendation algorithms work through reading, worksheets and a hands-on deep-dive task. If you want students to code, the separate Programming with Python unit covers first steps. That keeps this unit accessible to every student, including those who have never programmed. You can still connect it to coding later in the year.
Does it show how real apps rank content?
It explains the general way recommendation algorithms work rather than the private details of any platform. That gives students a sound model they can apply to any feed. Students learn to ask what signals a feed collects and how it might rank them, which is a question they can bring to any app they use.
Should students learn basic algorithms first?
It helps but is not required. Students who have done Algorithms and Computational Thinking will find the step-by-step model familiar. Others can start with the Basic worksheet level. If you have time, a short review of what an algorithm is at the start of the unit helps those students catch up quickly.
Can I teach it in a math class?
Yes, if your course has room. Ranking and pattern matching give math students a real context. Nothing in the unit needs a computer lab. Math teachers can use the ranking examples to discuss how numbers and rules decide outcomes. The unit's slides and answer keys mean you do not need computer science training to lead it.
What do I get after purchase?
A download link arrives by email right after checkout, and the files are also in your account under Orders: reading text, four worksheet levels, the deep-dive task, slides and answer keys with a marking guide. You can download them again at any time. Nothing ships by mail.
Show students the steps behind the feed
Look over the contents on the product page and download the unit straight after purchase.
Open the algorithms unit →
