SlideShare a Scribd company logo
1 of 36
Download to read offline
Recommender Systems &
Collaborative Filtering
Yusuke Yamamoto
Faculty of Informatics
Senior Lecturer
yusuke_yamamoto@acm.org
Data Engineering (Recommender System 1)
2019.10.16
1 Introduction to
Recommender Systems
2
3
Predicts user preference model and
decides which items should be recommended.
Recommender System
The most familiar recommender system: Amazon(1/2)
4画像出典:https://www.amazon.co.jp/
Recommend items which users will like
The most familiar recommender system: Amazon(2/2)
5画像出典:https://www.amazon.co.jp/
Recommend items related to a target item
SNS x Recommender System
6
User recommendation
on Twitter
Event recommendation
on Facebook
Movie recommendation from Netflix
7
Apple Music x Recommender System
8
News x Recommender System
9
Computational Ads
10画像出典:http://www.apple-style.com
Recommendation Systems appear anywhere!
11
Why using Recommender Systems?
12
Value for users
● Find things that are interesting
● Narrow down the set of choices
Value for providers
● Increase trust and customer loyalty
● Increase sales, click rates, conversion etc.
● Discover new things..
● Opportunities for promotion
Definition of Recommender System
13
Favorite artist setting
Purchase
Dwell time
Clickthrough
Bookmark
…
Rating Comment
Retweet
…
Explicit preference info.
+
Predicts user preference model and
decides which items should be recommended.
Implicit preference info.
Favorite genre setting
Favorite brand setting
Definition of Recommender System
14
Ad
MusicProduct
…
Web pageUser
Event
Predicts user preference model and
decides which items should be recommended.
Paradigms of Recommender System
15Dietmar Jannach氏のRecommender Systems: An IntroductionのPPT資料より
Recommender
System
item score
item1 0.9
item2 1
item3 0.3
… …
User profile
& context
Recommendation
list for a target user
1
Community
data2
Item features
3
User model
3 main approach for recommendation
16
Collaborative filtering
Decides which items should be recommended,
based on past behavior logs of similar users
Content-based filtering
Decides which items should be recommended,
based on item features and its metadata
Knowledge-based filtering
Decides which items should be recommended,
based on preference info. which users explicitly show
Problem Definition
17
§ User u’s behavior data setBu={b1, b2, …, bn}
§ Item set I = {i1, i2, …, im}
§ User u’s profile(user model):pu
§ Relevance between pu and item i :Rel (pu, i)
Input
Output
Ranked list of item set I (∀ i ∈ I), based on Rel (pu, i)
s.t.
l How to model user profiles?
l How to compute relevance?
Point
Content list of this lecture
18
1. Collaborative Filtering (CF)
2. Content-based Filtering
3. Link analysis
4. Advanced CF
Lecture + Programming Work
as you can see how methods work
References for this lecture
画像出典:https://www.amazon.co.jp/ 19
2 Collaborative Filtering – Part 1
20
Collaborative Filtering (CF)
21
Approach
Uses the preferences of a community data to
recommend items
Basis assumption
• Users appropriately give ratings to items
• Patterns in the rating data help us predict the ratings
Practical points
• Large commercial eCommerce sites use the CF
• Well-understood
• Applicable in many domains if only rating data can be
obtained
Example
22
How much does
Alice like Item5?Q.
Alice
Item 1 Item 2 Item 3 Item 4 Item 5
?
Items purchased by Alice and her ratings
Un-purchased item
A
✓ ✓ ✓ ✓
Let’s observe other users’ ratings
23
Can we predict Alice’s rating using others’ ratings?Q.
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
24
Dissimilar
Similar
Let’s observe other users’ ratings
Can we predict Alice’s rating using others’ ratings?Q.
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
Let’s observe other users’ ratings
25
Alice will give about 5 to item 5?
Can we predict Alice’s rating using others’ ratings?Q.
User-based Collaborative Filtering
26
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
Use ratings of the users with similar preferenceIdea:
Point
How to compute user similarity
How do we combine the ratings of the similar users
to predict Alice’s rating?
Which/how many similar users’ ratings to consider?
1.
2.
3.
Similarity between users(1/3)
27
Pearson Correlation Coefficient
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟01,, − 𝑟01
5
:User a, b𝑢', 𝑢)
𝑟01,, :User a’s rating to item i
𝐼 : Item set
𝑟01
𝑟04, :User a, b’s average rating
Similarity between users(2/3)
28
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟04,, − 𝑟04
5
Item1 Item2 Item3 Item4
Alice 5 3 4 4
User1 3 1 2 3
User2 4 3 4 3
User3 3 3 1 5
User4 1 5 5 2
sim=0.71
sim=-0.79
Pearson Correlation Coefficient
Similarity between users(3/3)
29
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟04,, − 𝑟04
5
Item1 Item2 Item3 Item4
Alice 5 3 4 4
User1 3 1 2 3
User2 4 3 4 3
User3 3 3 1 5
User4 1 5 5 2
sim = ?
Let’s calculate
Pearson Correlation Coefficient
Pearson correlation(1/2)
30
A measure of the linear correlation between
two variables X and Y
0
1
2
3
4
5
6
Item1 Item2 Item3 Item4
Alice
User1
User4
Ratingscore
sim(Alice, User4)=-0.79
sim(Alice, User1)=0.85
(It takes differences in rating behavior into account)
Pearson correlation(2/2)
31
0
1
2
3
4
5
6
Item1 Item2 Item3 Item4
Alice
User1
User2
Ratingscore
sim(Alice, User2)=0.71
A measure of the linear correlation between
two variables X and Y
(It takes differences in rating behavior into account)
Predicting rating scores based on user similarity(1/3)
32
A typical prediction function
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
:Target user a𝑢'
𝑟0,, :Rating score of u for item i
𝑖 :Target item i
𝑟01 :User a’s average rating score
𝑈A :A set of similar users to ua
Predicting rating scores based on user similarity(2/3)
33
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
Item5 sim Average rating
Alice ? 1 4
User1 3 0.85 2.4
User2 5 0.71 3.8
Similar
users
4.0 +
0.85× 3 − 2.4 + 0.71×(5 − 3.8)
0.85 + 0.71
= 4.87
Predicted rating score of Alice for Item5
A typical prediction function
Predicting rating scores based on user similarity(3/3)
34
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
Item5 sim Average rating
Alice ? 1 4
User1 3 0.85 2.4
User2 5 0.71 3.8
Similar
users
4.0 +
0.85× 3 − 2.4 + 0.71×(5 − 3.8)
0.85 + 0.71
= 4.87
Predicted rating score of Alice for Item5
A typical prediction function
How to choose similar users?Q.
How to decide “similar users” (nearest neighbors)?
35
Set a threshold for user similarity
• If a user has higher similarity than a threshold,
he/she can be regarded as a “similar” user
• In worst cases, no similar users will be found
Focus on top K similar users (kNN method)
• If a user ranks at the top K similarity, he/she can be
regarded as a similar user
• K is often set to between 50 〜 200
• In worst cases, a system uses rating information of users
with low similarity
Summary of User-based Collaborative Filtering
36
Basic Approach
• User similarities are obtained from a rating matrix
• Based on rating scores of similar users, systems predict
a rating score of target user for a target item
Similarity Calculation
Pearson correlation coefficient is often used
Selection of Similar Users
Top K users with high similarity are often selected as
similar users

