SlideShare a Scribd company logo
1 of 25
Download to read offline
Find	
  movies	
  for	
  two

Allen	
  Sussman
Can we find a movie we’ll both actually like?
Each person enters movies they like and
2lu finds movies they’ll both like
Each person enters movies they like and
2lu finds movies they’ll both like
Algorithm: Collaborative Filtering
Ratings Table from
Movies->
Users->

1
2
3
4
5

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Algorithm: Collaborative Filtering
Ratings Table from
Movies->
Users->

1
2
3
4
5

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5

Movies Similarity Matrix
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1
Algorithm: Collaborative Filtering
Ratings Table from
Movies->
Users->

1
2
3
4
5

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5

Movies Similarity Matrix
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Algorithm: Collaborative Filtering
Ratings Table from
Movies->
Users->

1
2
3
4
5

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5

Movies Similarity Matrix
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1
Algorithm: Collaborative Filtering
Ratings Table from
Movies->
Users->

1
2
3
4
5

f(

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Clue
1
0.2
0.3
0.4
0.5

,

Babe
0.4
0.2
0.2
1
0.5

)=

Movies Similarity Matrix
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1
Algorithm: Collaborative Filtering
Ratings Table from

Movies Similarity Matrix

Movies->
Users->

1
2
3
4
5

f(

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Clue
1
0.2
0.3
0.4
0.5

,

Babe
0.4
0.2
0.2
1
0.5

)=

Clue
Kids
Jaws
Babe
Big

0.6
0.2
0.225
0.6
0.5

Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1
Algorithm: Collaborative Filtering
Ratings Table from

Movies Similarity Matrix

Movies->
Users->

1
2
3
4
5

f(

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Clue
1
0.2
0.3
0.4
0.5

,

Babe
0.4
0.2
0.2
1
0.5

)=

Clue
Kids
Jaws
Babe
Big

0.6
0.2
0.225
0.6
0.5

Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Largest number is for the movie Big. Users should watch it!
Algorithm: Collaborative Filtering
Ratings Table from

Movies Similarity Matrix

Movies->
Users->

1
2
3
4
5

f(

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Clue
1
0.2
0.3
0.4
0.5

,

Babe
0.4
0.2
0.2
1
0.5

)=

Clue
Kids
Jaws
Babe
Big

0.6
0.2
0.225
0.6
0.5

Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Largest number is for the movie Big. Users should watch it!

Cross-validation: 90% of recommendations were given
a rating of 3 or above by both users
Allen Sussman, Ph.D.
Goodness-of-recommendation (GoR) function

Similarity of
movie to user 1
movie

Similarity of
movie to user 2
movie

GoR(movie)=mean(s1,s2) - 0.25diff(s1,s2)
If average similarity
to the input movies
is high, that’s good!

If movie is very
similar to user 1
movie but not
user 2 movie (or
vice versa), that’s
bad!
Algorithm
Ratings Table
Movies->
Users->

1
2
3
4
5

f(

Clue Kids Jaws Babe Big
5
3
4
5
None
None
5
1
5
None
3
None
1
4
3
1
5
1
4
3
2
4
1
4
5
Clue
1
0.2
0.3
0.4
0.5

,

Babe
0.4
0.2
0.2
1
0.5

)=

0.6
0.2
0.225
0.6
0.5

Movies Similarity Matrix
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Say User 1 likes Clue
User 2 likes Babe
Clue
Kids
Jaws
Babe
Big

Clue Kids Jaws Babe Big
1
0.2
0.3
0.4
0.5
0.2
1
0.3
0.2
0.3
0.3
0.3
1
0.2
0.3
0.4
0.2
0.2
1
0.5
0.5
0.3
0.3
0.5
1

Largest number is for the movie Big. Users should watch it!

f(s1,s2)=mean(s1,s2)-α*diff(s1,s2)
For multiple input movies,

f(s1,1,s1,2,…,s2,1,s2,2,…) = mean(s1,1,s1,2,…,s2,1,s2,2,…)α*std(s1,1,s1,2,…,s2,1,s2,2,…)-β*diff(mean(s1,1,s1,2,…),mean(s2,1,s2,2,…))
Cross-Validation
Movies Similarity Matrix

Ratings Table
Movies->
Users->

Training Set
Ground Truth
Clue Kids Jaws Babe Big

Test Set
Features

1

Consider two users in test set
Features
Test Set

1

5

2

4

5

1

5

2

My Recommendations
Clue Kids Jaws Babe Big
Ground
Truth

User 1
User 2

Use algorithm and similarity matrix on
then compare predictions and truth

3

2

Ground
Truth

4

to predict

Y

Y

Y

More Related Content

Recently uploaded

week 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptxweek 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptx
joshuaclack73
 
batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01
Patricia Pham
 
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdfTitle Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Toca boca
 
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
Marwah Studios
 
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
ahafux
 
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjjVector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
joshuaclack73
 

Recently uploaded (20)

The Gaming Quiz - 17th April 2024, Quiz Club NITW
The Gaming Quiz - 17th April 2024,  Quiz Club NITWThe Gaming Quiz - 17th April 2024,  Quiz Club NITW
The Gaming Quiz - 17th April 2024, Quiz Club NITW
 
C&C Artists' Websites .
C&C Artists' Websites                       .C&C Artists' Websites                       .
C&C Artists' Websites .
 
