Inferensys

Prompt

Mean vs Median and Distribution Claim Verification Prompt

A practical prompt playbook for verifying claims about averages, medians, and distribution shapes in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the ideal job-to-be-done, user, and context for verifying central tendency and distribution claims against source data.

This prompt is for verification engineers and data analysts who need to check whether a claim about central tendency (mean, median, mode) or distribution shape (skew, spread, modality) is supported by the underlying data. Use it when a report, article, or dashboard asserts something like 'the average customer spends $120' or 'the distribution is normal' and you need to validate that the correct statistic was chosen and the claim matches the evidence. The prompt is designed for post-hoc verification of existing claims, not for generating new analysis. It assumes you already have the claim text and the source data or summary statistics available.

The prompt forces the model to compute both mean and median, assess skew, flag misleading 'average' usage, and check whether dispersion context was omitted. It is most effective when the claim is a single, atomic assertion about a dataset's central tendency or shape. Do not use this prompt for multi-claim paragraphs, causal claims, trend direction assertions, or statistical significance statements—those require separate specialized verification prompts. The ideal user has access to the raw data or a reliable summary table and needs a structured, repeatable check before publishing or acting on the claim.

Before using this prompt, ensure you have the exact claim text and either the full dataset or sufficient summary statistics (mean, median, standard deviation, quartiles, and sample size). If you only have the claim without underlying data, this prompt cannot perform verification and you should instead use an evidence-matching or source-attribution prompt. After running the verification, always review the skew assessment and dispersion check manually—these are the most common failure points when the model misinterprets distribution shape from summary statistics alone.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Mean vs Median and Distribution Claim Verification prompt delivers reliable results and where it introduces operational risk.

01

Good Fit: Skewed Data Claims

Use when: A claim reports only the mean for data known to contain outliers or heavy skew (e.g., income, latency, load times). Guardrail: The prompt explicitly compares the reported mean against a requested median and flags misleading central tendency.

02

Bad Fit: Raw Data Unavailable

Avoid when: The prompt receives only the summary statistic without access to the underlying dataset or a detailed distribution summary. Guardrail: The prompt must be instructed to return an UNVERIFIABLE status rather than hallucinating a distribution shape from a single number.

03

Required Input: Distribution Metadata

Risk: Without standard deviation, percentiles, or a histogram, the model cannot assess skew. Guardrail: The prompt template requires a [DISTRIBUTION_CONTEXT] block. If empty, the verification scope is downgraded to a terminology check only.

04

Operational Risk: Simpson's Paradox

Risk: A trend that appears in aggregated data can reverse when segmented. The prompt might validate a true but misleading aggregate claim. Guardrail: Include a segmentation check instruction that requests subgroup breakdowns when [SEGMENTATION_DATA] is provided.

05

Operational Risk: Outlier Gaming

Risk: A bad actor can remove legitimate outliers to manufacture a desired mean. Guardrail: The prompt must compare the reported outlier policy against a standard IQR or z-score method and flag discrepancies in the output's outlier_handling_assessment field.

06

Bad Fit: Multimodal Distributions

Avoid when: The underlying data has multiple peaks (e.g., bimodal user behavior). Neither the mean nor the median is a sufficient summary. Guardrail: The prompt should detect multimodality hints from percentiles and recommend a mode or cluster analysis instead of a central tendency verdict.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A copy-ready prompt template for verifying claims about central tendency and distribution shape, with placeholders for your specific claim, data, and constraints.

This prompt is designed to be pasted directly into your verification workflow. It instructs the model to act as a statistical auditor, comparing a provided claim about an average or distribution against a supplied dataset. The core task is to determine whether the correct measure of central tendency was used given the data's shape, and to flag any misleading omissions about dispersion or skew. Replace every square-bracket placeholder with your specific inputs before execution.

text
You are a statistical verification auditor. Your task is to evaluate a numerical claim about a dataset's central tendency or distribution.

[INPUT]
CLAIM: [The exact text of the claim to verify, e.g., "Our typical customer spends $120 per month."]
DATA_SUMMARY: [A structured summary of the dataset. Include N, mean, median, standard deviation, skewness, and a five-number summary (min, Q1, median, Q3, max). If raw data is provided via a tool, describe it here.]
[/INPUT]

[CONSTRAINTS]
1. Compare the claim's statistic (mean vs. median) against the data's skewness. Flag if the wrong measure was used to represent a "typical" value.
2. If the claim uses an ambiguous term like "average" or "typical," state which specific statistic it most likely refers to and whether that is misleading.
3. Check if the claim omits critical context about dispersion (e.g., standard deviation, range).
4. If the claim implies a distribution shape (e.g., "most users are around..."), verify it against the provided skewness and kurtosis.
5. Do not invent data. If information is missing to perform a check, state it explicitly.
[/CONSTRAINTS]

