SlideShare a Scribd company logo
1 of 31
Download to read offline
Recommender Systems –
Collaborative Filtering
Prof. Rajib L. Saha
Online Recommender Systems: collaborative
filtering (different from Association Rules!)
Collaborative Filtering
• If Person A has the same opinion as
Person B on an issue, A is more likely
to have B's opinion on a different
issue x, when compared to the opinion
of a person chosen randomly
Traditional Collaborative
Filtering
• Customer as a p-dimensional vector of
items
– p: the number of distinct catalog items
– Components: bought (1)/not bought (0);
ratings; rated (1)/not rated(0).
• Find Similarity between Customers A
& B
n customers X p items
These entries
could be
numbers
(ratings) as
well
Information on rating along with the information
on whether items were rated or not rated can be
better than either of them alone. Example: Netflix
Recommendation
Cosine-based similarity
Cos(A,B) = A.B/|A|*|B|
• A: (a1, a2, …, aN)
• B: (b1, b2, …, bN)
• A.B: a1*b1+a2*b2+…+aN*bN
• |A|: (a1
2+a2
2+…+aN
2)1/2 ; |B|: (b1
2+b2
2+…+bN
2)1/2
Example:
Cos(A,B)=
(3*1+5*4+0*0+1*0)/((32+52+02+12)1/2*(12+42+02+02)1/2)=0.94
1 2 3 4
A 3 5 0 1
B 1 4 0 0
Correlation-based Similarity
1 2 3 4
A 3 5 0 1
B 1 4 0 0
CorrAB =
Covariance (A,B)
ௌ௧ௗ௘௩ ஺ 	∗			ௌ௧ௗ௘௩(஻)
n customers X p items
While computing
similarity between
Persons 1 & 2, Item 2’s
rating cannot be
included, since Person 2
hasn’t bought Item 2.
For binary data
(bought/didn’t buy), it is
NOT an issue.
Normalizing Ratings
• Multiply the vector components by the
inverse frequency
• Inverse frequency: the inverse of the
number of customers who have
purchased or rated the item
Other measures …
• Find Nearest Neighbor(s) based on
distance (dissimilarity)
– Can use other Distance measures to
identify neighbors
• Euclidean distance
= √((3-1)2+(5-4)2+(0-0)2+(1-0)2)
• Manhattan distance
= (|3-1|+|5-4|+|0-0|+|1-0|)
1 2 3 4
A 3 5 0 1
B 1 4 0 0
Once similar, what item(s) to
recommend?
• The item that hasn’t been bought by the
user yet
• You may create a list of multiple items to
be considered for recommendation
• Finally, recommend the item he/she is
most likely to buy
– Rank each item according to how many
similar customers purchased it
– Or rated by most
– Or highest rated
– Or some other popularity criteria
Long Tail
Supply-side drivers:
•centralized warehousing with more offerings
•lower inventory cost of electronic products
Demand-side drivers:
•search engines
•recommender systems
Negatives
• Memory-based / Lazy-learning
– When does the recommendation engine
compute the “recommendation”?
• Computation-intensive
– Recall how it computes
“recommendation”? n2 similarities
How to reduce computation?
• Randomly sample customers
• Discard infrequent buyers
• Discard items that are very popular or
very unpopular
• Clustering can reduce #of rows
• PCA can reduce #of columns
Runtime vs. Quality of
Recommendation
• Recommend while the customer is
browsing
vis-à-vis
• Recommend better but later
Search-based Methods
• Based on previous purchases
– Books of the same/similar authors
– DVD titles of the same director
– Products that are identified by similar
keywords
A more sophisticated variation of the search-
based methods:
Item-to-Item Collaborative Filtering
• Cosine similarity among items
– Item being the vector
– Customers as components of the vector
• Correlation similarity among items
– Correlation of ratings of Items I & J
where users rated both I & J
While computing
similarity between Items
1 & 2, Person 2’s rating
cannot be included,
since Person 2 hasn’t
bough Item 2
Scalability and Performance of
Item-to-Item Collaborative Filtering
• Computation-expensive, however,
similar-items table is computed offline
• Online component: lookup similar
items for the user’s purchases &
ratings
• Dependent only on how many titles
the user has purchased or rated
Disadvantages of Item-based
Collaborative Filtering
• Less diversity between items, compared
to users’ taste, therefore the
recommendations are often obvious
• When considering what to recommend to
a user, who purchased a popular item,
the association rules and item-based
collaborative filtering might yield the
same recommendation, whereas the
user-based recommendation will likely
differ.
Association Rules vs. Recommender Systems
Market basket analysis
(Association rules)
• Finds many baskets
that contain the same
items
• Need lots of baskets
• Used for generating
impersonal, common
strategies
• Useful for large
physical stores (chains,
supermarkets)
Recommender Systems
(Collaborative filtering)
• Finds items which
have a large fraction of
their baskets in
common
• Number of baskets
unimportant
• Used for
personalization
• Useful for online
recommendation (long-
tail)
A Critical Limitation of
Collaborative Filtering
• Cold Start:
– How to create recommendation for new
users
– How about new items
How to address Cold Start?
• Approaches to address cold start with new users:
– Popular items (get quick reaction of the users)
– Demographically relevant items
– Browsing history
– Secondary source of data --- social network,
subscription
– Netflix – start with rating a few movies
• Approaches to address cold start with new items:
– Recommend to random users/ or some selective
users based on certain criteria
– How about offering the product to influential people
in the social network
Issues with Rating Matrix-based
Recommender Systems
• Person i likes Adventure Movie 1 (AM1), but has never
watched or rated Adventure Movie 2 (AM2); whereas
Person j has watched AM2 but not watched/rated AM1.
• What happens to the similarity between Persons i & j?
– The ratings of AM1 and AM2 are not even included while
computing similarity!
• Rating matrices are huge, and usually sparse. What is
the implication on computational burden on dealing
with the rating matrix?
Recommendation using SVD
R= UΣVT
RN x n: Rating Matrix
UN x r: User-feature matrix
Vn x r: Item-feature matrix
Dealing with New Users
R= UΣVT
• ‫ݎ‬௜ = ith row of rating matrix = item ratings of
user i
• ‫ݑ‬௜= ith row of user-feature matrix = feature
ratings of user i
• ‫ݎ‬௜ = ‫ݑ‬௜	Σ	்ܸ {dimension: 1xn = 1xr rxr rxn}
• ‫ݎ‬௜	ܸ = ‫ݑ‬௜	Σ	்ܸV = ‫ݑ‬௜	Σ	
• ‫ݎ‬௜	ܸ	Σିଵ
= ‫ݑ‬௜	Σ	Σିଵ
= ‫ݑ‬௜	
• ‫ݑ‬௡௘௪ = ‫ݎ‬௡௘௪	ܸ	Σିଵ
– Let the new users rate a few items and use those
partial ratings to compute feature ratings
Dealing with missing values
before applying SVD
• Impute the missing values in the
Rank matrix with user mean or item
mean
• If the rank matrix is already
normalized (mean-substracted),
missing values can be simply zeroes
Vulnerability of Recommender
Systems
• Recommender accuracy and neutrality may be
compromised
– malicious users may try to push or kill a product
through using fake accounts
– inconsistent ratings
– Some mechanism to establish integrity is necessary
• Privacy of users’ ratings or preferences can be
compromised
– In some systems it may be desired that users do not
get to know each other’s opinions
– Use of less transparent algorithm is less vulnerable
to hack
– SVD decomposition
Amazon Recommender System
• Non-personal, based on sales statistics
– Best sellers, promotional, etc.
• Recommendations based on browsing
history, personal
• Recommendations based on Association
Rules, non-personal
• Personalized recommendation: Sign in >
Account > Your Recommendations
• Personalized recommendation over email
Netflix Recommender System
• How did Cinematch work?
• How did Cinematch added value to
Netflix?
• How did Netflix created itself an
advantage through Long Tail effect?
• Blockbuster’s data disadvantage/The
Competitive advantage of Netflix
• Opportunities of Netflix in the Video-
On-Demand market

