Understand the idea
Almost no real dataset is complete: a survey respondent skips a question, a sensor drops a reading, a lab sample is lost. The key question is not just HOW MUCH is missing, but WHY: because the reason values are missing determines which fixes are safe to use.
If data are missing for reasons unrelated to the values themselves (a random equipment glitch), simply dropping those rows is usually safe. If data are missing in a way connected to the outcome (sicker patients are more likely to skip a follow-up visit, higher earners are more likely to decline to report income), dropping rows or filling them in naively can bias the whole analysis, not just shrink the sample.
The default in most software (and in KernelStats) is 'complete case' analysis: silently dropping any row missing a value used in that specific analysis. That default is honest and simple but is not always the best choice, and it should be a deliberate decision, not an unnoticed side effect.
When the chance that a value is missing has nothing to do with any of the data, the data are called missing completely at random, or MCAR. When missingness depends only on other things you did record, such as age, the data are called missing at random, or MAR. When missingness depends on the missing value itself, such as high earners skipping the income question, the data are called missing not at random, or MNAR. The pattern of which values are missing, and why, is called missingness. Multiple imputation fills each missing value several times with plausible guesses, runs the analysis on each completed copy, and combines the results so that the uncertainty from guessing is not hidden.
Practitioner explanation
Rubin's taxonomy is the standard framework: MCAR (missing completely at random: missingness unrelated to any variable, observed or not) permits complete-case analysis with no bias, only a loss of power; MAR (missing at random: missingness depends on OBSERVED variables, but not on the missing value itself, conditional on those) permits multiple imputation or maximum-likelihood methods to recover unbiased estimates; MNAR (missing not at random: missingness depends on the unobserved value itself) cannot be fixed by imputation without an explicit model of the missingness mechanism, and is the case most likely to be silently and wrongly assumed away.
Complete-case (listwise) deletion is unbiased under MCAR but discards information and, under MAR, can introduce bias as well as losing power; multiple imputation (generating several plausible completed datasets, analyzing each, and combining results with Rubin's rules) is the standard remedy under MAR and propagates the added uncertainty from imputation into the final standard errors, unlike a single mean- or regression-imputed dataset, which understates uncertainty by treating imputed values as if they were observed.
KernelStats reports the count and percentage of missing values per column on import and on the descriptive-summary card (the missing key), uses complete-case analysis by default for any test or model, and documents this default explicitly on the card rather than silently reporting a smaller n with no explanation of why it shrank.
When to use it
Consider it when
Assess missingness (how much, in which columns, and whether it correlates with other variables) before running any analysis, not after a surprising result prompts a second look.
Use caution when
Do not assume missingness is MCAR by default; check whether the rate of missingness differs across known subgroups (a strong sign of MAR or MNAR) before choosing a simple complete-case approach.
Common misconceptions
Misconception
Dropping rows with missing values is always a safe, conservative choice.
Correction
It is unbiased only under MCAR (missingness unrelated to any variable). Under MAR or MNAR, dropping rows can introduce bias, not just reduce sample size, because the remaining rows are no longer a representative sample of the full population being studied.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §2.2 Concepts (missing data considerations), NIST/SEMATECH (2012), §2.2.
