Can AI Get Numbers Wrong in Data Analysis? Yes, and Why
Can AI get numbers wrong in data analysis? Yes. See why language models misstate figures, how to check them in Excel, and how Decifox avoids it.
· By SavoE
Can AI get numbers wrong in data analysis? Yes. It can and it does, often enough that you shouldn't paste an AI-written total into a report without checking it. The answer comes back in confident, fluent sentences either way, and that's how a wrong one slips through.
Decifox avoids the problem by never letting the AI type a figure. Further down there's a real report to open, built from 1,000 fictional employee records, where the exact figures matter. First, though: why it happens, and how to check any AI answer against your own spreadsheet.
Can AI get numbers wrong in data analysis? Here's why it happens
A language model writes text one piece at a time, choosing what is most likely to come next. A number is just more text to it. Ask "what was the average salary in Sales?" and it can produce a figure that is the right size and the right format and still isn't the average of your rows.
A few things make it worse:
- It isn't running a formula. A spreadsheet adds up cells. A model that isn't handing the sum to code is estimating.
- Long columns. The more rows there are to add up, the more room there is for a slip.
- Partial data. If a tool reads only part of a large file, anything it says about the whole file is a guess.
- Rounding and unit drift. Figures drift between one sentence and the next.
Some tools do run code to calculate, and that removes the first problem. It doesn't remove the others, and you can't tell from the answer which kind of tool wrote it, so check.
How to check an AI-written figure in Excel
You don't have to distrust everything: check the figures you're going to repeat to someone else.
- Recompute it. Use
=SUM(),=AVERAGE()or=COUNTIFS()on the column the AI described. If you can't find the column, that's already a finding. - Check the row count.
=COUNTA()on an ID column tells you whether the AI looked at all the rows or only some. A total from a fraction of the rows looks perfectly reasonable. - Check the denominator. For any percentage, ask "percentage of what?" Attrition is leavers divided by all employees, not leavers divided by current staff.
- Spot-check one group. Filter to a single department, add it up by hand and compare. If one group matches, that doesn't prove the rest do, but a mismatch tells you to stop.
- Look for figures that appear twice. The same measure quoted two ways in one answer is a sign the model is writing numbers rather than reading them.
This works with any tool, including Decifox. It's also slow for a whole report, which is the reason to design the tool so the AI never does the arithmetic in the first place.
How Decifox keeps the AI away from the arithmetic
Decifox splits the job. The AI reads your question, a summary of your columns and a sample of rows, and decides what to measure and chart. Fixed code then works out every total, average and share from your rows, the way a spreadsheet formula would. The AI writes the headlines and insights with blanks where figures go, and Decifox fills the blanks. If the AI has typed a figure into its own text, Decifox rejects it.
Here are the first two sentences of the example report below, as the AI wrote them and as you read them.
What the AI writes: Overall attrition is
{att}, and{topDept}is the main source at{topDeptAtt}. Women earn{payRatio}of men's average pay.What you read: Overall attrition is 15.6%, and Customer Support is the main source at 34.2%. Women earn 96.6% of men's average pay.
The AI chose what to say: attrition, the department behind it and the pay ratio. It never had the chance to write 15.6%, 34.2% or 96.6%, because those came from the spreadsheet's rows. You can read more about the split in the guide to AI report generators from Excel.
Why a wrong figure costs more in an HR report
A mistake in a sales report costs you an afternoon. A mistake in HR data can change what people are paid, who gets a conversation and what a manager believes about their team. A pay gap that is slightly too small or too large tells a different story, and nothing in the wording of the answer would warn you.
That's why this example uses fictional HR records: 1,000 employees with made-up names. Open it, filter by department or gender, and see how the numbers behave.
All names and figures in this example are fictional. No real people or patients are represented.
You can also open the spreadsheet it was built from on the example page and check any figure in Excel using the routine above. Try the pay gap: the report shows Women in Marketing earn 91.3% of male average pay, the lowest ratio of any department.
What the code can't check for you
Correct figures aren't the same as correct conclusions, and someone still has to read the report. The same example shows three places where that matters.
Choosing the comparison. The AI decides what to compare. If you wanted pay by job grade and it chose pay by department, every figure can be right and the report still answers a different question. Read the headline and ask whether it's the question you meant.
Small groups. The report itself warns about this one: "Non-binary employees number only 13", and their pay and attrition figures shouldn't be ranked against the larger groups. The calculation is right. Whether it means anything is for you to decide.
Interpretation. The report notes that part of the overall pay gap probably reflects which roles women and men hold. That's a reading of the data, not something the numbers prove, so treat it as a prompt to look more closely.
Bad data also gets calculated faithfully: if the spreadsheet has a wrong entry, the report will report it.
FAQ
Can ChatGPT and other AI chat tools get numbers wrong?
Any language model can, because it generates likely text rather than performing arithmetic. Some chat tools pass calculations to code, which helps. Whichever you use, recompute a figure before you repeat it.
What kinds of mistakes does AI make with data?
Wrong totals and averages, percentages with the wrong denominator, figures that change between sentences, and confident statements about rows it never read. It can also compare the wrong things.
How do I check an AI answer against my spreadsheet?
Recompute it with SUM, AVERAGE or COUNTIFS on the column it used, confirm the row count and spot-check one group by hand.
Does the AI in Decifox ever calculate or type a figure?
No. It plans the report and writes the text with blanks. Decifox calculates every figure from your data, fills the blanks and rejects text in which the AI typed a figure itself.
So are Decifox reports always right?
The figures are calculated from your rows, so they match the spreadsheet. The AI can still choose a comparison you didn't want, and the spreadsheet itself might contain mistakes, so read the report with your own question in mind.
The short version
AI gets numbers wrong because it predicts text instead of calculating. Check anything you'll repeat, and prefer a tool where code does the sums and the AI does the wording.
The illustrations in this article were generated with AI.
Related examples
- Expert
Headcount, Attrition, Pay and Satisfaction by Department, Job Title and Gender
Headcount, attrition, pay and the gender pay gap by department and job title, and how satisfaction relates to leaving.
Employee HR Records (1,000 rows)
Make a report like this
Upload a spreadsheet, describe what you want to know and get an interactive report.
Try it with your own spreadsheet