Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Can Generative AI Create a Graph That Looks Correct but Plots the Wrong Values?

AI-generated graphs can appear accurate while displaying incorrect values, mislabeled categories, or improperly calculated statistics. Learn how these errors arise, why visual inspection may not reveal them, and how researchers can verify the numerical integrity of every plotted element.

488
AI Graphs With Incorrect Data Values Guide 488 of 1196
01 · The Question

What if Your AI-Generated Graph Looks Perfect but the Numbers Are Wrong?

You upload your research dataset to an AI-enabled analytical tool and request a graph comparing student performance across instructional conditions. The tool produces a polished figure with correctly spelled labels, balanced proportions, and convincing error bars.

Everything looks reasonable. The bars follow the expected pattern, and the figure appears consistent with the findings you remember.

But when you compare the graph with your statistical output, one mean is incorrect. Another bar represents the wrong group, and the error bars do not correspond to the values reported in your analysis.

How can a graph look so credible while misrepresenting the data?

The problem is that graphical appearance and numerical correctness are separate properties. Generative AI can produce visually coherent figures even when the calculations, data mappings, or graphical representations underlying them are wrong.

02 · The Short Answer

Yes, a Visually Convincing AI Graph Can Contain Incorrect Numerical Values

In Brief

Generative AI can produce graphs that look scientifically appropriate while plotting incorrect values, assigning observations to the wrong categories, miscalculating statistics, or displaying misleading graphical proportions. These errors can occur even when the original dataset is accurate and the plotting code executes successfully.

Researchers should verify the exact data supplied to the plotting function, independently check calculations, and confirm that graphical elements accurately encode their corresponding values. Visual inspection alone is insufficient because numerical errors may produce entirely plausible-looking charts.

03 · What You Need to Know

Why AI-Generated Graphs Can Misrepresent Correct Research Data

How Can a Graph Be Visually Correct but Numerically Wrong?

A graph may follow conventional design practices while containing errors in the data it represents.

For example, an AI-generated bar chart may have a properly labeled vertical axis, consistent bar widths, and an appropriate legend. Yet the heights of the bars may correspond to incorrectly calculated means.

The graph is visually coherent because its elements follow recognizable graphical conventions. Its scientific accuracy, however, depends on the numerical information encoded by those elements.

This distinction is particularly important when researchers evaluate figures by asking whether they look reasonable.

An incorrect mean of 76.4 may appear entirely plausible when the verified mean is 74.6. The difference may be difficult to detect without comparing the figure against the underlying analytical output.

What Are the Main Types of Numerical Errors in AI-Generated Graphs?

Errors can arise during data preparation, statistical calculation, graphical mapping, or rendering.

Error Type What Happens Example
Incorrect variable selection The graph uses values from the wrong dataset column. Plotting pretest scores instead of posttest scores.
Incorrect aggregation The graph summarizes observations using the wrong calculation or grouping. Plotting a sum instead of a mean.
Category mismatch Correct values are assigned to incorrect labels. Exchanging treatment and control group values.
Missing-data error Missing or excluded observations are handled incorrectly. Including missing scores coded as zero.
Incorrect uncertainty Error bars represent the wrong quantity or calculation. Displaying standard deviations labeled as confidence intervals.
Graphical encoding error The plotted visual element does not correspond to its intended value. A bar labeled 80 visually reaching 85.
Invented values The system introduces observations or statistics absent from the research data. Generating an additional measurement occasion.
Incorrect transformation Values are transformed improperly or displayed on an unexplained scale. Plotting logarithmic values as though they were raw measurements.

These errors are not exclusive to AI. Conventional statistical software can also produce incorrect figures when researchers provide inappropriate instructions. Generative AI adds another opportunity for errors when it interprets natural-language requests and generates analytical procedures.

Can AI Plot the Wrong Values Even When the Dataset Is Correct?

Yes. An accurate dataset does not guarantee accurate data processing.

Suppose a dataset contains variables for pretest scores, immediate posttest scores, and delayed posttest scores.

