Skip to content

Methods · Clustering · Clustering

K-Means Clustering with Partial-Distance Handling of Missing Values

k-means clustering that keeps rows with missing values. The squared distance from a row to a centroid is summed over the row's observed variables and scaled up by the ratio of all variables to observed variables; each centroid coordinate is the mean of the observed values of its members.

결측값이 있는 행도 버리지 않는 k-평균 군집분석입니다. 행과 군집 중심 사이의 제곱 거리를 관측된 변수에서만 더한 뒤 전체 변수 수와 관측된 변수 수의 비로 늘려 쓰고, 각 군집 중심의 좌표는 구성원의 관측값 평균으로 정합니다.

How can I run k-means on data with scattered missing values without deleting the incomplete rows?

불완전한 행을 지우지 않고 결측값이 흩어진 자료에 k-평균을 어떻게 돌립니까?

The output gives cluster sizes, centroids in the original units, the number of incomplete rows in each cluster, the share of variance explained and each row's cluster. Rows with many missing variables are placed with less certainty.

When to use K-Means Clustering with Partial-Distance Handling of Missing Values

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

k-means with partial distances (k = [value], n = [value], [value] incomplete rows) gave clusters of size [value] and explained R2 = [value] of the total sum of squares.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 2 reference tests compare the results with scikit-learn and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-10.

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

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 K-Means Clustering with Partial-Distance Handling of Missing Values on Quorant

Data you need
a table (CSV or Excel) with 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
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 Q31042 · Reviewed 2026-10-25