# Empirical Analysis of Predictive Algorithms for Collaborative Filtering

Bayesian networks and correlation methods lead at predicting user votes

John S. Breese, David Heckerman, Carl Kadie · arXiv · 2013-1-30

- **Problem** Published comparisons of collaborative filtering algorithms were thin, even as commercial interest grew. Recommenders predict a user's tastes from other users' votes, but it was unclear which method predicts best.
- **Method** The authors compare memory-based correlation and vector similarity with cluster models and Bayesian networks. They score each on three datasets using absolute deviation and a ranked-list utility metric.
- **Results** Bayesian networks and correlation methods outperform the other approaches under a wide range of conditions. The preferred method depends on the dataset, the application, and how many votes are available.

## Why vote data makes prediction hard

Collaborative filtering skips item content and predicts an active user's tastes from the votes of other users. Votes can be explicit, such as a one-to-five rating on Netnews articles, or implicit, such as page visits or purchases. Most votes are missing, because users mostly vote on items they have already accessed, and they are more likely to access items they like.

So a missing vote isn't a random gap, and the authors don't assume it is one.

Commercial interest in these systems was growing, yet published comparisons of their algorithms were thin. The paper therefore compares predictive accuracy and recommendation quality across algorithms and datasets. The authors say computation and scalability matter too, but accuracy is their primary emphasis.

## Correlation and vector similarity weights

Memory-based methods keep the whole user database and weight every other user by how similar that user is to the active user. The authors use the Pearson correlation coefficient, introduced with GroupLens, as the weight. It is computed only over the items that both users have voted on. Vector similarity takes a different route: it treats each user as a vector of votes and uses the cosine of the angle between two vectors.

In that vector scheme, observed votes count as positive and unobserved items get zero, so negative votes have no role. Dividing by the squared vote terms keeps users who vote on many titles from looking more similar by default. The prediction then combines the other users' votes through these weights.

## Default voting and inverse user frequency

Correlation uses only items both users voted on, so it struggles when either user has few votes. Default voting fixes this by giving unvoted items a default value, so matching runs over the union of voted items. For implicit data the default can be 0, which means did not visit. Default voting only computes weights for users who share at least one item with the active user.

Without it, correlation can't work on binary implicit data, because every observed vote has the same value.

Inverse user frequency borrows the idea of inverse document frequency from information retrieval. Each item gets a factor given by the log of the total user count over the number of users who voted for it. Commonly liked items therefore count less, and an item everyone voted on gets a factor of zero. Vector similarity multiplies each vote by this factor, while correlation uses it to weight items inside its sum.

Case amplification then pushes weights toward one, emphasizing large weights and punishing small ones.

## Cluster models and Bayesian networks

The probabilistic methods predict the expected vote, a sum over possible vote values weighted by their probability given the observed votes. The cluster model assumes a hidden class, and votes are conditionally independent given that class. The EM algorithm learns its parameters, and the number of classes is chosen by approximate marginal likelihood.

The Bayesian network gives each item its own node, with a no vote state for missing votes. Structure learning picks each item's parents, and each node's probability table is encoded as a decision tree. The structure prior penalizes each extra free parameter with probability 0.1. The parameter prior is uniform over outcomes with an equivalent sample size of 10, and the authors saw little sensitivity to these settings.

## Two ways to score predictions

Each dataset is split into training users and test users, and each test user's votes are split into observed and predicted sets. Individual predictions are scored by average absolute deviation between predicted and actual votes, averaged over test users. Lower values are better for this metric.

Ranked scoring assumes the user scans the list from the top, with the chance of viewing each position decaying exponentially. Each item contributes its vote above the neutral vote, weighted by the probability of viewing its position. The viewing halflife is set to 5 items, the position at which the user has a 50-50 chance of viewing an item.

A halflife of 10 items gave little sensitivity.

The protocols differ in observed votes: All but 1 holds out a single vote, while Given 2, Given 5 and Given 10 observe 2, 5 or 10 votes and predict the rest. MS Web records visits to site areas as implicit votes, Television is binary watched data, and EachMovie has explicit votes from 0 to 5. MS Web has 3453 users and 294 titles, and EachMovie has 4119 users and 1623 titles.

## Ranked scoring results

The Bayesian network is best, or statistically equivalent to best, under every protocol.

On Television with Given 2, the Bayesian network scored 34.90, compared to 39.44 for CR+ and 39.20 for vector similarity. The authors attribute this to tree structure: a held-out title near the top of a tree is set to no vote, so it may be ignored.

On EachMovie, correlation leads the Given protocols, with CR+ at 41.60 under Given 2, compared to 28.64 for the Bayesian network. Under All but 1, the Bayesian network scored 23.49, just above CR+ at 23.16. So the Bayesian network needs many observed votes per user, while vector similarity copes better with less data.

## Absolute deviation and the extension effects

Vector similarity was much worse, at 2.113 to 2.235 across the four protocols.

Inverse user frequency improved ranked scores in all 24 vector similarity and correlation experiments, and 23 of them were significant. The average gain was 1.9%, with 2.2% for vector similarity and 1.5% for correlation. Under absolute deviation on EachMovie the average gain was 11% over 8 experiments, with 15.5% for vector similarity and 6.5% for correlation.

