Linear regression analysis for prediction
Complete guide to performing a linear regression, from hypothesis verification to prediction interpretation.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Je veux réaliser une analyse de régression linéaire pour prédire [VARIABLE_CIBLE] en fonction de [VARIABLES_EXPLICATIVES]. Mes données couvrent [PERIODE] avec [NOMBRE_OBSERVATIONS] observations issues de [SOURCE_DONNEES].
Contexte métier : [CONTEXTE] (ex : prévoir les ventes en fonction des dépenses marketing et de la saison)
Guide-moi pour :
- Vérifier les hypothèses de la régression linéaire (linéarité, homoscédasticité, normalité des résidus, absence de multicolinéarité)
- Préparer les données (encodage des variables catégorielles, traitement des outliers, normalisation si nécessaire)
- Sélectionner les variables pertinentes avec les méthodes appropriées (stepwise, LASSO, corrélation)
- Interpréter les coefficients, le R², la p-value et les intervalles de confiance
- Valider le modèle avec les métriques RMSE, MAE et MAPE
- Faire des prédictions pour les scénarios suivants : [SCENARIOS_PREDICTION]
- Identifier les limites et risques du modèle
Précise le code Python (scikit-learn / statsmodels) ou R si applicable.
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
This prompt is effective because it covers all steps of a rigorous regression, including the often-neglected hypothesis validation. The request for concrete code makes it directly operational.
Use Cases
Expected Output
A complete methodological guide with Python/R code, metrics interpretation, and predictions for defined scenarios.
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 comparer l'impact relatif de variables sur des échelles différentes, standardisez-les avant la régression : les coefficients bêta s'interprètent alors en écarts-types de la cible par écart-type du prédicteur. Utilisez `StandardScaler` de scikit-learn avant d'entraîner le modèle (ne pas normaliser les variables catégorielles encodées).
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Prompt Claude for Analyzing Customer Reviews
Customer review analysis has become an essential strategic lever for any company looking to improve its products, services, and customer experience. Yet manually processing hundreds or thousands of comments remains a time-consuming task prone to interpretation bias. Claude, Anthropic's AI assistant, excels at qualitative analysis of natural language text. With its ability to understand nuances, sarcasm, implicit emotions, and cultural contexts, Claude transforms a corpus of raw reviews into actionable insights. Whether you manage an e-commerce site, a SaaS, or a network of stores, a well-structured prompt allows you to automatically extract dominant sentiments, identify recurring themes, spot weak signals, and prioritize improvement areas. This page offers an optimized main prompt as well as variants tailored to your level of expertise, to fully leverage Claude's potential in analyzing your customer feedback.
Claude Prompt for Analyzing Data
Data analysis has become a strategic lever for any organization seeking to make informed decisions. Claude excels at interpreting complex datasets, whether CSV tables, survey results, financial metrics, or application logs. Unlike traditional analysis tools that require advanced technical skills, Claude allows you to obtain actionable insights in natural language. You can submit raw data and ask it to identify trends, anomalies, correlations, or hidden patterns. It can segment your data, calculate descriptive statistics, formulate explanatory hypotheses, and suggest relevant visualizations. Whether you are a seasoned data analyst looking to speed up your exploratory workflow, or a non-technical decision-maker wanting to understand a report, Claude adapts to your level of expertise. It transforms raw numbers into understandable narratives, concrete recommendations, and measurable action plans. This page offers optimized prompts to get the most out of Claude in your daily data analysis.
NPS and customer satisfaction analysis
Complete NPS analysis with segmentation, verbatim analysis, and customer satisfaction improvement plan.
Implement shadow deployment
Safely deploy new ML models