Learn by making

When missing is not zero

One changed value. A different answer.

Precomputed scenarios rebuilt with native Emacs/Org, AWK, GNU Make and gnuplot. Your browser selects the checked outputs; it does not run these tools.

Missing is not zero

A03 is missing (NA); A04 is a measured zero. The zero contributes to the mean. Missing and rejected observations stay in the census.

Group means: A = 10.00, 3 used observations; B = 15.00, 3 used observations;
Native gnuplot output for this scenario. Error bars and observation counts follow the original tour source.
Group results for this scenario
GroupTotalUsedMissingRejectedMean
A531110.00
B531115.00
Inspect the input observations
SampleGroupValueStatus
A01A10valid
A02A20valid
A03ANAvalid
A04A0valid
A05A100invalid
B01B5valid
B02B15valid
B03B25valid
B04BNAvalid
B05B40invalid

Input TSV · Result TSV · Execution evidence · Exact tour example ↗

A03 becomes a measured zero

Only A03 changes from NA to an observed zero. A now has four usable observations; its sum stays 30 and its mean falls to 7.50. B is unchanged.

Group means: A = 7.50, 4 used observations; B = 15.00, 3 used observations;
Native gnuplot output for this scenario. Error bars and observation counts follow the original tour source.
Group results for this scenario
GroupTotalUsedMissingRejectedMean
A54017.50
B531115.00
Inspect the input observations
SampleGroupValueStatus
A01A10valid
A02A20valid
A03A0valid
A04A0valid
A05A100invalid
B01B5valid
B02B15valid
B03B25valid
B04BNAvalid
B05B40invalid

Input TSV · Result TSV · Execution evidence · Exact tour example ↗

Download executable sources & checks →

Rebuilt using 31.1 / Org 9.8.7, awk version 20200816, GNU Make 4.4.1 and gnuplot 6.0 patchlevel 6. Original baseline fixtures and an independent calculation check both scenarios.

Source: ROOT & SHAPE tour · Original study source, fixtures and figures: CC0-1.0. Publishing/bootstrap structure: CC BY 4.0. Lukas C. Bossert.