ds@mcpanalytics.aiEmail your data and your question and get an answer about your own data, with the method shown.Email your data and question. Get an answer.

See Your Data's Family Tree No Guessing k

Upload a CSV, pick your numeric columns and an ID column, and agglomerative clustering builds the full tree. The data shows where it naturally cuts, and every segment comes back sized, profiled, and illustrated with named rows. Free.

We email you the report link.

Free up to 10,000 rows. Encrypted in transit.

📊
-
Rows
-
Columns
-
Numeric

Running hierarchical clustering (segments with a family tree) analysis...

Growing your data's cluster tree...

✓

Sent to . Inside: merge-height scree, silhouette-chosen cluster count, z-score segment profiles, a 2-D segment map, named example members, R code, and AI insights.

Sample report

Open the full sample →

View all case studies → See all free tools →
Why an analysis, not a chat answer

Ask twice, get two answers? Watch how we fix that.

The method, in full

The practical guide behind this tool: when it applies, how to read the output, and the traps that make it say the wrong thing.

Read the guide →

How it works

The analysis standardizes your selected columns, computes euclidean distances, and builds the full agglomerative cluster tree under Ward.D2 linkage, merging the two closest groups over and over until one remains. Complete and average linkage trees are also built and all three are scored by cophenetic correlation (how faithfully each tree preserves the original distances); the best is reported, while the reported clusters are cut from the Ward.D2 tree for its compact, interpretable groups. The cut point is chosen by average silhouette width over every candidate k, cross-checked against the tree's own merge-height gaps, and each segment is profiled and illustrated with named example rows.

Use it when you suspect natural groups but don't want to pre-pick how many (the tree shows structure at every scale, including sub-segments nested inside segments) or when you want to see exactly how close any two groups are to each other.

Not for categorical-only data or very large tables (the distance matrix caps the analysis at a 1,500-row sample: use the k-means tool for bulk segmentation), and not when clusters are elongated or density-defined shapes.

Built for: Analysts, marketers, and researchers looking for natural segments and their nested structure in behavioral or performance data

Typical data source: Any spreadsheet or CSV with an ID/name column and several numeric columns describing each row

MarketingE-commerceSaaSFinanceOperationsResearch

What data do you need?

Any table where each row is a named entity described by numeric columns. For example, customer behavior metrics:

customer_id (text) monthly_spend (numeric) sessions_per_week (numeric) support_tickets (numeric) tenure_days (numeric)
CUST-0042 42.5 18.2 2 160
CUST-0117 148.2 5.1 9 705
CUST-0523 317.7 11.6 1 1480

Minimum 30 rows · Best with 100-1,500 rows and 2-12 numeric columns (larger tables run on a reproducible 1,500-row sample)

What's in the report?

Standard-library analysis: agglomerative hierarchical clustering on standardized features. Unlike k-means, the full cluster tree is built first, structure at every scale, and only then cut, with the number of segments chosen by average silhouette width and cross-checked against the tree's own merge-height gaps. Ward.D2 linkage for compact interpretable groups, three linkages compared by cophenetic correlation, profiles as a z-score heatmap, a 2-D map, and every segment illustrated with named example rows. Works on any dataset: map 2 or more numeric columns plus a label column.

🔵

Where the Tree Cuts

The dendrogram's scree, where merge heights jump, the tree was forced to weld distant groups together, marking the natural number of segments.

🔵

How Many Clusters?

The evidence for the chosen cut of the tree. A clear peak is evidence for a candidate segment count, not proof that the count is real; check it against what you know about your data.

🔵

Segment Map

All segments drawn on one 2-D map, visually distinct islands confirm the segmentation.

🟧

Segment Profiles

What defines each segment: its average on every feature in standard-deviation units, as a heatmap.

📋

Segment Sizes

Every segment sized and characterized, with real rows from your data named as examples.

🤖

AI Insights

Plain-English reading of the results and what to do next.

The Question This Answers

How many kinds of customers do I have, without guessing first?

Map your behavioral columns and a customer ID. The full cluster tree is built before any count is chosen, the merge-height scree shows where it naturally cuts, and every segment comes back sized, profiled in standard-deviation units, and illustrated with named example customers.

Questions?

See our FAQ for pricing, privacy and how the analysis works.

How to cite this tool

MCP Analytics. Hierarchical Clustering (Segments With a Family Tree). Free tool. https://mcpanalytics.ai/free/standard_hierarchical_clustering. Accessed [date you used it].

Your data has more stories to tell

Run it on your data

Sign up to save datasets and schedule runs

Powered by MCP Analytics

Your turn

Bring your own data and the question you actually need answered.

MCP AnalyticsData science by email Send us your data and your question, and we will reply. ds@mcpanalytics.ai