P
📊Analyse de donnéesAdvancedAll AIs

Linear regression analysis for prediction

Complete guide to performing a linear regression, from hypothesis verification to prediction interpretation.

Paste in your AI

Adapt this prompt

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 :

  1. Vérifier les hypothèses de la régression linéaire (linéarité, homoscédasticité, normalité des résidus, absence de multicolinéarité)
  2. Préparer les données (encodage des variables catégorielles, traitement des outliers, normalisation si nécessaire)
  3. Sélectionner les variables pertinentes avec les méthodes appropriées (stepwise, LASSO, corrélation)
  4. Interpréter les coefficients, le R², la p-value et les intervalles de confiance
  5. Valider le modèle avec les métriques RMSE, MAE et MAPE
  6. Faire des prédictions pour les scénarios suivants : [SCENARIOS_PREDICTION]
  7. 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

Sales forecastingPrice modelingMarketing impact analysis

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 Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

📊Analyse de donnéesIntermediateClaude

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.

1523
📊Analyse de donnéesIntermediateChatGPT

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.

1752

Write an ML system design

Design production ML systems

519

Design a feature store

Build a feature store

497