Complete AI Training

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.

All 14 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 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

  1. Ask for any missing context before starting.
  2. Preprocess the data as needed (e.g., clean missing values, handle outliers).
  3. Perform the specified statistical test, ensuring assumptions are met.
  4. Interpret the results, including p-values, effect sizes, and confidence intervals where applicable.
  5. 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?