The researcher requests a graph comparing pretest and immediate posttest performance, but AI mistakenly selects the delayed posttest column.

The resulting graph may use genuine observations and calculate its summaries correctly. Nevertheless, it represents the wrong outcome.

This is an important distinction: a graph can be computationally correct relative to the selected data while scientifically incorrect relative to the research question.

Researchers should verify variable mappings directly rather than relying on axis labels, which may themselves have been generated independently of the selected columns.

Can AI Assign Correct Numbers to the Wrong Categories?

Yes. Category mapping errors can reverse or distort the apparent findings without changing any numerical values.

For example, suppose the verified mean score is 72 for the control group and 81 for the treatment group.

An AI-generated graph might display the values correctly but reverse their labels.

The graph would then appear to show that the control group outperformed the treatment group.

Such an error can occur when code sorts labels and numerical arrays independently or when the researcher provides values without stable group identifiers.

Using structured data with explicit variable names and group mappings can reduce this risk, although the final figure must still be verified.

How Can Incorrect Aggregation Produce a Misleading Graph?

Aggregation converts multiple observations into summaries such as means, totals, percentages, or medians.

AI may misunderstand which quantity should be calculated or which observations should contribute to it.

For example, a researcher requests average assessment scores by academic program. The generated code may accidentally calculate total scores by program.

Programs with more students would then appear to have higher performance simply because they contribute more observations.

Another error occurs when a dataset contains repeated measurements from the same participants and AI calculates summaries at an inappropriate level.

The correct aggregation depends on the research question, sampling structure, and intended estimand.

Can AI Miscalculate Percentages?

Yes. Percentage calculations require an appropriate numerator and denominator.

For example, the percentage of students who completed an online course could be calculated relative to all enrolled students, students who started the course, or students with complete records.

These denominators answer different questions.

If AI selects the wrong denominator, the percentage may be mathematically correct but substantively misleading.

Researchers should verify how categories were defined, which observations were included, and whether the percentages represent the intended population.

Figures should identify the relevant sample or denominator when it is necessary for interpretation.

Can AI Generate Incorrect Error Bars?

Yes. Error bars are particularly vulnerable to errors because their meaning depends on statistical conventions and study design.

A graph may display error bars representing standard deviations, standard errors, confidence intervals, or another measure of variation or uncertainty.

These quantities should not be treated as interchangeable.

For example, AI may calculate standard deviations correctly but label them as 95% confidence intervals.

Alternatively, it may calculate a conventional standard error without accounting for repeated or clustered observations.

Researchers should inspect the exact calculations used to produce uncertainty indicators and confirm that the caption describes them accurately.

Can AI Misrepresent Regression Results in a Graph?

Yes. Regression visualizations introduce additional opportunities for numerical and interpretive errors.

AI may plot coefficients from the wrong model, omit reference categories, misrepresent confidence intervals, or apply incorrect transformations.

For example, logistic regression coefficients are commonly expressed on a log-odds scale. Exponentiating them produces odds ratios.

A coefficient plot must distinguish these representations because their reference values differ.

An odds-ratio plot generally uses a reference value of one, while an unexponentiated coefficient plot uses zero.

Using the wrong reference line can mislead readers about the direction or interpretation of an association.

Researchers should compare every plotted estimate and interval with the verified model output.

Can AI Plot Incorrect Coordinates in Scatterplots?

Yes. Scatterplots require the correct pairing of observations across variables.

Suppose a dataset contains students' weekly study hours and assessment scores. Each plotted point should represent the two values belonging to the same student.

If AI-generated code sorts the variables independently before plotting, the coordinates may combine values from different students.

The resulting scatterplot could suggest a relationship that does not exist in the original paired observations.

This problem may be difficult to recognize because the plotted values themselves remain within the expected ranges.

Researchers should verify observation identifiers and the alignment of variables before interpreting plotted relationships.

Can AI Produce Incorrect Time-Series Graphs?

Yes. Time-series graphs depend on correct ordering, date interpretation, and treatment of intervals.

