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

Should Researchers Trust a Sample Size Calculated by an AI Chatbot?

AI chatbots can produce convincing sample size calculations, but correct arithmetic does not guarantee methodological accuracy. Learn how to check formulas, assumptions, inputs, rounding, and reproducibility before accepting an AI-generated sample size.

276
Trusting AI Sample Size Calculations Guide 276 of 1196
01 · The Question

If ChatGPT Gives You a Sample Size and Shows the Formula, Can You Trust the Answer?

You ask an AI chatbot to calculate the sample size for your research. It provides a precise number, displays a statistical formula, substitutes the values, and explains why the result is appropriate.

Everything appears mathematically convincing. You may even receive the same answer when you ask the chatbot to calculate it again.

But what if the formula does not match your research design? What if the chatbot silently assumes a medium effect size, overlooks the sampling structure, or applies a finite population correction that is not justified?

A sample size calculation can be wrong in more than one way. The arithmetic may be incorrect, the inputs may be unsupported, or the entire calculation may answer a different statistical question from the one your research actually asks.

The central concern is therefore not simply whether an AI chatbot can perform arithmetic. It is whether the resulting sample size has a defensible methodological basis.

02 · The Short Answer

AI-Calculated Sample Sizes Can Be Useful, but They Should Never Be Accepted Without Verification

In Brief

Researchers should not trust an AI-generated sample size solely because the chatbot provides a formula, detailed explanation, or precise numerical answer. Generative AI can help identify calculation methods and explain their assumptions, but it may select an inappropriate formula, invent missing inputs, overlook design features, or make computational errors. The calculation should be independently reproduced and evaluated against the research question, statistical analysis, and sampling design.

A numerically correct answer is not necessarily a methodologically appropriate answer. Verification must establish both that the calculation was performed correctly and that the calculation itself was suitable for the study.

03 · What You Need to Know

Why AI-Generated Sample Size Calculations Require Independent Verification

What Does It Mean for a Sample Size Calculation to Be Correct?

A defensible sample size calculation involves several distinct requirements.

First, the calculation must address the correct statistical or methodological objective. Second, the selected formula or computational procedure must be appropriate. Third, the input values must be justified. Finally, the arithmetic and interpretation must be accurate.

For example, a chatbot may correctly calculate the sample size required to estimate a population proportion with a specified margin of error.

However, if the study is designed to compare two instructional interventions, that calculation may not address the primary research question.

Lakens (2022) emphasizes that sample size justification should reflect the study's inferential goals and the rationale for the information required, rather than relying on an unexplained conventional number.

What Types of Errors Can AI Make in Sample Size Calculations?

Error type What happens Illustrative consequence
Formula selection error AI chooses a calculation method intended for another research objective. A survey proportion formula is applied to an experimental comparison.
Unsupported input AI assumes values that the researcher has not provided or justified. A medium effect size is inserted without relevant evidence.
Arithmetic error AI incorrectly substitutes values or evaluates the expression. The calculated number differs from the correct result.
Design omission AI ignores clustering, unequal allocation, repeated measures, or other relevant features. The estimate understates the information required.
Adjustment error AI incorrectly applies attrition or finite population adjustments. The recruitment target is too small or unnecessarily large.
Interpretation error AI presents a conditional calculation as a universal requirement. A sample appropriate for one assumption set is described as sufficient for the entire study.

These errors may occur independently or together. A calculation can contain correct arithmetic while remaining invalid because its assumptions do not match the study.

Why Does Showing a Formula Not Establish Accuracy?

Displaying a formula makes a calculation easier to inspect, but it does not establish that the formula was selected appropriately.

For example, an AI chatbot may use a conventional formula for estimating a population proportion:

Illustrative Formula

n₀ = Z² × p(1 − p) / e²

Where Z represents the relevant normal critical value, p the anticipated population proportion, and e the desired absolute margin of error.

This formula may be appropriate as a starting point for estimating a proportion under specified simple random sampling assumptions.

However, it is not automatically suitable for comparing two means, testing a regression coefficient, estimating an interaction effect, or planning a cluster-randomized trial.

Researchers should therefore ask why the formula applies before examining whether the arithmetic is correct.

Can AI Produce the Right Number for the Wrong Reason?

Yes. Two different calculations may produce similar numerical results even when they address different research objectives.

Suppose AI recommends 200 participants using a conventional survey formula. An independent power analysis for the researcher's experimental comparison might coincidentally produce a requirement close to 200.

The numerical similarity does not validate the original calculation.

The appropriate sample size must follow from the intended outcome, estimand, statistical procedure, and relevant assumptions.

