Factor Analysis and PCA
Statistically reduce dimensionality
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
My dataset contains [NUMBER] correlated variables that I want to reduce. Explain how to apply PCA: choosing the number of components (scree plot, explained variance), interpreting loadings, visualizing in the factorial plane, and biplot. Include Python code and how to use the components as features for [ML_TASK].
Personalize this prompt with Léa
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
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
Avant toute PCA, normalisez vos variables (StandardScaler). Le scree plot montre le coude : prenez le nombre de composantes avant la cassure. Pour la tâche ML, testez plusieurs nombres de composantes avec validation croisée.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.