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
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Claude Prompt to Analyze Market Trends
Market trend analysis is a strategic exercise that requires cross-referencing economic, behavioral, and sectoral data to identify weak signals and underlying movements. Claude excels at this task thanks to its ability to synthesize large amounts of information, structure multi-dimensional analyses, and formulate well-argued hypotheses. Whether you are an entrepreneur seeking to validate an opportunity, an analyst mapping an industry, or a marketer preparing a launch, Claude saves hours of research by producing structured, nuanced, and actionable analyses. By providing precise context about your target market, objectives, and constraints, you get a panoramic view of the dynamics at play: technological developments, regulatory changes, shifts in consumer behavior, and competitive repositioning. AI does not replace field monitoring, but it significantly accelerates the exploration and structuring phase of information, allowing you to focus your human expertise on strategic interpretation and decision-making.
ChatGPT Prompt for Data Analysis
Data analysis has become an indispensable strategic lever for businesses and professionals. Yet extracting relevant insights from raw datasets remains a technical challenge that typically requires skills in statistics, programming, or specialized tools like advanced Excel, Python, or R. ChatGPT radically transforms this approach by allowing anyone to analyze complex data through natural language instructions. Whether you're working on sales data, survey results, marketing metrics, or financial indicators, a well-structured prompt enables you to obtain statistical analyses, correlations, trends, and actionable recommendations in seconds. The key lies in how you formulate your request: a precise prompt that defines the context, the type of analysis desired, and the expected output format will yield significantly more usable results than a vague query. In this guide, you'll find optimized prompts to get the most out of ChatGPT for your data analyses, regardless of your expertise level.
Write an ML system design
Design production ML systems
Design a feature store
Build a feature store