AI may sort dates as text, combine measurements from different periods, or treat irregular observation intervals as equally spaced.

For example, a graph showing monthly student engagement might incorrectly place October before February because the date field was interpreted alphabetically.

Another problem occurs when AI fills missing months with invented values to produce a continuous line.

Researchers should verify the time variable, chronological order, missing periods, and whether connecting observations is methodologically appropriate.

Can a Graph Display Correct Labels but Incorrect Bar Heights?

Yes, particularly when a chart is produced as a rendered image rather than through a reproducible numerical plotting system.

A general-purpose image generator may create bars, axes, and numerical annotations that are not geometrically consistent.

For example, two bars labeled 60 and 80 might have nearly identical heights, or the bar labeled 60 might appear taller.

The numerical labels may be correct while the visual encoding is wrong.

Research figures should therefore be generated using methods that map verified numerical values to graphical positions or dimensions through defined procedures.

As discussed in AI-assisted research figure creation, reproducible computational plotting is generally preferable for empirical graphs.

Why Can Visual Inspection Fail to Detect Numerical Errors?

Visual inspection is useful for identifying obvious problems, but it is not a reliable substitute for numerical verification.

Small errors may produce only subtle differences in graphical positions or lengths.

Even larger errors may appear plausible when the viewer does not know the verified values.

Research on graphical perception by Cleveland and McGill (1984) demonstrates that different visual encodings vary in how accurately people can judge quantitative relationships.

This reinforces the need to evaluate numerical values directly rather than relying exclusively on visual estimates.

A figure should be checked against the data supplied to the plotting function, not merely judged by whether its pattern looks reasonable.

Can AI-Generated Plotting Code Produce Wrong Values?

Yes. Executable code can contain logical errors while running successfully.

For example, code may calculate the mean of the wrong variable, use an inappropriate filter, or group observations incorrectly.

The software will then plot the resulting values according to the instructions it receives.

The fact that the code executes without an error message does not establish that the calculations are scientifically correct.

Researchers should inspect the code, verify intermediate analytical outputs, and compare results with independent calculations where appropriate.

Does Reproducibility Guarantee That the Graph Is Accurate?

No. Reproducibility means that the same procedure can generate the same result under specified conditions.

An incorrect plotting script may reproduce the same incorrect graph repeatedly.

Nevertheless, reproducibility supports verification because it allows researchers to identify where a mistake occurred.

For example, a reviewer may discover that a graph used the wrong column by examining the code and plotting data.

Reproducibility and accuracy should therefore be treated as related but distinct requirements.

How Can Researchers Detect Incorrect Plotted Values?

The most reliable approach is to compare the plotting data with independently verified source values.

For a bar chart, this means checking each displayed summary against the original statistical output.

For a scatterplot, it means confirming that each coordinate pair corresponds to the correct observation.

For a regression figure, it means checking coefficients, confidence intervals, transformations, and reference values.

Researchers should also inspect labels, legends, axis limits, and graphical mappings.

Figure Component Verification Question
Plotted values Do they match the original observations or verified analytical results?
Group labels Are values assigned to the correct categories?
Statistical summaries Were the intended calculations and denominators used?
Error bars Do they represent the stated uncertainty or variation measure?
Axes Are units, scales, transformations, and limits correct?
Data exclusions Were missing or excluded observations handled according to the analysis plan?
Visual encoding Do graphical positions, lengths, and proportions correspond to the numerical values?
Interpretation Does the figure support the conclusion presented in the manuscript?

The more consequential the figure is to the study's conclusions, the stronger the justification for independent verification of its underlying calculations.

Can Automated Checks Detect Graphing Errors?

Yes. Researchers can use programmatic checks to identify inconsistencies between verified data and plotted values.

For example, a script can compare calculated group means with the values supplied to a plotting function and flag differences beyond an appropriate numerical tolerance.

Other checks can confirm expected category labels, sample sizes, missing-value counts, and the presence of required observations.

However, automated checks must themselves be designed correctly.

