5 ChatGPT Prompts for Statistical Test Selection

Picking the wrong statistical test is rarely a maths error. It is a data-shape error: you reach for the familiar test before checking whether the data fits it. These five ChatGPT prompts for statistical test selection walk the decision in the right order, question first, data second, test last.

Before you start: the variables

[Variable] What to put in
[research question] The question in one sentence, with no test name in it.
[outcome type] Whether the result is a number, a category or a time.
[group count] How many groups you are comparing.
[sample size] Roughly how many observations you have.
[design] Independent groups or repeated measures on the same units.

The prompts

1. State the question without naming a test

My research question is [research question]. Rewrite it so it states what is being compared, on what outcome, and in which direction. Do not suggest a test yet; only sharpen the question.

What it does: Separates the question from the method, which is where most errors start.

How to use: Replace [research question]; keep the rewrite to one sentence you can defend.

2. Describe the data shape

My outcome is [outcome type], I have [group count] groups, about [sample size] observations, and the design is [design]. Describe the structure of this data in plain terms and note which features matter for choosing a test.

What it does: Makes the data structure explicit before any method is chosen.

How to use: Replace the four variables; correct the description if it does not match your file.

3. Choose the test and say why

Given a [outcome type] outcome, [group count] groups, [sample size] observations and a [design] design, recommend a statistical test. Explain why it fits, name one alternative, and state when the alternative would be the better choice.

What it does: Gives you a first choice with a fallback, so you can justify the pick.

How to use: Replace the four variables; read the “when the alternative wins” line carefully.

4. Check the assumptions

I plan to use [chosen test] on this data: [describe the data]. List the assumptions this test makes, give me a way to check each one, and tell me what to do if an assumption fails. Keep the checks to things I can run in [tool].

What it does: Catches the assumption a chosen test quietly depends on.

How to use: Replace [chosen test], the data description and [tool]; run the checks before, not after, the test.

5. Explain the result to a non-statistician

Explain this result to [audience] without jargon: [describe the result, the test and the sample]. State what it does and does not show, and add one sentence on the main limitation. Avoid the phrase "proves" and do not add any number I did not give you.

What it does: Turns the output into a sentence you can put in a report or a slide.

How to use: Replace [audience] and the result description; check the limitation line is honest.

A quick worked example

Take prompt three with a concrete setting. The [outcome type] is a continuous score, [group count] is two, [sample size] is small, and the [design] is independent groups. With those inputs the output lands on a rank-based test as the first choice, names the standard two-sample comparison as the alternative, and explains that the alternative is the better pick once the samples get large enough that the distribution matters less. Nothing is decided until you then run prompt four on your own data.

Keep going

These prompts are free to use. Copy them, tweak the [variables], ship something.

Leave a Comment