A correct-looking number is not a substitute for a correct justification.

Can AI Invent an Effect Size Without Telling You?

Yes. When researchers omit essential information, AI may supply familiar conventional values rather than identify the missing assumptions.

For example, it may assume Cohen's d = 0.50 for a comparison between two instructional conditions because that value is commonly described as a medium standardized effect.

However, Cohen's conventional benchmarks are not universal estimates of educational intervention effects.

The effect size used in planning should be justified by the minimum effect of interest, relevant previous evidence, or another defensible substantive rationale.

Choosing an unrealistically large effect can produce an inadequately small sample-size requirement.

AI should identify the effect size as an assumption rather than present it as an established characteristic of the study.

Why Is Statistical Power Important?

In conventional hypothesis-testing frameworks, statistical power is the probability of rejecting a specified null hypothesis when the assumed alternative effect is present.

Researchers often consider power targets such as 80% or 90%, but these values should not be treated as universally appropriate.

Power depends on the assumed effect, statistical test, significance level, variability, sample size, and design structure.

AI may correctly explain power while calculating it for a test that differs from the planned analysis.

For example, a calculation based on an independent two-sample t-test may not adequately represent a clustered intervention study or a repeated-measures analysis.

Researchers should ensure that the power calculation corresponds to the actual analytical strategy.

Can AI Misapply the Finite Population Correction?

Yes. A finite population correction may be relevant when sampling without replacement from a defined finite population under an appropriate probability sampling design.

It is not a universal adjustment for every study conducted within an institution of known size.

For example, knowing that a university has 5,000 students does not automatically justify applying a finite population correction to a randomized intervention trial.

The correction depends on the sampling design and the parameter being estimated.

AI should explain why the correction applies rather than include it simply because a population count was provided.

Can AI Overlook Clustered or Repeated Measurements?

Yes. Sample-size calculations must reflect the dependence structure of observations when that structure affects the intended analysis.

For example, students within the same classroom may have correlated outcomes because they share an instructor and learning environment.

A calculation treating all students as independent may underestimate the uncertainty associated with a classroom-level intervention.

Similarly, repeated measurements from the same participant are not equivalent to independent observations from different participants.

AI may overlook these distinctions when the prompt provides only the total number of observations.

Researchers should independently verify any design effect or clustering adjustment used in the calculation.

Can AI Make Errors in Attrition Adjustments?

Yes. A common mistake is to increase the required sample by the expected attrition percentage rather than dividing by the anticipated retention proportion.

Suppose the study requires 200 completed observations and anticipates 20% attrition.

Illustrative Calculation

Incorrect: 200 × 1.20 = 240 participants.

Appropriate simple adjustment: 200 / (1 − 0.20) = 250 participants.

The second calculation reflects the expectation that 80% of recruited participants will provide usable observations.

However, this adjustment assumes that the attrition estimate is appropriate and does not address potential bias arising from missing outcomes.

More complex designs may require additional considerations, including differential attrition between groups.

Researchers should verify the attrition adjustment separately from the initial sample-size requirement.

Can Repeatedly Asking AI Produce a More Reliable Answer?

Repeated prompting may reveal inconsistencies or encourage the system to reconsider its assumptions.

However, receiving the same number several times does not independently establish correctness.

The chatbot may consistently apply the same inappropriate formula or reproduce the same unsupported assumptions.

Likewise, agreement between different AI systems is not equivalent to independent statistical verification.

Researchers should reproduce the calculation using an appropriate statistical procedure rather than rely on consensus among chatbot responses.

What Tools Can Researchers Use to Verify AI Calculations?

Depending on the study, researchers may use statistical software such as R, G*Power, Stata, SAS, or other suitable applications.

For example, G*Power can support power analyses for several common statistical tests, while R provides functions and packages for a broader range of design-specific calculations.

However, software does not automatically establish that the selected model or assumptions are appropriate.

A researcher can obtain an incorrect sample-size recommendation from validated software by entering inappropriate inputs.

Independent verification should therefore examine both the numerical computation and the scientific rationale for the calculation.

Should Researchers Trust Online Sample Size Calculators More Than AI?

Not automatically. Online calculators may implement specific formulas correctly, but their suitability depends on the assumptions and purposes for which they were designed.

For example, a calculator intended for estimating survey proportions may not be appropriate for planning a randomized experiment.

Researchers should identify the underlying formula, confirm the relevant assumptions, and verify that the calculator addresses the intended statistical question.

The important distinction is not simply between AI and non-AI tools. It is between transparent, appropriate, reproducible calculations and unsupported numerical recommendations.