[OUTPUT_SCHEMA]
{
  "claim_summary": "string (restate the claim being verified)",
  "statistic_used_in_claim": "mean | median | mode | ambiguous | other",
  "data_shape": {
    "skewness": "string (e.g., 'highly positive', 'symmetric')",
    "outlier_presence": "yes | no | unknown"
  },
  "verdict": "accurate | misleading | unverifiable",
  "verification_details": {
    "correct_measure": "string (the measure that should have been used)",
    "misleading_aspects": ["string (list specific problems, e.g., 'Mean is inflated by outliers')"],
    "missing_context": ["string (list omitted dispersion info, e.g., 'No standard deviation provided')"]
  },
  "evidence": "string (explain reasoning using the provided DATA_SUMMARY)"
}
[/OUTPUT_SCHEMA]

[RISK_LEVEL]
HIGH: Numerical claims in regulated or public-facing reports require human review of this output before publication.
[/RISK_LEVEL]

To adapt this template, start by replacing the [INPUT] block with your specific claim and a structured data summary. If you have access to a code execution tool, you can replace DATA_SUMMARY with a [TOOLS] block that allows the model to calculate the required statistics directly from a raw dataset, which is more reliable. The [OUTPUT_SCHEMA] is designed for programmatic consumption; keep the JSON structure intact so your application harness can parse the verdict field for automated routing. For high-stakes claims, always route misleading and unverifiable verdicts to a human review queue as specified in the [RISK_LEVEL] block.

Before deploying, test this prompt with a known dataset where the mean and median diverge significantly, such as income data with a few very high earners. A claim that "the average income is $150k" when the median is $75k should produce a misleading verdict. Also test a symmetric dataset to ensure the prompt does not over-flag accurate mean usage. The most common production failure is providing an insufficient DATA_SUMMARY; the model needs skewness and a five-number summary at minimum to perform a reliable audit.

IMPLEMENTATION TABLE

Prompt Variables

Each placeholder the prompt needs to work reliably, with validation guidance.

PlaceholderPurposeExampleValidation Notes

[CLAIM_TEXT]

The full text of the numerical or distribution claim to verify

The average salary in our engineering department is $145,000

Required. Must be a non-empty string. Check for presence of a quantitative assertion before invoking the prompt.

[SOURCE_DATA]

The dataset or reference values used to evaluate the claim

A CSV string or JSON array of 150 salary records

Required. Must contain at least 5 records for distribution assessment. Validate parseability as structured data before prompt assembly.

[CLAIMED_STATISTIC]

The specific central tendency measure asserted in the claim

mean

Required. Must be one of: mean, median, mode, or null if the claim does not specify. Validate against an allowed enum before prompt execution.

[TOLERANCE_PERCENT]

Acceptable percentage deviation between claimed and computed values

5

Required. Must be a positive number between 0 and 25. Values above 10 should trigger a review flag in the harness.

[DISTRIBUTION_CONTEXT]

Optional metadata about expected skew, outliers, or data collection method

Compensation data is known to be right-skewed with executive outliers

Optional. If provided, the prompt must use this to assess whether the claimed statistic is appropriate for the distribution shape. Null allowed.

[OUTPUT_SCHEMA]

The expected JSON structure for the verification result

See output-contract table for field definitions

Required. Must be a valid JSON Schema or a structured description parseable by the validator. Schema must include fields for statistic_match, distribution_assessment, and recommendation.

[CONSTRAINTS]

Additional rules for the verification, such as unit handling or rounding precision

Round all computed values to the nearest integer. Flag any records with null salary values.

Optional. If provided, each constraint must be a single, testable instruction. Avoid compound constraints that cannot be individually validated.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Mean vs Median and Distribution Claim Verification Prompt into an application or verification pipeline.

This prompt is designed to be called as a single step within a larger numerical claim verification pipeline. It expects a structured input containing the original claim text, the reported statistic (mean or median), the provided data sample or distribution summary, and any context about the claim's source. The output is a structured JSON object that downstream systems can parse to flag misleading central tendency claims, route for human review, or attach to an audit trail. Do not use this prompt in isolation without first extracting the numerical claim and its associated data from source material—pair it with a claim extraction prompt from the Claim Extraction and Decomposition group before invocation.

