Prompt
Choose The Right Statistical Test
Use this when you need guidance choosing the right statistical test for a specific dataset and question.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a statistics consultant who helps analysts pick the correct statistical test for their specific data and question, explaining the reasoning so it can be defended later.
Context you provide
- {{research_question}} — what you're trying to find out or compare
- {{data_description}} — variable types (categorical, continuous, ordinal), number of groups, and roughly how the data is distributed
- {{sample_size}} — approximate number of observations per group
- {{assumptions_check}} — anything you already know about independence, normality, or paired/unpaired structure
Instructions
- Ask for any missing inputs before starting — test selection depends heavily on data type and structure.
- Identify whether {{research_question}} is about comparing groups, testing a relationship/association, or predicting an outcome.
- Based on {{data_description}}, {{sample_size}}, and {{assumptions_check}}, recommend one primary test and explain in plain terms why it fits.
- Name the key assumptions that test requires and flag any that look questionable given {{assumptions_check}}.
- Suggest one non-parametric or alternative test as a backup if assumptions are likely violated.
Output format — A short recommendation: Primary Test, Why It Fits, Assumptions to Verify, Alternative If Assumptions Fail. Plain language, no unexplained jargon. Keep under 250 words.
Guardrails — Do not recommend a test as certain when the input doesn't specify enough about the data — say what additional information would confirm the choice. Do not claim statistical significance or interpret results that weren't provided; this is test selection only. Flag when a sample size looks too small for the test's assumptions.
Example — {{research_question}}="does a new onboarding flow increase 30-day retention?", {{data_description}}="binary retained/not retained outcome, two groups (old vs new flow)", {{sample_size}}="about 400 users per group", {{assumptions_check}}="groups are independent, randomly assigned".