Can AI Estimate Sample Size Without Complete Information?

AI can develop illustrative scenarios when important inputs are uncertain, provided the assumptions are explicitly identified.

For example, it may compare required sample sizes under several plausible effect sizes or anticipated attrition rates.

Such scenarios can help researchers understand the consequences of uncertainty.

However, a scenario should not be presented as the final required sample size until the planning assumptions have been justified.

If essential inputs are missing, AI should ask for them or explain what cannot yet be determined.

Can AI Determine Sample Size Adequacy After Data Collection?

AI can help evaluate the precision of obtained estimates, confidence intervals, and limitations of the realized sample.

However, calculating observed or post hoc power by substituting the observed effect into a conventional power formula generally adds little useful information beyond the observed test result.

Researchers should instead examine the actual estimates, their uncertainty, the study design, and the scientific importance of the findings.

A completed study should not be declared adequate solely because AI calculates a favorable post hoc power value.

What Should Be Independently Verified?

A defensible review should examine the complete calculation rather than only its final number.

1. Verify the research objective. Confirm which parameter, comparison, or hypothesis the calculation addresses.
2. Verify the formula or procedure. Determine whether it matches the outcome, design, and intended analysis.
3. Verify the inputs. Check the justification for effect sizes, variability, power, precision, and other assumptions.
4. Verify the arithmetic. Independently reproduce the result using appropriate software or a transparent computational method.
5. Verify design adjustments. Examine clustering, unequal allocation, finite population corrections, and repeated measurements where applicable.
6. Verify recruitment adjustments. Check anticipated attrition, nonresponse, and the distinction between completed observations and recruited participants.
7. Examine sensitivity. Determine how the result changes under plausible alternative assumptions.
8. Document the justification. Record the method, software, assumptions, and final recruitment target.

The resulting sample-size justification should be understandable and reproducible without relying on the chatbot's authority.

Watch Out

A precise sample-size estimate is not proof of methodological accuracy. If the formula, inputs, or design assumptions are inappropriate, independently confirming the arithmetic will reproduce the wrong answer more accurately.

04 · A Practical Example

When AI Calculates the Correct Number Using the Wrong Statistical Framework

Hypothetical Example

Sample Size for a Randomized AI Tutoring Study

A researcher plans a two-group randomized experiment comparing mathematics achievement between students offered AI tutoring and students receiving usual instruction.

The university has approximately 5,000 students.

AI recommends 357 participants based on a 95% confidence level, 5% margin of error, anticipated proportion of 0.50, and finite population correction.

The arithmetic is consistent with a conventional population proportion calculation.

However, the study is not primarily estimating a population proportion. It is evaluating a difference in a continuous achievement outcome between two experimental conditions.

Verification question AI's calculation Required assessment
What is being estimated? A population proportion. A difference in mathematics achievement.
What determines the sample size? Confidence level, margin of error, and anticipated proportion. Target effect, outcome variability, power or precision, and allocation structure.
Does population size determine the requirement? Finite population correction is applied. The relevance of population size depends on the sampling and inferential framework.
Does the calculation address attrition? No. Anticipated loss of usable outcomes requires consideration.
Is the numerical result reproducible? Yes, for the stated proportion assumptions. Reproducibility does not establish relevance to the experiment.

The researcher rejects the initial calculation as the justification for the experiment and conducts an appropriate design-specific power or precision analysis.

The required sample may be smaller or larger than 357, depending on the justified assumptions and planned analysis.

The decision: The researcher does not adopt the chatbot's number merely because its arithmetic is correct.

The example illustrates a particularly important limitation of AI-assisted statistical planning: a calculation can be numerically accurate while answering the wrong methodological question.

05 · What Researchers Often Get Wrong

Common Mistakes When Trusting AI-Generated Sample Size Calculations

Misconception

If AI Shows the Formula, the Calculation Must Be Correct

A displayed formula does not establish that it applies to the research question or that its assumptions are justified.

Misconception

If the Arithmetic Is Correct, the Sample Size Is Valid

Correct arithmetic is only one requirement. The calculation must also match the intended design, outcome, and analysis.

Misconception

Asking ChatGPT Three Times Counts as Verification

Repeated answers may reproduce the same error. Independent verification requires a suitable computational method and examination of assumptions.

Misconception

Conventional Effect Sizes Are Always Safe Planning Values

Effect size assumptions should reflect substantive evidence or a justified minimum effect of interest, not merely familiar statistical conventions.

Misconception

Statistical Software Automatically Produces the Right Sample Size