More Related Content

What's hot

Recommendation System
Recommendation SystemRecommendation System
Recommendation SystemAnamta Sayyed
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender systemStanley Wang
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introductionLiang Xiang
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architectureLiang Xiang
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filteringNeha Kulkarni
 
Movie lens recommender systems
Movie lens recommender systemsMovie lens recommender systems
Movie lens recommender systemsKapil Garg
 
Recommendation system
Recommendation system Recommendation system
Recommendation system Vikrant Arya
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation SystemsRobin Reni
 
Movies Recommendation System
Movies Recommendation SystemMovies Recommendation System
Movies Recommendation SystemShubham Patil
 
Movie Recommendation engine
Movie Recommendation engineMovie Recommendation engine
Movie Recommendation engineJayesh Lahori
 
An introduction to Recommender Systems
An introduction to Recommender SystemsAn introduction to Recommender Systems
An introduction to Recommender SystemsDavid Zibriczky
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringViet-Trung TRAN
 
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...Balázs Hidasi
 
Movie recommendation project
Movie recommendation projectMovie recommendation project
Movie recommendation projectAbhishek Jaisingh
 
Movie lens movie recommendation system
Movie lens movie recommendation systemMovie lens movie recommendation system
Movie lens movie recommendation systemGaurav Sawant
 

What's hot (20)

Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Movie lens recommender systems
Movie lens recommender systemsMovie lens recommender systems
Movie lens recommender systems
 
