Quantitative research with AI is the use of artificial intelligence tools in the steps of a survey that measures opinions or behavior in numbers: writing the questionnaire, deciding how many responses are needed, cleaning the dataset, calculating results and building charts. In an employee engagement survey or a customer satisfaction survey, AI shortens the spreadsheet work that usually falls to someone in HR, marketing or customer service with no training in statistics. It also gets calculations wrong and picks unsuitable methods with the same confidence it shows when it is right. This article shows which steps to use AI for, what published tests show about model accuracy, where the most common errors are, how to check the numbers and what care to take with respondents' personal data.
What does the data show about AI accuracy in calculations and statistics?
Published tests show that AI often gets data organization and simple statistics right when it runs code, and makes more mistakes when it has to choose the method or answers without access to the data. In a study published in the Journal of Medical Internet Research, ChatGPT running Python got every task right when reclassifying, subsetting and tabulating variables and when calculating the mean, standard deviation, median and interquartile range on a dataset of 2,740 US hospital records, with ten attempts per task.
On statistical tests, which check whether a difference between groups is larger than chance would explain, the result depended on the prompt. In the same study, accuracy on test values was 32.5% when the prompt contained only the question and the variables, 81.3% when it included the cleaning steps and the assumption checks, and 92.5% when it also named the test to use. The most frequent error was choosing the wrong test, in 51 attempts. Another error was repeated 13 times: the AI accepted the default setting of a Python function that applied a correction meant for small samples to a large dataset.
The difference between calculating "in its head" and running code shows up in a Mathematica evaluation with 35 tasks on microdata from the American Community Survey, the ongoing household survey of the US Census Bureau. Without access to the data, the models had error rates often large enough to change the conclusion of whoever had to decide; with code execution, accuracy on descriptive tasks ranged from 75% to 92%, depending on the model. The same evaluation observed that poorly labeled variables and weak documentation degraded the performance of every model.
Two other records explain why the analysis should be repeated. In a University of Liverpool test, the same prompt in four ChatGPT sessions produced three consistent results and one about 700 times larger than expected. And a 2024 analysis with two language models showed that accuracy on simple additions falls as numbers get larger and require more carry operations.
| Study | What was tested | Result |
|---|---|---|
| Ruta and colleagues, Journal of Medical Internet Research, 2025 | Cleaning, tabulation and descriptive statistics with code execution | Correct in every attempt |
| Ruta and colleagues, Journal of Medical Internet Research, 2025 | Statistical tests, by level of prompt detail | 32.5%, 81.3% and 92.5% accuracy |
| Mathematica, 2026 | Descriptive tasks with code execution, 35 tasks | 75% to 92% accuracy, depending on the model |
| Low and Kalender, University of Liverpool, 2023 | Same prompt in four sessions | Three consistent results and one off the scale |
These studies used health, census and physics lab datasets outside Brazil, and model versions that have since changed. They do not measure accuracy on your company's satisfaction survey. What applies to it are the patterns: run code, detail the prompt, repeat and check.
Which steps of a quantitative survey does AI help with, and who checks each one?
AI helps with every step of a quantitative survey, as long as each step has a person responsible for checking the result before the next one. The table lists what to ask the tool and what the person checks.
| Step | What to ask AI | What the person checks |
|---|---|---|
| Questionnaire | Review questions, flag ambiguities, suggest scales | Whether each question serves the decision and whether the scale is balanced |
| Sample | Calculate the number of responses for the chosen margin of error | The formula used, the population size and the margin |
| Cleaning | Find duplicates, incomplete responses and out-of-range values | The list of records changed or removed |
| Calculations | Counts, percentages, averages and group breakdowns, with the code | The base of each number and three values recomputed in the spreadsheet |
| Statistical tests | Apply the chosen test, with parameters and assumptions explained | The choice of test, ideally with someone who knows statistics |
| Charts | Build charts with title, base and period | Scale, axis and whether the chart shows what the text claims |
| Report | Draft text with hypotheses flagged | Every number cited and every explanation of cause |
The same principle applies to organizational management with AI: the official number comes from a checked dataset, and the explanation AI offers for it is a hypothesis until someone confirms it.
How do you use AI to write the questionnaire without biasing the answers?
To use AI on the questionnaire, first write down the decision the survey will support and ask the tool to review each question against that decision and against the most common wording flaws. AI is useful as a reviewer because it quickly finds problems the author tends to miss.
Ask it to flag, question by question:
- Double-barreled questions, such as "Are you satisfied with the service and the price?", which combine two subjects in one answer.
- Leading questions, such as "How much did you like the new opening hours?", which assume an opinion.
- Unbalanced scales, with more positive options than negative ones.
- Overlapping options, such as age brackets "18 to 25" and "25 to 35".
- A missing "don't know" or "not applicable" option when the person may have no way to answer.
After the review, test the questionnaire with five to ten people from the audience before sending it and ask where they hesitated. AI does not replace this test, because it does not know how your customer or employee understands each word. If the survey is about employees' own use of AI, there are specific questions and anonymity precautions in the article on the internal survey on employee AI use.
How do you set the sample size of a quantitative survey with the help of AI?
To set the sample size, choose the acceptable margin of error and the confidence level, give the population size and ask the AI to calculate the number with the formula and show the calculation. The margin of error is how far the sample result may be from the result you would get by asking everyone.
For a proportion, the most common formula starts from n = z² × p × (1 − p) / e², where z is 1.96 for 95% confidence, p is 0.5 when the expected proportion is unknown and e is the margin of error. With a 5% margin, the result is about 385 responses. When the population is small, the finite population correction applies: adjusted n = n / (1 + (n − 1) / N), where N is the population size.
| Population | 5% margin | 3% margin |
|---|---|---|
| 400 people | 197 responses | 292 responses |
| 1,000 people | 278 responses | 517 responses |
| 5,000 people | 357 responses | 880 responses |
Values calculated at 95% confidence with p equal to 0.5, rounded up.
Check two conditions before using the margin in the report. The formula assumes people were randomly drawn, and a survey sent to everyone and answered by whoever wanted to is not a random draw: those who answer may differ from those who do not. In that case, compare the profile of respondents with that of the population, by department, unit or customer tenure, and state in the report where they differ. The second condition is the breakdown: a 5% margin applies to the total, and a group of 40 responses has a much larger margin.
Where does AI go wrong with calculations and statistics?
AI goes wrong mainly when it calculates without running code, when it chooses the method on its own and when it handles the data in ways it does not disclose. The errors below are the ones that show up most in a company survey.
- Mental arithmetic. Without running code, the model predicts the next piece of text, and a number can come out wrong while looking right. Require every value to come from code run on the file.
- Wrong test. The tool may apply a test that assumes a normal distribution to 1-to-5 ratings. Say which test to use or ask it to justify the choice before calculating.
- Default function settings. Analysis functions have parameters already switched on. Ask the AI to list the parameters used and explain each one.
- Silent cleaning. Blank answers filled with the average or extreme values removed change the result. Ask for a list of everything that was changed.
- Wrong base. In multiple-choice questions, percentages add up to more than 100%, and the base may be total responses or total people. Every table needs to show its base.
- Swapped groups. In a 2023 report on a statisticians' forum, ChatGPT calculated 20.4% deaths in one group and 29.3% in the other and concluded that the group with 29.3% had the lower risk. Check the direction of every comparison.
- Invented cause. AI explains differences between groups with plausible reasons the survey did not measure. This behavior is a form of AI hallucination and belongs in the report as a hypothesis.
- Different result each time. Repeat the main analysis in at least three new conversations, as the authors of the Journal of Medical Internet Research study recommend, and compare the numbers.
How do you analyze quantitative survey responses with AI and check the numbers?
To analyze the responses with AI, prepare the dataset without data that identifies people, use a tool that runs code and check the main numbers in the spreadsheet before writing the report. You will need the file exported from the form, a company account for an AI tool with data analysis, a spreadsheet and someone other than the analyst for the final check.
The example is hypothetical: a fictitious gym chain with 5,000 active members ran a satisfaction survey with a 0-to-10 score and eight closed questions, and received 612 responses.
- Prepare the dataset. The marketing analyst exports the responses to a spreadsheet, deletes the name, email and phone columns and keeps one code per response. Check that no open-text column contains names typed by members.
- Write the data dictionary. In a separate tab, she records for each column the full question, the type of answer and the meaning of each code, such as "1 = very dissatisfied, 5 = very satisfied". The Mathematica evaluation showed that poorly labeled variables worsen results; the dictionary addresses that.
- Choose the mode that runs code. Assistants such as ChatGPT, Claude and Gemini have modes that run Python on the uploaded file and show the code; the name and availability vary by plan. If the answer gives numbers without code, ask for the code before moving on.
- Ask for cleaning with a log. Example prompt: "Count the rows, find duplicate responses, rows with no answers and scores outside 0 to 10. Do not delete anything: list the codes found and the reason." In the example, the AI finds 9 duplicates and 3 blanks. The analyst decides to remove the 12 and records the decision, leaving 600 responses.
- Ask for descriptive statistics with the base. Ask, question by question, for counts, percentages and averages, with the base in every table. For breakdowns by unit, ask for groups with fewer than 30 responses to be flagged as "small base".
- Ask for tests only with the method defined. If you need to compare the score between two units, name the test or ask the AI to propose one, explain the assumptions and only then calculate. Take the choice to someone who knows statistics when the result supports an investment decision.
- Repeat. Run the same calculation prompt in two new conversations. If the average score or a percentage changes, find out which step diverged before using the number.
- Check three numbers by hand. Someone else recomputes in the spreadsheet the total of valid responses, the percentage for one question and the average for one unit. If any value differs, go back to step 4 and check the cleaning.
- Review the charts. Check that the bar axis starts at zero, that the title states the question, the base and the period, and that the chart shows what the text claims.
- Write the conclusions. AI can draft the text, but every explanation of cause is flagged as a hypothesis, and the analyst decides what goes into the report.
The completion test is simple: someone else, with the clean dataset and the dictionary, arrives at the same three numbers from step 8 and understands, from the note in step 4, why 12 responses were removed. Problems at the source, such as duplicate records in the customer system, are not solved in the analysis; they are covered in the article on data quality for AI.
What care with personal data does quantitative research with AI require?
Quantitative research with AI requires respondents' personal data to stay out of the tool whenever the analysis does not need it, and the tool to be approved by the company for the type of information involved. Brazil's General Personal Data Protection Law (LGPD) requires the use of data to be limited to the stated purpose and to the minimum necessary.
In practice, four precautions cover most of the risk:
- Remove names, emails, phone numbers and tax IDs before uploading the file and use one code per response. This replacement of identifiers with codes is called pseudonymization; the table linking codes to people stays outside the tool.
- Use a company account with its terms of use checked, not a free personal account. If the company has not yet defined which information can go into each tool, start with classifying information for AI use.
- Do not publish small breakdowns. In an engagement survey, a cross of department, role and tenure with three responses identifies the people, even without names.
- State in the survey invitation what the responses will be used for and who will have access to them.
How does The Company Brain help a company use AI in surveys?
When a department repeats the same survey every quarter and each analyst uses AI differently, we talk to the people doing the work and follow one analysis from start to finish. In the organizational AI assessment, that follow-up shows where AI saves time, where it introduces risk into the numbers and which data should not go into the tools. When the routine justifies it, the recurring survey can become a tool for the team itself, with a data dictionary, standard prompts and defined checks, as we do in custom AI solutions.
If your team already runs engagement or satisfaction surveys and wants to use AI in the analysis without losing confidence in the numbers, bring the latest questionnaire and the way results are calculated today. We can talk about where AI helps in that routine and who checks each step. Schedule a conversation.
Common questions
What is quantitative research with AI?
Quantitative research with AI is the use of artificial intelligence tools in the steps of a survey that measures opinions or behavior in numbers, such as an employee engagement or customer satisfaction survey. AI helps review the questionnaire, calculate the sample size, clean the dataset, produce counts, averages and charts and draft the report. A person checks the method and the numbers at each step.
Does AI get the statistical calculations of a survey right?
AI often gets simple calculations right when it runs code on the file, but it makes more mistakes when choosing the statistical test. In a Journal of Medical Internet Research study with 2,740 records, ChatGPT got every cleaning and descriptive statistics task right, and accuracy on statistical tests was 32.5% with a vague prompt, 81.3% with an intermediate prompt and 92.5% with a detailed prompt. The studies used US datasets and model versions that have since changed.
What is the difference between AI calculating in its head and running code?
When it calculates in its head, the language model predicts the text of the answer and can produce a wrong number that looks right. When it runs code, it writes a program, runs it on the data and shows the result and the code, which can be checked. In a Mathematica evaluation, models without access to the data had errors often large enough to change conclusions, and with code execution they reached 75% to 92% accuracy on descriptive tasks.
What are the most common AI errors in survey analysis?
The most common AI errors in survey analysis are calculating without running code, choosing the wrong statistical test and accepting default function settings that do not suit the dataset. Silent data cleaning, percentages with the wrong base, swapped groups in a comparison and invented causes for differences the survey did not measure also appear. The result can also change from one run to the next.
How do you check the numbers of a survey analyzed with AI?
To check the numbers of a survey analyzed with AI, ask for the code behind each calculation and for a list of every row changed or removed during cleaning. Repeat the main analysis in at least three new conversations and compare the results. Finally, someone else recomputes in the spreadsheet the total of valid responses, one percentage and one average; if any value differs, go back to the cleaning.
Can I upload survey responses that contain personal data to an AI tool?
Before uploading survey responses to an AI tool, remove names, emails, phone numbers and tax IDs and use one code per response, keeping the table that links codes to people outside the tool. Use a company account with its terms of use checked, not a free personal account. Also, do not publish breakdowns with few responses, because they identify people even without names.
Sources
- ChatGPT for Univariate Statistics: Validation of AI-Assisted Data Analysis in Healthcare Research Journal of Medical Internet Research (PubMed Central)
Ruta and colleagues. GPT-4 running Python on 2,740 records from the 2019 National Inpatient Sample (US), 10 attempts per task; accuracy measured against Python, SAS and R. Univariate analysis, health data.
- Trusting your LLM: AI's handling of complex statistical data Mathematica
Blog summary of an in-house evaluation with 35 tasks on American Community Survey microdata (US), with and without code execution. Does not report every model or every rate.
- Data Dialogue with ChatGPT: Using Code Interpreter to Simulate and Analyse Experimental Data arXiv (University of Liverpool)
Low and Kalender. Exploratory test with one physics lab activity; the same prompt in four ChatGPT-4 Code Interpreter sessions.
- Towards more rigorous evaluations of language models Desi R. Ivanova, Ilija Ilievski and Momchil Konstantinov
Technical blog. Addition accuracy by number of digits and carry operations, with Llama-3-8B-Instruct and Phi-3.5-mini-Instruct.
- Accuracy of ChatGPT on Statistical Methods datamethods
Statisticians' forum, thread opened in January 2023. Individual report from March 25, 2023 in which ChatGPT reversed the direction of a comparison; used only as an illustration.
A conversation about your organization.
Before recommending any tool, we talk with your teams and map how the work really happens.
Arrange a conversation



