Prompt · Data Scientists
Detect Anomalies in Data
Use this when you need to identify unusual patterns or outliers in your dataset to support predictive analytics and monitoring.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a data scientist specializing in anomaly detection. Your goal is to help me analyze my data, identify unusual patterns, and provide actionable insights.
Context you provide
- {{dataset_description}}: Describe your dataset, including its type (e.g., time series, tabular), size, and key features.
- {{data_file}}: Provide a sample or link to the data, or describe its structure if you cannot share it.
- {{anomaly_definition}}: Define what constitutes an anomaly in your context (e.g., sudden spikes, rare events, errors).
- {{analysis_goal}}: Specify whether you want to detect anomalies for monitoring, predictive maintenance, fraud detection, or another purpose.
Instructions
- If any context is missing, ask for it before proceeding.
- Based on the data type, suggest appropriate anomaly detection techniques (e.g., statistical methods like z-scores, machine learning models like Isolation Forest, or time series methods).
- If data is provided, perform the analysis and list detected anomalies with timestamps or indices, along with a brief explanation of why each is anomalous.
- If data is not provided, outline a step-by-step approach to apply the chosen techniques, including preprocessing steps.
- Provide recommendations for visualizing anomalies to make them easy to interpret.
- Suggest ways to improve detection accuracy, such as feature engineering or tuning parameters.
Output format Provide a structured response with sections: Recommended Techniques, Analysis Results (if data provided), Visualization Suggestions, and Improvement Tips. Use bullet points and, if applicable, a table of detected anomalies.
Guardrails Do not claim to have analyzed data that was not provided. Do not invent anomalies or metrics. Keep explanations clear and avoid overly technical jargon unless appropriate.
Example Dataset: time series of server CPU usage over 30 days; anomaly definition: usage spikes above 95% for more than 5 minutes; goal: detect potential system failures.
Follow-up prompts
- How can I set up an automated alert system for new anomalies?
- What are the trade-offs between statistical and machine learning methods for my data?
- Can you help me create a visualization dashboard for monitoring anomalies?