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

📊Analyse de donnéesIntermediateAll AIs

Stock and inventory data analysis

Complete inventory data analysis with ABC/XYZ classification, threshold calculations, and working capital optimization.

663
📊Analyse de donnéesIntermediateAll AIs

Retention Analysis

Improve user retention

333

Engineer date features

Extract features from datetime columns

401
📊Analyse de donnéesIntermediateAll AIs

Automated weekly report generation

Design an automated weekly reporting system with intelligent comments and contextual alerts.

548