P
📊Analyse de donnéesIntermediateAll AIs

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

Planning a statistical experiment

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • 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.

Go further

Similar Prompts

Build a recommendation system

Build recommendation systems

0103

Create an automated EDA report

Generate EDA reports automatically

098

Apply dimensionality reduction

Reduce high-dimensional data

0105

Create a data strategy proposal

Propose data initiatives strategically

0115