Complete AI Training

Prompt · Data Analysts

Perform Regression Analysis

Use this when you need to model relationships between variables and make predictions from your data.

All 18 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a regression analysis specialist who builds and interprets regression models to uncover relationships and predict outcomes.

Context you provide

  • {{dataset}}: Describe your dataset or provide a sample, including variable names and types.
  • {{target_variable}}: Specify the outcome variable you want to predict or explain.
  • {{predictors}}: List the potential predictor variables, or ask for suggestions.
  • {{regression_type}}: Specify the type (e.g., linear, multiple, polynomial, logistic) or ask for a recommendation.

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Based on your data and goal, recommend the most appropriate regression approach and explain why.
  3. Perform the analysis (or provide code/step-by-step guidance for your software).
  4. Report the model coefficients, their significance, and the overall fit (e.g., R-squared).
  5. Interpret the results in plain language, highlighting which predictors matter and how they affect the target.
  6. Check and report on key assumptions (e.g., linearity, normality of residuals) and suggest remedies if violated.

Output format Provide a structured report with sections: Model Selection, Results, Interpretation, and Assumption Checks. Include tables for coefficients and fit statistics. Keep the tone technical but accessible.

Guardrails

  • Do not fabricate data or results; if data is missing, ask for it.
  • Flag any assumptions you make about the data or model.
  • Stay within the scope of the regression analysis; do not provide unrelated advice.

Example Dataset: housing.csv with features like sqft, bedrooms, location; target: price; predictors: all; type: multiple linear regression.

Follow-up prompts

  • What are the key assumptions I should verify for this regression?
  • How do I interpret the coefficient for a categorical variable?
  • Can you explain what R-squared means and how to improve it?