Recommendation system
Recommendation system Recommendation system
Recommendation system
 
Recommender system
Recommender systemRecommender system
Recommender system
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation Systems
 
Movies Recommendation System
Movies Recommendation SystemMovies Recommendation System
Movies Recommendation System
 
Content based filtering
Content based filteringContent based filtering
Content based filtering
 
Movie Recommendation engine
Movie Recommendation engineMovie Recommendation engine
Movie Recommendation engine
 
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
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
 
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
 
Movie recommendation project
Movie recommendation projectMovie recommendation project
Movie recommendation project
 
Movie lens movie recommendation system
Movie lens movie recommendation systemMovie lens movie recommendation system
Movie lens movie recommendation system
 

Similar to Collaborative Filtering 1: User-based CF

A recommendation engine for your php application
A recommendation engine for your php applicationA recommendation engine for your php application
A recommendation engine for your php applicationMichele Orselli
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFYusuke Yamamoto
 
Introduction to Recommender System
Introduction to Recommender SystemIntroduction to Recommender System
Introduction to Recommender SystemWQ Fan
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Shrutika Oswal
 
collaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptxcollaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptxABINASHPADHY6
 
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...IRJET Journal
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemMilind Gokhale
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...SAIL_QU
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...SAIL_QU
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems RoadtripThe Real Dyl
 
Rokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxRokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxJadna Almeida
 
Rokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxRokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxJadna Almeida
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceHarivamshi D
 
Teacher training material
Teacher training materialTeacher training material
Teacher training materialVikram Parmar
 
Empirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender SystemsEmpirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender SystemsUniversity of Bergen
 
Introduction to recommender systems
Introduction to recommender systemsIntroduction to recommender systems
Introduction to recommender systemsRami Alsalman
 
IRJET- Hybrid Recommendation System for Movies
IRJET-  	  Hybrid Recommendation System for MoviesIRJET-  	  Hybrid Recommendation System for Movies
IRJET- Hybrid Recommendation System for MoviesIRJET Journal
 
IRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review AnalysisIRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review AnalysisIRJET Journal
 
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGMOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGIRJET Journal
 

Similar to Collaborative Filtering 1: User-based CF (20)

A recommendation engine for your php application
A recommendation engine for your php applicationA recommendation engine for your php application
A recommendation engine for your php application
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CF
 
Introduction to Recommender System
Introduction to Recommender SystemIntroduction to Recommender System
Introduction to Recommender System
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence
 
collaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptxcollaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptx
 
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation System
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
 
20320140501009 2
20320140501009 220320140501009 2
20320140501009 2
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems Roadtrip
 
Rokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxRokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptx
 
Rokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxRokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptx
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial Intelligence
 
Teacher training material
Teacher training materialTeacher training material
Teacher training material
 
Empirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender SystemsEmpirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender Systems
 
Introduction to recommender systems
Introduction to recommender systemsIntroduction to recommender systems
Introduction to recommender systems
 
IRJET- Hybrid Recommendation System for Movies
IRJET-  	  Hybrid Recommendation System for MoviesIRJET-  	  Hybrid Recommendation System for Movies
IRJET- Hybrid Recommendation System for Movies
 
IRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review AnalysisIRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review Analysis
 
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGMOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
 

More from Yusuke Yamamoto

データ解析技術2019
データ解析技術2019データ解析技術2019
データ解析技術2019Yusuke Yamamoto
 
研究室紹介資料2019
研究室紹介資料2019研究室紹介資料2019
研究室紹介資料2019Yusuke Yamamoto
 
ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料Yusuke Yamamoto
 
不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料Yusuke Yamamoto
 
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319Yusuke Yamamoto
 
批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発Yusuke Yamamoto
 
東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922Yusuke Yamamoto
 
WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708Yusuke Yamamoto
 
情報学応用論20170622
情報学応用論20170622情報学応用論20170622
情報学応用論20170622Yusuke Yamamoto
 
ビッグデータとITイノベーション
ビッグデータとITイノベーションビッグデータとITイノベーション
ビッグデータとITイノベーションYusuke Yamamoto
 
ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302Yusuke Yamamoto
 
大学の研究力を考える
大学の研究力を考える大学の研究力を考える
大学の研究力を考えるYusuke Yamamoto
 
研究力DOWNシナリオ
研究力DOWNシナリオ研究力DOWNシナリオ
研究力DOWNシナリオYusuke Yamamoto
 
URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材Yusuke Yamamoto
 
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」Yusuke Yamamoto
 

More from Yusuke Yamamoto (20)

WISE2019 presentation
WISE2019 presentationWISE2019 presentation
WISE2019 presentation
 
Link Analysis
Link AnalysisLink Analysis
Link Analysis
 
Matrix Factorization
Matrix FactorizationMatrix Factorization
Matrix Factorization
 
データ解析技術2019
データ解析技術2019データ解析技術2019
データ解析技術2019
 
研究室紹介資料2019
研究室紹介資料2019研究室紹介資料2019
研究室紹介資料2019
 
ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料
 
不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料
 
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
 
批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発
 
東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922
 
WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708
 
情報学応用論20170622
情報学応用論20170622情報学応用論20170622
情報学応用論20170622
 
情報学総論20170623
情報学総論20170623情報学総論20170623
情報学総論20170623
 
情報学総論20170616
情報学総論20170616情報学総論20170616
情報学総論20170616
 
ビッグデータとITイノベーション
ビッグデータとITイノベーションビッグデータとITイノベーション
ビッグデータとITイノベーション
 
ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302
 
大学の研究力を考える
大学の研究力を考える大学の研究力を考える
大学の研究力を考える
 
研究力DOWNシナリオ
研究力DOWNシナリオ研究力DOWNシナリオ
研究力DOWNシナリオ
 
URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材
 
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
 

Recently uploaded

ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一F La
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...limedy534
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 

Recently uploaded (20)

ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 

