Methods · Probability & information theory · Information theory

k-Nearest-Neighbour Mutual Information (KSG Estimator)

KSG mutual information estimation measures the total linear and nonlinear dependence between continuous variables from k-nearest-neighbour distances, without binning the data.

KSG 상호정보량 추정량은 구간을 나누지 않고 k-최근접 이웃 거리로 연속 변수 사이의 선형·비선형 의존 전체를 재는 방법입니다.

How can I quantify a nonlinear association between two continuous variables that a correlation coefficient misses?

상관계수로는 잡히지 않는 두 연속 변수의 비선형 관계를 어떻게 수치로 나타낼 수 있나요?

Mutual information is zero only when two variables are independent, so it captures curved and non-monotonic relationships that Pearson or Spearman correlations can miss. The Kraskov–Stögbauer–Grassberger estimator computes it from nearest-neighbour distances, and a permutation test indicates whether the dependence is larger than chance.

When to use k-Nearest-Neighbour Mutual Information (KSG Estimator)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The KSG estimate (k = [value]) of the mutual information between [X] and [Y] was [value] nats, permutation p = [value].

Related methods

Run k-Nearest-Neighbour Mutual Information (KSG Estimator) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
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
Checked by property tests in every deployment
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 Q19001 · Reviewed 2026-10-25