Resources · 103

Missing data: distinguish absence, zero and estimation

Prevent silent replacement of absent values from changing the meaning of metrics.

· 4 min

Empty intelligence archive with dossiers and maps AI-generated editorial illustration

What this guide helps achieve

  • Name the states
  • Check the denominator
  • Compare coverage
  • Document estimation
  • Expose limitations

Quick check

  • Should missing values become zero?
  • Can a mean rise without a real increase?

Step-by-step method

  1. 01

    Name the states

    Separate not collected, unknown, not applicable and observed zero. Define each state at collection; a blank field does not explain its cause.

    Deliverable: state dictionary.

  2. 02

    Check the denominator

    Record whether calculation uses all records or only supplied values. Reproduce sum, count and mean on a known small dataset including missing values.

    Deliverable: explicit-denominator calculation.

  3. 03

    Compare coverage

    Measure missingness by period, channel and segment. Check whether a chart change comes from collection changes rather than new behaviour.

    Deliverable: coverage by segment.

  4. 04

    Document estimation

    When a purpose justifies imputation, preserve original value, method and estimation flag. Compare decisions with and without the method, especially for lightly observed groups.

    Deliverable: sensitivity analysis.

  5. 05

    Expose limitations

    Show partial-data status near the result. Assign an owner to complete or qualify gaps; preserve corrected versions instead of silently rewriting history.

    Deliverable: visible status and history.

Choose how a value is handled

Check the observed state before choosing next steps.

  1. Observed zero

    Preserve its meaning and unit.

  2. Missing observation

    Show coverage and the known reason for absence.

  3. Estimated value

    Expose method, version and decision sensitivity.

Acceptance case to reproduce

Fictional example: these inputs describe no customer or observed result.

View case inputs
{
    "values": [
        10,
        null,
        0
    ],
    "observed_count": 2,
    "mean_observed": 5,
    "mean_if_missing_replaced_with_zero": 3.3333333333,
    "extended_sample": {
        "values": [
            10,
            null,
            0,
            20,
            null,
            30
        ],
        "known_count": 4,
        "expected_count": 6,
        "known_sum": 60,
        "mean_observed": 15,
        "mean_after_zero_fill": 10
    },
    "missing_only_sample": {
        "values": [
            null,
            null
        ],
        "known_count": 0,
        "mean_observed": null
    }
}

Expected decision

The observed-value mean is 5. Replacing missing data with zero changes the population and result.

Same data, two means: show the rule

Fictional data: [10, missing, 0, 20, missing, 30]. Four known values out of six expected observations; known sum: 60. The existing zero is an observed value.

TreatmentMean calculationInterpretation
Known values only60 ÷ 4 = 15The mean describes four known values. It does not establish that the two missing values would have the same distribution.
Missing values replaced with zero60 ÷ 6 = 10Two zeros were added by a rule, not observed. This mean answers a different question; justify the rule before comparing results.
Separate sample: [missing, missing]Not calculableNo known values: show an unavailable state. A mean of zero would imply an observation that does not exist.

Fictional variations to test

A Boolean indicator is unknown rather than false.

Preserve that separate state and test the decision rule. Do not turn missing information into implicit denial or authorisation.

An estimate replaces a missing observation.

Retain an imputation marker and its method. Report observed and estimated counts separately to avoid apparent precision.

A sentinel value is treated as a real measurement.

Check the data dictionary before replacement. Preserve the raw value and rule; unusual appearance alone does not establish that it is missing.

Evidence to retain

  • Cause and status of missingness per variable.
  • Observed, imputed and non-applicable counts.
  • Versioned method and retained raw values.

Verification procedure

  1. Separate missing, zero and estimated values.
  2. Calculate means before and after excluding missing values.
  3. Keep counts and per-variable handling rules. Also test a group containing only missing values and check that it is not presented as a measured zero without an explicit rule.

pandas — Working with missing data

Reusable worksheet

Complete with your authorised observations. These fields are a working template, not observed results.

FieldInformation to record
StateCause and handling rule
CalculationPopulation, count and units
EstimationMethod, version and sensitivity

Worked example

Illustrative situation

Illustrative case: ten records contain two known amounts and eight missing values. Dividing the sum by ten answers a different question from dividing it by two.

Decision and expected evidence

Publish the denominator, supplied count and rule; do not turn the eight missing values into zero purchases.

Distinguish the mechanisms

MechanismPurposeCheck or limitation
ZeroMeasured null outcomeDo not create it to fill a blank
MissingUnavailable observationShow coverage
EstimatedMethod-produced valuePreserve provenance

Management indicators

IndicatorWhat it measuresFirst action
CoverageUsable values over expected recordsInspect missing segments
SensitivityDifference between documented calculationsReview unstable decisions

Common pitfalls

  • Turn every absence into zero
  • Change the denominator without showing it
  • Impute without provenance and sensitivity checks

Frequently asked questions

Should missing values become zero?

Only when the business definition establishes that absence actually means zero. Otherwise the result changes meaning.

Can a mean rise without a real increase?

Yes, if the supplied records change. Compare population and coverage before interpreting the trend.

Official references

References consulted: . The method and worksheet propose checks to adapt to your context; they do not constitute certification.