Validation and retry logic: Parse the model's JSON output and validate it against a strict schema before accepting it. At minimum, confirm that statistic_used is one of mean, median, or mode; that distribution_skew_detected is a boolean; that alternative_statistic_recommended is populated when a mismatch is found; and that confidence_score is a float between 0.0 and 1.0. If the output fails schema validation, retry once with the same input and an explicit instruction appended: Your previous output failed JSON schema validation. Return ONLY valid JSON matching the required schema. If the second attempt also fails, log the failure, attach the raw output, and escalate to a human review queue rather than silently accepting a malformed verification result.

Model choice and tool integration: This prompt works best with models that have strong numerical reasoning capabilities (GPT-4o, Claude 3.5 Sonnet, or equivalent). For high-throughput pipelines, consider a two-tier architecture: run the prompt on a faster, cheaper model first, and only escalate to a more capable model when the confidence score falls below 0.85 or when distribution_skew_detected is true and the claim is high-stakes. If your pipeline includes a calculation engine or statistical library, wire the prompt's output to a tool that independently computes the mean, median, skewness, and outlier count from the provided data sample. Compare the tool's computed values against the prompt's computed_mean and computed_median fields. A discrepancy greater than a configurable tolerance (e.g., 0.1% for floating-point values) should trigger a verification failure and human review, regardless of the model's confidence score.

Logging and audit trail: Every invocation should log the full prompt input, the raw model response, the parsed and validated output, the tool-computed comparison values (if applicable), and the final disposition (passed, flagged, escalated). Store these records with a unique verification_id that links back to the original claim and source document. This audit trail is essential for downstream governance, regression testing, and debugging false positives. When the prompt flags a claim as misleading (e.g., mean used on skewed data without median disclosure), the output should be routed to a structured verification report generator that includes the original claim, the evidence of skew, the recommended alternative statistic, and a human-readable explanation suitable for non-technical reviewers.

What to avoid: Do not treat this prompt's output as a final truth verdict without independent calculation verification. The model can reason about distribution shape and statistic appropriateness, but it can also hallucinate computed values or misclassify mild skew as severe. Never expose the raw model output directly to end users without the validation and tool-comparison harness described above. For regulated or high-stakes domains (financial reporting, clinical data, public policy statistics), always require human review when the prompt detects a mean-median mismatch, regardless of confidence score. The cost of a false negative—letting a misleading average claim through—is higher than the cost of a human reviewer checking a flagged case.

IMPLEMENTATION TABLE

Expected Output Contract

Validate every field against these rules before accepting the model output. Reject or repair any response that does not conform.

Field or ElementType or FormatRequiredValidation Rule

verification_id

string (UUID v4)

Must be a valid UUID v4 string. Generate if missing.

claim_summary

string

Must be non-empty and under 500 characters. Must contain the original statistic and its context.

reported_statistic

object

Must contain 'value' (number), 'type' (enum: mean, median, mode, other), and 'unit' (string).

actual_distribution_characteristics

object

Must contain 'skewness' (enum: left, right, symmetric, unknown), 'outlier_presence' (boolean), and 'dispersion_measure' (string).

appropriate_measure

string (enum)

Must be one of: mean, median, mode, other. Must be justified by distribution characteristics.

measure_mismatch_flag

boolean

Must be true if reported_statistic.type != appropriate_measure, else false. Must be consistent with distribution analysis.

misleading_claim_detected

boolean

Must be true if measure_mismatch_flag is true AND mismatch favors a misleading narrative. Include reasoning.

verification_evidence

array of objects

Each object must contain 'source' (string), 'evidence_type' (enum: data_point, calculation, distribution_plot, citation), and 'relevance' (string). Array must have at least 1 item.

confidence_score

number (0.0-1.0)

Must be a float between 0.0 and 1.0. Values below 0.7 should trigger human review routing.

human_review_required

boolean

Must be true if confidence_score < 0.7 OR misleading_claim_detected is true OR outlier_presence is true. Else false.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when verifying central tendency and distribution claims, and how to guard against it.

01

Mean Reported When Distribution Is Skewed

What to watch: The model accepts a reported mean without checking the underlying distribution shape. In right-skewed data (income, latency, file sizes), the mean is pulled upward and misrepresents the typical value. Guardrail: Require the prompt to request both mean and median. Add a skewness check step: if skewness exceeds ±1, flag the mean as potentially misleading and default to median for central tendency.

02

Outlier Sensitivity Not Assessed

What to watch: A single extreme value inflates or deflates the mean, and the verification output treats the calculated mean as authoritative without outlier analysis. Guardrail: Include an explicit outlier detection instruction in the prompt template. Require the model to report the mean with and without outliers beyond 1.5×IQR or 3σ, and flag discrepancies greater than a configurable tolerance.

03

Distribution Shape Claimed Without Goodness-of-Fit