Software may correctly evaluate an inappropriate model or unsupported inputs. Methodological judgment remains necessary.

Misconception

The Smallest AI-Generated Sample Size Is the Most Efficient Choice

A smaller requirement may result from optimistic effect assumptions, omitted design adjustments, or an inappropriate calculation rather than genuine efficiency.

06 · What This Means for You

Treat AI's Sample Size as a Calculation to Audit, Not a Number to Accept

AI can be useful for explaining statistical concepts and identifying calculation options. However, the final number should be supported by a reproducible method and justified assumptions.

When requesting assistance, require the chatbot to identify missing inputs, explain why the selected calculation applies, and distinguish illustrative scenarios from final recommendations.

A simple decision framework

If AI provides a number without showing assumptions
Request the calculation method, inputs, and rationale before considering the result.
If AI selects a formula from population size alone
Verify that the formula matches the actual research objective and sampling design.
If AI assumes an effect size or variance
Require empirical or substantive justification and examine plausible alternatives.
If the study includes clustering, repeated measures, or attrition
Confirm that the relevant design and recruitment adjustments are incorporated.
If the calculation cannot be independently reproduced
Do not adopt the number until the discrepancy is resolved.

A Prompt for Auditing an AI-Generated Sample Size

Example Prompt

"Critically audit the following sample-size calculation for my research. First identify the statistical objective, outcome, sampling design, and planned analysis. Determine whether the selected formula is appropriate. List every input and distinguish supplied values from assumptions introduced by AI. Independently show the mathematical steps, identify possible errors in rounding or adjustments, and explain which aspects require verification using statistical software. Examine sensitivity to plausible alternative assumptions. Do not declare the calculation valid merely because the arithmetic is correct."

Researchers should separately verify the formula selection and the assumptions required for the calculation.

The final justification should be documented in sufficient detail that another researcher can reproduce the result and evaluate its relevance to the study.

07 · A Quick Checklist

Before Trusting an AI-Generated Sample Size

Before accepting the calculation, check:
Does the calculation address the primary research question and intended analysis?
Is the formula or computational procedure appropriate for the study design?
Are all effect size, variability, power, and precision assumptions justified where applicable?
Have I identified values that AI may have introduced without evidence?
Have I independently verified the arithmetic and rounding?
Are finite population, clustering, and repeated-measure adjustments appropriate?
Is anticipated attrition handled correctly where relevant?
Have I examined sensitivity to uncertain assumptions?
Can the calculation be reproduced using appropriate statistical software or a transparent method?
Can I defend the final sample-size justification independently of AI?
08 · Frequently Asked Questions

Frequently Asked Questions About Trusting AI Sample Size Calculations

Can ChatGPT calculate sample size accurately?

It can produce correct calculations, but errors in formula selection, assumptions, arithmetic, and interpretation are possible. Independent verification is necessary.

Should I trust a sample size if ChatGPT shows the formula?

Not automatically. The formula must match the research objective, and its inputs and calculations must be justified and verified.

Can AI invent an effect size?

Yes. It may insert conventional values when essential information is missing. Effect sizes used for planning should have a defensible substantive or empirical basis.

Is G*Power more reliable than ChatGPT?

G*Power implements established power-analysis procedures for supported tests, but users must still select appropriate methods and inputs. Software accuracy does not guarantee methodological appropriateness.

Can I verify an AI sample size using an online calculator?

Yes, if the calculator implements a method appropriate to the study. Matching numbers do not establish validity when both tools rely on the same unsuitable assumptions.

Does the population size determine the required sample?

Not by itself. Most calculations require additional information about the intended estimate, statistical test, variability, effect size, precision, or design.

Can I use the smallest sample size suggested by AI?

Only if the calculation is methodologically justified. Selecting the smallest number without examining its assumptions may compromise the study's intended precision or power.

Should I report that AI helped calculate the sample size?

Follow applicable institutional and publisher policies. Regardless of disclosure requirements, the researcher should report the calculation method and assumptions and remain responsible for their accuracy.

09 · The Bottom Line

A Correct-Looking Calculation Is Not the Same as a Correct Sample Size

The Bottom Line

AI-generated sample sizes should be treated as provisional calculations requiring independent verification. The selected formula, input assumptions, design adjustments, arithmetic, and interpretation must all be appropriate before the result can be adopted.

Use AI to understand the calculation and identify what needs checking. The final sample size should be justified by the research question and statistical requirements, not by the confidence or precision of the chatbot's answer.

10 · Sources and Further Reading

Sources and Further Reading

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