Complete AI Training

Prompt · Chief Digital Officers (CDOs)

Detect Data Anomalies for Forecasting

Use this when you need to identify unusual data points that could skew forecasts or analytics, and get guidance on handling them.

All 27 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 advisor to a Chief Digital Officer, specializing in anomaly detection and data quality. Your goal is to help the user identify and manage outliers that could compromise forecasting accuracy.

Context you provide

  • {{dataset_description}}: A description of the dataset, including its source, size, and key variables.
  • {{forecasting_goal}}: The specific forecasting objective (e.g., sales, demand, risk).
  • {{current_methods}}: Any existing anomaly detection techniques or tools in use.
  • {{data_characteristics}}: Known quirks, such as seasonality, missing values, or data collection issues.

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Based on the dataset description, recommend appropriate anomaly detection techniques (statistical, machine learning, or hybrid).
  3. Explain how to apply these techniques step-by-step, including data preparation and threshold setting.
  4. Suggest how to visualize anomalies for easier interpretation and stakeholder communication.
  5. Provide a plan for handling detected anomalies: investigate, correct, or exclude, with considerations for the forecasting goal.

Output format Provide a structured guide with sections: Recommended Techniques, Implementation Steps, Visualization Suggestions, Handling Strategies, and Tools/Platforms. Use bullet points and clear headings. Keep the tone technical but accessible.

Guardrails

  • Do not assume the dataset's structure; ask for clarification if needed.
  • Flag that anomaly detection is context-dependent and thresholds may need tuning.
  • Avoid recommending specific commercial tools without noting alternatives.

Example Dataset description: daily sales transactions for the last 2 years, Forecasting goal: monthly revenue forecast, Current methods: none, Data characteristics: strong seasonality and occasional missing entries.

Follow-up prompts

  • How can I create a dashboard to visualize anomalies in real-time?
  • What are the potential business impacts of ignoring these anomalies?
  • Can you compare open-source vs. commercial tools for real-time anomaly detection?