Statistics & probability

Little MCAR test calculator for incomplete numeric data

Enter independent rows of continuous measurements, using NA for an unobserved cell.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Enter independent rows of continuous measurements, using NA for an unobserved cell. Columns must retain their identities across every row. This calculator groups rows by their observed-versus-missing pattern and uses the observed entries from each group. Replacing NA by zero would change both the numeric data and the missingness pattern, producing a fundamentally different and usually invalid analysis.

THE FORMULAχ²=Σ_g n_g(mean_g−μ_g)ᵀΣ_g⁻¹(mean_g−μ_g); df=Σ_g p_g−p. Common μ,Σ fitted by normal-model EM with ML divisor n.

A worked example

Forty rows in three missingness patterns give ML-EM Little χ²≈13.874343706,df2,p≈0.000971012.

Good to know

30–400 independent rows, 2–6 continuous features, <=20 nonempty missingness patterns, each used pattern >=3 rows; no all-missing rows; identifiable positive-definite EM estimate. Classical Little statistic with explicitly documented ML/unbiased covariance convention, df=sum observed dimensions by pattern minus p; require positive df. Asymptotic chi-square; no proof of MCAR from nonsignificance or MAR/MNAR identification.

Keep missingness visible in the input

Enter independent rows of continuous measurements, using NA for an unobserved cell. Columns must retain their identities across every row. This calculator groups rows by their observed-versus-missing pattern and uses the observed entries from each group. Replacing NA by zero would change both the numeric data and the missingness pattern, producing a fundamentally different and usually invalid analysis.

The accepted range is thirty through four hundred rows with two through six features. No row may be entirely missing, and each retained pattern needs at least three observations. A variable must have enough information to participate in an identifiable covariance model. These bounds are practical checks; they cannot establish that subjects are independent or that the population follows a multivariate normal distribution.

Three patterns contribute different observed dimensionsObserved coordinates by missingness patternFeature 1Feature 2Pattern 1: n=10NAObservedPattern 2: n=10ObservedNAPattern 3: n=20ObservedObserveddf = (1 + 1 + 2) − 2 = 2
Scroll across to see the full diagram.
Filled cells identify observed variables; missing entries are not treated as zero or as known imputations.

Compare this with the Multivariate normal missing data EM calculator with conditional imputations. Adds the global missing-pattern mean discrepancy statistic and its degrees of freedom, not another imputation. Existing Gaussian EM estimates mean/covariance and conditional means but has no missingness hypothesis test.

The MCAR question concerns pattern means

Missing completely at random means the probability of a missingness pattern does not depend on the underlying data values. Little's test compares observed variable means across missingness patterns with means estimated under a common multivariate model. It weights those discrepancies by the covariance structure and the pattern's sample size, rather than separately testing every missing indicator against every available measurement.

Rejecting the test supplies evidence against the particular MCAR model and its distributional assumptions. Failing to reject does not prove MCAR, especially with small patterns or limited power. The test cannot distinguish missing at random from missing not at random. Those mechanisms differ in dependence on unobserved values, which cannot generally be identified from this incomplete data table alone.

Estimate common moments by EM

The expectation step computes conditional first and second moments of missing entries under the current multivariate normal mean and covariance. The maximization step averages those expected sufficient statistics. Conditional covariance must be included in the expected second moment: simply filling conditional means and recomputing an ordinary covariance underestimates uncertainty and does not implement the same observed-data likelihood fit.

This page uses the maximum-likelihood covariance convention with divisor n. For each pattern it extracts the fitted covariance submatrix for that pattern's observed variables. The test sums n-pattern times the pattern-mean discrepancy quadratic form. Degrees of freedom equal the sum of observed dimensions across distinct patterns minus the number of variables; a positive value is required for the chi-square reference.

The forty-row example has three patterns

The prefilled synthetic table contains forty rows and two measurements. Ten rows lack the first feature, ten lack the second, and twenty are complete. Thus the three patterns contribute one, one, and two observed dimensions. Their sum is four, and subtracting the two modeled feature means leaves two reference degrees of freedom. Each pattern exceeds the minimum size.

An independent conditional-normal EM calculation gives common means approximately 1.72321823 and 0.62811971. The fitted ML covariance has diagonal entries 0.86238779 and 0.73177206 and off-diagonal 0.26539952. The resulting Little statistic is approximately 13.87434371 with two degrees of freedom, giving an asymptotic upper-tail p near 0.000971012. The example deliberately creates visible differences associated with the missingness patterns.

Read a pattern diagram rather than an imputation picture

The static figure uses one column for each feature and one row for each missingness pattern. Filled cells mean observed information; open cells mean absent information. Row counts explain how much data each pattern contributes. This diagram is not a display of reconstructed values and should not suggest that missing entries have become known after fitting the model.

The fitted mean serves as a common reference across the available coordinates of each pattern. A pattern missing the first feature can contribute a discrepancy only for the second feature, using the corresponding fitted marginal covariance. This is why pattern dimensions, rather than the number of complete rows alone, determine the displayed degrees of freedom in the test construction.

Require convergence and usable covariance

EM can converge slowly when little information connects columns or when covariance approaches singularity. A stopping condition should assess stable fitted quantities, and a positive-definite covariance is needed for pattern quadratic forms. If the estimate is unidentifiable, ill-conditioned, or fails to converge within the work budget, the appropriate response is an unresolved fit rather than a fabricated chi-square p-value.

The classical chi-square calibration is asymptotic and depends on the model and sampling assumptions. Heavy tails, outliers, strongly nonnormal features, tiny pattern groups, or dependent observations can affect it. Transformations require a substantive decision because they change the normal model. The page limits the number of patterns to twenty and does not merge sparse patterns or remove difficult rows automatically.

Use the result alongside missing-data reasoning

Little's test is a diagnostic about an incomplete table, not an imputation method or a selection rule that makes complete-case analysis universally safe. Before deciding how to handle missingness, examine why measurements were unavailable, which variables predict their availability, and which population quantities matter. A scientifically plausible missingness model can require information that a single global test never sees.

Retain the missingness encoding, pattern counts, fitted moments, covariance divisor, convergence report, statistic, degrees of freedom, and p. If MCAR is rejected, explain that the result leaves several mechanisms possible. If it is not rejected, state the limited evidence and sample structure. The calculator's value is a reproducible global diagnostic, while the eventual analysis should reflect the study's actual data collection process.

A few questions, answered

Should I replace NA with zero?

No. Zero is a measured value; NA marks missingness and determines the pattern grouping.

Does a large p prove MCAR?

No. Failure to reject can reflect limited information or power, and it does not certify a missing-data mechanism.

Can the test distinguish MAR from MNAR?

No. Rejection of MCAR does not identify either alternative mechanism.

Which covariance convention is used?

The common normal-model EM fit uses maximum-likelihood covariance with divisor n, and the pattern statistic uses its fitted submatrices.

Find your calculator

Start typing to explore the library.