IDS 4 (Week 14)
IDS 4 (Week 14)
https://medium.com/analytics-vidhya/understanding-principle-component-analysis-pca-step-by-
step-e7a4bb4031d9
PCA Working Example: Step 1
• First, we need to standardize the dataset and for that, we
need to calculate the mean and standard deviation for each
feature.
PCA Working Example: Step 2
• Calculate the covariance matrix for the whole dataset.
Already Sorted
PCA Working Example: Step 5
• Pick k (here k=2) eigenvalues and form a matrix of
eigenvectors
PCA Working Example: Step 6
• Transform the original matrix.
PCA: Important Notes
• PCA tries to summarize as much information as possible in
the first PC, the rest in the second, and so on…
Implementation
Recommendation Systems
• Recommender systems are the systems that are designed to
recommend things to the user based on different factors.
• These systems predict the most likely product that are of
interest to the user.
• The recommender system deals with a large volume of
information present by filtering the most important
information based on the data provided by a user and other
factors that take care of the user’s preference and interest.
Types of recommender Systems
Collaborative Filtering
• Collaborative filtering technique works by building a
database (user-item matrix) of preferences for items by
users.
• It then matches users with relevant interest and preferences
by calculating similarities between their profiles to make
recommendations. Such users build a group called
neighborhood.
• A user gets recommendations to those items that he has not
rated before but that were already positively rated by users in
his neighborhood.
Types of Collaborative Filtering
Matrix Factorization
• Matrix factorization is used to factorize a matrix, i.e., to
find out two (or more) matrices such that when you
multiply them, you’ll get back the original matrix.