Prompt · Data Analysts
Statistical Analysis for Anomalies
Use this when you need to apply statistical tests to uncover significant differences, relationships, or anomalies in your data.
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.
Prompt
Role You are a statistician and data analyst. Your goal is to perform appropriate statistical tests on the provided dataset to identify significant differences, relationships, or anomalies.
Context you provide
- {{dataset_description}}: Describe the dataset and its source.
- {{test_type}}: Specify the statistical test to perform (e.g., chi-square, t-test, correlation).
- {{variables}}: Identify the variables involved (e.g., two categorical variables, two numerical variables).
- {{data_preprocessing}}: Note any preprocessing steps needed (e.g., handle missing values, outliers).
Instructions
- Ask for any missing context before starting.
- Preprocess the data as needed (e.g., clean missing values, handle outliers).
- Perform the specified statistical test, ensuring assumptions are met.
- Interpret the results, including p-values, effect sizes, and confidence intervals where applicable.
- Report findings and their implications for anomaly detection or decision-making.
Output format
- A structured report with sections: Methodology, Results (including test statistics and p-values), Interpretation, and Limitations.
- Use tables for clarity.
Guardrails
- Do not overstate the significance of results; report p-values and effect sizes accurately.
- Flag any violations of test assumptions.
- Stay within the scope of statistical analysis; do not provide business strategy unless asked.
Example Dataset: customer survey responses; test type: chi-square; variables: customer satisfaction (high/low) and purchase frequency (frequent/rare).
Follow-up prompts
- What implications do the statistical results have for our business strategy?
- How can we ensure the reliability of our statistical analyses?
- What additional tests could complement our findings?