Assignment Week 3-3A Approach
Approach
I will use the movie-rating survey I collected in Week 2 (10 participants, 6 movies, ratings from 1 to 5) to implement a Global Baseline Estimate recommendation system in R. I will save the survey ratings as a CSV file on GitHub, using anonymous IDs (U01–U10), so the code can be run on any computer.
Following the course spreadsheet, I will calculate the overall mean rating, each movie’s average rating, and each user’s average rating. For every movie a user has not rated, I will estimate the rating as:
Estimate = mean rating + (movie average − mean rating) + (user average − mean rating)
For each user, I will recommend the unrated movie with the highest estimated rating.
Anticipated Challenges
- Missing ratings: a blank rating means the participant has not seen the movie. I will exclude missing values when calculating averages, not treat them as zero.
- User with no ratings: U05 did not rate any movie, so a user average cannot be calculated. For U05, I will use only the mean rating and the movie’s effect.
- Users with no unrated movies: some participants rated all six movies, so there is nothing to recommend to them.
- Estimates outside the scale: the formula can produce a value above 5, so I will cap estimates at 5.