VerifiedEvidence: highv1.0.0

Cluster Analysis

A statistical technique grouping individuals into subsets, called clusters, so members within a cluster are more similar to each other than to outsiders.

Last reviewedDarrin Baines IP Ltd

Concept Architecture

Concept


Theoretically, Cluster Analysis is an unsupervised multivariate method used to partition observations into groups whose members are more similar to one another than to observations in other groups. It is founded on measures of similarity, dissimilarity and within-group homogeneity rather than a predefined outcome variable. The concept exists to identify latent structure, population segments or patterns within multidimensional data when group membership is not known in advance.

Mathematically, cluster analysis is represented through an optimisation rule, distance measure or probabilistic model that assigns observations to clusters. Different clustering frameworks use different mathematical representations. Partitioning methods such as k-means minimise within-cluster variation, hierarchical methods iteratively combine or separate clusters according to linkage criteria, and model-based methods estimate membership from finite mixture distributions.

In practice, variables are selected, scaled and assessed for suitability before a clustering algorithm is applied. The number and stability of clusters may be evaluated using measures such as the silhouette coefficient, within-cluster sum of squares, gap statistic or information criteria. In health economics, cluster analysis is used to identify patient subgroups, classify healthcare providers, segment patterns of service use and distinguish groups with different costs, outcomes or treatment pathways.

Purpose


Used to identify internally homogeneous and externally distinct groups within multivariate health data, supporting population segmentation, resource-use analysis, patient profiling and the development of subgroup-specific economic models.

Mathematical Formulae

Primary Formula

There is no universally recognised canonical mathematical formula.

Supporting Formulae

K-means objective function:

J = ????? ????C? ?x? ? ???�

Cluster centroid:

?? = (1 / n?) ? ????C? x?

Euclidean distance:

d(x?, x?) = �[?????(x?? ? x??)�]

Silhouette coefficient for observation i:

s(i) = [b(i) ? a(i)] / max[a(i), b(i)]

where a(i) is the mean distance between observation i and other observations in its assigned cluster, and b(i) is the minimum mean distance between observation i and observations in another cluster.

Total within-cluster sum of squares:

WCSS = ????? ????C? ?x? ? ???�

Related Mathematical Methods

  • K-Means Clustering
  • Hierarchical Clustering
  • Agglomerative Clustering
  • Ward?s Method
  • Finite Mixture Models
  • Latent Class Analysis
  • Gaussian Mixture Models
  • Principal Component Analysis
  • Silhouette Analysis
  • Gap Statistic

Example

A health economist analyses annual healthcare use among 600 patients using four standardised variables: inpatient admissions, outpatient visits, emergency department attendances and total healthcare cost. A k-means analysis with k = 3 identifies the following clusters:

  • Cluster 1: low service use and mean annual cost of �1,200
  • Cluster 2: high outpatient use and mean annual cost of �4,800
  • Cluster 3: frequent emergency and inpatient use with mean annual cost of �15,600

For a patient with standardised values x = (1.2, 0.4, 1.5, 1.3) and a candidate cluster centroid ? = (1.0, 0.5, 1.4, 1.1), the Euclidean distance is:

d(x, ?) = �[(1.2 ? 1.0)� + (0.4 ? 0.5)� + (1.5 ? 1.4)� + (1.3 ? 1.1)�]

d(x, ?) = �(0.04 + 0.01 + 0.01 + 0.04)

d(x, ?) = �0.10 = 0.316

The patient is assigned to the cluster with the smallest distance between the patient?s standardised profile and the corresponding cluster centroid. The resulting segments may be used to estimate subgroup-specific costs, outcomes and intervention effects.


Excel Implementation

FunctionExample FormulaHealth Economics Application
STANDARDIZE=STANDARDIZE(B2,AVERAGE(B$2:B$601),STDEV.S(B$2:B$601))Standardises healthcare utilisation and cost variables before clustering.
SQRT=SQRT(SUMXMY2(B2:E2,$H$2:$K$2))Calculates the Euclidean distance between a patient profile and a cluster centroid.
SUMXMY2=SUMXMY2(B2:E2,$H$2:$K$2)Calculates the squared distance used in k-means clustering.
MIN=MIN(L2:N2)Identifies the smallest distance across candidate clusters.
MATCH=MATCH(MIN(L2:N2),L2:N2,0)Assigns an observation to the nearest cluster.
AVERAGEIF=AVERAGEIF($O$2:$O$601,H$1,B$2:B$601)Recalculates a cluster centroid for a selected variable.
SUMPRODUCT=SUMPRODUCT((O2:O601=H1)*(L2:L601^2))Calculates the within-cluster sum of squared distances.