Case amplification raised ranked scores by 4.8% on average across 12 correlation experiments, significant in 11 of them. It had no significant effect on absolute deviation. Combined with inverse user frequency, its benefits added together.

Among probabilistic methods, the Bayesian network beat the cluster models on ranked scoring, by an average 41% in 12 comparisons. But on EachMovie absolute deviation the cluster model did slightly better than the trees.

## Cost, learning time and limits

Memory-based methods store the user database, about 314 KB compressed for EachMovie and 318 KB for MS Web. The Bayesian network models were 27 and 55 KB compressed for those datasets. Learning took under an hour for the Neilsen data and up to 8 hours for EachMovie and MS Web. The trade-off is clear: the learning phase delays how fast changed behavior shows up in recommendations.

Training set sizes were 1637 users for Neilsen, 5000 for EachMovie and 32711 for MS Web. EachMovie's Bayesian models were trained on the top 300 movies, while testing used all roughly 1600 movies. The prior settings were checked on subsets of training data, and sensitivity was small.

## Paper info

- **Authors**: John S. Breese, David Heckerman, Carl Kadie
- **Venue**: arXiv · Preprint
- **First published**: 2013-1-30
- **Added**: 2026-11-12
- **Updated**: 2013-1-30
- **Version**: v1
- **arXiv**: 1301.7363
- **Category**: cs.IR · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1301.7363v1) · [PDF ↗](https://arxiv.org/pdf/1301.7363v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

John S. Breese, David Heckerman, Carl Kadie (2013). Empirical Analysis of Predictive Algorithms for Collaborative Filtering. arXiv:1301.7363v1. https://arxiv.org/abs/1301.7363v1

**BibTeX**

```
@misc{breese2013empirical,
  title = {{Empirical Analysis of Predictive Algorithms for Collaborative Filtering}},
  author = {John S. Breese and David Heckerman and Carl Kadie},
  year = {2013},
  eprint = {1301.7363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1301.7363v1}
}
```

## Other paper commentary

- [BPR: Bayesian Personalized Ranking from Implicit Feedback](https://refivu.com/en/papers/e3d177de-9c9b-45b7-bcb5-9ef28bee1dbb-bpr-bayesian-personalized-ranking-from-implicit-feedback.md)
- [Machine Learning in Automated Text Categorization](https://refivu.com/en/papers/f3ed4c42-7556-47e0-bc36-a9acdd9bf6d0-machine-learning-in-automated-text-categorization.md)
- [Unsupervised Dense Information Retrieval with Contrastive Learning](https://refivu.com/en/papers/2fbce187-1a33-4d74-941c-36d004c9a79b-unsupervised-dense-information-retrieval-with-contrastive.md)
- [Dense Passage Retrieval for Open-Domain Question Answering](https://refivu.com/en/papers/c44c51e1-e59a-4cb6-8e94-20a4b572abc0-dense-passage-retrieval-for-open-domain-question-answering.md)
- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://refivu.com/en/papers/569bb9ab-8345-4766-a539-e7ffb7b1754e-retrieval-augmented-generation-for-knowledge-intensive-nlp.md)
- [Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL](https://refivu.com/en/papers/1d3e708c-277f-497f-9bbf-8b12de718d99-adaptive-elbow-graph-traversal-for-schema-retrieval-in.md)
- [PointPillars: Fast Encoders for Object Detection from Point Clouds](https://refivu.com/en/papers/93807b29-2d87-4d5c-b316-3d54142077f5-pointpillars-fast-encoders-for-object-detection-from-point.md)
- [Spectral Networks and Locally Connected Networks on Graphs](https://refivu.com/en/papers/c8d7ac6f-ca53-43f2-b5f6-9ac71d5ca32d-spectral-networks-and-locally-connected-networks-on-graphs.md)
- [An Introduction to Convolutional Neural Networks](https://refivu.com/en/papers/6b236b8c-8750-484a-8c31-87433f51f2eb-an-introduction-to-convolutional-neural-networks.md)
- [Instant Neural Graphics Primitives with a Multiresolution Hash Encoding](https://refivu.com/en/papers/b4180f7f-7d22-475c-8add-12309c2b51a3-instant-neural-graphics-primitives-with-a-multiresolution.md)
- [Medical Image Segmentation: Foundation Model Adaptation versus Task-Specific Training](https://refivu.com/en/papers/d5e6d956-8d45-41ee-a229-cfa12c77a62f-medical-image-segmentation-foundation-model-adaptation.md)
- [Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFs](https://refivu.com/en/papers/551829fd-0dd3-4274-8bd3-cb4438cd4b78-semantic-image-segmentation-with-deep-convolutional-nets-and.md)

## Terms in this paper

- [decision tree](https://refivu.com/en/terms/3158e0807c66-decision-tree)
- [Correlation](https://refivu.com/en/terms/b141275392c8-correlation)
- [collaborative filtering](https://refivu.com/en/terms/918095e4b398-collaborative-filtering)
- [EM algorithm](https://refivu.com/en/terms/b5ff3b40c4cf-em-algorithm)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bc628fe8-827d-4576-8126-05c09f333880-empirical-analysis-of-predictive-algorithms-for)
