Skip to main content

Command Palette

Search for a command to run...

Recommendation Systems: How Do They Work

Updated
Recommendation Systems: How Do They Work
V

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

In today's modern society, we are entering a data collection era, everything from our preferences to our search histories are stored and used to recommend us related items.

For example, YouTube recommends us what videos to watch next. Amazon recommends related items to add to our shopping cart and Facebook suggests new people you might be interested to follow.

Recommendation systems exist almost everywhere these days. So in this article, I'd like to briefly explain how they work as I recently read some fascinating articles on it. Note that I am not going deep into implementation because I want to keep this article as an overview rather than a step-by-step guide.

Why are they used?

For most businesses, knowing their customers can contribute to a significant amount of success and profitability. Understanding what each user likes or dislikes can ensure that their products can stay relevant and competitive in the market.

Recommendation systems provide a good solution to predict which products their users are more likely to consume, and which ones are less attractive for them. Hence, by recommending products more suitable to each user, a company can have a better chance to survive and sustain.

Types of Recommendation Systems

There are 3 most common types of recommendation systems. Let's dive in one by one.

1. Demographic Filtering

This is the simplest type of recommendation. This approach searches for users with similar demographic traits such as location, age, gender, etc. and recommends products based on their similar preferences.

demo

This system is quite general because comparing merely by demographic traits will not really give each user personalized recommendations.

2. Content-Based Filtering

This approach compares the products instead of users. For example, if a user likes a particular product, the system will search for a similar product based on its description, category, price range, etc. and recommends that to the individual.

content.png

Although this type of system is good because it caters to the individual's own preferences without comparing with other users, it needs to use existing data of the user's past likes to recommend something.

In other words, it can make this system quite limited and less effective at first. The next approach combines the best of the 2 mentioned systems.

3. Collaborative Filtering

Collaborative Filtering consists of 2 techniques:

  1. User-based: recommends product A to a user when a similar user has liked A.
  2. Item-based: recommends product A if user has consumed product B and similar users have shown to buy A and B often together.

In general, collaborative filtering is widely used because makes a more accurate prediction on which products a user would likely to consume.

collab.png

However, a drawback on this particular system is that the data collection of users should be diversified and sufficient in quantity to ensure recommendations are not bias on a majority of dominant opinions. It should strive to remain partial and independent of skewed interests to work accurately.

Conclusion

Thanks for reading. I hope this short overview has satiated your curiosity in how some recommender systems work. I learned these thanks to some articles which are cited in the References section below. They are all fascinating reads that I suggest you can read them to find out more yourself. That's all for now, cheers!


References

R

User experience is one of the key element and one of the major factor for a firm that can retain a visitor and convert them to customers. I am a web developer and design a website named “ Bakersfield web design ”. Do check out my website and do share your valuable views.

A

A beautiful read, nicely explained!

P

Concise and Crisp, well written keep doing more of these!!!!

1
V

Yayy glad you enjoyed it :)

T

Victoria Lo, excellent information. Thanks for sharing.

1
V

Thanks for reading Tapas :)

1
R
Rahul5y ago

This same happens on many ecommerce websites. Amazing articles.

1
V

Thanks :)

2

Super Newbie Web Dev

Part 20 of 49

Let's be honest. We all started from level 0. There's no shame in that. Here's the series for the newbies~ Hope you can learn and feel free to ask a lot of questions! Check my other series: Random project to build

Up next

Introduction to Cross Origin Resource Sharing (CORS)

In web development practice, it is common for web apps to separate their front-end from back-end services. As such, accessing resources from the back-end requires the understanding of Cross-Origin Resource Sharing or CORS for short. It is an essentia...