If both the plotting script and verification script use the same incorrect assumption, they may agree while remaining wrong.

Independent calculations or review of the original analytical outputs can provide additional assurance.

What Is the Difference Between Incorrect Values and Invented Data?

Incorrect plotted values may arise from calculation errors, mislabeling, or inappropriate transformations of authentic data.

Invented data involve introducing observations or results that were not obtained through the reported research or a properly identified analytical procedure.

Incorrect plotted value A value displayed inaccurately because of a calculation, mapping, transformation, or graphical encoding error.
Invented research value A numerical observation or result introduced without an authentic or appropriately documented analytical basis and potentially misrepresented as empirical evidence.

For example, plotting 76 instead of the verified mean of 74 may result from an error. Creating a fictional third experimental group and presenting its scores as observed results raises a different integrity concern.

The issue of AI inventing data during research visualization should therefore be distinguished from ordinary numerical mistakes, although both can compromise the accuracy of a figure.

Can Incorrect Graphs Affect Research Conclusions?

Yes. Figures influence how readers understand differences, trends, associations, and uncertainty.

An incorrect group label could reverse the apparent direction of an intervention effect. A miscalculated mean could exaggerate a difference. Incorrect confidence intervals could misrepresent the precision of an estimate.

These problems may affect the manuscript's interpretation even when the underlying statistical analysis was performed correctly.

Researchers should therefore verify that the narrative description, statistical tables, and figures consistently represent the same analytical results.

Can an Incorrect AI Graph Constitute Research Misconduct?

An incorrect graph does not automatically establish research misconduct.

Errors may arise from programming mistakes, misunderstanding of the data, or inappropriate analytical decisions.

However, knowingly or recklessly presenting altered or invented results as authentic research evidence may raise fabrication or falsification concerns under applicable research misconduct standards.

The U.S. Office of Research Integrity distinguishes fabrication and falsification from honest error.

Researchers should investigate discrepancies, correct affected figures, and determine whether the conclusions remain supported before making judgments about responsibility.

How Should Researchers Document Graph Verification?

A defensible verification record should connect the final figure to the original data and analytical outputs.

Relevant records may include the source dataset, variable definitions, calculation scripts, plotting data, final figure, and corrections made during review.

For important figures, a separate verification table can document the exact values expected and those displayed.

The process of verifying every value in AI-generated research figures provides a systematic approach to this task.

Researchers should also follow the current requirements of their target journal concerning figure preparation, data availability, and AI assistance.

Watch Out

Do not rely on a graph's visual plausibility as evidence of numerical accuracy. AI can produce a polished figure using the wrong variable, the wrong calculation, or the wrong category mapping. The error may be invisible until the plotted values are compared with the original analytical records.

04 · A Practical Example

When AI Reverses the Values of Two Experimental Groups

Hypothetical Example

A Researcher Creates a Graph of Student Assessment Scores

An educational technology researcher compares posttest performance between students receiving conventional instruction and students using an AI-supported learning platform.

The researcher asks AI to generate a bar chart from verified summary statistics.

All numerical values in this example are hypothetical.

Step 1: Establish the Verified Results

The original statistical output reports the following values:

Group Sample Size Mean Score Standard Deviation
Conventional instruction 50 72.4 8.2
AI-supported instruction 50 81.6 7.5

Step 2: Examine the AI-Generated Graph

The graph displays two bars with appropriate labels and standard deviation error bars.

However, the bar labeled "Conventional instruction" reaches 81.6, while the bar labeled "AI-supported instruction" reaches 72.4.

The values are genuine, but the category assignments have been reversed.

Step 3: Identify the Error

The researcher inspects the plotting code and discovers that the group labels were sorted alphabetically while the corresponding numerical values remained in their original order.

This caused the labels and values to become misaligned.

Step 4: Compare the Incorrect and Verified Mappings

Group Incorrect Graph Verified Mean Error
Conventional instruction 81.6 72.4 +9.2 points
AI-supported instruction 72.4 81.6 -9.2 points