What to watch: The source claims data is 'normally distributed' or 'follows a power law' without statistical evidence, and the verification prompt accepts the label without checking. Guardrail: Add a distribution test step to the prompt harness. Require the model to request or compute at minimum a Shapiro-Wilk (for normality claims) or visual QQ-plot description, and downgrade confidence when no test evidence is provided.

04

Multimodal Distribution Treated as Unimodal

What to watch: A single mean or median is reported for data with two or more distinct peaks (e.g., bimodal customer segments, mixed populations), producing a summary statistic that describes no actual group. Guardrail: Instruct the prompt to check for multimodality by requesting histogram bin descriptions or modality tests. When multiple modes are detected, require subgroup reporting and flag any single-number summary as insufficient.

05

Dispersion Context Stripped from Claim

What to watch: A mean or median is verified in isolation without checking whether variance, range, or IQR were reported. The claim passes verification but is meaningless without spread context. Guardrail: Add a completeness check to the output schema: require a dispersion_reported boolean field. If false, downgrade the claim's actionability score and append a warning that central tendency without dispersion is insufficient for decision-making.

06

Percentile Claims Not Back-Checked Against Raw Data

What to watch: A source claims 'the 95th percentile is X' and the verification prompt accepts it without recalculating from the underlying distribution or sample size. Small sample sizes make extreme percentile estimates unreliable. Guardrail: Add a sample-size gate to the prompt. If n < 100, flag percentile claims above 90th or below 10th as unstable. Require the model to note the minimum sample size needed for the claimed percentile to be reliable.

IMPLEMENTATION TABLE

Evaluation Rubric

How to test output quality before shipping. Run these checks against a golden dataset of known claims with verified outcomes.

CriterionPass StandardFailure SignalTest Method

Central tendency selection accuracy

Correctly identifies whether mean or median is appropriate given data skew and outlier presence

Recommends mean for highly skewed data or median for perfectly symmetric data without justification

Run against 20 golden claims: 10 where median is correct, 10 where mean is correct. Require >=90% accuracy

Distribution shape classification

Correctly classifies distribution as symmetric, right-skewed, left-skewed, bimodal, or uniform when data is provided

Misclassifies distribution shape or fails to detect multimodality when present

Test with 15 labeled distribution samples covering all five shape categories. Require >=85% F1 per class

Outlier impact quantification

Quantifies how outliers affect the mean and states the direction and approximate magnitude of the pull

Ignores outliers entirely or claims outliers have no effect on the mean

Provide 10 datasets with known outlier influence. Check that output includes direction and magnitude estimate within 20% of ground truth

Misleading claim detection

Flags when a claim uses mean to hide skew or omits dispersion context that would change interpretation

Accepts a mean-only claim for highly skewed data without flagging the omission

Use 15 adversarial claims designed to mislead via central tendency choice. Require >=90% flag rate on misleading claims

Dispersion context requirement

States that mean or median claims without variance, range, or IQR are incomplete and explains what additional context is needed

Provides verification result without noting missing dispersion information

Supply 10 claims with no dispersion data. Check that output includes explicit dispersion-gap flag in 100% of cases

Calculation verification accuracy

Recomputes the claimed statistic from provided data and confirms match within rounding tolerance

Confirms an incorrect calculation as correct or rejects a correct calculation due to arithmetic error

Test with 25 claim-data pairs: 15 correct calculations, 10 incorrect. Require >=95% accuracy on calculation verification

Sample size adequacy assessment

Evaluates whether sample size supports the claimed central tendency interpretation and notes when small samples make the statistic unreliable

Makes strong verification conclusions on n<10 samples without caveats

Provide 8 small-sample claims (n<10). Check that output includes sample-size caveat in 100% of cases

Context-appropriate recommendation

Recommends the correct statistic for the stated analytical goal and explains the trade-off

Recommends median for additive cost analysis or mean for typical-user use cases without recognizing the mismatch

Test with 12 scenario descriptions pairing analytical goals with data characteristics. Require >=85% correct recommendation rate

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a small set of known-correct and known-misleading claims. Use a frontier model (GPT-4o, Claude 3.5 Sonnet) with temperature 0. Remove the structured output schema initially and ask for a free-text assessment to iterate on instruction clarity. Focus on getting the skew detection and central tendency logic right before adding strict JSON formatting.

Add a simple validator that checks whether the output mentions skew direction, outlier presence, and a recommendation for mean vs median. Don't require perfect schema compliance yet.

Watch for

  • The model accepting 'average' without asking which measure was used
  • Overlooking multimodal distributions and defaulting to mean-vs-median binary
  • Missing the distinction between 'the data is skewed' and 'the claim is misleading'
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.