More Related Content

What's hot

Impersonal Recommendation system on top of Hadoop
Impersonal Recommendation system on top of HadoopImpersonal Recommendation system on top of Hadoop
Impersonal Recommendation system on top of HadoopKostiantyn Kudriavtsev
 
Recommender Engines
Recommender EnginesRecommender Engines
Recommender EnginesThomas Hess
 
Customer to Customer recommendation system
Customer to Customer recommendation systemCustomer to Customer recommendation system
Customer to Customer recommendation systemsksaif95
 
Recommendation Systems Basics
Recommendation Systems BasicsRecommendation Systems Basics
Recommendation Systems BasicsJarin Tasnim Khan
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introductionLiang Xiang
 
An introduction to Recommender Systems
An introduction to Recommender SystemsAn introduction to Recommender Systems
An introduction to Recommender SystemsDavid Zibriczky
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation SystemsZia Babar
 
Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011idoguy
 
Introduction to Recommendation System
Introduction to Recommendation SystemIntroduction to Recommendation System
Introduction to Recommendation SystemMinha Hwang
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsRoger Chen
 
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Xavier Amatriain
 
Survey of Recommendation Systems
Survey of Recommendation SystemsSurvey of Recommendation Systems
Survey of Recommendation Systemsyoualab
 
Past, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectivePast, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectiveXavier Amatriain
 
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018Massimo Quadrana
 
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...An Example of Predictive Analytics: Building a Recommendation Engine Using Py...
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...PyData
 

