Six months after sample collection at the hospital, a researcher opened the dataset and found that the “glycated haemoglobin (HbA1c) at three months” column was empty for 38 of 200 patients.
Faced with this, many researchers reach for one of two quick fixes: delete those 38 patients immediately, or fill the blank cells with the average of the remaining patients so that the statistical software will run the model.
Both options can lead to inaccurate conclusions, because handling missing data correctly does not start with choosing a software tool. It starts with understanding why the values are missing.
Why Counting Empty Cells Is Not Enough
The percentage missing does not tell the whole story. Losing 10% of the data because a laboratory analyser broke down for a day is fundamentally different from losing 10% because critically ill patients could not attend the follow-up visit. In the first case the remaining sample still represents the original population. In the second, deleting the incomplete cases leaves you with only the healthier patients, so the treatment looks more effective than it really is.
For this reason, statisticians divide missingness mechanisms into three basic categories, which determine the right analytical path.
The Three Missing Data Mechanisms: MCAR, MAR, and MNAR
1. Missing Completely at Random (MCAR)
Values are missing completely at random when the probability that a value is absent is unrelated to any other variable in the study, whether measured or not.
- Real-world example: a blood sample tube is dropped by mistake in the laboratory, or a paper questionnaire is lost in transit.
- Statistical impact: patients whose data are missing do not differ in their characteristics from patients whose data are complete. Here the missingness does not bias the estimates, but it reduces the effective sample size and therefore weakens statistical power.
2. Missing at Random (MAR)
The name may suggest that the missingness is entirely random, but it really means “random conditional on other variables recorded in your file”. In other words, the reason for the missingness is related to another variable that we did measure, not to the missing value itself once that variable is accounted for.
- Real-world example: older participants in the study are more likely not to complete the follow-up measurement because travelling is difficult, and every patient’s age is fully recorded in the dataset. Within each age group, the absence is random.
- Statistical impact: deleting the incomplete rows here introduces bias, because the remaining sample will be younger. But since age is recorded, modern methods such as multiple imputation can use age and the other variables to fill the gap and reduce the bias.
3. Missing Not at Random (MNAR)
This occurs when the absence of a value is related to the missing value itself, even after taking all recorded variables into account.
- Real-world example: in a study of depression, patients having a severe depressive episode on the day of assessment do not answer the depression severity questionnaire because of their very condition. Or, in an economic survey, people with very high incomes refuse to disclose their income.
- Statistical impact: this is the hardest type statistically, because the information that explains the absence is not in the file. No conventional formula fills the gap automatically without additional assumptions, and the situation calls for sensitivity analyses to test how far the final result changes under different assumptions about the missing values.
How to Examine the Missingness Pattern in Your Data
You cannot prove an MNAR mechanism from the data alone, because the missing values are invisible. But in practice you can distinguish between MCAR and MAR with a few simple steps before starting the inferential analysis:
- Create a binary variable (a missingness indicator): give the value
1to each patient with a missing value on the variable of interest and0to each patient with a complete value. - Compare baseline characteristics between the two groups: compare age, sex, and baseline disease severity between the
1group and the0group using an independent t-test or a chi-square test. - Read the result: if the patients with missing data are clearly older or had more severe baseline disease, that is practical evidence that the data are not MCAR and that a MAR assumption is closer to reality. Little’s MCAR test is also used as an overall check of the hypothesis that the missingness is completely random across the variables in the table.
Why Mean Imputation Is a Common Mistake
Some researchers replace every empty cell with the column mean on the grounds that it “does not change the overall mean”. That is arithmetically true for the mean alone, but it distorts the variance, the standard error, and the relationships between variables.
A Numerical Example, Step by Step
Suppose we have systolic blood pressure measurements (in mmHg) for five patients with complete data, and the sixth patient’s value is missing. The five complete values are: 120, 125, 130, 135, 140.
First: the calculation on the five original values (n = 5)
- Sum of values: 120 + 125 + 130 + 135 + 140 = 650.
- Mean: 650 / 5 = 130.
- Deviations from the mean (xᵢ - x̄): -10, -5, 0, +5, +10.
- Squared deviations: 100, 25, 0, 25, 100.
- Sum of squared deviations Σ (xᵢ - x̄)²: 100 + 25 + 0 + 25 + 100 = 250.
- Sample variance s² = 250/(n - 1) = 250/4 = 62.5.
- Standard deviation (SD): √(62.5) ≈ 7.91.
Second: what happens if we impute the sixth patient with the mean (130)? The six values (n = 6) become: 120, 125, 130, 135, 140, 130.
The mean stays 780 / 6 = 130.
The new value’s deviation from the mean is 130 - 130 = 0, so the sum of squared deviations stays the same (250).
But we now divide by larger degrees of freedom (n - 1 = 5), as if we had six real observations: the new variance is s² = 250/5 = 50.
The new standard deviation: √(50) ≈ 7.07.
Notice what happened: simply by adding an artificial value equal to the mean, the variance fell from 62.5 to 50 (a 20% reduction) and the standard deviation shrank from 7.91 to 7.07. If this is repeated in a sample with 20% or 30% missing values, the standard error becomes artificially small, confidence intervals look narrower than they should, and the p-value drops falsely. That raises the chance of a Type I error and of declaring results that are not real. On top of that, correlations with other variables weaken, because the imputed value is constant and does not vary with the patient’s age or condition.
When Is Complete-Case Analysis Acceptable?
Complete-case analysis, meaning excluding the rows that have missing values on the model variables (listwise deletion), is scientifically acceptable in two main situations:
- When the proportion of missing values is small (the usual statistical convention treats less than 5% on any single variable as a practical threshold whose impact is often limited), with no sign of severe bias.
- When the missingness pattern is consistent with MCAR and the remaining sample is large enough to keep the statistical power the study requires.
If the proportion exceeds that, or the missingness turns out to be related to patient characteristics (MAR), simply deleting rows weakens the reliability of the results in front of reviewers.
Multiple Imputation in Plain Language
Instead of inserting one imagined number and treating it as a certain fact, multiple imputation, whose best-known sequential algorithm is MICE (Multiple Imputation by Chained Equations), works in three logical steps that respect statistical uncertainty:
- Imputation: the software builds a predictive model for the missing value from the patient’s other variables (age, sex, baseline measurements). It does not create a single copy. It generates several completed copies of the dataset (for example 5 to 20), in which the imputed values differ slightly from copy to copy to reflect natural variability and uncertainty.
- Analysis: the required statistical test or regression model is run on each completed copy completely independently.
- Pooling: the results (estimates and standard errors) are combined using Rubin’s rules, which combine the variance within each copy with the variance between the copies, giving you one estimate with a realistic confidence interval whose precision is not inflated.
How to Write It Up in Your Research
When documenting how missing values were handled in the Statistical Methods section of your thesis or paper, state the proportion missing, how the pattern was examined, and the method used, clearly:
Sample reporting sentence (APA 7th edition style):
“Missing data across primary variables ranged from 2.5% to 14.0%. Inspection of missingness patterns indicated that loss to follow-up was associated with older baseline age, supporting a missing-at-random (MAR) assumption. Multiple imputation by chained equations (MICE; 10 imputed datasets) was performed, and regression estimates were pooled using Rubin’s rules. A complete-case sensitivity analysis (n = 162) yielded consistent results.”
To apply this to your own data, try it on analysez.ai.