📊 K-Means Cost (Inertia) Estimator
Estimate the magnitude of K-Means within-cluster sum of squares from sample count, dimensionality, spread and K under a uniform-spread simulation assumption; real samples and centroids are not accepted.
📐 計算公式 / 原理
K-Means 量級模擬(非真實資料):Inertia 模擬值=樣本數 n×維度 dim×簇內散佈²÷簇數 k;每簇樣本=⌈n÷k⌉。本頁不接收樣本點或簇中心,不能計算真實 WCSS/輪廓係數/Davies-Bouldin 指數;結果僅在“各簇散佈近似相同”的假設下用於量級預判。校驗:n、k、dim 為正整數,spread>0。判據:k 增大使模擬 Inertia 按反比下降、每簇樣本相應減少。
在樣本近似均勻散佈的模擬假設下,簇內平方和隨 K 增大按 1/k 衰減,可用於快速預判量級。真實聚類請用樣本點與簇中心計算 WCSS;有簇密度差異時應結合業務含義定 K,而不是隻看模擬拐點。
📐 計算公式與說明
判讀與理論背景:真實 Inertia=Σ‖x−μ‖² 需要每個樣本點與其所屬簇中心;本頁只有數量、維度與散佈,故 n·dim·spread²÷k 只是均勻散佈假設下的量級模擬,不能當作實測指標,也不輸出 Davies-Bouldin 估算。校驗:與上方共用同一組輸入。判據:模擬值越小表示假設下簇越緊湊,但不代表真實聚類質量。
Inertia 越小簇內越緊密。