What's hot (18)

Impersonal Recommendation system on top of Hadoop
Impersonal Recommendation system on top of HadoopImpersonal Recommendation system on top of Hadoop
Impersonal Recommendation system on top of Hadoop
 
Recommender Engines
Recommender EnginesRecommender Engines
Recommender Engines
 
Customer to Customer recommendation system
Customer to Customer recommendation systemCustomer to Customer recommendation system
Customer to Customer recommendation system
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Recommendation Systems Basics
Recommendation Systems BasicsRecommendation Systems Basics
Recommendation Systems Basics
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
An introduction to Recommender Systems
An introduction to Recommender SystemsAn introduction to Recommender Systems
An introduction to Recommender Systems
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation Systems
 
Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011
 
Introduction to Recommendation System
Introduction to Recommendation SystemIntroduction to Recommendation System
Introduction to Recommendation System
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item Recommendations
 
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
 
Survey of Recommendation Systems
Survey of Recommendation SystemsSurvey of Recommendation Systems
Survey of Recommendation Systems
 
Past, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectivePast, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspective
 
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018
Tutorial on Sequence Aware Recommender Systems - ACM RecSys 2018
 
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...An Example of Predictive Analytics: Building a Recommendation Engine Using Py...
An Example of Predictive Analytics: Building a Recommendation Engine Using Py...
 

Similar to Best data science courses in pune

Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender systemStanley Wang
 
Demystifying Recommendation Systems
Demystifying Recommendation SystemsDemystifying Recommendation Systems
Demystifying Recommendation SystemsRumman Chowdhury
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionPerumalPitchandi
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerceAlexander Konduforov
 
Modern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyModern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyKris Jack
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Dakiry
 
recommendation system techunique and issue
recommendation system techunique and issuerecommendation system techunique and issue
recommendation system techunique and issueNutanBhor
 
Recommender systems
Recommender systemsRecommender systems
Recommender systemsTamer Rezk
 
Use of data science in recommendation system
Use of data science in  recommendation systemUse of data science in  recommendation system
Use of data science in recommendation systemAkashPatil334
 
case based recommendation approach for market basket data
case based recommendation approach for market basket datacase based recommendation approach for market basket data
case based recommendation approach for market basket datamniranjanmurthy
 
Mini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation DemystifiedMini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation DemystifiedBetclic Everest Group Tech Team
 
Recommender Systems in a nutshell
Recommender Systems in a nutshellRecommender Systems in a nutshell
Recommender Systems in a nutshellKonstantin Savenkov
 
Recommandation systems -
Recommandation systems - Recommandation systems -
Recommandation systems - Yousef Fadila
 
Agent technology for e commerce-recommendation systems
Agent technology for e commerce-recommendation systemsAgent technology for e commerce-recommendation systems
Agent technology for e commerce-recommendation systemsAravindharamanan S
 

Similar to Best data science courses in pune (20)

Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Demystifying Recommendation Systems
Demystifying Recommendation SystemsDemystifying Recommendation Systems
Demystifying Recommendation Systems
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System Introduction
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 
Recommender lecture
Recommender lectureRecommender lecture
Recommender lecture
 
