Can I use ChatGPT for my MD thesis statistics? What examiners look for
Most residents open ChatGPT or a similar tool at some point during their thesis. That is reasonable: these tools explain concepts patiently and write fluent text. The difficulty is that AI output looks equally confident whether it is right or wrong, and in the viva you are the one who has to defend it.
This article separates what AI does well from what it does badly, and ends with a checklist you can run on your own output before it goes to your guide.
What examiners are actually checking
Examiners rarely ask you to recite a formula. They ask you to justify decisions:
- Why did you use this test for this design?
- How did you check its assumptions?
- How did you arrive at your sample size?
- What does this p-value or confidence interval mean clinically?
“The software gave this result” is not an answer, and neither is “ChatGPT suggested it”. The examiner wants to see that the analysis follows from your objectives and your data, and that you can explain it without notes.
Where AI genuinely helps
Used as a tutor or drafting assistant, AI tools can save real time.
- Explaining concepts. “Explain standard deviation versus standard error with a clinical example” usually gets a clear answer. Follow up until you can explain it yourself.
- Drafting code. It can draft R, Python or Stata code for a t-test or a regression model. You still run it on your real data, read every line and confirm it does what you think.
- Checking wording. It can tighten the language of your methods section. It should not decide what the methods were.
- Finding gaps. Asking for “common viva questions on logistic regression” is a sensible way to test your understanding.
In each case, you remain the person who checks the output. That is the dividing line.
Where it fails
Choosing the test for your design
The correct test depends on your objective, the type of outcome, the number of groups, whether observations are independent or paired, and the distribution of the data. An AI tool only knows what you tell it. If your prompt says “compare HbA1c between two groups”, it cannot know that the “groups” are the same patients before and after treatment, or that one group has nine patients with a heavily skewed outcome. It answers the question you asked, not the study you ran.
Assumption checks it never ran
A t-test assumes approximately normal data within each group (less critical with larger samples), and the standard version assumes equal variances. Chi-square tests need adequate expected cell counts. AI output often lists these assumptions and then proceeds as if they were met, without looking at a histogram, a Q-Q plot or the expected counts in your table. “How did you check normality?” needs an answer about your data.
Paired versus unpaired
Baseline and follow-up measurements on the same patient, or right and left eyes of one patient, are not independent. Analysing them with an unpaired test ignores the pairing and usually gives the wrong p-value. If you describe the data loosely, an AI tool will often default to the unpaired version.
Multiple comparisons
Theses often compare many outcomes across several groups and visits. If you run 10 independent tests at a significance level of 0.05 and there is no true difference anywhere, the chance of at least one “significant” result is about 40%. AI tools will run every comparison you ask for and report each p-value at face value, without asking which outcome was primary or whether post hoc tests need adjustment.
Interpreting p-values and confidence intervals
AI-written interpretations often contain the classic errors:
- Reading p = 0.03 as “a 3% probability that the null hypothesis is true”. A p-value is calculated assuming the null hypothesis is true; it cannot be the probability of it.
- Reading p = 0.20 as proof of no difference. In a small study, it is often simply inconclusive.
- Calling a statistically significant but tiny difference clinically important.
- Ignoring the confidence interval, which says far more about the size and precision of the effect than the p-value.
Invented numbers and references
Language models generate text that sounds right. Unless a tool actually executes code on your dataset, any test statistic or p-value it reports may not have been computed at all. Even when code is run, check internal consistency: degrees of freedom should match your sample size, percentages should add up, and the n in each table should match your recruitment.
AI tools can also produce citations with real-looking authors and journals for papers that do not exist, or attach a real paper to a claim it never made. Every reference in your thesis, especially the one behind your sample size, must be one you have found and read.
Uploading patient data
Your ethics committee approval and your patients’ consent define who may see their data. Pasting patient records into a public AI tool may send identifiable health information to a third party outside those terms, and India’s Digital Personal Data Protection Act, 2023 adds legal obligations of its own. Remove names, hospital numbers, phone numbers, addresses and exact dates before sharing data outside your study team, and check your institution’s policy on AI tools first. Some universities also expect AI assistance to be declared; ask your guide.
A 10-point self-check for AI-assisted analysis
Run this on any analysis, whoever produced it.
- Objective to test. Can you link each test to an objective in your protocol and say why it suits the outcome type and design?
- Primary outcome. Is the primary outcome analysed exactly as the protocol said?
- Independence. Have you identified every paired or repeated measurement and used a paired or repeated-measures method for it?
- Distribution. Have you looked at histograms or Q-Q plots for continuous outcomes, and chosen mean (SD) or median (IQR) accordingly?
- Assumptions. Can you name each test’s assumptions and say how you checked them on your data?
- Expected counts. For every chi-square test, have you checked expected cell counts and used Fisher’s exact test where they are too small?
- Number of tests. Do you know how many tests you ran, and have you adjusted for multiple comparisons or labelled secondary analyses as exploratory?
- Numbers reconcile. Do sample sizes, percentages and degrees of freedom agree across tables, text and abstract? Can you reproduce every number from your own data file?
- Interpretation. Does each result report an effect size with a 95% confidence interval, and is the wording free of “proved” and “no difference” where the evidence does not support it?
- References. Have you read every cited paper and confirmed it says what you claim?
Any item you cannot tick is the question your examiner is most likely to ask.
Using AI sensibly
Treat an AI tool as a tutor that is sometimes wrong, not as the analyst. Let it explain, draft and tidy; do the deciding, running and checking yourself, with your guide or a biostatistician reviewing the result. If you already have an analysis and want an independent check, StatSure’s biostatisticians can review it against this list and explain anything that needs to change.