Skip to content

Methods · Machine learning · Recommender systems

User-Based Collaborative Filtering (k-Nearest-Neighbour Users)

User-based collaborative filtering predicts how a user would rate an item from the ratings that similar users gave it. Similarity between two users is the Pearson correlation (or cosine) of their ratings on the items both rated; the prediction is the user's own mean plus the similarity-weighted average of the k most similar users' deviations from their means.

사용자 기반 협업 필터링은 어떤 사용자가 한 항목에 줄 평점을, 취향이 비슷한 사용자들이 그 항목에 준 평점으로 예측합니다. 두 사용자의 유사도는 둘 다 평가한 항목에서의 평점 피어슨 상관(또는 코사인)이며, 예측값은 그 사용자의 평균에 가장 비슷한 k명의 평균 대비 편차를 유사도로 가중 평균해 더한 값입니다.

What rating would this user give an item they have not rated, judging by users with similar taste?

이 사용자가 아직 평가하지 않은 항목에 몇 점을 줄지, 취향이 비슷한 사용자들로 예측할 수 있습니까?

The method reports held-out RMSE and MAE next to global, user and item mean baselines, the share of pairs that had usable neighbours, and example top-N recommendations.

When to use User-Based Collaborative Filtering (k-Nearest-Neighbour Users)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

User-based collaborative filtering (Pearson similarity, k = [value]) had a held-out RMSE of [value], against [value] for the user mean.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-9.

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-9).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run User-Based Collaborative Filtering (k-Nearest-Neighbour Users) on Quorant

Data you need
a table (CSV or Excel) with a unit (entity) ID, a grouping variable and an outcome variable
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q71164 · Reviewed 2026-10-25