Lec7 collaborative filtering
Lec7 collaborative filteringLec7 collaborative filtering
Lec7 collaborative filtering
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerce
 
Modern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyModern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in Mendeley
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”
 
recommendation system techunique and issue
recommendation system techunique and issuerecommendation system techunique and issue
recommendation system techunique and issue
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 
Use of data science in recommendation system
Use of data science in  recommendation systemUse of data science in  recommendation system
Use of data science in recommendation system
 
case based recommendation approach for market basket data
case based recommendation approach for market basket datacase based recommendation approach for market basket data
case based recommendation approach for market basket data
 
Mini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation DemystifiedMini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation Demystified
 
Recommender Systems in a nutshell
Recommender Systems in a nutshellRecommender Systems in a nutshell
Recommender Systems in a nutshell
 
Recommandation systems -
Recommandation systems - Recommandation systems -
Recommandation systems -
 
Agent technology for e commerce-recommendation systems
Agent technology for e commerce-recommendation systemsAgent technology for e commerce-recommendation systems
Agent technology for e commerce-recommendation systems
 
Recommenders.ppt
Recommenders.pptRecommenders.ppt
Recommenders.ppt
 
Recommenders.ppt
Recommenders.pptRecommenders.ppt
Recommenders.ppt
 

More from prathyusha1234

Business analytics course in delhi
Business analytics course in delhiBusiness analytics course in delhi
Business analytics course in delhiprathyusha1234
 
Business analytics courses in india
Business analytics courses in indiaBusiness analytics courses in india
Business analytics courses in indiaprathyusha1234
 
Business analytics courses in india
Business analytics courses in indiaBusiness analytics courses in india
Business analytics courses in indiaprathyusha1234
 
Business analytics course in chennai
Business analytics course in chennaiBusiness analytics course in chennai
Business analytics course in chennaiprathyusha1234
 
Business analytics online course
Business analytics online courseBusiness analytics online course
Business analytics online courseprathyusha1234
 
Business analytics training in bangalore
Business analytics training in bangaloreBusiness analytics training in bangalore
Business analytics training in bangaloreprathyusha1234
 
Pmi acp training in hyderabad
Pmi acp training in hyderabadPmi acp training in hyderabad
Pmi acp training in hyderabadprathyusha1234
 
Pmi acp training in hyderabad
Pmi acp training in hyderabadPmi acp training in hyderabad
Pmi acp training in hyderabadprathyusha1234
 
Business analytics course in mumbai
Business analytics course in mumbaiBusiness analytics course in mumbai
Business analytics course in mumbaiprathyusha1234
 
Business analytics course in chennai
Business analytics course in chennaiBusiness analytics course in chennai
Business analytics course in chennaiprathyusha1234
 
Business analytics course in delhi
Business analytics course in delhiBusiness analytics course in delhi
Business analytics course in delhiprathyusha1234
 
Business analytics training in hyderabad
Business analytics training in hyderabadBusiness analytics training in hyderabad
Business analytics training in hyderabadprathyusha1234
 

More from prathyusha1234 (20)

Business analytics course in delhi
Business analytics course in delhiBusiness analytics course in delhi
Business analytics course in delhi
 
Business analytics courses in india
Business analytics courses in indiaBusiness analytics courses in india
Business analytics courses in india
 
Business analytics courses in india
Business analytics courses in indiaBusiness analytics courses in india
Business analytics courses in india
 
Business analytics course in chennai
Business analytics course in chennaiBusiness analytics course in chennai
Business analytics course in chennai
 
Business analytics online course
Business analytics online courseBusiness analytics online course
Business analytics online course
 
Business analytics training in bangalore
Business analytics training in bangaloreBusiness analytics training in bangalore
Business analytics training in bangalore
 
Pmi acp training in hyderabad
Pmi acp training in hyderabadPmi acp training in hyderabad
Pmi acp training in hyderabad
 
Pmi acp training in hyderabad
Pmi acp training in hyderabadPmi acp training in hyderabad
Pmi acp training in hyderabad
 
Data science training
Data science trainingData science training
Data science training
 