VBA (Optional)

Automate iterative k-means clustering by repeatedly assigning observations to the nearest centroid and recalculating cluster centroids until assignments stabilise.


Sources

  • Everitt BS, Landau S, Leese M, Stahl D. Cluster Analysis.
  • Kaufman L, Rousseeuw PJ. Finding Groups in Data: An Introduction to Cluster Analysis.
  • MacQueen J. Some Methods for Classification and Analysis of Multivariate Observations.
  • Ward JH. Hierarchical Grouping to Optimise an Objective Function.
  • Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation.
  • NICE. Health Technology Evaluation Manual.

Library

Publications

1
  • Book

    Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)

    A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.

Frequently Asked Questions (6)

  • What is cluster analysis?

    A statistical technique grouping individuals into subsets, called clusters, so members within a cluster are more similar to each other than to outsiders.

    Source: Everitt et al. 2011

  • What does cluster analysis discover in a dataset?

    Cluster analysis discovers natural groupings in data, sorting individuals into subsets whose members resemble one another more than they resemble those in other subsets. Unlike classification, it works without predefined categories, letting the structure emerge from the similarities among the observations themselves. In health research it can reveal patient subtypes, patterns of symptoms, or groups of similar diseases that were not specified in advance. Finding hidden groupings in data is its purpose. Hastie and colleagues (2009) describe this technique.

    Source: Hastie et al. 2009

  • How does cluster analysis work?

    Cluster analysis works by measuring the similarity or distance between observations based on their characteristics, then grouping them so that similar observations fall in the same cluster and dissimilar ones in different clusters. Various algorithms exist, such as hierarchical methods that build nested clusters and partitioning methods that divide data into a set number of clusters. So cluster analysis works by quantifying similarity and applying an algorithm to form groups that are internally similar and externally distinct, with the choice of distance measure and algorithm shaping the resulting clusters, which are then examined to interpret the structure they reveal in the data.

    Source: Everitt et al. 2011

  • What are the main types of cluster analysis?

    The main types of cluster analysis include hierarchical clustering, which builds a tree of nested clusters by successively merging or splitting groups; partitioning methods, such as k-means, which divide the data into a specified number of clusters; and model-based and density-based approaches. Each makes different assumptions and suits different data. So cluster analysis encompasses several families of methods, chiefly hierarchical and partitioning approaches, which differ in how they form clusters and in whether the number of clusters is set in advance, and the choice depends on the data, the goals, and assumptions about the structure being sought.

    Source: Everitt et al. 2011

  • What are the challenges of cluster analysis?

    The challenges of cluster analysis include that it will produce clusters even when no meaningful grouping exists, so results can be spurious; that the number of clusters often must be chosen and is not obvious; that different distance measures and algorithms can give different clusters; and that interpreting and validating clusters is difficult. So cluster analysis is applied and interpreted with caution, since its results depend heavily on methodological choices and can impose structure that is not real, which is why the stability and meaningfulness of clusters are assessed, and findings are treated as exploratory unless supported by further evidence.

    Source: Everitt et al. 2011

  • How is cluster analysis used in health research?

    Cluster analysis is used in health research to identify subgroups of patients with similar characteristics or profiles, such as disease subtypes, symptom patterns, or risk groups, which can inform understanding, classification, and tailored care. It is also used to group other units, such as areas or providers. So cluster analysis is used in health research to discover meaningful subgroups within heterogeneous populations, supporting the identification of phenotypes or segments that may differ in prognosis or response, though its exploratory nature means the resulting groupings require validation before they are relied upon for classification or decisions.

    Source: Everitt et al. 2011

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 12 Dec 2025

Content version: 1.0.0

Canonical Identity

Term code
HE-ES-SA-026

Stable URI · Machine-readable · Resolvable · CC BY 4.0