Skip to content

Missing data

Missing values are not zeros. See how filling an absent price imposes a return path, why MCAR, MAR and MNAR matter, and how targets and timing guide treatment.

Missing data are values intended for an analysis that have not been observed or are unavailable in the dataset being used. A blank price cell says that the dataset does not supply a price at that time. It does not say that the price, trading volume or investment return was zero.

The distinction matters because a completed spreadsheet can conceal an incomplete information set. Replacing blanks with numbers may make a calculation run, while changing the economic question it answers.

Two closes do not reveal three closes

Suppose a synthetic equity dataset contains these closing prices. Tuesday was an intended trading session; assume no dividends or corporate actions during the interval.

SessionRecorded price, USD per share
Monday100
TuesdayMissing
Wednesday102

The Monday-to-Wednesday price return is known:

RMon,Wed=102100−1=2%.R_{\mathrm{Mon,Wed}}=\frac{102}{100}-1=2\%.

The two one-session returns are not. If Tuesday's unknown positive price is pp, they are p/100−1p/100-1 and 102/p−1102/p-1. Their compounded return is always

(p100)(102p)−1=2%.\left(\frac{p}{100}\right)\left(\frac{102}{p}\right)-1=2\%.
Many paths therefore fit the same endpoints. Forward fill assigns Tuesday the last recorded price, USD 100, creating returns of 0% and 2%. Linear interpolation of prices assigns USD 101, creating returns of 1% and approximately 0.990099%. Neither reconstruction is a new observation.
Synthetic Monday and Wednesday closes are USD 100 and USD 102. Forward fill assigns Tuesday USD 100, giving 0% then 2%; linear price interpolation assigns USD 101, giving 1% then 0.990099%. Both compound to 2%.
Synthetic Monday and Wednesday closes are USD 100 and USD 102. Forward fill assigns Tuesday USD 100, giving 0% then 2%; linear price interpolation assigns USD 101, giving 1% then 0.990099%. Both compound to 2%.
Original synthetic example. Circles are observed closes; squares are assigned values. Dashed lines depict imposed paths, not observed trading between closes.
The 2% endpoint return supports a two-session performance statement. It does not identify one-session volatility, the timing of profit, or whether a Tuesday stop-loss threshold was crossed. A sample variance calculated from either completed return sequence describes that imposed sequence. Interpolation can make a path look smoother without supplying evidence that the market was smoother.
There is also a timing issue: Wednesday's close cannot be used to fill a feature for a Tuesday trading decision. Doing so introduces look-ahead bias. Forward fill uses a past value, but its economic validity still needs a staleness rule. A carried quotation is not proof that an executable quote remained available.

Diagnose what the blank means

Missingness is relative to a defined field, calendar, universe and decision time. Before choosing a treatment, distinguish these cases:

  • Unobserved value: an expected market-data message was lost. The economic quantity may exist even though the dataset lacks it.
  • Not applicable: no regular-session close was scheduled on an exchange holiday. This is a calendar issue, not necessarily a lost observation. A common calendar across markets needs an explicit interpretation.
  • Not yet available: accounts for a completed quarter have not been published. A historical decision must respect the release time.
  • Partial information: a measurement is known only to exceed a reporting limit. This is censoring; the bound is information, even though the exact value is unknown.
  • An observed zero: a confirmed zero-volume interval is different from an interval for which no volume record arrived.

A security disappearing from a vendor file also does not establish a zero terminal value. Investigate delisting, acquisition, trading halt and identifier changes. Likewise, absence of a trade record does not automatically establish that an order was unfilled. The event log and its coverage determine what can be concluded.

Why the observations are absent

For a simple setup, let YY be a variable that can be missing, XX fully observed characteristics, and R=1R=1 indicate that YY was recorded. Three common mechanism labels describe the relationship between values and recording:

MechanismMeaning in this setupHypothetical financial example
Missing completely at random, MCARRecording is independent of both YY and XXA genuinely random record-deletion process, independent of all analysed fields
Missing at random, MARConditional on XX, recording does not depend further on YYResponse probability differs by recorded liquidity group, but not by return within each group
Missing not at random, MNARRecording still depends on the unobserved YY after conditioning on XXLoss-making trades are less likely to be reported, even within the recorded groups

These are assumptions about a data-generating and observation process, not descriptions established by seeing a few blanks. MAR does not mean that reported and unreported values have the same marginal distribution. Its plausibility depends on which characteristics are observed. Observed records alone generally cannot distinguish MAR from every possible MNAR alternative.

Treatment follows the target

First state the population, quantity and horizon being estimated. For the price example, the two-session endpoint return needs no Tuesday imputation. A one-session risk analysis needs additional assumptions or additional data.
Deleting incomplete rows reduces available information and may select a different population. Keeping only instruments with uninterrupted histories can remove precisely the illiquid or distressed names relevant to the research question. MCAR can justify simple complete-case procedures in suitable settings, but deletion is not universally valid merely because software supports it.
Imputation supplies replacements under a rule or model. Preserve the original value and missingness flag, record why each replacement was made, and distinguish carried values from fresh observations. A model-based uncertainty analysis should account for uncertainty about replacements; treating a single filled value as certain can understate uncertainty. Multiple imputation uses several plausible completed datasets and combines inference across them, subject to its model assumptions. It does not recover an observed price path or solve MNAR automatically.

For predictive work, fit learned imputation rules within the training data available at each decision, then apply them to later data. Compare conclusions under economically defensible alternatives, including leaving a quantity unidentified. A missingness indicator can itself be useful information; it does not by itself remove selection bias.

For implementation detail, Tabular and Time-Indexed Data develops alignment, no-fill returns and stale-price policies. Point-in-Time Data explains availability cutoffs, revisions and transformation leakage. Both offer public previews; full lessons require membership.

Sources

  • Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., and Rubin, D. B. Bayesian Data Analysis, 3rd ed., §§18.1–18.2: observation indicators, missingness mechanisms and multiple imputation.
  • Rubin, D. B. (1976). Inference and missing data. Biometrika 63(3), 581–592: the framework for inference with incomplete observations.
  • Gelman, A., and Hill, J. (2007). Missing-data imputation, Chapter 25 of Data Analysis Using Regression and Multilevel/Hierarchical Models: practical mechanisms, deletion and imputation.
Last updated
  • missing data
  • data quality
  • imputation
  • financial data
  • point in time
← Back to the glossaryBack to top ↑