Step 5: Examine the Consequence

The incorrect graph reverses the apparent direction of the observed group difference.

Readers would be led to believe that conventional instruction produced higher average scores, even though the verified results show the opposite pattern.

The graph's appearance provides no obvious indication that the labels are wrong.

Step 6: Correct and Verify the Figure

The researcher revises the code so that each group label remains linked to its corresponding numerical values.

The corrected figure is compared with the original statistical output.

The researcher also checks the standard deviation error bars, vertical axis, legend, and caption.

Step 7: Preserve the Verification Record

The verified summary table, corrected plotting code, and final graph are retained.

The example demonstrates that a graph can contain authentic numerical values while communicating a completely incorrect scientific result because of faulty data mapping.

05 · What Researchers Often Get Wrong

Common Misconceptions About Incorrect Values in AI-Generated Graphs

Misconception

Does a Professional-Looking Graph Indicate That the Values Are Correct?

No. Visual formatting and numerical accuracy are independent properties. A polished graph can contain incorrect calculations, category assignments, or graphical proportions.

Misconception

Can a Graph Be Wrong Even When Every Displayed Number Comes From the Dataset?

Yes. Authentic values can be assigned to incorrect variables, categories, participants, or measurement occasions. Correct numbers do not guarantee correct relationships between them.

Misconception

Does Successfully Executed Plotting Code Guarantee Correct Values?

No. Code can execute successfully while using incorrect formulas, filters, transformations, or mappings. Researchers must inspect the underlying calculations and plotting data.

Misconception

Can AI Mislabel Error Bars Without Changing Their Numerical Lengths?

Yes. A graph may display standard deviations while identifying them as confidence intervals. This changes the interpretation of uncertainty even when the plotted lengths remain unchanged.

Misconception

Is Visual Inspection Sufficient to Verify an AI-Generated Graph?

No. Visual inspection can identify obvious problems but may miss subtle numerical errors. Researchers should compare plotted values with verified source data and analytical outputs.

Misconception

Does Reproducing the Same Graph Prove That It Is Accurate?

No. An incorrect analytical procedure can reproduce the same incorrect visualization. Reproducibility supports auditing but does not replace numerical verification.

Misconception

Does Every Incorrect AI-Generated Graph Constitute Research Falsification?

No. Errors may result from honest mistakes or methodological problems. Formal misconduct determinations require additional evidence and criteria under the applicable framework.

06 · What This Means for You

How to Prevent AI From Plotting the Wrong Research Values

The most reliable approach is to separate the numerical verification of the plotting data from the visual inspection of the finished graph.

Before accepting a figure, confirm that the values, labels, and graphical elements all correspond to the intended research results.

1. Establish the verified source values

Use the original dataset or independently checked analytical output.

2. Inspect variable and category mappings

Confirm that every plotted value belongs to the correct variable, group, or observation.

3. Verify statistical calculations

Check means, percentages, denominators, uncertainty intervals, and transformations.

4. Examine the plotting data

Review the exact numerical table or object supplied to the graphing function.

5. Inspect graphical encoding

Confirm that bar heights, point coordinates, axes, labels, and legends represent the values accurately.

6. Compare the figure with the manuscript

Ensure that the figure, statistical tables, and written interpretation report consistent findings.

7. Retain the verification record

Preserve the source data, plotting code, corrected figures, and substantive audit decisions.

A Practical Prompt for Auditing an AI-Generated Graph

Illustrative AI Prompt

"I am verifying an AI-generated research graph against the original dataset and statistical output. The graph represents [variables, groups, and scientific endpoint]. Compare the exact plotting data with the verified source values. Check variable selection, category mappings, aggregation, missing-data handling, statistical calculations, uncertainty intervals, axes, labels, and graphical encoding. Produce an audit table showing each expected value, plotted value, discrepancy, and required correction. Do not assume that visually plausible figures are accurate. Do not invent missing values or claim verification where the original data or plotting code are unavailable."

This prompt can help organize an audit, but the model's findings should be checked against the actual data and executable plotting procedure.