small presentation about Star Wars/.pptx
small presentation about Star Wars/.pptxsmall presentation about Star Wars/.pptx
small presentation about Star Wars/.pptx
 
week 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptxweek 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptx
 
batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01
 
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdfTitle Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
 
WHO KILLED ALASKA? #17: Mirror Memoria - "OFFICER" TRANSCRIPT.pdf
WHO KILLED ALASKA? #17: Mirror Memoria - "OFFICER" TRANSCRIPT.pdfWHO KILLED ALASKA? #17: Mirror Memoria - "OFFICER" TRANSCRIPT.pdf
WHO KILLED ALASKA? #17: Mirror Memoria - "OFFICER" TRANSCRIPT.pdf
 
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdfThe Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
 
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdfWHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
 
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdfKhaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
 
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
 
Online Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports IDOnline Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports ID
 
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
 
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
 
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjjVibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
 
the red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdointhe red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdoin
 
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
 
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
 
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
 
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjjVector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

2lu: Movie Recommendations for two!

  • 1. Find  movies  for  two Allen  Sussman
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Can we find a movie we’ll both actually like?
  • 10.
  • 11. Each person enters movies they like and 2lu finds movies they’ll both like
  • 12. Each person enters movies they like and 2lu finds movies they’ll both like
  • 13. Algorithm: Collaborative Filtering Ratings Table from Movies-> Users-> 1 2 3 4 5 Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5
  • 14. Algorithm: Collaborative Filtering Ratings Table from Movies-> Users-> 1 2 3 4 5 Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Movies Similarity Matrix Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1
  • 15. Algorithm: Collaborative Filtering Ratings Table from Movies-> Users-> 1 2 3 4 5 Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Movies Similarity Matrix Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe
  • 16. Algorithm: Collaborative Filtering Ratings Table from Movies-> Users-> 1 2 3 4 5 Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Movies Similarity Matrix Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1
  • 17. Algorithm: Collaborative Filtering Ratings Table from Movies-> Users-> 1 2 3 4 5 f( Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Clue 1 0.2 0.3 0.4 0.5 , Babe 0.4 0.2 0.2 1 0.5 )= Movies Similarity Matrix Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1
  • 18. Algorithm: Collaborative Filtering Ratings Table from Movies Similarity Matrix Movies-> Users-> 1 2 3 4 5 f( Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Clue 1 0.2 0.3 0.4 0.5 , Babe 0.4 0.2 0.2 1 0.5 )= Clue Kids Jaws Babe Big 0.6 0.2 0.225 0.6 0.5 Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1
  • 19. Algorithm: Collaborative Filtering Ratings Table from Movies Similarity Matrix Movies-> Users-> 1 2 3 4 5 f( Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Clue 1 0.2 0.3 0.4 0.5 , Babe 0.4 0.2 0.2 1 0.5 )= Clue Kids Jaws Babe Big 0.6 0.2 0.225 0.6 0.5 Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Largest number is for the movie Big. Users should watch it!
  • 20. Algorithm: Collaborative Filtering Ratings Table from Movies Similarity Matrix Movies-> Users-> 1 2 3 4 5 f( Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Clue 1 0.2 0.3 0.4 0.5 , Babe 0.4 0.2 0.2 1 0.5 )= Clue Kids Jaws Babe Big 0.6 0.2 0.225 0.6 0.5 Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Largest number is for the movie Big. Users should watch it! Cross-validation: 90% of recommendations were given a rating of 3 or above by both users
  • 21.
  • 23. Goodness-of-recommendation (GoR) function Similarity of movie to user 1 movie Similarity of movie to user 2 movie GoR(movie)=mean(s1,s2) - 0.25diff(s1,s2) If average similarity to the input movies is high, that’s good! If movie is very similar to user 1 movie but not user 2 movie (or vice versa), that’s bad!
  • 24. Algorithm Ratings Table Movies-> Users-> 1 2 3 4 5 f( Clue Kids Jaws Babe Big 5 3 4 5 None None 5 1 5 None 3 None 1 4 3 1 5 1 4 3 2 4 1 4 5 Clue 1 0.2 0.3 0.4 0.5 , Babe 0.4 0.2 0.2 1 0.5 )= 0.6 0.2 0.225 0.6 0.5 Movies Similarity Matrix Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Say User 1 likes Clue User 2 likes Babe Clue Kids Jaws Babe Big Clue Kids Jaws Babe Big 1 0.2 0.3 0.4 0.5 0.2 1 0.3 0.2 0.3 0.3 0.3 1 0.2 0.3 0.4 0.2 0.2 1 0.5 0.5 0.3 0.3 0.5 1 Largest number is for the movie Big. Users should watch it! f(s1,s2)=mean(s1,s2)-α*diff(s1,s2) For multiple input movies, f(s1,1,s1,2,…,s2,1,s2,2,…) = mean(s1,1,s1,2,…,s2,1,s2,2,…)α*std(s1,1,s1,2,…,s2,1,s2,2,…)-β*diff(mean(s1,1,s1,2,…),mean(s2,1,s2,2,…))
  • 25. Cross-Validation Movies Similarity Matrix Ratings Table Movies-> Users-> Training Set Ground Truth Clue Kids Jaws Babe Big Test Set Features 1 Consider two users in test set Features Test Set 1 5 2 4 5 1 5 2 My Recommendations Clue Kids Jaws Babe Big Ground Truth User 1 User 2 Use algorithm and similarity matrix on then compare predictions and truth 3 2 Ground Truth 4 to predict Y Y Y