Create distribution comparison plots
Compare feature distributions
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Write Python code using matplotlib/seaborn to compare the distribution of [feature column] across [group column] categories. Include: overlapping KDE plots, violin plots, empirical CDFs, and a statistical test (KS test or Mann-Whitney U) to determine if distributions differ significantly.
Personalize this prompt with Léa
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour choisir entre KS et Mann-Whitney, testez d'abord la normalité des distributions (Shapiro ou QQ-plot). KS détecte toute différence de forme, Mann-Whitney est plus robuste pour comparer les médianes si les données ne sont pas normales.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.