StatAgentWeekly email

Draft sample-size wording from numbers computed in validated software

AI drafts the prose of a sample-size section from inputs you supply, such as alpha, power and effect size. It must never calculate the number; a validated tool does that.

Untested ideaHigh risk

Task
SAP and protocol
Roles
Statistician
Assistants
Microsoft 365 Copilot, ChatGPT, Claude
Last reviewed

Evidence

Untested idea. No source tests drafting this wording. Context only: TrialPanorama (arXiv 2505.16097) asked models to compute the required sample size from trial synopses with the statistical assumptions; GPT-4o had a mean absolute error of 452.1 against registered target accrual, set by human statisticians. That supports not letting a model calculate the number. Prompt not run.

Steps

  1. Compute the sample size in validated software.
  2. Paste the assumptions and the software output summary.
  3. Run the wording prompt.
  4. Check every number in the text against the output.
  5. Add the software name and version yourself.

Prompt

This is the prompt, typed out. No assistant reply is shown.

You
Write a short sample-size justification paragraph for a statistical analysis plan using ONLY the assumptions and results I give. Do NOT calculate or adjust any number. Copy numbers exactly. List any assumption needed for a complete justification that is missing (dropout rate, allocation ratio, test sidedness, multiplicity) under OPEN QUESTIONS. Rules: use ONLY the input below. Tag anything the input does not state as OPEN QUESTION. Never invent numbers; use placeholders such as xx. Do not claim anything is verified. INPUT: [paste input here]

Verify before you use it

How it fails

The AI recomputes or rounds a number itself and the text no longer matches the software output.

Data rule: No unpublished effect-size assumptions, pilot data or sponsor-specific design parameters. Use public or invented values.

Sources

Related

How we check. Back to the directory.