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

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

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

Data cleaning and preparation

Step-by-step guide to clean and standardize raw data before analysis in Excel or Google Sheets.

0499
📊Analyse de donnéesIntermediateAll AIs

Annual HR Report

HR Reporting

0226

Generate interaction features

Discover feature interactions

0217
📊Analyse de donnéesIntermediateAll AIs

Extract and structure HTML content

Extract structured data from HTML pages

0207