{"id":4820,"date":"2026-09-22T20:27:53","date_gmt":"2026-09-22T11:27:53","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/?p=4820"},"modified":"2026-09-22T20:27:54","modified_gmt":"2026-09-22T11:27:54","slug":"so-how-many-clusters-should-you-actually-use-in-k-means-a-beginners-guide-to-the-elbow-method-silhouette-analysis-and-the-gap-statistic","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/so-how-many-clusters-should-you-actually-use-in-k-means-a-beginners-guide-to-the-elbow-method-silhouette-analysis-and-the-gap-statistic\/","title":{"rendered":"k-means\u6cd5\u306e\u30af\u30e9\u30b9\u30bf\u6570\u3001\u7d50\u5c40\u3044\u304f\u3064\u306b\u3059\u308c\u3070\u3044\u3044\uff1f\u521d\u5b66\u8005\u306e\u305f\u3081\u306e\u30a8\u30eb\u30dc\u30fc\u6cd5\u30fb\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u30fb\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u30ac\u30a4\u30c9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u300ck-means\u6cd5\u306e\u4f7f\u3044\u65b9\u306f\u5206\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30af\u30e9\u30b9\u30bf\u6570\uff08k\uff09\u3092\u3044\u304f\u3064\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u305a\u3001\u3068\u308a\u3042\u3048\u305a3\u306b\u3057\u3066\u3044\u307e\u3059\u2026\u2026\u300d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">k-means\u6cd5\u3092\u5b66\u3073\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u4eba\u304b\u3089\u3001\u3053\u3046\u3044\u3046\u76f8\u8ac7\u3092\u3088\u304f\u53d7\u3051\u308b\u3002\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u81ea\u4f53\u306f\u7c21\u5358\u306a\u306e\u306b\u3001\u809d\u5fc3\u306e\u300ck\u3092\u3044\u304f\u3064\u306b\u3059\u308b\u304b\u300d\u3068\u3044\u3046\u90e8\u5206\u3060\u3051\u304c\u3001\u306a\u3093\u3068\u306a\u304f\u306e\u52d8\u306b\u983c\u308a\u304c\u3061\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u306f\u3001\u3053\u306e\u300c\u306a\u3093\u3068\u306a\u304f\u300d\u304b\u3089\u629c\u3051\u51fa\u3059\u305f\u3081\u306e\u3001\u4ee3\u8868\u7684\u306a\u6c7a\u3081\u65b9\u304c\u3044\u304f\u3064\u304b\u5b58\u5728\u3059\u308b\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001k-means\u6cd5\u305d\u306e\u3082\u306e\u306e\u8003\u3048\u65b9\u3092\u3056\u3063\u304f\u308a\u304a\u3055\u3089\u3044\u3057\u305f\u3046\u3048\u3067\u3001\u30af\u30e9\u30b9\u30bf\u6570k\u306e\u6c7a\u3081\u65b9\u30923\u3064\u3001\u3067\u304d\u308b\u3060\u3051\u6570\u5f0f\u3092\u4f7f\u308f\u305a\u306b\u6bd4\u55a9\u3067\u89e3\u8aac\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u305d\u3082\u305d\u3082k-means\u6cd5\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\u304b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">k-means\u6cd5\u306f\u3001\u6b21\u306e2\u3064\u306e\u52d5\u304d\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u3060\u3051\u306e\u3001\u610f\u5916\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u624b\u6cd5\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5404\u30c7\u30fc\u30bf\u70b9\u3092\u3001\u4e00\u756a\u8fd1\u3044\u300c\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u5fc3\u300d\u306b\u5272\u308a\u5f53\u3066\u308b<\/li>\n\n\n\n<li>\u5272\u308a\u5f53\u3066\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u305d\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u5fc3\u3092\u3001\u30e1\u30f3\u30d0\u30fc\u306e\u5e73\u5747\u4f4d\u7f6e\u306b\u5f15\u3063\u8d8a\u3057\u3055\u305b\u308b<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3092\u3001\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u5fc3\u304c\u307b\u3068\u3093\u3069\u52d5\u304b\u306a\u304f\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bd4\u55a9\u3067\u8a00\u3048\u3070\u3001\u65b0\u5b66\u671f\u306b\u300c\u306a\u3093\u3068\u306a\u304f\u8fd1\u304f\u306b\u3044\u308b\u4eba\u540c\u58eb\u300d\u3067\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308a\u3001\u3044\u3063\u305f\u3093\u5404\u30b0\u30eb\u30fc\u30d7\u306e\u771f\u3093\u4e2d\u306b\u7acb\u3063\u3066\u307f\u3066\u3001\u300c\u81ea\u5206\u306e\u4e00\u756a\u8fd1\u304f\u306b\u3044\u308b\u4e2d\u5fc3\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u79fb\u52d5\u3057\u3066\u3044\u3044\u3088\u300d\u3068\u3082\u3046\u4e00\u5ea6\u58f0\u3092\u304b\u3051\u76f4\u3059\u3001\u3068\u3044\u3046\u4f5c\u696d\u3092\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3057\u3066\u843d\u3061\u7740\u304b\u305b\u3066\u3044\u304f\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308b\u3002\u6700\u521d\u306f\u30d0\u30e9\u30d0\u30e9\u3060\u3063\u305f\u7acb\u3061\u4f4d\u7f6e\u3082\u3001\u7e70\u308a\u8fd4\u3059\u3046\u3061\u306b\u81ea\u7136\u3068\u300c\u8fd1\u3044\u8005\u540c\u58eb\u300d\u306e\u307e\u3068\u307e\u308a\u306b\u53ce\u675f\u3057\u3066\u3044\u304f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306b\u306f\u3042\u3089\u304b\u3058\u3081\u300c\u30b0\u30eb\u30fc\u30d7\u3092\u3044\u304f\u3064\u4f5c\u308b\u304b\uff08k\uff09\u300d\u3092\u81ea\u5206\u3067\u6c7a\u3081\u3066\u6559\u3048\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3053\u3053\u3067\u591a\u304f\u306e\u521d\u5b66\u8005\u304c\u60a9\u3080\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u30af\u30e9\u30b9\u30bf\u6570k\u306e\u6c7a\u3081\u65b9\u2460\uff1a\u30a8\u30eb\u30dc\u30fc\u6cd5\uff08\u8098\u3067\u898b\u308b\u65b9\u6cd5\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30af\u30e9\u30b9\u30bf\u6570\u3092\u5897\u3084\u305b\u3070\u5897\u3084\u3059\u307b\u3069\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u306e\u300c\u307e\u3068\u307e\u308a\u306e\u826f\u3055\u300d\uff08\u30af\u30e9\u30b9\u30bf\u5185\u306e\u5206\u6563\u306e\u5408\u8a08\u3001WCSS\uff1aWithin-Cluster Sum of Squares\u3002\u5404\u30c7\u30fc\u30bf\u70b9\u304c\u81ea\u5206\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u5fc3\u304b\u3089\u3069\u308c\u3060\u3051\u96e2\u308c\u3066\u3044\u308b\u304b\u3092\u3001\u5168\u30c7\u30fc\u30bf\u5206\u8db3\u3057\u5408\u308f\u305b\u305f\u3082\u306e\u3067\u3001\u5024\u304c\u5c0f\u3055\u3044\u307b\u3069\u5404\u30b0\u30eb\u30fc\u30d7\u304c\u304e\u3085\u3063\u3068\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\uff09\u306f\u3069\u3093\u3069\u3093\u6539\u5584\u3057\u3066\u3044\u304f\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u6539\u5584\u52b9\u679c\u306f\u3001\u3042\u308b\u3068\u3053\u308d\u304b\u3089\u6025\u306b\u920d\u304f\u306a\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f\u3001\u30c0\u30a4\u30a8\u30c3\u30c8\u306e\u4f53\u91cd\u6e1b\u5c11\u30ab\u30fc\u30d6\u306b\u4f3c\u3066\u3044\u308b\u3002\u6700\u521d\u306e1\u9031\u9593\u306f\u9762\u767d\u3044\u3088\u3046\u306b\u4f53\u91cd\u304c\u843d\u3061\u308b\u304c\u3001\u9014\u4e2d\u304b\u3089\u306f\u540c\u3058\u52aa\u529b\u3092\u3057\u3066\u3082\u306a\u304b\u306a\u304b\u6e1b\u3089\u306a\u304f\u306a\u308b\u3002\u3053\u306e\u300c\u52b9\u679c\u304c\u6025\u306b\u920d\u304f\u306a\u308b\u5730\u70b9\u300d\u3053\u305d\u304c\u3001\u3061\u3087\u3046\u3069\u3044\u3044\u843d\u3068\u3057\u3069\u3053\u308d\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">k\u3092\u6a2a\u8ef8\u306b\u3001WCSS\u3092\u7e26\u8ef8\u306b\u3068\u3063\u3066\u30b0\u30e9\u30d5\u3092\u63cf\u304f\u3068\u3001\u6700\u521d\u306f\u53f3\u80a9\u4e0b\u304c\u308a\u306b\u6025\u964d\u4e0b\u3057\u3001\u3042\u308b\u3068\u3053\u308d\u304b\u3089\u50be\u304d\u304c\u7de9\u3084\u304b\u306b\u306a\u308b\u3002\u305d\u306e\u30ab\u30fc\u30d6\u306e\u6298\u308c\u66f2\u304c\u308a\uff08\u8098\uff1d\u30a8\u30eb\u30dc\u30fc\uff09\u306b\u5f53\u305f\u308bk\u3092\u3001\u76ee\u5b89\u3068\u3057\u3066\u63a1\u7528\u3059\u308b\u306e\u304c\u30a8\u30eb\u30dc\u30fc\u6cd5\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u203b\u30b3\u30e9\u30e0\uff1a\u30a8\u30eb\u30dc\u30fc\u6cd5\u306f\u300c\u76ee\u5206\u91cf\u300d\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30eb\u30dc\u30fc\u6cd5\u306f\u76f4\u611f\u7684\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u4e00\u65b9\u3001\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u3067\u306f\u8098\u304c\u306f\u3063\u304d\u308a\u51fa\u306a\u3044\u3053\u3068\u3082\u591a\u304f\u3001\u3069\u3053\u3067\u6298\u308c\u66f2\u304c\u3063\u3066\u3044\u308b\u304b\u306e\u5224\u65ad\u304c\u4eba\u306b\u3088\u3063\u3066\u30d6\u30ec\u3084\u3059\u3044\u3068\u3044\u3046\u5f31\u70b9\u304c\u3042\u308b\u30022023\u5e74\u306b\u767a\u8868\u3055\u308c\u305f\u8ad6\u6587\u3067\u306f\u3001\u3053\u306e\u300c\u76ee\u8996\u306b\u3088\u308b\u8098\u306e\u5224\u65ad\u300d\u306b\u7406\u8ad6\u7684\u306a\u88cf\u4ed8\u3051\u304c\u4e4f\u3057\u3044\u3053\u3068\u304c\u6307\u6458\u3055\u308c\u3066\u3044\u308b\u3002\u30a8\u30eb\u30dc\u30fc\u6cd5\u306f\u3042\u304f\u307e\u3067\u6700\u521d\u306e\u3068\u3063\u304b\u304b\u308a\u3068\u3057\u3066\u4f7f\u3044\u3001\u6b21\u306b\u7d39\u4ecb\u3059\u308b\u65b9\u6cd5\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5224\u65ad\u3059\u308b\u306e\u304c\u5b89\u5168\u3067\u3042\u308b\u3002<\/p>\n<\/blockquote>\n\n\n\n<div id=\"biost-588160997\" class=\"biost- biost-entity-placement\"><p style=\"text-align: center;\"><span style=\"font-size: 20px;\"><strong><a href=\"https:\/\/best-biostatistics.com\/kmhl\">\uff1e\uff1e\u3082\u3046\u7d71\u8a08\u3067\u60a9\u3080\u306e\u306f\u7d42\u308f\u308a\u306b\u3057\u307e\u305b\u3093\u304b\uff1f\u00a0<\/a><\/strong><\/span><\/p>\r\n<a href=\"https:\/\/best-biostatistics.com\/kmhl\"><img class=\"aligncenter wp-image-2794 size-full\" src=\"https:\/\/best-biostatistics.com\/wp\/wp-content\/uploads\/2023\/11\/bn_r_03.png\" alt=\"\" width=\"500\" height=\"327\" \/><\/a>\r\n<p style=\"text-align: center;\"><span style=\"color: #ff0000; font-size: 20px;\"><strong><span class=\"marker2\">\u21911\u4e07\u4eba\u4ee5\u4e0a\u306e\u533b\u7642\u5f93\u4e8b\u8005\u304c\u8cfc\u8aad\u4e2d<\/span><\/strong><\/span><\/p><\/div><h2 class=\"wp-block-heading\">3. \u30af\u30e9\u30b9\u30bf\u6570k\u306e\u6c7a\u3081\u65b9\u2461\uff1a\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\uff08\u5c45\u5fc3\u5730\u306e\u826f\u3055\u3067\u6e2c\u308b\u65b9\u6cd5\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306f\u3001\u300c\u81ea\u5206\u304c\u4eca\u3044\u308b\u30b0\u30eb\u30fc\u30d7\u306e\u5c45\u5fc3\u5730\u306e\u826f\u3055\u300d\u3092\u6570\u5024\u5316\u3057\u305f\u6307\u6a19\u3060\u3068\u30a4\u30e1\u30fc\u30b8\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5177\u4f53\u7684\u306b\u306f\u3001\u5404\u30c7\u30fc\u30bf\u70b9\u306b\u3064\u3044\u3066\u300c\u540c\u3058\u30b0\u30eb\u30fc\u30d7\u306e\u30e1\u30f3\u30d0\u30fc\u3068\u306e\u8ddd\u96e2\uff08\u8fd1\u3044\u307b\u3069\u826f\u3044\uff09\u300d\u3068\u300c\u4e00\u756a\u8fd1\u3044\u5225\u30b0\u30eb\u30fc\u30d7\u306e\u30e1\u30f3\u30d0\u30fc\u3068\u306e\u8ddd\u96e2\uff08\u9060\u3044\u307b\u3069\u826f\u3044\uff09\u300d\u3092\u6bd4\u3079\u308b\u3002\u4eca\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u65b9\u304c\u660e\u3089\u304b\u306b\u5c45\u5fc3\u5730\u304c\u826f\u3051\u308c\u3070\u3001\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306f1\u306b\u8fd1\u3065\u304d\u3001\u9006\u306b\u96a3\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u65b9\u304c\u3057\u3063\u304f\u308a\u304f\u308b\u3088\u3046\u306a\u3089\u3001\u4fc2\u6570\u306f\u30de\u30a4\u30ca\u30b9\u306b\u8fd1\u3065\u304f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4fc2\u6570\u306e\u5e73\u5747\u5024\u304c\u6700\u3082\u9ad8\u304f\u306a\u308bk\u3092\u9078\u3076\u3001\u3068\u3044\u3046\u306e\u304c\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306b\u3088\u308b\u30af\u30e9\u30b9\u30bf\u6570\u306e\u6c7a\u3081\u65b9\u3067\u3042\u308b\u3002\u30a8\u30eb\u30dc\u30fc\u6cd5\u3068\u9055\u3044\u3001\u300c\u4e00\u756a\u826f\u3044\u30b9\u30b3\u30a2\u306ek\u300d\u3092\u6a5f\u68b0\u7684\u306b\u9078\u3079\u308b\u70b9\u304c\u6271\u3044\u3084\u3059\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u30af\u30e9\u30b9\u30bf\u6570k\u306e\u6c7a\u3081\u65b9\u2462\uff1a\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\uff08\u30c7\u30bf\u30e9\u30e1\u306a\u30c7\u30fc\u30bf\u3068\u6bd4\u3079\u308b\u65b9\u6cd5\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306f\u3001\u5c11\u3057\u5909\u308f\u3063\u305f\u767a\u60f3\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u3002\u300c\u672c\u5f53\u306b\u610f\u5473\u306e\u3042\u308b\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u304c\u3067\u304d\u3066\u3044\u308b\u304b\u300d\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u306b\u3001\u3042\u3048\u3066\u4f55\u306e\u69cb\u9020\u3082\u306a\u3044\u3001\u30c7\u30bf\u30e9\u30e1\u306b\u6563\u3089\u3070\u3063\u305f\u3060\u3051\u306e\u507d\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3001\u305d\u308c\u306b\u5bfe\u3057\u3066\u3082\u540c\u3058\u3088\u3046\u306bk-means\u6cd5\u3092\u304b\u3051\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u3046\u3048\u3067\u3001\u300c\u672c\u7269\u306e\u30c7\u30fc\u30bf\u306e\u307e\u3068\u307e\u308a\u5177\u5408\u300d\u3068\u300c\u30c7\u30bf\u30e9\u30e1\u306a\u30c7\u30fc\u30bf\u306e\u307e\u3068\u307e\u308a\u5177\u5408\u300d\u3092\u6bd4\u8f03\u3059\u308b\u3002\u672c\u7269\u306e\u30c7\u30fc\u30bf\u306e\u65b9\u304c\u30c7\u30bf\u30e9\u30e1\u306a\u30c7\u30fc\u30bf\u3088\u308a\u3082\u969b\u7acb\u3063\u3066\u307e\u3068\u307e\u308a\u304c\u826f\u3051\u308c\u3070\u3001\u305d\u308c\u306f\u300c\u672c\u5f53\u306b\u610f\u5473\u306e\u3042\u308b\u30af\u30e9\u30b9\u30bf\u69cb\u9020\u304c\u3042\u308b\u300d\u8a3c\u62e0\u3060\u3068\u8003\u3048\u3089\u308c\u308b\u3002\u3053\u306e\u307e\u3068\u307e\u308a\u306e\u5dee\uff08\u30ae\u30e3\u30c3\u30d7\uff09\u304c\u6700\u5927\u306b\u306a\u308bk\u3092\u63a1\u7528\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bd4\u55a9\u3067\u8a00\u3048\u3070\u3001\u300c\u81ea\u5206\u306e\u30af\u30e9\u30b9\u306e\u56e3\u7d50\u529b\u306f\u672c\u5f53\u306b\u5f37\u3044\u306e\u304b\u300d\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u306b\u3001\u3042\u3048\u3066\u5168\u304f\u7121\u95a2\u4fc2\u306a\u3069\u3053\u304b\u306e\u5bc4\u305b\u96c6\u3081\u30b0\u30eb\u30fc\u30d7\u3068\u6bd4\u8f03\u3057\u3066\u307f\u308b\u3001\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308b\u3002\u5dee\u304c\u306f\u3063\u304d\u308a\u3057\u3066\u3044\u308c\u3070\u3001\u305d\u308c\u306f\u5076\u7136\u3067\u306f\u306a\u304f\u672c\u7269\u306e\u307e\u3068\u307e\u308a\u3060\u3068\u8a00\u3048\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u3010\u5b9f\u8df5R\u30b3\u30fc\u30c9\u3011k-means\u6cd5\u3068\u30af\u30e9\u30b9\u30bf\u6570\u306e\u6c7a\u5b9a\u3092\u3084\u3063\u3066\u307f\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>factoextra<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e<code>fviz_nbclust()<\/code>\u95a2\u6570\u3092\u4f7f\u3046\u3068\u3001\u30a8\u30eb\u30dc\u30fc\u6cd5\u30fb\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u30fb\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306e\u3044\u305a\u308c\u3082\u3001\u540c\u3058\u66f8\u304d\u65b9\u3067\u30b0\u30e9\u30d5\u5316\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1\uff1a\u7591\u4f3c\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\u3068\u6a19\u6e96\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>library(tidyverse)\nlibrary(factoextra)\nlibrary(cluster)\n\n# \u4e71\u6570\u30b7\u30fc\u30c9\u306e\u8a2d\u5b9a\nset.seed(123)\n\n# \u7591\u4f3c\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\uff082\u3064\u306e\u91cf\u7684\u5909\u6570\u3092\u6301\u3064\u30013\u3064\u306e\u584a\u304c\u3042\u308b\u30c7\u30fc\u30bf\uff09\ndf &lt;- tibble(\n  x = c(rnorm(50, mean = 0, sd = 1), rnorm(50, mean = 5, sd = 1), rnorm(50, mean = 2.5, sd = 1)),\n  y = c(rnorm(50, mean = 0, sd = 1), rnorm(50, mean = 5, sd = 1), rnorm(50, mean = 6, sd = 1))\n)\n\n# k-means\u6cd5\u306f\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u8ddd\u96e2\u306b\u57fa\u3065\u304f\u305f\u3081\u3001\u5909\u6570\u306e\u5358\u4f4d\u30fb\u30b9\u30b1\u30fc\u30eb\u3092\u63c3\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\n# \uff08\u4f53\u91cdkg\u3068\u8eab\u9577cm\u306e\u3088\u3046\u306b\u5358\u4f4d\u304c\u9055\u3046\u5909\u6570\u3092\u6df7\u305c\u308b\u3068\u3001\u5024\u306e\u5927\u304d\u3044\u5909\u6570\u306b\u7d50\u679c\u304c\u5f15\u3063\u5f35\u3089\u308c\u3066\u3057\u307e\u3046\uff09\ndf_scaled &lt;- scale(df)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2\uff1a\u30a8\u30eb\u30dc\u30fc\u6cd5\u3067\u30b0\u30e9\u30d5\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>fviz_nbclust(df_scaled, kmeans, method = \"wss\") +\n  labs(title = \"Elbow method for optimal number of clusters\")\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"483\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-14.png\" alt=\"\" class=\"wp-image-4821\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-14.png 575w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-14-300x252.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3\uff1a\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u3067\u30b0\u30e9\u30d5\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>fviz_nbclust(df_scaled, kmeans, method = \"silhouette\") +\n  labs(title = \"Silhouette method for optimal number of clusters\")\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"483\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-15.png\" alt=\"\" class=\"wp-image-4822\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-15.png 575w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-15-300x252.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4\uff1a\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u3067\u30b0\u30e9\u30d5\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>fviz_nbclust(df_scaled, kmeans, method = \"gap_stat\", nboot = 50) +\n  labs(title = \"Gap statistic method for optimal number of clusters\")\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"483\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-16.png\" alt=\"\" class=\"wp-image-4823\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-16.png 575w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-16-300x252.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5\uff1a\u6c7a\u5b9a\u3057\u305fk\u3067k-means\u6cd5\u3092\u5b9f\u884c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u4e0a\u8a18\u306e3\u3064\u306e\u30b0\u30e9\u30d5\u3092\u63cf\u3044\u3066\u307f\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u7d50\u679c\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30a8\u30eb\u30dc\u30fc\u6cd5<\/strong>\uff1ak=1\u21923\u306b\u304b\u3051\u3066\u6025\u964d\u4e0b\u3057\u3001k=3\u4ee5\u964d\u306f\u50be\u304d\u304c\u7de9\u3084\u304b\u306b\u306a\u308b\u3002\u8098\u306fk=3\u4ed8\u8fd1\u306b\u3042\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570<\/strong>\uff1a\u5e73\u5747\u30b7\u30eb\u30a8\u30c3\u30c8\u5e45\u306fk=2\u3067\u6700\u5927\uff08\u7d040.65\uff09\u3068\u306a\u308a\u3001k=3\uff08\u7d040.6\uff09\u3088\u308a\u3082\u9ad8\u3044\u3002factoextra\u304c\u81ea\u52d5\u3067\u30de\u30fc\u30af\u3059\u308b\u6700\u9069\u70b9\u3082k=2\u3092\u6307\u3057\u3066\u3044\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf<\/strong>\uff1ak=3\u3067\u660e\u78ba\u306a\u30d4\u30fc\u30af\u3092\u8fce\u3048\u3066\u304a\u308a\u3001\u6700\u9069\u70b9\u3082k=3\u3092\u6307\u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u307e\u308a\u30013\u3064\u306e\u65b9\u6cd5\u304c\u5b8c\u5168\u306b\u4e00\u81f4\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001<strong>\u30a8\u30eb\u30dc\u30fc\u6cd5\u3068\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306fk=3\u3092\u652f\u6301\u3057\u3001\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u3060\u3051\u306fk=2\u3092\u6700\u826f\u3068\u5224\u5b9a\u3057\u3066\u3044\u308b<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306a\u98df\u3044\u9055\u3044\u304c\u8d77\u304d\u305f\u7406\u7531\u306f\u3001\u7591\u4f3c\u30c7\u30fc\u30bf\u306e\u4f5c\u308a\u65b9\u306b\u96a0\u308c\u3066\u3044\u308b\u30023\u3064\u306e\u584a\u306e\u4e2d\u5fc3\u306f<code>(0,0)<\/code>\u30fb<code>(5,5)<\/code>\u30fb<code>(2.5,6)<\/code>\u3067\u3042\u308a\u3001\u5f8c\u80052\u3064\u306e\u4e2d\u5fc3\u9593\u306e\u8ddd\u96e2\u306f\u30011\u3064\u76ee\u306e\u584a\u3068\u306e\u8ddd\u96e2\u306b\u6bd4\u3079\u3066\u304b\u306a\u308a\u8fd1\u3044\u3002\u305d\u306e\u305f\u3081\u3001\u96a3\u63a5\u30af\u30e9\u30b9\u30bf\u3068\u306e\u8fd1\u3055\u306b\u654f\u611f\u306a\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306f\u3001\u3053\u306e2\u3064\u306e\u584a\u3092\u307e\u3068\u3081\u3066\u300c\u5927\u304d\u306a2\u3064\u306e\u30b0\u30eb\u30fc\u30d7\u300d\u3068\u8a55\u4fa1\u3057\u304c\u3061\u306b\u306a\u308b\u4e00\u65b9\u3001\u30a8\u30eb\u30dc\u30fc\u6cd5\u3084\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306f3\u3064\u3068\u3044\u3046\u7d30\u304b\u3044\u69cb\u9020\u3092\u691c\u51fa\u3067\u304d\u3066\u3044\u308b\u3001\u3068\u8003\u3048\u3089\u308c\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b<strong>1\u3064\u306e\u65b9\u6cd5\u3060\u3051\u3067\u306f\u5224\u65ad\u304c\u5272\u308c\u308b\u3053\u3068\u304c\u3042\u308b<\/strong>\u304b\u3089\u3053\u305d\u3001\u8907\u6570\u306e\u65b9\u6cd5\u3092\u7a81\u304d\u5408\u308f\u305b\u308b\u3053\u3068\u306b\u610f\u5473\u304c\u3042\u308b\u3002\u4eca\u56de\u306f\u30013\u624b\u6cd5\u306e\u3046\u30612\u624b\u6cd5\uff08\u30a8\u30eb\u30dc\u30fc\u6cd5\u30fb\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\uff09\u304ck=3\u3092\u652f\u6301\u3057\u3066\u3044\u308b\u3053\u3068\u3001\u307e\u305f\u7591\u4f3c\u30c7\u30fc\u30bf\u304c\u3082\u3068\u3082\u30683\u3064\u306e\u584a\u3068\u3057\u3066\u4f5c\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u8e0f\u307e\u3048\u3001\u6700\u7d42\u7684\u306bk=3\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u3068\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># nstart = 25\uff1a\u521d\u671f\u306e\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3092\u30e9\u30f3\u30c0\u30e0\u306b25\u30d1\u30bf\u30fc\u30f3\u8a66\u3057\u3001\n# \u6700\u3082\u307e\u3068\u307e\u308a\u306e\u826f\u3044\u7d50\u679c\u3092\u63a1\u7528\u3059\u308b\uff08\u6700\u521d\u306e\u7acb\u3061\u4f4d\u7f6e\u306e\u904b\u306b\u5de6\u53f3\u3055\u308c\u306b\u304f\u304f\u3059\u308b\uff09\nres_km &lt;- kmeans(df_scaled, centers = 3, nstart = 25)\n\n# \u7d50\u679c\u306e\u53ef\u8996\u5316\nfviz_cluster(res_km, data = df_scaled, geom = \"point\", ellipse.type = \"convex\")\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"483\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-17.png\" alt=\"\" class=\"wp-image-4824\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-17.png 575w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-17-300x252.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u8ad6\u6587\u3067\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u82f1\u6587\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08Methods &amp; Results\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Methods \u30bb\u30af\u30b7\u30e7\u30f3\u82f1\u6587\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u201cK-means clustering was performed after standardizing all variables. The optimal number of clusters was assessed using the elbow method, silhouette analysis, and the gap statistic, with the number of random starts set to 25 (nstart = 25) to reduce sensitivity to initial centroid selection.\u201d<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Results \u30bb\u30af\u30b7\u30e7\u30f3\u82f1\u6587\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u201cThe elbow method and the gap statistic both indicated three clusters, whereas silhouette analysis indicated two clusters as the optimal solution. Given that two of the three methods converged on three clusters, k-means clustering with k = 3 was performed, yielding clusters that differed significantly in baseline characteristics.\u201d<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08\u4e0a\u8a18\u306e\u30af\u30e9\u30b9\u30bf\u6570\u7b49\u306e\u6570\u5024\u306f\u3042\u304f\u307e\u3067\u8a18\u8ff0\u4f8b\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u89e3\u6790\u7d50\u679c\u306b\u7f6e\u304d\u63db\u3048\u3066\u4f7f\u7528\u3055\u308c\u305f\u3044\u3002\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u307e\u3068\u3081\uff06\u4e00\u62ec\u30b3\u30d4\u30da\u7528R\u30b9\u30af\u30ea\u30d7\u30c8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8\u304a\u3055\u3089\u3044<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>k-means\u6cd5\u306f\u300c\u5272\u308a\u5f53\u3066\u300d\u3068\u300c\u91cd\u5fc3\u306e\u5f15\u3063\u8d8a\u3057\u300d\u3092\u7e70\u308a\u8fd4\u3059\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u624b\u6cd5<\/strong>\uff1a\u30b0\u30eb\u30fc\u30d7\u6570k\u3060\u3051\u306f\u3001\u3042\u3089\u304b\u3058\u3081\u81ea\u5206\u3067\u6c7a\u3081\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30a8\u30eb\u30dc\u30fc\u6cd5\u306f\u76f4\u611f\u7684\u3060\u304c\u3001\u8098\u306e\u5224\u65ad\u304c\u76ee\u5206\u91cf\u306b\u306a\u308a\u304c\u3061<\/strong>\uff1a\u307e\u305a\u8a66\u3059\u306b\u306f\u826f\u3044\u304c\u3001\u3053\u308c\u3060\u3051\u3067\u6c7a\u3081\u5207\u3089\u306a\u3044\u65b9\u304c\u3088\u3044\u3002<\/li>\n\n\n\n<li><strong>\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306f\u300c\u5c45\u5fc3\u5730\u306e\u826f\u3055\u300d\u3092\u6570\u5024\u5316\u3057\u305f\u6307\u6a19<\/strong>\uff1a\u30b9\u30b3\u30a2\u304c\u6700\u3082\u9ad8\u3044k\u3092\u6a5f\u68b0\u7684\u306b\u9078\u3079\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306f\u300c\u30c7\u30bf\u30e9\u30e1\u306a\u30c7\u30fc\u30bf\u300d\u3068\u6bd4\u8f03\u3057\u3066\u30af\u30e9\u30b9\u30bf\u69cb\u9020\u306e\u59a5\u5f53\u6027\u3092\u78ba\u304b\u3081\u308b\u65b9\u6cd5<\/strong>\uff1a\u6a5f\u68b0\u7684\u306b\u6700\u9069\u306ak\u3092\u7b97\u51fa\u3067\u304d\u308b\u3002<\/li>\n\n\n\n<li><strong>1\u3064\u306e\u65b9\u6cd5\u3092\u5984\u4fe1\u305b\u305a\u3001\u8907\u6570\u306e\u65b9\u6cd5\u3092\u7a81\u304d\u5408\u308f\u305b\u3066\u7dcf\u5408\u7684\u306b\u5224\u65ad\u3059\u308b\u306e\u304c\u5b89\u5168<\/strong>\uff1a\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3001\u30a8\u30eb\u30dc\u30fc\u6cd5\u3068\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\u306fk=3\u3092\u3001\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u306fk=2\u3092\u793a\u3059\u3068\u3044\u3046\u98df\u3044\u9055\u3044\u304c\u5b9f\u969b\u306b\u8d77\u304d\u305f\u3002\u3053\u3046\u3057\u305f\u3068\u304d\u306f\u3001\u591a\u6570\u6c7a\u3084\u3001\u30c7\u30fc\u30bf\u306e\u80cc\u666f\u77e5\u8b58\u3082\u8e0f\u307e\u3048\u3066\u6700\u7d42\u5224\u65ad\u3092\u4e0b\u3059\u3053\u3068\u306b\u306a\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u62ec\u5b9f\u884c\u7528R\u30b9\u30af\u30ea\u30d7\u30c8<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># ==============================================================================\n# k-means\u6cd5\u3068\u30af\u30e9\u30b9\u30bf\u6570\u6c7a\u5b9a\uff08\u30a8\u30eb\u30dc\u30fc\u6cd5\u30fb\u30b7\u30eb\u30a8\u30c3\u30c8\u4fc2\u6570\u30fb\u30ae\u30e3\u30c3\u30d7\u7d71\u8a08\u91cf\uff09\n# \u4e00\u62ec\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\n# \u30d1\u30c3\u30b1\u30fc\u30b8: tidyverse, factoextra, cluster\n# ==============================================================================\n\nlibrary(tidyverse)\nlibrary(factoextra)\nlibrary(cluster)\n\n# 1. \u7591\u4f3c\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\u3068\u6a19\u6e96\u5316\nset.seed(123)\ndf &lt;- tibble(\n  x = c(rnorm(50, mean = 0, sd = 1), rnorm(50, mean = 5, sd = 1), rnorm(50, mean = 2.5, sd = 1)),\n  y = c(rnorm(50, mean = 0, sd = 1), rnorm(50, mean = 5, sd = 1), rnorm(50, mean = 6, sd = 1))\n)\ndf_scaled &lt;- scale(df)\n\n# 2. \u30af\u30e9\u30b9\u30bf\u6570\u306e\u76ee\u5b89\u30923\u3064\u306e\u65b9\u6cd5\u3067\u78ba\u8a8d\np_wss &lt;- fviz_nbclust(df_scaled, kmeans, method = \"wss\") +\n  labs(title = \"Elbow method for optimal number of clusters\")\np_sil &lt;- fviz_nbclust(df_scaled, kmeans, method = \"silhouette\") +\n  labs(title = \"Silhouette method for optimal number of clusters\")\np_gap &lt;- fviz_nbclust(df_scaled, kmeans, method = \"gap_stat\", nboot = 50) +\n  labs(title = \"Gap statistic method for optimal number of clusters\")\n\nprint(p_wss)\nprint(p_sil)\nprint(p_gap)\n\n# 3. \u6c7a\u5b9a\u3057\u305f\u30af\u30e9\u30b9\u30bf\u6570\u3067k-means\u6cd5\u3092\u5b9f\u884c\nres_km &lt;- kmeans(df_scaled, centers = 3, nstart = 25)\n\n# 4. \u7d50\u679c\u306e\u53ef\u8996\u5316\np_cluster &lt;- fviz_cluster(res_km, data = df_scaled, geom = \"point\", ellipse.type = \"convex\")\nprint(p_cluster)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003\u6587\u732e<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/dl.acm.org\/doi\/10.1145\/3606274.3606278\">Schubert E. Stop using the elbow criterion for k-means and how to choose the number of clusters instead. <em>ACM SIGKDD Explorations Newsletter<\/em>. 2023;25(1):36\u201342. doi:10.1145\/3606274.3606278<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u3059\u3059\u3081\u66f8\u7c4d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/amzn.to\/4jhMiYw\">R\u3067\u5b66\u3076\u30af\u30e9\u30b9\u30bf\u89e3\u6790<\/a>\uff08\u65b0\u7d0d\u6d69\u5e78 \u8457\uff09\uff1ak-means\u6cd5\u3084\u968e\u5c64\u7684\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u306a\u3069\u306e\u57fa\u672c\u624b\u6cd5\u3092\u3001R\u3067\u306e\u5b9f\u88c5\u4f8b\u3068\u3068\u3082\u306b\u89e3\u8aac\u3057\u3066\u304a\u308a\u3001\u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u3068\u3082\u4e00\u8cab\u6027\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300ck-means\u6cd5\u306e\u4f7f\u3044\u65b9\u306f\u5206\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30af\u30e9\u30b9\u30bf\u6570\uff08k\uff09\u3092\u3044\u304f\u3064\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u305a\u3001\u3068\u308a\u3042\u3048\u305a3\u306b\u3057\u3066\u3044\u307e\u3059\u2026\u2026\u300d k-means\u6cd5\u3092\u5b66\u3073\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u4eba\u304b\u3089\u3001\u3053\u3046\u3044\u3046\u76f8\u8ac7\u3092\u3088\u304f\u53d7\u3051\u308b\u3002\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u81ea\u4f53\u306f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[107],"tags":[],"class_list":["post-4820","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-107"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2026\/09\/image-16.png","_links":{"self":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/4820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/comments?post=4820"}],"version-history":[{"count":1,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/4820\/revisions"}],"predecessor-version":[{"id":4825,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/4820\/revisions\/4825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media\/4823"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=4820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=4820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=4820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}