# How can AI help your company run quantitative research?

Quantitative research with AI means using artificial intelligence to write the questionnaire, size the sample, clean the dataset, calculate results and build charts, while a person checks the method and the numbers. See what published tests show about AI accuracy in statistics, where it goes wrong, a step-by-step guide with a hypothetical example and the care needed with personal data.

Canonical URL: https://thecompanybrain.com.br/en/articles/quantitative-research-ai-company
Authors: Luiz Gardelin
Updated: 2026-11-24T17:43:29.267Z

![3D illustration of cream beads lined up in rows of different lengths, like a bar chart, with one blue bead circled by a yellow ring, on an orange background.](https://thecompanybrain.com.br/api/media/file/recurso-pesquisa-quantitativa-ia-empresa.webp)

The Company Brain, site thumbnail

Quantitative research with AI is the use of [artificial intelligence](/en/glossary/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](/en/glossary/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](/en/glossary/model-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](/en/glossary/personal-data).

## Key points

- Quantitative research with AI means using artificial intelligence to write the questionnaire, size the sample, clean the dataset, calculate results and build charts, with a person responsible for checking each step before the next one.
- In a test published in the Journal of Medical Internet Research, ChatGPT running code got every data cleaning and descriptive statistics task right, but on statistical tests accuracy was 32.5% with a vague prompt and 92.5% with a detailed one.
- AI makes more mistakes when it calculates without running code, picks the test on its own, accepts default function settings, changes data without saying so, uses the wrong base for percentages or invents causes for differences.
- To check the numbers, prepare a data dictionary, require the code behind every calculation, repeat the analysis in new conversations and ask someone else to recompute three values in the spreadsheet.
- Remove names, emails, phone numbers and tax IDs before uploading the dataset, use a company account and do not publish breakdowns with few responses, because they identify people even without names.

## 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](https://pmc.ncbi.nlm.nih.gov/articles/PMC11845875/) 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](/en/glossary/ai-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](https://pmc.ncbi.nlm.nih.gov/articles/PMC11845875/). 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](https://pmc.ncbi.nlm.nih.gov/articles/PMC11845875/).

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](https://www.mathematica.org/blogs/trusting-your-llm). The same evaluation observed that [poorly labeled variables and weak documentation degraded the performance of every model](https://www.mathematica.org/blogs/trusting-your-llm).

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](https://arxiv.org/html/2311.12415v2). And a 2024 analysis with two language models showed that [accuracy on simple additions falls as numbers get larger and require more carry operations](https://desirivanova.com/post/llm-stats-evals/).

| 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](/en/articles/organizational-management-ai-company): 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](/en/articles/internal-survey-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.

1. **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.
2. **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.
3. **Default function settings.** Analysis functions have parameters already switched on. Ask the AI to list the parameters used and explain each one.
4. **Silent cleaning.** Blank answers filled with the average or extreme values removed change the result. Ask for a list of everything that was changed.
5. **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.
6. **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](https://discourse.datamethods.org/t/accuracy-of-chatgpt-on-statistical-methods/6402). Check the direction of every comparison.
7. **Invented cause.** AI explains differences between groups with plausible reasons the survey did not measure. This behavior is a form of [AI hallucination](/en/articles/ai-hallucination) and belongs in the report as a hypothesis.
8. **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.

1. **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.
2. **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.
3. **Choose the mode that runs code.** Assistants such as [ChatGPT](/en/glossary/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.
4. **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.
5. **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".
6. **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.
7. **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.
8. **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.
9. **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.
10. **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](/en/articles/data-quality-ai-company).

## 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)](/en/glossary/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:

1. 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](/en/glossary/pseudonymization); the table linking codes to people stays outside the tool.
2. 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](/en/articles/classify-information-for-ai-use).
3. 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.
4. 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](/en/services/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](/en/services/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](https://thecompanybrain.com.br/en/contact).

## Sources

- [ChatGPT for Univariate Statistics: Validation of AI-Assisted Data Analysis in Healthcare Research](https://pmc.ncbi.nlm.nih.gov/articles/PMC11845875/): 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](https://www.mathematica.org/blogs/trusting-your-llm): 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](https://arxiv.org/html/2311.12415v2): 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](https://desirivanova.com/post/llm-stats-evals/): 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](https://discourse.datamethods.org/t/accuracy-of-chatgpt-on-statistical-methods/6402): 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.

## Related reading

- [Organizational AI assessment | The Company Brain](/en/services/organizational-ai-assessment)
- [Custom AI solutions | The Company Brain](/en/services/ai-solutions)
- [How do you run an internal survey on employees' use of AI?](/en/articles/internal-survey-employee-ai-use)
- [How do you assess data quality for AI in your company?](/en/articles/data-quality-ai-company)
- [What is AI hallucination and how do you recognize a made-up answer?](/en/articles/ai-hallucination)
- [How do you run organizational management with AI in your company, from indicators to results meetings?](/en/articles/organizational-management-ai-company)