Business analytics course in mumbai
Business analytics course in mumbaiBusiness analytics course in mumbai
Business analytics course in mumbai
 
Business analytics course in chennai
Business analytics course in chennaiBusiness analytics course in chennai
Business analytics course in chennai
 
Business analytics course in delhi
Business analytics course in delhiBusiness analytics course in delhi
Business analytics course in delhi
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Business analytics training in hyderabad
Business analytics training in hyderabadBusiness analytics training in hyderabad
Business analytics training in hyderabad
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 
Pmi acp training
Pmi acp trainingPmi acp training
Pmi acp training
 

Recently uploaded

ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 

Best data science courses in pune

  • 1. Recommender Systems – Collaborative Filtering Prof. Rajib L. Saha
  • 2. Online Recommender Systems: collaborative filtering (different from Association Rules!)
  • 3. Collaborative Filtering • If Person A has the same opinion as Person B on an issue, A is more likely to have B's opinion on a different issue x, when compared to the opinion of a person chosen randomly
  • 4. Traditional Collaborative Filtering • Customer as a p-dimensional vector of items – p: the number of distinct catalog items – Components: bought (1)/not bought (0); ratings; rated (1)/not rated(0). • Find Similarity between Customers A & B
  • 5. n customers X p items
  • 6. These entries could be numbers (ratings) as well Information on rating along with the information on whether items were rated or not rated can be better than either of them alone. Example: Netflix Recommendation
  • 7. Cosine-based similarity Cos(A,B) = A.B/|A|*|B| • A: (a1, a2, …, aN) • B: (b1, b2, …, bN) • A.B: a1*b1+a2*b2+…+aN*bN • |A|: (a1 2+a2 2+…+aN 2)1/2 ; |B|: (b1 2+b2 2+…+bN 2)1/2 Example: Cos(A,B)= (3*1+5*4+0*0+1*0)/((32+52+02+12)1/2*(12+42+02+02)1/2)=0.94 1 2 3 4 A 3 5 0 1 B 1 4 0 0
  • 8. Correlation-based Similarity 1 2 3 4 A 3 5 0 1 B 1 4 0 0 CorrAB = Covariance (A,B) ௌ௧ௗ௘௩ ஺ ∗ ௌ௧ௗ௘௩(஻)
  • 9. n customers X p items While computing similarity between Persons 1 & 2, Item 2’s rating cannot be included, since Person 2 hasn’t bought Item 2. For binary data (bought/didn’t buy), it is NOT an issue.
  • 10. Normalizing Ratings • Multiply the vector components by the inverse frequency • Inverse frequency: the inverse of the number of customers who have purchased or rated the item
  • 11. Other measures … • Find Nearest Neighbor(s) based on distance (dissimilarity) – Can use other Distance measures to identify neighbors • Euclidean distance = √((3-1)2+(5-4)2+(0-0)2+(1-0)2) • Manhattan distance = (|3-1|+|5-4|+|0-0|+|1-0|) 1 2 3 4 A 3 5 0 1 B 1 4 0 0
  • 12. Once similar, what item(s) to recommend? • The item that hasn’t been bought by the user yet • You may create a list of multiple items to be considered for recommendation • Finally, recommend the item he/she is most likely to buy – Rank each item according to how many similar customers purchased it – Or rated by most – Or highest rated – Or some other popularity criteria
  • 13. Long Tail Supply-side drivers: •centralized warehousing with more offerings •lower inventory cost of electronic products Demand-side drivers: •search engines •recommender systems
  • 14. Negatives • Memory-based / Lazy-learning – When does the recommendation engine compute the “recommendation”? • Computation-intensive – Recall how it computes “recommendation”? n2 similarities
  • 15. How to reduce computation? • Randomly sample customers • Discard infrequent buyers • Discard items that are very popular or very unpopular • Clustering can reduce #of rows • PCA can reduce #of columns
  • 16. Runtime vs. Quality of Recommendation • Recommend while the customer is browsing vis-à-vis • Recommend better but later
  • 17. Search-based Methods • Based on previous purchases – Books of the same/similar authors – DVD titles of the same director – Products that are identified by similar keywords
  • 18. A more sophisticated variation of the search- based methods: Item-to-Item Collaborative Filtering • Cosine similarity among items – Item being the vector – Customers as components of the vector • Correlation similarity among items – Correlation of ratings of Items I & J where users rated both I & J
  • 19. While computing similarity between Items 1 & 2, Person 2’s rating cannot be included, since Person 2 hasn’t bough Item 2
  • 20. Scalability and Performance of Item-to-Item Collaborative Filtering • Computation-expensive, however, similar-items table is computed offline • Online component: lookup similar items for the user’s purchases & ratings • Dependent only on how many titles the user has purchased or rated
  • 21. Disadvantages of Item-based Collaborative Filtering • Less diversity between items, compared to users’ taste, therefore the recommendations are often obvious • When considering what to recommend to a user, who purchased a popular item, the association rules and item-based collaborative filtering might yield the same recommendation, whereas the user-based recommendation will likely differ.
  • 22. Association Rules vs. Recommender Systems Market basket analysis (Association rules) • Finds many baskets that contain the same items • Need lots of baskets • Used for generating impersonal, common strategies • Useful for large physical stores (chains, supermarkets) Recommender Systems (Collaborative filtering) • Finds items which have a large fraction of their baskets in common • Number of baskets unimportant • Used for personalization • Useful for online recommendation (long- tail)
  • 23. A Critical Limitation of Collaborative Filtering • Cold Start: – How to create recommendation for new users – How about new items
  • 24. How to address Cold Start? • Approaches to address cold start with new users: – Popular items (get quick reaction of the users) – Demographically relevant items – Browsing history – Secondary source of data --- social network, subscription – Netflix – start with rating a few movies • Approaches to address cold start with new items: – Recommend to random users/ or some selective users based on certain criteria – How about offering the product to influential people in the social network
  • 25. Issues with Rating Matrix-based Recommender Systems • Person i likes Adventure Movie 1 (AM1), but has never watched or rated Adventure Movie 2 (AM2); whereas Person j has watched AM2 but not watched/rated AM1. • What happens to the similarity between Persons i & j? – The ratings of AM1 and AM2 are not even included while computing similarity! • Rating matrices are huge, and usually sparse. What is the implication on computational burden on dealing with the rating matrix?
  • 26. Recommendation using SVD R= UΣVT RN x n: Rating Matrix UN x r: User-feature matrix Vn x r: Item-feature matrix
  • 27. Dealing with New Users R= UΣVT • ‫ݎ‬௜ = ith row of rating matrix = item ratings of user i • ‫ݑ‬௜= ith row of user-feature matrix = feature ratings of user i • ‫ݎ‬௜ = ‫ݑ‬௜ Σ ்ܸ {dimension: 1xn = 1xr rxr rxn} • ‫ݎ‬௜ ܸ = ‫ݑ‬௜ Σ ்ܸV = ‫ݑ‬௜ Σ • ‫ݎ‬௜ ܸ Σିଵ = ‫ݑ‬௜ Σ Σିଵ = ‫ݑ‬௜ • ‫ݑ‬௡௘௪ = ‫ݎ‬௡௘௪ ܸ Σିଵ – Let the new users rate a few items and use those partial ratings to compute feature ratings
  • 28. Dealing with missing values before applying SVD • Impute the missing values in the Rank matrix with user mean or item mean • If the rank matrix is already normalized (mean-substracted), missing values can be simply zeroes
  • 29. Vulnerability of Recommender Systems • Recommender accuracy and neutrality may be compromised – malicious users may try to push or kill a product through using fake accounts – inconsistent ratings – Some mechanism to establish integrity is necessary • Privacy of users’ ratings or preferences can be compromised – In some systems it may be desired that users do not get to know each other’s opinions – Use of less transparent algorithm is less vulnerable to hack – SVD decomposition
  • 30. Amazon Recommender System • Non-personal, based on sales statistics – Best sellers, promotional, etc. • Recommendations based on browsing history, personal • Recommendations based on Association Rules, non-personal • Personalized recommendation: Sign in > Account > Your Recommendations • Personalized recommendation over email
  • 31. Netflix Recommender System • How did Cinematch work? • How did Cinematch added value to Netflix? • How did Netflix created itself an advantage through Long Tail effect? • Blockbuster’s data disadvantage/The Competitive advantage of Netflix • Opportunities of Netflix in the Video- On-Demand market