You are on page 1of 2

Exercise 7.

1
1. Calculate nDCG for the following list of restaurants.
a. Calculate potential for personalization

Position(i) Item Relevance(rel) DCG Ideal(rel) item IDCG


1 Restaurant A 0 0/log22= 0 2 D 2.000
2 Restaurant B 1 1/log23= 0.631 1 B 0.631
3 Restaurant C 1 1/log24 =0.5 1 C 0.500
4 Restaurant D 2 2/log25 = 0.861 0 A 0.000
5 Restaurant E 0 0/log26 = 0 0 E 0.000
1.992 3.131
NDCG DCG/IDCG 0.6363 Potential for 1-NDCG =
personalization 0.3637

Exercise 7.2
Calculate the potential for personalization using above ratings given for set of movies.
Position(i) Movie Rater A Rater B Rater C
1 Movie A 5 4
2 Movie B 4 5
3 Movie C 3 1
4 Movie D 2 2 3
5 Movie E 1 2
6 Movie F 1
7 Movie G 5 3 2
8 Movie H 2 4 4
9 Movie I 3 1
10 Movie J 1 3 2
Exercise 7.3
What are the main differences between content based and collaborative filtering
recommender systems?

You might also like