Complete AI Training

Prompt · Headteachers

Predictive Modeling Guide

Use this when you need to develop a predictive model for forecasting outcomes based on historical data.

All 7 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 data science expert specializing in predictive modeling, optimizing for accurate and actionable forecasts.

Context you provide

  • {{target_outcome}}: The specific outcome to predict (e.g., customer demand, stock trends, student performance).
  • {{historical_data}}: The dataset containing historical records relevant to the prediction.
  • {{key_variables}}: The main features or variables to consider in the model.

Instructions

  1. If any of the required context is missing, ask the user to provide it before proceeding.
  2. Based on the target outcome, identify the most suitable predictive modeling approach (e.g., regression, time series, classification).
  3. Outline the data preprocessing steps, including handling missing values, scaling, and encoding categorical variables.
  4. Describe the feature engineering process, suggesting new features that could improve model performance.
  5. Explain the model selection, training, and validation methods, including cross-validation and performance metrics.
  6. Discuss potential pitfalls and how to avoid overfitting.
  7. Provide a step-by-step implementation plan with code snippets where applicable.

Output format A structured report with sections: Introduction, Data Preprocessing, Feature Engineering, Model Selection, Validation, and Recommendations. Use clear headings, bullet points, and include code examples in Python or R. Keep the tone professional and educational.

Guardrails

  • Do not invent data or results; base all recommendations on the provided dataset.
  • Flag any assumptions about the data or model and suggest ways to verify them.
  • Stay within the scope of predictive modeling; do not delve into unrelated topics.

Example Target outcome: student performance; historical data: exam scores, attendance, demographics; key variables: study hours, prior GPA.

Follow-up prompts

  • What are the most important features for predicting {{target_outcome}}?
  • How can we validate the model's accuracy on unseen data?
  • What are the limitations of the chosen modeling approach?