K-means with $K = 5$ on four unscaled features of 15,394 Goodreads reviewers (number of reviews, average rating, rating variance and average review length) divided them, in effect, into five bands of review length. Length, which runs to thousands, dominates the Euclidean distance: it accounts for 99.9991 percent of the squared distance between the centroids of the two largest clusters. Across the bands, average rating falls slightly from 3.84 to 3.74, then to 3.41 for the 116 reviewers whose reviews average over 6,000 (read here as characters), who also rate most consistently (variance 0.36). No test of significance was made, and the clusters are length bands, not reviewer types defined by all four features.
Our CSC 790 term project, by James R. Brown and me, analyzed Goodreads reviews from the UCSD Book Graph (Wan and McAuley, 2018; Wan et al., 2019). Alongside searching the reviews and predicting their star ratings, the project clustered the people who wrote them. The question was whether reviewers fall into recognizable types, distinguished by how much they write, how they rate, and how often they review. The clustering was my partner's part of the project, and this article describes what it did and what it found, using the concepts of this topic. The code is in the Goodreads repository. The article is a project report, so it has no section of worked problems; its one calculation, the distance between two cluster centroids, is carried out in full where it arises.
What was clustered
The objects clustered are reviewers, not reviews or documents. Each reviewer is summarized by four numbers computed from their reviews:
- the number of reviews they wrote;
- their average star rating;
- the variance of their ratings, which is low for a reviewer who gives every book the same score and high for one who uses the whole scale;
- the average length of their reviews. The clustering code reads each review's length from a
text_lengthcolumn of the metadata file prepared for the project. The repository's Python code does not compute that column or state its unit. The values (an average of 417 for the band of shortest reviews) fit a count of characters better than a count of words, and this article reads them as characters.
The clustering used K-means with $K = 5$, Euclidean distance on the four features, starting centroids chosen at random from the reviewers, and up to 100 iterations, stopping earlier once the centroids no longer moved (to a tolerance of about $10^{-4}$). A two-dimensional projection of the clusters by principal component analysis was used to visualize them.
The clusters
| Cluster | Reviewers | Average review length | Average rating | Reviews per reviewer | Rating variance |
|---|---|---|---|---|---|
| 3 | 7,483 | 417 | 3.84 | 6.8 | 0.59 |
| 1 | 4,712 | 1,104 | 3.78 | 8.8 | 0.69 |
| 2 | 2,304 | 2,056 | 3.77 | 9.2 | 0.65 |
| 0 | 779 | 3,442 | 3.74 | 7.8 | 0.60 |
| 4 | 116 | 6,323 | 3.41 | 3.6 | 0.36 |
The 15,394 reviewers are sorted here by the average length of their reviews, and the clusters fall into clear bands of length. Nearly half write short reviews averaging a few hundred characters. Smaller groups write progressively longer reviews, and a group of 116 writes reviews averaging over 6,000.
Why length shaped the clusters
The four features were used in their original units. Review lengths run to thousands, while average ratings lie between 1 and 5 and rating variances below 2. Euclidean distance adds up squared differences in each feature, so it is dominated by whichever feature varies most in absolute terms. The centroids of clusters 3 and 1, the two largest, show by how much.
Example (the distance between two centroids). Length accounts for more than 99.99 percent of the squared distance between the centroids of clusters 3 and 1. The squared distance is the sum of the squared differences in the four features, taken from the two rows of the table:
| Feature | Cluster 3 | Cluster 1 | Difference | Squared |
|---|---|---|---|---|
| Average review length | 417 | 1,104 | 687 | 471,969 |
| Reviews per reviewer | 6.8 | 8.8 | 2.0 | 4.0 |
| Average rating | 3.84 | 3.78 | 0.06 | 0.0036 |
| Rating variance | 0.59 | 0.69 | 0.10 | 0.01 |
The squared difference in length is $687^2 = 471{,}969$, about 470,000. The other three come to $4.0 + 0.0036 + 0.01 = 4.0136$, about 4. The squared distance is their sum, $471{,}973.0136$, and length's share of it is $471{,}969 / 471{,}973.0136 = 99.9991$ percent. The distance itself is $\sqrt{471{,}973.0136} = 687.003$, which differs from the difference in length alone, 687, only in the third decimal place.
The clustering is therefore, in effect, a division of the reviewers into bands of review length. The other three features can then be compared across those bands.
That is a legitimate and readable result. Grouping by the dominant feature produces bands with clear boundaries, and the averages of the other features within each band show how they vary with length. It does mean that the clusters should be read as length bands rather than as types defined by all four features together. K-means in practice describes the alternative. Rescaling each feature, for example to zero mean and unit variance, before clustering puts all four on comparable scales, so that each can influence the result.
What the clusters show
Reading the table across the length bands:
- Average rating falls as reviews get longer. It falls only slightly through the first four bands, from 3.84 to 3.74, then drops to 3.41 for the 116 reviewers who write the longest reviews. The writers of very long reviews are, on average, the most critical. The difference is concentrated in a small group, and no test of its statistical significance was made.
- The longest reviewers rate most consistently. Their rating variance, 0.36, is the lowest of any cluster, and they review the fewest books each.
- Prolific reviewers write mid-length reviews. The clusters with the most reviews per reviewer, about nine, are the middle length bands.
A plausible reading is that very long reviews are often written by readers with a considered, critical view, and that critical readers write at length to explain it. The clustering cannot establish why, only that the pattern is there.
Next steps
The natural extensions use methods from this topic:
- Standardize the features before clustering, so that rating behavior and review counts shape the clusters as well as length.
- Choose K from the data, by comparing the residual sum of squares or another criterion across values of K, as described in K-means in practice.
- Run several restarts and keep the clustering with the lowest residual sum of squares, since K-means finds only a local minimum (Manning, Raghavan, and Schütze, 2008, §16.4).
- Cluster reviewers by what they write, using the vocabulary of their reviews as TF-IDF vectors, which would group reviewers by the kinds of books they discuss and the language they use.
References
- Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, chapter 16. Cambridge University Press. record · 102 pages
- Wan, M., and McAuley, J. (2018). Item recommendation on monotonic behavior chains. In Proceedings of RecSys 2018, 86–94. record · 2 pages
- Wan, M., Misra, R., Nakashole, N., and McAuley, J. (2019). Fine-grained spoiler detection from large-scale review corpora. In Proceedings of ACL 2019, 2605–2610. record · 2 pages
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 6 revisions