Skip to content

Methods · Machine learning · Algorithmic fairness

Individual Fairness Consistency (k-Nearest-Neighbour Similarity)

Individual fairness asks that people who are alike on the relevant characteristics receive alike predictions. The consistency index measures this as one minus the average absolute difference between each person's prediction and the predictions of their k most similar people, with similarity measured on non-protected features.

개인 공정성은 관련 특성이 비슷한 사람에게 비슷한 예측을 주어야 한다는 요구입니다. 일관성 지수는 보호 속성이 아닌 특성으로 잰 가장 비슷한 k명의 예측과 각 사람의 예측 사이의 평균 절대 차이를 1에서 뺀 값으로 이를 측정합니다.

Does my model treat similar people similarly, or do near-identical cases receive different predictions?

모형이 비슷한 사람을 비슷하게 대하고 있습니까, 아니면 거의 같은 사례에 서로 다른 예측을 내고 있습니까?

The method reports the consistency index (1 means every person gets the same prediction as their neighbours), the value expected by chance from shuffled predictions, consistency within each protected group, and the rows whose predictions differ most from their neighbours.

When to use Individual Fairness Consistency (k-Nearest-Neighbour Similarity)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The k-nearest-neighbour consistency (k = [value]) of the predictions was yNN = [value], compared with [value] expected if predictions were unrelated to similarity (permutation p = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

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 Individual Fairness Consistency (k-Nearest-Neighbour Similarity) on Quorant

Data you need
a table (CSV or Excel) with score and predictor (feature) columns
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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 Q71101 · Reviewed 2026-10-25