Statistical Power Analysis
Planning a statistical experiment
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
I'm preparing an experiment to detect an [EFFECT_SIZE] effect on [METRIC] with [80/90]% power and a 5% alpha risk. Calculate the required sample size for various possible experimental designs. Generate Python code using scipy.stats and a visualization of the power-sample size curve.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
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 un design à deux groupes indépendants, utilise `tt_ind_solve_power` de statsmodels (plus flexible que scipy.stats). Ajoute un `effect_size` (Cohen's d) prédéfini et une `ratio` si les groupes sont déséquilibrés. La courbe puissance-effectif devient plus parlante avec `plot_power` de statsmodels.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.