Home
cd ../playbooks
Data & ReportingIntermediate

Cohort & Segment Analysis

Perform cohort analysis and customer segmentation to identify behavioral patterns, retention trends, and high-value groups.

15 minutes
By communitySource
#cohort-analysis#segmentation#retention#customer-analytics#patterns

Your overall retention is 85% and everyone celebrates. But the January cohort retained at 92% while the March cohort retained at 71%. The averages hide the story — and without cohort analysis, you're optimizing for a number that doesn't represent any actual customer group.

Who it's for: product analysts measuring feature adoption by user cohort, growth teams optimizing onboarding for different customer segments, data analysts building retention cohort models, marketing teams identifying high-value customer segments, subscription businesses tracking cohort-level churn and expansion

Example

"Analyze retention by signup cohort for the past 6 months" → Cohort retention table with monthly breakdown, segment comparison (enterprise vs SMB vs self-serve), churn inflection points identified (Week 3 and Month 2), behavioral patterns distinguishing retained vs churned users, and targeted recommendations per segment

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Cohort & Segment Analysis

## Your Role
You are an expert customer analytics specialist. Your job is to reveal behavioral patterns through cohort analysis and segmentation.

## Core Principles
- Segment by behavior, not just demographics
- Recent cohorts reflect current product-market fit
- Identify "aha moments" that predict retention
- Compare acquisition channels by LTV, not just volume
- Every segment needs its own strategy

## Instructions
Produce: cohort retention curves, revenue by cohort, segment profiles, high-value group identification, at-risk patterns, and segment-specific recommendations.

## Commands
- "Cohort analysis by [dimension]" - Retention and revenue curves
- "Customer segmentation" - Behavioral clustering
- "High-value segments" - Best customer identification
- "Churn predictors by segment" - Early warning indicators

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Analyzes customer data by cohort (sign-up month, acquisition channel) and segments to reveal retention patterns, behavioral differences, and lifetime value trends that aggregate metrics hide.


Quick Start

Step 1: Download the Template

Click Download above to get the CLAUDE.md file.

Step 2: Prepare Customer Data

Export: customer list with sign-up dates, revenue, usage, and key attributes for segmentation.

Step 3: Start Using It

claude

Say: "Run a cohort analysis on this customer data. Group by sign-up month, show retention and revenue trends per cohort."


Analysis Output

Section Content
Cohort Retention Month-by-month retention curves per cohort
Revenue Cohorts Revenue per cohort over time
Segment Profiles Behavioral clusters with characteristics
High-Value Segments Groups with highest LTV and why
At-Risk Patterns Early indicators of churn by segment
Recommendations Segment-specific strategies

Tips

  • Recent cohorts tell you about current product-market fit: Improving retention = product is getting better
  • Look for "aha moments": What do high-retention cohorts do that low-retention ones don't?
  • Segment by behavior, not just demographics: Usage patterns predict outcomes better than company size
  • Compare acquisition channels: Which channels bring the highest-LTV customers?

Commands

"Run cohort analysis by sign-up month"
"Segment customers by usage pattern and compare retention"
"Which acquisition channel produces highest-LTV customers?"
"Identify early warning signs for churn in each segment"

Troubleshooting

Cohorts look too similar Try different dimensions: "Segment by plan type, company size, or first feature used"

Not enough data Say: "Use 6-month retention as proxy — we don't have enough data for 12-month cohorts yet"

Results are confusing Ask: "Summarize the single most important insight from this cohort analysis"

$Related Playbooks

Data & Reporting

Customer Feedback Synthesizer

Synthesize customer feedback from multiple channels into actionable themes, sentiment analysis, and product insights.

10 minutes
Beginner
Data & Reporting

Dashboard Narrative Generator

Transform dashboard data and KPI snapshots into compelling written narratives that explain the story behind the numbers.

5 minutes
Beginner
Data & Reporting

Data Cleanup & Formatting

Clean, standardize, and validate messy data files — fix formats, remove duplicates, and get analysis-ready datasets.

5 minutes
Beginner
Data & Reporting

Data Quality Assessment

Assess data quality across completeness, accuracy, consistency, and timeliness with remediation priorities.

10 minutes
Intermediate
Data & Reporting

Executive Summary Generator

Distill detailed reports into concise executive summaries with key findings, implications, and decision recommendations.

5 minutes
Beginner
Data & Reporting

KPI Variance Analysis & Commentary

Generate variance analysis commentary explaining why KPIs deviated from targets with root causes and corrective actions.

10 minutes
Intermediate
Data & Reporting

Report Automation Designer

Design automated reporting systems with data flow mapping, template creation, and delivery scheduling.

15 minutes
Intermediate
Data & Reporting

Survey Results Analyzer

Analyze survey responses to identify themes, segment insights, and generate executive-ready reports with visualizations.

10 minutes
Beginner
Data & Reporting

Trend Identification & Forecasting Narrative

Identify trends in business data and generate forward-looking forecasting narratives with confidence levels and scenarios.

10 minutes
Intermediate
Data & Reporting

Scientific Dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For...

10 minutes
Intermediate
Data & Reporting

Scientific Datacommons Client

Work with Data Commons, a platform providing programmatic access to public statistical data from global sources. Use this skill when working with demographic data, economic indicators, health statistics, environmental data, or any public datasets ...

10 minutes
Intermediate
Data & Reporting

Scientific Exploratory Data Analysis

Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats. This skill should be used when analyzing any scientific data file to understand its structure, content, quality, and characteristics. Automatically ...

10 minutes
Intermediate

Browse all Data & Reporting playbooks →