For important figures, independent calculation of key values may provide an additional safeguard against errors shared by the original and verification workflows.

What Should Researchers Do When They Discover an Incorrect Graph?

The appropriate action depends on the nature and consequences of the error.

A Practical Correction Framework

If the wrong variable was plotted
Correct the variable mapping and regenerate the figure from the intended data.
If group labels were reversed
Restore the correct label-value relationships and verify the complete legend.
If summary statistics were calculated incorrectly
Recalculate them using the appropriate analytical procedure and inspect related results.
If uncertainty indicators were mislabeled
Verify the calculations and correct the graphical annotation and caption.
If the error affects the manuscript's conclusions
Reevaluate the interpretation and correct affected text, tables, and figures.
If the incorrect figure has already been published
Assess the consequences and consult the journal's correction procedures where appropriate.

The objective is not merely to make the graph look correct after revision. It is to establish that the final representation faithfully communicates the verified research results.

07 · A Quick Checklist

Before Accepting an AI-Generated Graph, Verify Every Numerical Mapping

Before publishing a graph created with AI assistance, check:
Confirm that the correct source dataset and variables were used.
Verify that each value corresponds to the intended group, participant, or measurement occasion.
Check calculations of means, totals, proportions, and other displayed statistics.
Inspect missing-data handling, exclusions, filters, and transformations.
Verify error bars, confidence intervals, and statistical annotations against the original analysis.
Confirm that plotted coordinates, bar heights, and graphical proportions match the numerical values.
Check axis limits, scales, units, labels, and legends.
Compare the figure with the corresponding statistical tables and manuscript interpretation.
Preserve the plotting data, executable code, and relevant verification records.
Correct discrepancies before submission and reassess any conclusions affected by them.
08 · Frequently Asked Questions

Frequently Asked Questions About Incorrect Values in AI-Generated Graphs

Can ChatGPT generate a graph with incorrect values?

Yes. ChatGPT may generate incorrect calculations, select the wrong variables, or misassign values to categories. Researchers should verify the plotting data and final graphical output against the original research records.

Can an AI-generated graph look correct even when the numbers are wrong?

Yes. A graph may follow professional design conventions while displaying incorrect numerical values or relationships. Visual plausibility does not establish data accuracy.

Can AI reverse group labels in a research graph?

Yes. Category mapping errors may assign correct values to incorrect groups. Researchers should verify the association between labels and values rather than checking the numbers alone.

Can AI plotting code contain errors even when it runs successfully?

Yes. Code may execute without technical errors while performing incorrect statistical calculations or using unintended variables and filters.

How can researchers check whether AI plotted the correct values?

Compare the exact data supplied to the plotting function with verified source values, independently check relevant calculations, and inspect the graphical encoding and labels.

Can AI-generated error bars be wrong?

Yes. Error bars may be calculated incorrectly or labeled as the wrong uncertainty measure. Researchers should verify their numerical basis and interpretation.

Is an incorrect AI-generated graph considered research misconduct?

Not automatically. Errors may arise from honest mistakes or methodological problems. Formal misconduct findings require additional criteria under the applicable research integrity framework.

Should researchers correct a graph if the error does not change the conclusion?

Yes. A research figure should accurately represent the evidence regardless of whether the main conclusion changes. If the figure has already been published, the appropriate correction procedure depends on the journal and the significance of the error.

09 · The Bottom Line

A Graph Can Be Visually Convincing and Scientifically Incorrect

The Bottom Line

Generative AI can produce graphs that appear correct while plotting wrong values, reversing categories, miscalculating statistics, or displaying inaccurate uncertainty. Visual quality and numerical fidelity must therefore be verified independently.

Check the exact values supplied to the plotting function, confirm their relationship to the original research data, and inspect how those values are represented graphically. A research figure is trustworthy not because it looks convincing, but because its numerical and visual claims can be traced to verified evidence.

10 · Sources and Further Reading

Research on Graphical Accuracy, Data Visualization, and Research Integrity

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes