When it does not work

Why does AI get numbers wrong when analyzing data?

AI can get numbers wrong because it misread a file, selected the wrong records, or calculated a different metric. Tracing the data helps you find the cause and check the answer before using it.

In short

  • Check five stages: access, selection, metric definition, calculation, and interpretation.
  • A convincing figure can be wrong if rows are missing or a query duplicates records.
  • A test with known results lets you compare the system before and after a fix.
  • A formula, SQL query, or dashboard may handle a recurring calculation better without AI.

Why does AI get numbers wrong when analyzing data?

An error can occur before the system adds anything. That's why it helps to trace how it reached the answer.

Access and reading: The assistant may receive an old file, read the wrong sheet, or interpret a column as text. It can also confuse numbers when extracting them from a scanned PDF. The OpenAI data analysis guide warns that extracting table values from images or complex layouts may not be reliable enough.

Selection: The system may exclude valid records, use the wrong period, or duplicate rows when joining tables. A query can run without errors and still answer a different question.

Metric definition: “Overdue receivables” could mean the outstanding balance as of the cutoff date or the original value of overdue invoices. Without an agreed definition, two different results can both seem reasonable.

Calculation and interpretation: A formula may point to the wrong range, or the assistant may describe a total as an average. A clear answer doesn't prove the calculation is correct.

Even if a system recognizes a table's structure, it can cite a value incorrectly or leave one out. These failures appear in a study by Yang and coauthors on reading tables. Checking the structure alone doesn't confirm that the values used are correct.

How can you check a figure before using it?

Keep the original file and work on a copy. That way, you can repeat the test without changing the evidence of the error.

  1. Confirm what data the system received. Check the file name and version, sheet, and headers. Compare the number of records with the source. For a scanned PDF, compare extracted values with the visible cells. The row count can reveal missing records, but it doesn't prove every value is correct.
  2. Define the question before calculating. Agree on the metric, period, and exclusions with the person who uses the result. The OpenAI Academy data analysis guide recommends specifying those criteria and asking for assumptions and formulas. Check for missing data and unusual values, too.
  3. Inspect the selected records. Ask for a list of included and excluded rows, with the reason for each exclusion. If the system joins tables, verify that each operation keeps the expected number of records. An invoice repeated because it has several associated payments can inflate the total.
  4. Review the calculation it ran. If the tool runs code or a SQL query, inspect the filters, operations, and intermediate results. Check the calculation with an independent formula or query. If you can't see how it calculated the figure, ask for evidence. A written explanation doesn't prove it ran that calculation.
  5. Repeat the test after the fix. Save a small set of cases with results calculated and reviewed by a person. Include missing records, duplicates, and cutoff dates. Compare results before and after the change. Check both incorrect figures and correct figures the system flagged by mistake.

What does a test with known results look like?

This example is illustrative; it doesn't describe a client.

An accounts receivable team provides a file with four invoices. Their outstanding balances are 100, 200, 50, and 80. At the agreed cutoff date, the invoices with balances of 100 and 80 are overdue; the others aren't.

The assistant is asked to add the outstanding balances of invoices overdue at the cutoff date. The expected result is 180, with two invoices included. The system should show which invoices it used and what formula or query it ran.

If it answers 280, the team checks the invoice list before changing the prompt. It may have included an invoice that wasn't overdue or duplicated the invoice with a balance of 100 when joining data. The list and query help distinguish between those causes.

After fixing the filter or join, we repeat the test with the same file. We also test a case with no overdue invoices and another with missing values. We save the file version, prompt, and results so we can compare future changes.

The same approach applies to an accounts receivable aging report. First, agree on the balance and cutoff date; then check each classification.

Which option should you use to get reliable figures?

The choice depends on where the data lives, how often you calculate the metric, and what evidence you need to keep.

OptionWhen to use itWhat to check
Existing formula, SQL query, or dashboardThe metric is stable and the data is already organized.Permissions, filters, and metric definition.
Your tool's analysis featureYou need to explore a file and can review the calculation.File used, selected records, and available code.
Automation platformYou need to move data between tools and apply repeatable rules.Connections, duplicates, and error logs.
Custom developmentYou need specific controls or must integrate several sources.Data access, tests, maintenance, and ownership.

Cost and timing depend on data quality and access, integrations, and the level of review needed. If the system is already failing, document the error. That helps you decide whether to fix it or seek AI project rescue.

What we do

Frequently asked questions

Why does ChatGPT seem to make up data?
It may fill an answer with information that isn't in the file, misread a value, or use different records than expected. You can't always identify the cause from the final answer alone. Ask for the rows used and the calculation. If they aren't available, check the figure again against the source.
How do I keep AI from making mistakes when analyzing a file?
No prompt guarantees an error-free result. Define the metric and period, confirm the file, and check the included records. For figures that affect decisions, compare the calculation with an independent source. Keep test cases to detect whether a change fixes one error and introduces another.
Can ChatGPT analyze tables in scanned PDFs?
It can process some files with visual content, but exact extraction of numbers isn't always reliable. The result depends on the file and the features available in the tool. Compare extracted values with the original document and, if possible, ask for the table in an editable data format.
If the code ran successfully, is the figure correct?
Not necessarily. Code can run without failing and still use the wrong date, omit records, or apply a different formula than agreed. Check the input data, the rules applied, and the result. Comparing it with a case where you already know the answer can catch some of those errors.
When should I fix the system instead of replacing it?
Investigate a fix when you have access to the data, instructions, and calculation, and can reproduce the failure. If that information is missing, you first need to recover it or rebuild a test. The decision also depends on maintenance, integrations, and the effort needed to compare results before and after.
Message on WhatsApp