Unsupervised grouping of similar items with no labels (customer segments, image segmentation). ✎ Exam: ___ customers by spending finds segments without any labels.
2
New cards
Centroid-based clustering
Each ___ is represented by its mean point (___), e.g. k-means. ✎ Exam: k-means is ___.
3
New cards
Density-based clustering
___ are dense regions separated by sparse ones; finds arbitrary shapes and outliers, e.g. DBSCAN. ✎ Exam: ___ found winding ___ and flagged noise.
4
New cards
Distribution-based clustering
Data come from a mixture of probability ___; a point can belong to several ___ probabilistically (soft), e.g. Gaussian mixtures. ✎ Exam: A Gaussian mixture gives each customer a probability for every segment.
5
New cards
Hierarchical clustering
Builds a tree of ___ (dendrogram); agglomerative starts with each point alone and repeatedly merges the two closest ___. Choose the number of groups by cutting the tree. ✎ Exam: ___ needs no K up front; I cut the dendrogram at 4 groups.
6
New cards
k-means
Choose K centres → assign each point to the nearest → move each centre to its points' mean → repeat until assignments stop changing. Converges, possibly to a local optimum. ✎ Exam: ___ with K = 4 split customers into four spending segments.
7
New cards
Centroid
The mean point of a cluster. ✎ Exam: Each k-means step moves the ___ to the mean of its points.
8
New cards
Elbow method
Plot WCSS against K and pick the ___, where adding clusters stops helping much. ✎ Exam: The ___ suggested K = 4.
9
New cards
WCSS
Within-cluster sum of squares (inertia): total squared distance of points to their centroid; lower = tighter clusters. ✎ Exam: ___ drops sharply until K = 4, then flattens.
10
New cards
k-means++
Initialisation that picks each next centre far from existing ones (probability ∝ squared distance), giving better, more stable results. ✎ Exam: ___ avoids two centres starting in the same cluster.
11
New cards
DBSCAN
Density-based clustering with eps (radius) and minPts; finds any shape and flags outliers (noise); no K needed. Struggles with very different densities. ✎ Exam: ___ found the winding delivery routes and marked isolated points as noise.
12
New cards
Core point
DBSCAN: has at least minPts neighbours within eps. ✎ Exam: A ___ starts or grows a cluster.
13
New cards
Border point
DBSCAN: within eps of a core ___ but without enough neighbours itself. ✎ Exam: A ___ joins the cluster but doesn't expand it.
14
New cards
Noise point
DBSCAN: neither core nor border, an outlier. ✎ Exam: DBSCAN labels the isolated transactions as ___ ___.
15
New cards
Dendrogram
The tree diagram of hierarchical clustering; cut it at a height to get the groups. ✎ Exam: Cutting the ___ at height 5 gives three clusters.
16
New cards
Complete linkage
Cluster distance = the farthest pair of points; gives compact clusters. (Single = closest pair, long chains; average = all pairs; Ward = smallest variance increase.) ✎ Exam: ___ produced compact, round clusters.
17
New cards
Silhouette score
Cluster quality from −1 to 1; higher = points close to their own cluster and far from others. ✎ Exam: A ___ of 0.6 shows well-separated clusters.
18
New cards
Recommender system
Given a user model and items, computes a relevance score per item and ranks them. Fights information overload; helps sell long-tail items. ✎ Exam: The ___ ranks films by predicted rating for each user.
19
New cards
Utility matrix
Users × items, each cell a rating (explicit stars or implicit clicks/purchases). Very sparse. ✎ Exam: The ___ is 99% empty: most users rate few films.
20
New cards
Implicit feedback
Ratings inferred from behaviour: clicks, purchases, watch time (vs explicit star ratings). ✎ Exam: Watch time is ___.
21
New cards
Long tail
The many niche items that each sell little; recommenders help sell them. ✎ Exam: Recommendations surface long-tail books that bestseller lists ignore.
22
New cards
Collaborative filtering
Recommends from the user–item rating matrix only: similar users like similar items (users who agreed in the past will agree in the future). ✎ Exam: ___ recommends films liked by users with similar ratings, without using genres.
23
New cards
User-based CF
Find users similar to the target (Pearson/cosine on co-rated items), take the k nearest who rated the item, predict = user's mean + similarity-weighted average of their deviations. ✎ Exam: ___ predicts Alice's rating from the ratings of her 5 most similar users.
24
New cards
Item-based CF
Recommend items similar to ones you liked, where similarity = rated alike by users. Precomputed offline; scales better (items change less than users). ✎ Exam: "Customers who bought this also bought" is ___.
25
New cards
Content-based filtering
Recommend items whose features (genre, keywords, TF-IDF) match the user's profile built from their history. ✎ Exam: ___ recommends more sci-fi because the user watched sci-fi.
26
New cards
Hybrid recommender
Combines collaborative and content-based (and others) to fix each one's weaknesses, e.g. cold start. ✎ Exam: Netflix uses a ___.
27
New cards
Model-based CF
Matrix factorisation (SVD) learns latent factors: faster at prediction, handles sparsity better, scales. ✎ Exam: ___ factorises the rating matrix into user and item factors.
28
New cards
Pearson correlation
Similarity that adjusts for harsh vs generous raters (compares deviations from each user's mean). ✎ Exam: ___ treats a harsh 3-star and a generous 5-star as similar tastes.
29
New cards
Cold start
A new user has no ratings to match, or a new item has no ratings to be recommended. Fix: content-based or popularity recs, onboarding questionnaire, hybrid. ✎ Exam: New users face ___, so we ask them to pick favourite genres at sign-up.
30
New cards
Sparsity
Most cells in the utility matrix are empty, so similarities are computed from very few co-rated items. ✎ Exam: ___ makes user similarities unreliable.
31
New cards
Popularity bias
CF favours ___ items; unusual tastes and long-tail items get little data and few recommendations. ✎ Exam: ___ keeps recommending the same blockbusters.
32
New cards
Exposure bias
Users can only rate what they were shown, so the data reflects past recommendations, not true preference (tutor's CF limitation). ✎ Exam: ___: items never shown never get ratings, so they're never recommended.
33
New cards
Overspecialisation
Content-based weakness: "more of the same", no surprises. ✎ Exam: ___: after one cooking video, only cooking videos.
34
New cards
Filter bubble
Highly personalised systems show only what matches past behaviour, creating echo chambers. ✎ Exam: News recommenders can create a ___.
35
New cards
TF-IDF
Word weight = frequency in this item's text × rarity across all items; common words get low weight, distinctive words high. ✎ Exam: ___ gives "dinosaur" a high weight and "the" a low one.
36
New cards
Clustering
Scenario: A shop has no labels but wants to find groups of similar customers. Why: ___ (unsupervised), e.g. k-means.
37
New cards
Hierarchical clustering
Scenario: You don't know the number of groups and want to see the whole hierarchy before deciding. Why: ___ (agglomerative) ___ with a dendrogram.
38
New cards
k-means
Scenario: Segment 10,000 customers into a chosen number of groups, quickly and at scale. Why: ___: simple, fast, scalable (choose K with the elbow method, scale features).
39
New cards
Elbow method
Scenario: How do you choose K for k-means? Why: ___ on WCSS (plus domain knowledge).
40
New cards
k-means++
Scenario: Different random seeds give different k-___ clusters. Why: Initialisation matters: use ___ or run several initialisations and keep the lowest WCSS.
41
New cards
DBSCAN
Scenario: Clusters are irregular, winding shapes and you also want outliers flagged. Why: ___: arbitrary shapes, marks noise, no K.
42
New cards
Collaborative filtering
Scenario: Recommend films liked by people with your taste, using no genre or actor information (sample MCQ). Why: (User-based) ___: only the ratings matrix.
43
New cards
Item-based CF
Scenario: An online shop shows "customers who bought this also bought…". Why: Item-___ collaborative filtering.
44
New cards
Content-based filtering
Scenario: Recommend films whose genre and keywords match those in your viewing history. Why: ___.
45
New cards
Cold start
Scenario: A new film added today can't be recommended because nobody has rated it. Why: ___ (new item): use content-based features or a hybrid.