Collaborative Filtering 1: User-based CF

  • 1. Recommender Systems & Collaborative Filtering Yusuke Yamamoto Faculty of Informatics Senior Lecturer yusuke_yamamoto@acm.org Data Engineering (Recommender System 1) 2019.10.16
  • 3. 3 Predicts user preference model and decides which items should be recommended. Recommender System
  • 4. The most familiar recommender system: Amazon(1/2) 4画像出典:https://www.amazon.co.jp/ Recommend items which users will like
  • 5. The most familiar recommender system: Amazon(2/2) 5画像出典:https://www.amazon.co.jp/ Recommend items related to a target item
  • 6. SNS x Recommender System 6 User recommendation on Twitter Event recommendation on Facebook
  • 8. Apple Music x Recommender System 8
  • 12. Why using Recommender Systems? 12 Value for users ● Find things that are interesting ● Narrow down the set of choices Value for providers ● Increase trust and customer loyalty ● Increase sales, click rates, conversion etc. ● Discover new things.. ● Opportunities for promotion
  • 13. Definition of Recommender System 13 Favorite artist setting Purchase Dwell time Clickthrough Bookmark … Rating Comment Retweet … Explicit preference info. + Predicts user preference model and decides which items should be recommended. Implicit preference info. Favorite genre setting Favorite brand setting
  • 14. Definition of Recommender System 14 Ad MusicProduct … Web pageUser Event Predicts user preference model and decides which items should be recommended.
  • 15. Paradigms of Recommender System 15Dietmar Jannach氏のRecommender Systems: An IntroductionのPPT資料より Recommender System item score item1 0.9 item2 1 item3 0.3 … … User profile & context Recommendation list for a target user 1 Community data2 Item features 3 User model
  • 16. 3 main approach for recommendation 16 Collaborative filtering Decides which items should be recommended, based on past behavior logs of similar users Content-based filtering Decides which items should be recommended, based on item features and its metadata Knowledge-based filtering Decides which items should be recommended, based on preference info. which users explicitly show
  • 17. Problem Definition 17 § User u’s behavior data setBu={b1, b2, …, bn} § Item set I = {i1, i2, …, im} § User u’s profile(user model):pu § Relevance between pu and item i :Rel (pu, i) Input Output Ranked list of item set I (∀ i ∈ I), based on Rel (pu, i) s.t. l How to model user profiles? l How to compute relevance? Point
  • 18. Content list of this lecture 18 1. Collaborative Filtering (CF) 2. Content-based Filtering 3. Link analysis 4. Advanced CF Lecture + Programming Work as you can see how methods work
  • 19. References for this lecture 画像出典:https://www.amazon.co.jp/ 19
  • 20. 2 Collaborative Filtering – Part 1 20
  • 21. Collaborative Filtering (CF) 21 Approach Uses the preferences of a community data to recommend items Basis assumption • Users appropriately give ratings to items • Patterns in the rating data help us predict the ratings Practical points • Large commercial eCommerce sites use the CF • Well-understood • Applicable in many domains if only rating data can be obtained
  • 22. Example 22 How much does Alice like Item5?Q. Alice Item 1 Item 2 Item 3 Item 4 Item 5 ? Items purchased by Alice and her ratings Un-purchased item A ✓ ✓ ✓ ✓
  • 23. Let’s observe other users’ ratings 23 Can we predict Alice’s rating using others’ ratings?Q. Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1
  • 24. Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1 24 Dissimilar Similar Let’s observe other users’ ratings Can we predict Alice’s rating using others’ ratings?Q.
  • 25. Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1 Let’s observe other users’ ratings 25 Alice will give about 5 to item 5? Can we predict Alice’s rating using others’ ratings?Q.
  • 26. User-based Collaborative Filtering 26 Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1 Use ratings of the users with similar preferenceIdea: Point How to compute user similarity How do we combine the ratings of the similar users to predict Alice’s rating? Which/how many similar users’ ratings to consider? 1. 2. 3.
  • 27. Similarity between users(1/3) 27 Pearson Correlation Coefficient 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟01,, − 𝑟01 5 :User a, b𝑢', 𝑢) 𝑟01,, :User a’s rating to item i 𝐼 : Item set 𝑟01 𝑟04, :User a, b’s average rating
  • 28. Similarity between users(2/3) 28 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟04,, − 𝑟04 5 Item1 Item2 Item3 Item4 Alice 5 3 4 4 User1 3 1 2 3 User2 4 3 4 3 User3 3 3 1 5 User4 1 5 5 2 sim=0.71 sim=-0.79 Pearson Correlation Coefficient
  • 29. Similarity between users(3/3) 29 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟04,, − 𝑟04 5 Item1 Item2 Item3 Item4 Alice 5 3 4 4 User1 3 1 2 3 User2 4 3 4 3 User3 3 3 1 5 User4 1 5 5 2 sim = ? Let’s calculate Pearson Correlation Coefficient
  • 30. Pearson correlation(1/2) 30 A measure of the linear correlation between two variables X and Y 0 1 2 3 4 5 6 Item1 Item2 Item3 Item4 Alice User1 User4 Ratingscore sim(Alice, User4)=-0.79 sim(Alice, User1)=0.85 (It takes differences in rating behavior into account)
  • 31. Pearson correlation(2/2) 31 0 1 2 3 4 5 6 Item1 Item2 Item3 Item4 Alice User1 User2 Ratingscore sim(Alice, User2)=0.71 A measure of the linear correlation between two variables X and Y (It takes differences in rating behavior into account)
  • 32. Predicting rating scores based on user similarity(1/3) 32 A typical prediction function 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) :Target user a𝑢' 𝑟0,, :Rating score of u for item i 𝑖 :Target item i 𝑟01 :User a’s average rating score 𝑈A :A set of similar users to ua
  • 33. Predicting rating scores based on user similarity(2/3) 33 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) Item5 sim Average rating Alice ? 1 4 User1 3 0.85 2.4 User2 5 0.71 3.8 Similar users 4.0 + 0.85× 3 − 2.4 + 0.71×(5 − 3.8) 0.85 + 0.71 = 4.87 Predicted rating score of Alice for Item5 A typical prediction function
  • 34. Predicting rating scores based on user similarity(3/3) 34 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) Item5 sim Average rating Alice ? 1 4 User1 3 0.85 2.4 User2 5 0.71 3.8 Similar users 4.0 + 0.85× 3 − 2.4 + 0.71×(5 − 3.8) 0.85 + 0.71 = 4.87 Predicted rating score of Alice for Item5 A typical prediction function How to choose similar users?Q.
  • 35. How to decide “similar users” (nearest neighbors)? 35 Set a threshold for user similarity • If a user has higher similarity than a threshold, he/she can be regarded as a “similar” user • In worst cases, no similar users will be found Focus on top K similar users (kNN method) • If a user ranks at the top K similarity, he/she can be regarded as a similar user • K is often set to between 50 〜 200 • In worst cases, a system uses rating information of users with low similarity
  • 36. Summary of User-based Collaborative Filtering 36 Basic Approach • User similarities are obtained from a rating matrix • Based on rating scores of similar users, systems predict a rating score of target user for a target item Similarity Calculation Pearson correlation coefficient is often used Selection of Similar Users Top K users with high similarity are often selected as similar users