GLOBAL KNOWLEDGE ARK

Mathematics · Article

Missing data, outliers and data quality

Assess whether records are fit for a scientific question while preserving their origins and uncertainty. Distinguish missingness from zero and censoring, examine selection and imputation assumptions, investigate extreme values without automatic deletion, and keep units, keys and transformations auditable.

Back to Mathematics

After reading, you can

  • Define data quality relative to a question, observational unit and measurement process.
  • Retain source records and distinguish observed, missing, inapplicable and censored values.
  • Profile missingness with correct denominators and explain MCAR, MAR and MNAR as assumptions.
  • Calculate how selection, complete-case analysis and single imputation can change summaries.
  • Construct bounds and sensitivity scenarios without pretending to know unseen values.
  • Distinguish an outlier flag from a demonstrated error and compare robust summaries responsibly.
  • Check units, domains, duplicate identities and joins while preserving legitimate repeated observations.
  • Report corrected, excluded, imputed and unresolved records with a reproducible audit trail.
01

Quality means fitness for a stated question

A data set can be neatly formatted and still be unsuitable for a scientific question. Data quality concerns what the records mean, how they were obtained and whether their limitations permit the intended use. Start with the target population or system, observational unit, quantity, period and collection process. A table of machine events might be suitable for counting recorded alarms while being unsuitable for estimating the fraction of all machines that would fail under a new operating condition.

Several quality dimensions answer different questions. Completeness concerns the availability of required records or values; uniqueness concerns unintended duplication at the defined entity or event level; consistency concerns agreement among representations; validity concerns declared formats or rules; accuracy concerns agreement with the intended truth; and timeliness concerns relevance at the needed time. A filled cell can be inaccurate, and a value inside an allowed range can still belong to the wrong unit or person.

Quality checks therefore need both formal rules and substantive knowledge. A negative elapsed duration may violate a defined domain, but a negative temperature can be physically legitimate on a Celsius scale. Two equal rows might be a duplicated import or two legitimate equal readings at different times. A range rule should be connected to the quantity and instrument instead of selected merely because it removes inconvenient points. Distinguish a logical contradiction from an unusual but possible measurement.

The purpose also determines which limitations matter most. A rapidly changing sensor record may be timely but noisy; a carefully verified historical archive may be accurate for its period yet obsolete for a current inventory. There is no single completeness percentage that proves every use is sound. Describe the evidence, trade-offs and unresolved limitations in terms of the question, then retain enough provenance for another reader to assess the same choices.

02

Preserve the record before transforming it

Keep a recoverable source version before cleaning, filtering, merging or imputing. A useful provenance record identifies the source, collection time and method, observational unit, variable definitions, units, codebook and relevant instrument or questionnaire version. It also distinguishes the time an event occurred from the time it was entered or imported. An analysis table is a derived object whose relationship to that source should remain traceable.

Record each substantive transformation with its inputs, rule, reason and resulting version. Converting milliseconds to seconds, correcting a confirmed decimal error, excluding an ineligible record and filling a missing value are different operations. A transformation log should not collapse them into a vague cleaned-data label. Keep the original value alongside a corrected value or retain a versioned change record so the correction can be checked and reversed when new evidence appears.

A source identifier and a stable observation key help connect derived rows to originals. Names alone often fail as keys because different people can share a name and one person can be recorded differently. Define keys from the system’s entity and event structure, using appropriate privacy protections. Provenance supports accountability and reproduction, but the existence of a detailed log does not by itself establish that every measurement or correction is right.

Separate analytical status from the numerical value. A record can remain in the archive while being marked excluded for a specified analysis, corrected after documented verification or unresolved pending investigation. Retaining it does not require using it indiscriminately. The aim is a transparent relationship between source evidence, analytical decisions and conclusions, so another analyst does not have to guess which observations disappeared or which numbers were manufactured by a model.

03

An absent value is not a numerical zero

An observed zero is a measured or reported value. A missing value means the intended value is unavailable in the record. Refusal, a failed sensor, an unasked question and a lost file may all produce absence for different reasons. A quantity can also be not applicable or mathematically undefined for a unit. Keeping these statuses distinct preserves scientific information that a single blank cell may otherwise hide.

For a delivery that has occurred, an unrecorded duration is an unknown measurement. For a delivery that was cancelled before it began, an elapsed-delivery duration may be inapplicable under the chosen definition. Neither should automatically become zero seconds. Imputing a plausible duration for the cancelled delivery would first require redefining the target, perhaps as a hypothetical duration under a specified scenario. That is a new modelling question rather than a recovery of the original observed variable.

Read the source codebook before interpreting tokens. A numeric code such as 999 can mean refusal, an ordinary measurement or a valid identifier in different systems. A text string containing the letters NA is not automatically the same as a software missing-value marker. A blank can mean unknown in one column and an empty but valid category in another. Parsing rules should be explicit for each variable and retain any available reason for absence.

Also distinguish missingness from a measurement limit. A report below 2 milligrams per litre can constrain a concentration to a range without giving its exact value. That is more information than an unexplained blank and less than an exact zero. A useful representation may have separate fields for value, status, unit and limit. Software convenience should not erase the difference between known zero, unobserved value, inapplicable quantity and partially observed measurement.

Observed zero, unknown and inapplicable are different claimsFive source rows retain their statuses: observed zero seconds, observed 4 seconds, missing unknown, inapplicable with no defined duration, and censored duration in [0,2) seconds. Boxes and row positions are schematic, not value axes. There are five archived rows but four eligible intended outcomes; two are exactly observed, one missing and one partially observed. The inapplicable quantity is outside this declared denominator.Observed zero, unknown and inapplicable are different claimsSource rowStatusValue or constraintr1observed0 sr2observed4 sr3missingunknownr4inapplicableno defined durationr5censored[0,2) sArchive 5; eligible 4; exact 2; missing 1; censored 1Exact-observed fraction 2/4 uses the eligible denominator, not all archive rows.No unknown, inapplicable or censored value is inserted as numerical zero.
A separate status field preserves information that one blank or zero code would erase. Censoring retains an interval and its open endpoint.
04

Profile the records with explicit denominators

Begin a quality profile by reconciling counts at the intended observational level. Record how many units were eligible, selected or invited, participated, provided a value for each variable, and entered the final analysis. These are different denominators. A laboratory measure available for an eligible subgroup should not automatically be judged against every person in a broader survey. Document skip rules and structural inapplicability before calling a blank a missing response.

For a defined set of N eligible records, let n be the number with an observed value and m=N−n the number with that value missing. The observed fraction is n/N and the missing fraction m/N when N>0. Give both counts and fractions. For multiple variables, the number of complete rows is not determined by the missing count in each column because the missing positions can overlap or occur in different rows. Retain a pattern table or indicator matrix when that matters.

Column missing counts do not determine complete-row countTwo 10 by 10 grids each represent 100 eligible rows with one cell per row. Both have 10 A-missing and 20 B-missing. In the left disjoint pattern, 10 blue A-only and 20 orange B-only cells leave 70 green complete rows. In the right nested pattern, 10 red both-missing cells and 10 orange B-only cells leave 80 complete rows. Cell positions are schematic record identities, not measured distances. The patterns do not identify a missingness mechanism.Column missing counts do not determine complete-row countDisjoint missingnessComplete 70/100Overlap 0; union 30Nested missingnessComplete 80/100Overlap 10; union 20Blue: A onlyOrange: B onlyRed: both missingGreen: completeOne cell is one eligible row; schematic ordering does not imply time or rank.Observed patterns suggest checks but do not prove MAR or rule out MNAR.
Missing union equals A+B−overlap. Per-column totals alone allow 70 through 80 complete rows in this example.

Compare missingness across recorded groups, periods, instruments and collection sites. Such profiles can reveal a failed device, a skipped question or different response rates. They can suggest information useful for a missing-data model and identify process improvements. They do not reveal the unseen values directly. A group comparison with no detected difference is not proof that absence is independent of the unobserved quantity.

For example, among 100 eligible people, 80 answer a binary question and 60 of those answer yes. The observed yes fraction among respondents is 60/80=3/4. The recorded yes count is also 60/100 of eligible people, but that is not yet their full yes fraction because the remaining 20 answers are unknown. Reporting only 75% without its respondent denominator conceals the distinction between a complete recorded subset and the intended target.

05

Missingness mechanisms are conditional assumptions

Introduce an indicator R equal to 1 when a particular intended outcome Y is observed and 0 when it is missing. Let X denote other recorded information. A missingness mechanism describes how the observation pattern depends on these quantities. Missing completely at random, or MCAR, means the pattern is independent of the relevant observed and unobserved study values. In the simple single-outcome setting, P(R=1|Y,X) is constant over the study values under that assumption.

Missing at random, or MAR, allows dependence on observed information but removes remaining dependence on the missing values after that information is conditioned on. With fully observed X and only Y possibly missing, the condition is P(R=1|Y,X)=P(R=1|X). For example, different recorded sites may have different response probabilities; MAR asserts that within the specified recorded information, observation does not additionally depend on the unseen Y. This is not the everyday meaning that missingness looks haphazard.

For several partially observed variables, use a pattern R=r and let Y_obs(r) denote the components observed under that pattern. The corresponding MAR condition makes P(R=r|Y,X) depend on Y only through Y_obs(r), along with fully observed X. Missing not at random, or MNAR, allows residual dependence on the unobserved values after the chosen observed information is given. These definitions refer to a specified set of variables and information; adding a relevant observed variable can change which assumption is plausible.

Observed-data checks can reveal dependence on recorded quantities and can challenge some MCAR implications, but they cannot in general establish MAR against MNAR. Different unseen-value mechanisms can produce the same observed distribution. Even a reason such as sensor failure is not a proof of MCAR if failure occurs more often under conditions related to the quantity. State the assumption and its scientific support. Methods also need appropriate measurement, model and observation-support conditions; naming MAR alone does not make every analysis valid.

06

Deleting incomplete rows changes the analysed population

Complete-case analysis uses only rows with all variables required by the selected analysis observed. For a single outcome, the observed mean is x̄_obs=(1/n)Σ_observed xᵢ when n>0. It is a valid description of those observed outcomes. Whether it estimates a broader target depends on how observations became available and on the estimand, meaning the quantity the analysis is meant to estimate. Calling the smaller table clean does not establish that connection.

Suppose a finite target consists of equal numbers of two recorded sites whose outcomes are 0 and 10 units respectively. If every outcome at the first site is observed but only half at the second, the observed record gives the lower-valued site twice the weight. For a concrete target with two units at each site, observed values 0,0,10 have mean 10/3 while the full target 0,0,10,10 has mean 5. The missingness could be MAR given site, yet simply ignoring site does not recover the full target mean.

Under suitable independent identical sampling and MCAR with positive response probability, the observed outcomes remain a random subset for a simple mean target; conditional on having at least one response, the sample mean can retain its intended unbiasedness. Fewer observations still reduce information. MCAR is a sufficient condition in this simple setting, not a necessary condition for every complete-case estimator. Some regression targets remain valid under weaker, target-specific assumptions. Conversely, MAR does not give blanket permission to delete incomplete rows.

With many required variables, even moderate missingness in each can leave few complete rows, and that subset can have a different composition. Report its size, selection rule and differences in recorded characteristics. If weighting or modelling is used to connect it to the target, state the assumptions and support: groups never observed cannot be repaired by an empirical within-group mean that does not exist. Keep descriptive accuracy for the subset separate from an inferential claim about those absent from it.

MAR given site can coexist with a shifted observed meanThe toy full finite target is 0,0 at site A and 10,10 at site B, mean 5 units. Observed values 0,0,10 have mean 10/3. Schematic boxes represent individual units, with site labels and their actual values; box positions are not numerical coordinates. Full site weights are 1/2,1/2, while observed weights are 2/3,1/3. A site-adjusted calculation can recover 5 here using observed support and known target weights, under the toy's constant within-site outcomes. MAR given site is a stipulated compatible mechanism, not a finding from the observed pattern.MAR given site can coexist with a shifted observed meanDeclared full target: two units per siteA: 0A: 0B: 10B: 10mean 5Observed: two A units and one B unitA: 0A: 0B: 10mean 10/3Observed site weights: A 2/3, B 1/3Known target weights: A 1/2, B 1/2Adjusted: (1/2)×0+(1/2)×10=5 unitsThe full target is explicitly declared for this hypothetical comparison.MAR alone is not blanket permission to discard incomplete rows.
Conditioning on site and using the known target composition is an additional analytical choice. An absent site has no empirical within-site mean to invent.
07

Bounds can reveal what the records do and do not determine

Sometimes substantive knowledge supplies a valid range L≤Y≤U for every missing value, without identifying the individual values. For a finite set of N=n+m intended outcomes with observed sum S and m missing values, the full mean must then lie between (S+mL)/N and (S+mU)/N. This is a deterministic bound on completions of the finite record, not a confidence interval from repeated sampling. It requires the stated range to apply to the missing outcomes.

For observed values 2,4,6 and two missing values known to lie from 0 through 10 units, N=5 and S=12. The full mean can be as low as 12/5 and as high as 32/5 units. The observed mean 4 lies inside that range but is not determined to be the full mean. Assigning both unseen values 0 and assigning both 10 produce different full records with exactly the same observed values.

For a binary outcome with 60 observed yes and 20 observed no among 100 eligible people, the 20 missing responses can contribute from 0 to 20 additional yes answers. The finite full yes fraction is therefore between 60/100 and 80/100. The respondent fraction 60/80=75% is one descriptive quantity; the bound 60% to 80% describes the completions still compatible with the missing binary values. Neither range represents uncertainty about a larger population unless another model is added.

Without a scientifically justified bounded range, a finite observed mean may place no finite bound on a missing-data full mean. Do not invent limits merely to make the answer look precise. Additional observations, design information or explicit assumptions can narrow the possibilities, but an assumption should remain visible. This partial-identification viewpoint is useful because it separates what follows from the retained evidence from what follows only after choosing a model for unseen outcomes.

Completion bounds retain what unknown values could changeTwo separate labelled axes show deterministic finite-record bounds. On the upper 0 to 10 unit mean axis at 45 pixels per unit, observed 2,4,6 plus two unknown values in[0,10] give full mean limits 12/5 and 32/5, both included. The observed mean 4 is a separately labelled point. On the lower 0 to 1 yes-fraction axis at 450 pixels per unit fraction,60 yes, 20 no and 20 unknown give full fraction bounds 3/5 to 4/5. Respondent yes fraction 3/4 uses a different denominator. Binary completions occur on increments 1/100. Neither bound is a sampling confidence interval.Completion bounds retain what unknown values could changeMean axis: observed 2,4,6; two unknown in[0,10] units12/532/5observed mean 4010 unitsBinary axis: 60 yes, 20 no, 20 unknown; N=1003/54/5respondent 3/401 (dimensionless)These are different axes and denominators, not interchangeable intervals.Finite completion bounds are not confidence intervals or identified missing truths.
The upper range requires the stated scientific limits on missing values. The lower range uses the binary domain; unknown answers are not silently counted as no.
08

A filled cell is not a newly observed measurement

Single imputation replaces each missing value with one selected value, perhaps an observed mean, a previous reading or a model prediction. It can support a defined computational task, but the completed table contains estimates as well as observations. Retain an imputation indicator, the method and its inputs. A visually complete table does not make the individual missing truths known, and a deterministic prediction does not eliminate their uncertainty.

Mean imputation shows one issue exactly. Let n observed values have mean x̄ and centred sum M₂=Σ_observed(xᵢ−x̄)². Add m missing entries filled with x̄. The completed mean is still x̄ and its centred sum remains M₂, because each new deviation is zero. Its empirical variance becomes M₂/(n+m), instead of the observed empirical variance M₂/n. When M₂>0 and m>0, the apparent spread has decreased solely through a filling rule.

For 2,4,6, the observed mean is 4, M₂=8 and empirical variance is 8/3 square units. Filling two missing entries with 4 gives 2,4,6,4,4, with empirical variance 8/5 square units. The usual n−1 sample-variance formula similarly changes from 8/2=4 to 8/4=2 square units if the filled entries are incorrectly treated as ordinary independent observations. Neither reduction establishes that the unknown outcomes were less variable or that the mean was estimated with the corresponding extra information.

Other single-fill rules can have other distortions. Carrying the last observation forward assumes a relationship to future unobserved values; it is not a neutral way to preserve a trend. Filling each variable independently can also disrupt associations and constraints among variables. Keep the scientific model, target and uncertainty treatment explicit. A more sophisticated prediction system faces the same basic problem: plausible-looking numbers are inferred values, rather than recovered measurements.

Filling the mean reduces a denominator-based spreadThe observed values 2,4,6 units share a horizontal scale 60 pixels per unit. The first row shows three measured values. The second retains those three blue dots and adds two orange hollow imputed dots at 4, stacked vertically to distinguish status while keeping their exact horizontal location. Both means are 4 and both centred sums are 8 square units. Empirical variance changes from 8/3 to 8/5 only because the denominator increases. No new outcome is observed.Filling the mean reduces a denominator-based spreadObserved record; n=3; mean 4; M₂=8 square unitsEmpirical variance 8/3; usual sample variance 4Completed view; N=5; two fills at 4; M₂ still 80246Empirical variance 8/5; naive usual sample variance 2Blue filled dots are observed; orange hollow dots are inferred fills.Horizontal quantity uses units; vertical stacks show status, not a measured axis.
Imputed entries keep their status. A smaller completed-table variance is not evidence that missing outcomes were less variable or that two more independent measurements were collected.
09

Model missing values and test dependence on assumptions

Model-based approaches use recorded predictors, group structure or repeated observations to relate observed and missing outcomes. Their validity depends on the target, missingness assumptions, model specification and enough observation support for the intended comparisons. The model should respect domains and relationships among variables. A method that reproduces observed values well does not thereby establish its distribution for unobserved outcomes, especially where those outcomes were systematically absent.

Multiple imputation uses several appropriately generated completed data sets to represent missing-value uncertainty, analyses each and combines the results. The completed versions are alternatives under a model; they are not several independent new samples from the population. In a common scalar pooling setting with M≥2 imputations, estimates Q₁,…,Q_M and their complete-data variance estimates U₁,…,U_M give Q̄=(1/M)ΣQ_j, W=(1/M)ΣU_j and B=Σ(Q_j−Q̄)²/(M−1). A familiar total-variance estimate is T=W+(1+1/M)B.

The pooling expression distinguishes within-analysis variance W from between-imputation variance B. Its terms have units of the squared estimated quantity, and √T returns the estimate’s unit. This is an introduction to one standard framework under suitable proper imputation and analysis assumptions, not a universal rule for any collection of filled tables. Interval construction and small-sample adjustments require further choices. If all fills are the same deterministic guess, B=0 does not prove that missing-value uncertainty is absent.

Within and between imputation variance stay separateThree schematic completed-data analysis boxes have Q 4,5,6 units and U 1,1,1 square units. They are alternative analyses under an imputation model, not independent new population samples. Pooled estimate is 5 units. A horizontal stacked variance bar uses 140 pixels per square unit: within W 1 occupies 140 pixels, adjusted between term (4/3)B occupies 560/3 pixels, and their total T 7/3 occupies 980/3 pixels. B is 1 and the pooled SE scale is sqrt(7/3) units. Formula arithmetic does not validate imputation or interval coverage.Within and between imputation variance stay separateQ=4 unitsU=1 unit²Q=5 unitsU=1 unit²Q=6 unitsU=1 unit²M=3; Q̄=5; W=1; B=1W=1(1+1/3)B=4/30123Variance (square units); common zeroTotal T=7/3 square units; SE scale √(7/3) units.Proper imputation, compatible analysis and interval construction need more assumptions.
T=W+(1+1/M)B adds uncertainty between alternative imputations. B=0 from identical deterministic guesses would not establish that unseen-value uncertainty vanished.

Sensitivity analysis makes dependence on unseen-value assumptions explicit. Suppose the observed mean is 4 units for three observed outcomes and two are missing. If the missing mean is assumed to be 4+δ, the full finite mean is [3×4+2(4+δ)]/5=4+(2/5)δ. Scenarios δ=−2,0,2 give means 16/5,4,24/5 units. A scientifically plausible range of δ can show whether a conclusion changes. These scenarios do not reveal which unseen values are true; they report how the answer depends on the chosen assumptions.

A sensitivity scenario changes an assumed missing meanThree observed outcomes 2,4,6 have mean 4 units and two are missing. Under missing mean 4+delta, full mean is 4+(2/5)delta. The delta axis uses 100 pixels per unit from −2 to 2; the vertical full-mean scale 45 pixels per unit. Three filled scenario points are (−2,16/5),(0,4),(2,24/5). The dashed horizontal decision boundary 9/2 intersects the scenario line at delta 5/4, shown by an open orange point. The line describes assumptions, not an observed response curve.A sensitivity scenario changes an assumed missing meanScenario mean 4+(2/5)δ; missing mean 4+δ23456boundary 9/216/5424/5-202δ=5/4Assumed delta (units)The vertical axis is a finite full-mean scenario in units, not new measured data.
The boundary identifies where the stated decision changes. No scenario identifies which unseen values are true, and the scenario line is not a confidence band.
10

An extreme value is a question to investigate

An outlier is unusual relative to a stated comparison, distribution or model. A descriptive fence, a robust-distance rule and a formal statistical test are different procedures. Lesson147’s type 7 quartiles and closed 1.5 IQR fences give one declared flagging convention; they do not provide a universal error detector. A value can be rare under one assumed model and ordinary under another, particularly for skewed or heavy-tailed distributions.

When a point is flagged, inspect the original record, unit, timestamp, device calibration, eligibility and surrounding observations. A confirmed unit mismatch or transcription mistake can justify a documented correction. A physically possible extreme with sound provenance may be the most important observation in the study. Keep these outcomes distinct: confirmed error, legitimate unusual measurement and unresolved record. A flag should not quietly become an exclusion rule chosen after looking at the desired result.

Several unusual observations can also affect the flagging procedure itself. Masking occurs when unusual values shift a fitted centre or spread so that other unusual values escape a rule. Swamping occurs when an affected rule flags otherwise ordinary observations. A sequence of single-outlier tests is therefore not automatically a valid multiple-outlier analysis. Formal tests carry distributional assumptions, error-rate choices and selection issues that a casual repeated deletion procedure may ignore.

Domain knowledge and graphical inspection complement numerical rules. A response of 80 milliseconds may be a genuine slow event, while a response of 0.08 recorded with the wrong unit may be a conversion error. The numeral’s size alone does not determine its status. Document why an action follows from external evidence or a predeclared analysis rule, retain the original value, and report how unresolved or influential points affect the scientific conclusion.

11

Compare sensitivity without rewriting the evidence

A robust summary can reduce sensitivity to some extreme observations without declaring them false. For 2,3,3,4,8 milliseconds, the mean is 4 and the median is 3. Replacing 8 with 80 changes the mean to 92/5=18.4 milliseconds while the median stays 3. Both correctly describe aspects of the changed record. The stable median does not mean that a genuine 80-millisecond delay is scientifically irrelevant.

Choose the summary in relation to the question. Total waiting time per request is connected to the mean; a rank-based typical response may emphasize a median; reliability or safety questions may emphasize upper-tail behaviour. Switching to the median solely because the mean is inconvenient can hide a change in estimand. Present several relevant summaries or a distribution view when one number cannot preserve the feature the scientific question requires.

A sensitivity comparison can show results with all verified observations, under a documented correction, and under a justified exclusion scenario. Distinguish a diagnostic leave-one-out calculation from a decision to remove the observation. Deleting 80 from 2,3,3,4,80 gives mean 12/4=3 milliseconds for a different four-observation record. It has not proved that 3 is the mean of the original five responses or that the deleted response was erroneous.

Trimming, winsorization and robust model fitting each define another procedure. Trimming excludes selected ranks from a calculation; winsorization replaces selected extremes by boundary values. Both can have legitimate planned roles, but they change what is calculated and need declared rules and uncertainty methods. Preserve the original record and name the procedure. A reproducible comparison of scientific conclusions is more informative than silently modifying numbers until a plot looks regular.

An extreme flag and a deletion decision are differentTwo response-time rows share 5.2 pixels per millisecond over 0 to 80. The full records 2,3,3,4,8 and 2,3,3,4,80 retain every value and stack the tied 3. Their means are 4 and92/5 milliseconds, while both medians are 3. Under declared linear type 7 quartiles Q1=3,Q3=4, both last values are beyond the upper fence 5.5. That descriptive flag establishes no error. A leave-last-out diagnostic gives mean 3 for another four-value record and is not a deletion decision.An extreme flag and a deletion decision are differentRetain all five: mean 4 ms; median 3 ms8 ms020406080Retain all five: mean 92/5 ms; median 3 ms80 ms020406080Same common time scale; low values remain close togetherLeave-last-out mean 3 ms is a diagnostic of another recordFlagging, confirmed correction and justified exclusion require distinct evidence.Original values are retained; no observation is automatically deleted.
A genuine slow event can matter for total waiting time or a tail question. Stable median and fence flags do not rewrite source evidence.
12

Measurement limits give partial information

A censored observation supplies a constraint without an exact value. A nonnegative concentration reported as below 2 milligrams per litre may mean 0≤Y<2 under the instrument’s declared convention. A lifetime known only to exceed a follow-up time is right-censored. Interval censoring restricts a value between two limits. These records differ from an unexplained missing value because their observed constraints are informative. Retain the limit and whether an endpoint is included.

For concentrations 3,5 and one value known to lie in [0,2), the mean lies in [8/3,10/3) milligrams per litre. Replacing the censored value by zero selects the lower endpoint; replacing it by 1 selects one interior completion. Neither replacement is established by the censoring report alone. A method using a distributional model may estimate quantities more specifically, but its assumptions and handling of detection limits must be stated.

A censoring interval keeps its open endpointTwo separate axes preserve a partially observed concentration. The upper censored-value axis in mg/L uses150 pixels per unit from0 to2; a closed point at 0 and hollow point at 2 represent [0,2). The known concentrations are 3 and 5 mg/L. The lower full-mean axis from 2 to 4 mg/L uses 180 pixels per unit. A closed point at 8/3 and hollow point at 10/3 represent the compatible mean interval [8/3,10/3). An orange point at 3 is the mean under midpoint completion c=1, not an observed truth.A censoring interval keeps its open endpointKnown exact readings: 3 and 5 mg/L; censored c∈[0,2)Censored-value axis (mg/L)0, included2, excludedFull mean=(8+c)/3 mg/Lone midpoint completion8/310/324 mg/LCompatible mean interval [8/3,10/3); midpoint completion gives 3.A censoring constraint does not identify an exact concentration.
Adding the known sum 8 and dividing by 3 preserves the interval’s endpoint inclusion. Unknown, censored and measured zero carry different information.

Truncation concerns which units appear at all. If an archive includes only lifetimes above a threshold, shorter-lived units may be absent rather than present with a censoring flag. The recorded distribution is then selected by that inclusion rule. The distinction matters for denominators and estimation: counting only available rows cannot reveal how many omitted units existed unless the collection system supplies that information.

Rounding and instrument resolution give other forms of limited information. A reading of 5.2 rounded to the nearest tenth can correspond to an interval around that value under a stated tie rule; it does not support arbitrary extra decimal precision. Calibration bias can affect all observations in the same direction and is different from independent random noise. A large number of repeated readings may reduce some random uncertainty while leaving a shared systematic error intact. Preserve the measurement process along with the numeric column.

13

Define duplication at the correct observational level

Repeated values are not necessarily duplicated observations. Two devices can have the same reading, and one device can legitimately be measured at several times. Define the intended key at the level of the entity and event: for example, device identifier plus measurement timestamp and channel. A duplicate import may repeat an already recorded event, while a genuine second event needs to remain. Equality of all visible numerical columns cannot settle the distinction if essential identity fields were omitted.

Unintended duplication changes weights. If the intended record has values 2 and 8 with one observation each, its mean is 5. Accidentally importing the first observation a second time gives 2,2,8 and mean 4. The arithmetic is correct for the imported table but gives the first event twice its intended weight. Removing all repeated numerical values would be another error if two real observations both happened to equal 2.

Repeated measurements also affect uncertainty. Ten readings from each of five machines give 50 readings and five machines. The right unit depends on the target: a distribution of recorded readings, a mean per machine and a mean across independent machines are distinct quantities. Correlated readings from one machine do not automatically provide the same information as independent machines. Keep the grouping identifiers so the later analysis can model or summarize that structure.

Investigate apparent duplicates using source keys, import batches, timestamps and collection context. Record a rule and counts for confirmed duplicate events removed from an analytical view. If conflicting versions of one event exist, preserve their lineage and the resolution instead of keeping whichever row appears last by accident. The cleaned row count should reconcile to source observations, documented duplicate imports and other explicitly classified changes.

Equal readings and repeated event identities are differentThe upper schematic event boxes have event e1 value 2 imported twice and event e2 value 8 once. Imported mean is 4; when repeat-import identity is independently confirmed, the intended one-occurrence-per-event view has mean 5. The lower boxes have distinct verified event keys e1,e2,e3 with values 2,2,8. Their correct event mean remains 4. Dropping one equal numeral would change that valid record. Box positions are identities, not measured numeric axes.Equal readings and repeated event identities are differentConfirmed repeat import; distinct import IDs retainede1:2 /i1e1:2 /i2e2:8 /i3Import mean 4; confirmed event view (2,8) mean 5Distinct genuine events; two equal measurements staye1:2e2:2e3:8Event mean 4; value-only deduplication would wrongly give 5Schematic boxes preserve identities; their spacing has no quantity meaning.The source archive remains intact in either diagnostic comparison.
Use event keys, import lineage and evidence. Conflicting versions of the same event need resolution; equality of values does not authorize removal.
14

Check the meaning before comparing the numerals

Compatible units must be standardized before numerical summaries are combined. Measurements 1000 milliseconds and 2 seconds are 1 and 2 seconds, giving mean 3/2 seconds when equally weighted. Averaging the bare numerals 1000 and 2 gives 501 with no coherent common unit. Preserve both the original unit and the exact transformation. A conversion is justified by the physical quantity, not by a desire to make a plot less extreme.

Affine scales require care. For a temperature transformation F=(9/5)C+32, convert values using both scale and offset. Differences transform by 9/5 without the offset; variance transforms by (9/5)². A ratio of Celsius values is not generally a physically meaningful temperature ratio because that zero is conventional. Unit labels, scale types and the mathematical operation must be checked together.

Parsing can silently change meaning. The string 1,234 may be a thousands-separated integer or a decimal under different conventions. A date such as 03/04/2026 is ambiguous without a declared format, and a local timestamp can need a time zone to identify an instant. Validate against a specified schema, keep failed tokens and report parsing errors rather than coercing every unrecognized string to zero. A successful parse shows agreement with a format, not proof that the recorded measurement is accurate.

Domain and cross-field rules can detect contradictions when supported by definitions: an end time before a start time may indicate an error or an unhandled date boundary; component counts should reconcile with a total under the declared counting rule; age at an event should agree with its dates within the available precision. Flag conflicts for investigation and distinguish impossible values from rare plausible ones. Do not turn a convenient threshold into an unsupported physical law.

Convert compatible units before combining their numeralsSchematic source boxes retain 1000 milliseconds and 2 seconds. Exact conversion 1000 ms times 1/1000 gives 1 second; the other value stays 2 seconds. The common-unit mean is 3/2 seconds. Bare numeral average 501 mixes scales and is not the common-unit mean. A lower separate temperature example converts0°C and 10°C byF=(9/5)C+32 to 32°F and 50°F, mean 41°F corresponding to 5°C. These boxes and arrows encode transformations, not numerical distances. Celsius value ratios are not absolute-temperature ratios.Convert compatible units before combining their numeralsSource durations (schematic transformation boxes)1000 ms×1/10001 s2 s×12 sCommon-unit mean=(1+2)/2=3/2 s; bare 501 is not that meanTemperature: 0°C,10°C → 32°F,50°F; mean 41°F=5°CValues need offset 32; differences do not; variances scale by 81/25Original units stay in the record. Celsius ratios depend on its conventional zero.Domain, locale and parsing rules need separately documented meaning.
A conversion retains the original quantity and unit, factor and any offset. Incompatible quantities cannot be combined into a duration mean.
15

Combining tables can multiply or lose observations

A join combines records by matching keys. Before joining, state what one row represents in each table and the intended relationship: one-to-one, one-to-many or many-to-many. A lookup table of one calibration per device can support a many-readings-to-one-calibration join if its device key is unique and the applicable version is correct. If calibration changes over time, device identity alone may be insufficient; the validity period becomes part of the matching rule.

A many-to-many join can multiply rows. If one key appears twice in the left table and three times in the right table, a join on that key alone produces 2×3=6 matched pairs. That can be correct for a question about every pair, but it duplicates the left and right information for a question about original events. Summing a repeated amount after such a join can overcount even though every output row satisfies the key equality.

Unmatched records also require accounting. An inner join keeps only matches and can silently select a subset. A left join preserves the left observations but introduces missing right-side fields where there is no match. Neither operation automatically corrects a wrong key or tells you whether an unmatched unit is ineligible, absent from the other source or recorded under another identifier. Report matched and unmatched counts and investigate them in relation to the target.

Useful join checks include key uniqueness at the intended level, expected row counts, reconciliation of totals, unmatched-key lists and sampled lineage back to both sources. Keep the join rule and versioned inputs. A numerical result downstream may be reproducible from a joined table while still answering the wrong question if rows were multiplied or excluded unexpectedly. Data quality therefore extends to relationships between tables as well as values within a single column.

A join can multiply source-event amounts without new eventsTwo schematic order rows o1 amount 10 and o2 amount 20 share key c1. Three contact rows p1,p2,p3 have the same key. A 2 by 3 grid shows the six matched pairs; the first row repeats amount 10 three times and the second repeats 20 three times. Their joined sum is 90 currency units, while the two original orders sum to 30. Grid positions represent matched identities, not numerical axes. The extra pairs are not six new original orders.A join can multiply source-event amounts without new eventsOrders: o1=10, o2=20; contacts p1,p2,p3; key c1p1p2p3o1101010o2202020Matched pairs 2×3=6; joined amount 3×10+3×20=90Original orders 10+20=30; the event total was tripledA left join retains unmatched left events but can still multiply matched amounts.Pair-level source IDs are essential; key equality alone does not preserve totals.
The correct result depends on the observational level and target. Check multiplicities, unmatched keys and original totals before summing a joined table.
16

Report decisions, unresolved limits and their consequences

A quality report should reconcile the intended observations with what was collected and what was analysed. Give counts and reasons for unavailable, inapplicable, censored, corrected, excluded, imputed, duplicate and unresolved records as relevant. These categories need not be forced into one disjoint list if statuses overlap; define the counting scheme so totals can be understood. Keep original values and status flags linked to derived analytical versions.

State which checks passed and what each establishes. A unique key check can show no repeated key under that schema; a range check can show conformity to that range; an audit can confirm a documented correction. None alone proves representativeness, causal validity or absence of systematic measurement error. Missing evidence should remain a limitation rather than being replaced by the reassuring label validated data.

Show how consequential decisions affect the answer. Bounds, plausible missing-value scenarios, robust summaries and documented exclusion comparisons can reveal whether the scientific conclusion is stable. Stability under a selected set of scenarios is evidence about those scenarios, not proof that every relevant bias has vanished. If a conclusion changes under reasonable alternatives, report that dependence and identify which additional information would help.

Good data practice connects measurement, probability, numerical analysis and scientific design. A missingness mechanism concerns conditional dependence; bounds use inequalities; imputation separates observed information from model assumptions; duplication changes weights; and unit conversion preserves physical meaning. The next lesson uses these lessons to formulate a question that a proposed collection and analysis can actually answer. Preserve the records and explain the limitations so later reasoning can build on evidence rather than on a tidied appearance.

Explore missing values, sensitivity and data quality

Choose a finite preset. Original records, status flags, named denominators and assumptions remain visible. Exact fractions stay in the tables; square-root scales and drawing coordinates are explicitly qualified numerical approximations.

1. Retain value status and the intended denominator

Status counts retain distinct meaningsExactly observed=2. Unknown eligible outcome=1. Partially observed / censored=1. Inapplicable (outside eligible denominator)=1. Bars share zero and a common source rows (counts) scale. Archive and eligible intended outcomes have different counts. No status is silently converted into zero.Status counts retain distinct meaningsExactly observed2Unknown eligible outcome1Partially observed / censored1Inapplicable (outside eligible denominator)102source rows (counts)Exact values remain in the accompanying table.
Archive and eligible intended outcomes have different counts. No status is silently converted into zero.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Source records and constraints[id: r1 · status: observed · value: 0 · lower: Unavailable under the stated input, count or model conditions. · upper: Unavailable under the stated input, count or model conditions. · lowerIncluded: Unavailable under the stated input, count or model conditions. · upperIncluded: Unavailable under the stated input, count or model conditions.; id: r2 · status: observed · value: 4 · lower: Unavailable under the stated input, count or model conditions. · upper: Unavailable under the stated input, count or model conditions. · lowerIncluded: Unavailable under the stated input, count or model conditions. · upperIncluded: Unavailable under the stated input, count or model conditions.; id: r3 · status: missing · value: Unavailable under the stated input, count or model conditions. · lower: Unavailable under the stated input, count or model conditions. · upper: Unavailable under the stated input, count or model conditions. · lowerIncluded: Unavailable under the stated input, count or model conditions. · upperIncluded: Unavailable under the stated input, count or model conditions.; id: r4 · status: inapplicable · value: Unavailable under the stated input, count or model conditions. · lower: Unavailable under the stated input, count or model conditions. · upper: Unavailable under the stated input, count or model conditions. · lowerIncluded: Unavailable under the stated input, count or model conditions. · upperIncluded: Unavailable under the stated input, count or model conditions.; id: r5 · status: censored · value: Unavailable under the stated input, count or model conditions. · lower: 0 · upper: 2 · lowerIncluded: yes · upperIncluded: no]
Archive rows5
Eligible intended outcomes4
Separate status countsobserved: 2 · missing: 1 · inapplicable: 1 · censored: 1
Exactly observed fraction of eligible outcomes1/2
Unknown fraction of eligible outcomes1/4
Partially observed fraction1/4
Summary of exact observations onlycount: 2 · sorted: [0; 4] · mean: 2 · median: 2 · centredSum: 8 · empiricalVariance: 4 · usualSampleVariance: 8
Actual observed zero count1
Unknown values replaced by zerono
Inapplicable outcomes imputedno

Units: outcome: s · fraction: eligible intended outcomes, dimensionless

The archive retains every source status. Inapplicable quantities are excluded from this intended-outcome denominator; censored values are eligible but only partially observed. Exact observed zero is a measurement. Unknown, inapplicable and censored entries are not converted to zero or silently mean-filled.

2. Inspect overlapping missing positions

Disjoint missing-pattern cells reveal complete rowsBoth A and B missing=0. A missing only=10. B missing only=20. Neither missing: complete on both=70. Bars share zero and a common eligible records scale. These pattern cells are disjoint. Their counts profile observation status; they do not establish a missingness mechanism.Disjoint missing-pattern cells reveal complete rowsBoth A and B missing0A missing only10B missing only20Neither missing: complete on both70070eligible recordsExact values remain in the accompanying table.
These pattern cells are disjoint. Their counts profile observation status; they do not establish a missingness mechanism.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Eligible rows100
A-missing rows10
B-missing rows20
Both missing0
Union of missing rows30
Complete on both70
Disjoint pattern-cell countsbothMissing: 0 · aMissingOnly: 10 · bMissingOnly: 20 · neitherMissing: 70
Complete fraction7/10
A missing fraction1/10
B missing fraction1/5
Possible complete-count lower bound from column counts70
Possible complete-count upper bound from column counts80

Units: count: eligible records · fractions: dimensionless

Complete rows depend on the union of missing positions, not the sum of per-column counts alone. Inclusion–exclusion gives missingUnion=A+B−overlap. With 100 rows,10 A-missing and20 B-missing, complete counts can range from 70 to 80. This observed pattern does not identify MCAR, MAR or MNAR.

3. Distinguish observed and target composition

Observed and target-weighted means need their contextObserved-record mean=10/3. Explicitly declared full toy target mean=5. Empirical site adjustment with known target weights=5. Bars share zero and a common outcome units scale. The complete finite toy target is explicitly declared for comparison. MAR is assumed given site, not inferred; a target site without outcomes has no invented empirical mean.Observed and target-weighted means need their contextObserved-record mean10/3Explicitly declared full toy target mean5Empirical site adjustment with known target weights505outcome unitsExact values remain in the accompanying table.
The complete finite toy target is explicitly declared for comparison. MAR is assumed given site, not inferred; a target site without outcomes has no invented empirical mean.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Site outcomes, counts, weights and assumed response probabilities[name: A · targetCount: 2 · observedCount: 2 · declaredConstantToyOutcome: 0 · observedWithinSiteMean: 0 · targetWeight: 1/2 · observedWeight: 2/3 · assumedResponseProbability: 1; name: B · targetCount: 2 · observedCount: 1 · declaredConstantToyOutcome: 10 · observedWithinSiteMean: 10 · targetWeight: 1/2 · observedWeight: 1/3 · assumedResponseProbability: 1/2]
Full declared toy target count4
Observed count3
Observed mean10/3
Explicitly declared full toy target mean5
All target sites have observed supportyes
Site-adjusted empirical mean using known target weights5
Observed minus declared target mean-5/3
Compatible MAR mechanism assumedyes
MAR proved from the observed patternno

Units: outcome: units · weights: dimensionless site composition

This toy explicitly declares the complete finite site outcomes so its full mean is available for comparison. The response model depends on recorded site and is compatible with MAR given site; that assumption is not learned from the observed table. Unadjusted observed composition may differ from target composition. A site-adjusted empirical mean needs observed support in every target site and known target weights; no unobserved site mean is invented.

4. Bound the finite full mean under a stated range

Full-mean completion bound under a declared finite rangeExact interval [12/5,32/5] outcome units. Observed mean=4. The full mean can vary across compatible missing values. This is a finite completion bound, not a sampling confidence interval.Full-mean completion bound under a declared finite rangeEndpoint inclusion is part of the interval claim.12/532/5Observed mean: 4≈ 1.4≈ 7.4Labelled point-position axis (outcome units)Coordinate positions are drawing approximations; limits stay exact.
The full mean can vary across compatible missing values. This is a finite completion bound, not a sampling confidence interval.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Observed outcomes[2; 4; 6]
Observed count n3
Missing count m2
Full intended count N5
Observed sum S12
Observed mean4
Justified lower missing-value limit0
Justified upper missing-value limit10
Finite missing range is knownyes
Full-mean lower bound12/5
Full-mean upper bound32/5
Lower endpoint includedyes
Upper endpoint includedyes
This is a confidence intervalno
Unknown individual values identifiedno

Units: observations: units · bounds: units

For a justified missing-value range L≤Y≤U, the finite full mean lies in [(S+mL)/N,(S+mU)/N]. This is a deterministic completion bound, not a sampling confidence interval. With no missing outcomes it collapses to the recorded mean. No finite bound is invented when the missing range is absent.

5. Keep respondent fractions separate from full-record bounds

Full yes-fraction bounds use all eligible outcomesExact interval [3/5,4/5] dimensionless fraction. Respondent yes fraction=3/4. The respondent point uses a different denominator. Compatible binary completions occur on increments 1/N; unknown answers are not entered as no.Full yes-fraction bounds use all eligible outcomesEndpoint inclusion is part of the interval claim.3/54/5Respondent yes fraction: 3/4≈ 0≈ 1Labelled point-position axis (dimensionless fraction)Coordinate positions are drawing approximations; limits stay exact.
The respondent point uses a different denominator. Compatible binary completions occur on increments 1/N; unknown answers are not entered as no.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Observed yes60
Observed no20
Unknown answers20
Respondents80
Eligible people100
Response fraction4/5
Yes fraction among respondents3/4
Recorded yes per eligible person3/5
Full yes-fraction lower bound3/5
Full yes-fraction upper bound4/5
Possible missing-yes minimum0
Possible missing-yes maximum20
Finite completion increment1/100
Missing answers entered as nono
Bound is a confidence intervalno

Units: counts: eligible people or responses, as labelled · fractions: dimensionless

Respondent yes fraction uses observed yes+no, while response and full-record bounds use all eligible outcomes. Each missing answer can be binary 0 or 1; compatible full fractions lie on increments 1/N between the endpoint bounds. Unknown responses are not entered as no. These finite completion bounds do not describe uncertainty about a larger population without a further model.

6. Separate filled cells from new observations

Observed values and explicitly marked mean fillsOriginal observed values: [2; 4; 6]. Imputed flags empty. Completed derived view; orange hollow dots are imputed: [2; 4; 6; 4; 4]. Imputed flags [no; no; no; yes; yes]. All rows use the same outcome units scale. Mean fill leaves the mean and centred sum unchanged while enlarging the variance denominator. No new independent outcome is observed.Observed values and explicitly marked mean fillsOriginal observed valuesCompleted derived view; orange hollow dots are imputed06Common recorded-value axis (outcome units)Vertical stacks retain ties and statuses; they are not a value axis.
Mean fill leaves the mean and centred sum unchanged while enlarging the variance denominator. No new independent outcome is observed.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Original observations[2; 4; 6]
Observed count3
Missing count2
Original descriptive summarycount: 3 · sorted: [2; 4; 6] · mean: 4 · median: 4 · centredSum: 8 · empiricalVariance: 8/3 · usualSampleVariance: 4
Declared imputed value4
Derived completed values[2; 4; 6; 4; 4]
Imputation indicators[no; no; no; yes; yes]
Completed arithmetic summary (naive usual sample variance is not a justified uncertainty estimate)count: 5 · sorted: [2; 4; 4; 4; 6] · mean: 4 · median: 4 · centredSum: 8 · empiricalVariance: 8/5 · usualSampleVariance: 2
Mean change0
Centred-sum change0
New measured outcomes collected0
Filled entries are independent measurementsno

Units: values: units · variance: units²

Mean fill is a declared deterministic derived view, not a recovery of missing truths. Added mean-valued entries leave the mean and centred sum unchanged but enlarge the denominator, reducing empirical spread when that sum is positive. The completed usual sample-variance calculation is shown only as a naive arithmetic comparison; it does not license treating fills as new independent observations.

7. Explore an explicit unseen-mean assumption

One exact full-mean scenario under an assumed deltaAssumed delta -2, missing mean 2, full-mean scenario 16/5. Boundary 9/2. These are assumptions, not identified missing truths.One exact full-mean scenario under an assumed deltaMissing-mean assumption: observed mean + δδ=-2; missing mean 2scenario 16/5boundary 9/20246Finite full-mean scenario (units)Exact boundary equality occurs at δ=5/4.
The fixed point axis 0 to 6 units is shared by these supplied scenarios. The decision boundary is not a confidence limit.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Observed outcomes[2; 4; 6]
Observed count3
Missing count2
Observed mean4
Assumed delta-2
Assumed mean of missing outcomes2
Missing fraction m/N2/5
Full-mean scenario16/5
Declared decision boundary9/2
Exact comparison: −1 below,0 equal,+1 above-1
Strictly above boundaryno
Delta giving equality to the boundary5/4
Unknown truth identifiedno
Scenario is a confidence intervalno

Units: observedMean: units · delta: units · scenarioMean: units

The missing mean is assumed to be observedMean+δ. The finite scenario mean is observedMean+(m/N)δ. Different δ values are alternative unseen-value assumptions, not several recovered records or confidence limits. The boundary calculation states where a declared decision changes; it does not identify the actual missing mean.

8. Keep within and between imputation variance

Separate within variance from adjusted between varianceWithin W=1, between B=1, multiplier 4/3, total T=7/3. Variance uses squared units. This arithmetic does not establish proper imputation or coverage.Separate within variance from adjusted between varianceM=3; pooled estimate 5 unitsW=1; B=1Blue: W. Orange: (1+1/M)B. Total T=7/3.0≈ 2.3333 square unitsSE scale: √(7/3) (≈ 1.5275252) unitsNo interval coverage or imputation validity is established here.
The stacked bar has a common zero variance scale. Identical estimates can give B=0 without proving that missing-value uncertainty is absent.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Complete-data estimates Q[4; 5; 6]
Complete-data variance estimates U[1; 1; 1]
Number M of imputed-data analyses3
Pooled estimate Q̄5
Within variance W1
Between centred sum2
Between variance B1
Between multiplier 1+1/M4/3
Total variance T7/3
Pooled SE scale (labelled radical approximation)√(7/3) (≈ 1.5275252)
Proper imputation established by this arithmeticno
Interval coverage establishedno
Completed versions are independent new population samplesno

Units: estimates: units · withinBetweenTotalVariance: units² · pooledSE: units

The scalar arithmetic uses Q̄=mean(Q), W=mean(U), B=Σ(Q−Q̄)²/(M−1), and T=W+(1+1/M)B. This does not establish proper imputation, compatible analysis or interval coverage. Alternative completed data sets are not independent new population samples. Identical deterministic guesses giving B=0 do not prove that missing-value uncertainty is absent.

9. Distinguish a flag from evidence for deletion

Retain the full record beside a leave-last-out diagnosticOriginal record stays intact: [2; 3; 3; 4; 8]. Imputed flags empty. Diagnostic of a different record; no deletion decision: [2; 3; 3; 4]. Imputed flags empty. All rows use the same ms scale. The common axis is 0 to 80 ms for both supplied records. Type 7 fence flags and stable median do not confirm errors or authorize deletion.Retain the full record beside a leave-last-out diagnosticOriginal record stays intactDiagnostic of a different record; no deletion decision080Common recorded-value axis (ms)Vertical stacks retain ties and statuses; they are not a value axis.
The common axis is 0 to 80 ms for both supplied records. Type 7 fence flags and stable median do not confirm errors or authorize deletion.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Retained original record[2; 3; 3; 4; 8]
Full descriptive summarycount: 5 · sorted: [2; 3; 3; 4; 8] · mean: 4 · median: 3 · centredSum: 22 · empiricalVariance: 22/5 · usualSampleVariance: 11/2
Type 7 Q₁3
Type 7 Q₃4
IQR1
Lower fence3/2
Upper fence11/2
Fence equality unflaggedyes
Flagged values[8]
Declared descriptive flag ruleExplicit linear type7 quartiles; flag strictly beyond the closed 1.5 IQR fences.
Error confirmedno
Deletion authorized by the flagno
Diagnostic leave-last-out record[2; 3; 3; 4]
Diagnostic leave-last-out summarycount: 4 · sorted: [2; 3; 3; 4] · mean: 3 · median: 3 · centredSum: 2 · empiricalVariance: 1/2 · usualSampleVariance: 2/3
The diagnostic is a deletion decisionno

Units: values: ms · variance: ms²

The retained original record stays intact. A type7 fence is only a stated descriptive flag; it is not a test proving an error. The mean, median and diagnostic leave-last-out view answer different questions. A genuine long delay may matter for a total or tail target. No correction, deletion or exclusion is authorized by the flag or stable median.

10. Preserve informative limits and endpoint inclusion

Compatible mean interval retains censoring endpointsExact interval [8/3,10/3) mg/L. One midpoint completion=3. The orange point is a labelled hypothetical completion. It is not an exact observed concentration or the identified full mean.Compatible mean interval retains censoring endpointsEndpoint inclusion is part of the interval claim.8/310/3One midpoint completion: 3≈ 1.6667≈ 4.3333Labelled point-position axis (mg/L)Coordinate positions are drawing approximations; limits stay exact.
The orange point is a labelled hypothetical completion. It is not an exact observed concentration or the identified full mean.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Exactly observed outcomes[3; 5]
Exactly observed sum8
Censored outcome count1
Full outcome count3
Censored lower limit0
Censored upper limit2
Censored lower endpoint includedyes
Censored upper endpoint includedno
Full-mean lower bound8/3
Full-mean upper bound10/3
Full-mean lower endpoint includedyes
Full-mean upper endpoint includedno
One midpoint completion1
Mean under that midpoint completion3
Midpoint is observed truthno
Censored value replaced by zerono

Units: observed: mg/L · limits: mg/L · mean: mg/L

Censoring preserves a value constraint and its endpoint inclusion. Adding the exact observed sum and dividing by the positive full count preserves those open/closed endpoints. A midpoint is one explicitly labelled completion, not an observed measurement. Censoring is distinct from an unexplained missing value and from truncation, where units may be absent from the archive entirely.

11. Resolve identity before treating rows as duplicate events

Identity-aware views and a value-only diagnostic differImported-table mean=4. Resolved event mean, when supported=5. Value-only distinct diagnostic (not a removal rule)=5. Bars share zero and a common outcome units scale. Source event and import IDs remain in the table. Equal readings can be distinct genuine events; conflicting event versions remain unresolved.Identity-aware views and a value-only diagnostic differImported-table mean4Resolved event mean, when supported5Value-only distinct diagnostic (not a removal rule)505outcome unitsExact values remain in the accompanying table.
Source event and import IDs remain in the table. Equal readings can be distinct genuine events; conflicting event versions remain unresolved.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Retained source records[eventId: e1 · importId: i1 · value: 2; eventId: e1 · importId: i2 · value: 2; eventId: e2 · importId: i3 · value: 8]
Archive/import row count3
Unique event keys2
Event groups and conflicts[eventId: e1 · importIds: [i1; i2] · values: [2; 2] · multiplicity: 2 · conflictingValues: no; eventId: e2 · importIds: [i3] · values: [8] · multiplicity: 1 · conflictingValues: no]
Conflicting event versions presentno
Repeat import externally confirmed in this presetyes
Imported-table summarycount: 3 · sorted: [2; 2; 8] · mean: 4 · median: 2 · centredSum: 24 · empiricalVariance: 8 · usualSampleVariance: 12
Resolved event view is availableyes
Resolved event summarycount: 2 · sorted: [2; 8] · mean: 5 · median: 5 · centredSum: 18 · empiricalVariance: 9 · usualSampleVariance: 18
Value-only distinct diagnostic (not an approved removal rule)count: 2 · sorted: [2; 8] · mean: 5 · median: 5 · centredSum: 18 · empiricalVariance: 9 · usualSampleVariance: 18
Numeric equality proves duplicate identityno
Automatic removal performedno

Units: values: units · counts: import rows or event keys, as labelled

Event identity and import lineage are retained. Confirmed repeated import can justify a separately documented event-level view; conflicting event versions remain unresolved. Different verified events with equal values remain distinct. The value-only distinct diagnostic demonstrates a possible wrong weighting change and is never an automatic deletion rule.

12. Retain compatible conversions and source units

Converted values retain their source units and rulesSource rows and conversion rules [value: 1000 · unit: ms · scale: 1/1000 · offset: 0 · converted: 1; value: 2 · unit: s · scale: 1 · offset: 0 · converted: 2]. Converted values [1; 2] in s. Exact common-unit mean 3/2.Converted values retain their source units and rulesTarget unit: s; quantity: duration1 s2 s≈ 0≈ 3Exact common-unit mean: 3/2 sVertical offsets are schematic; horizontal positions encode values.
Only point position encodes converted values. Fahrenheit’s conventional origin does not make length or temperature ratios absolute physical ratios.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Declared quantityduration
Source values/units and exact conversion rules[value: 1000 · unit: ms · scale: 1/1000 · offset: 0 · converted: 1; value: 2 · unit: s · scale: 1 · offset: 0 · converted: 2]
Target units
Converted values[1; 2]
Converted summarycount: 2 · sorted: [1; 2] · mean: 3/2 · median: 3/2 · centredSum: 1/2 · empiricalVariance: 1/4 · usualSampleVariance: 1/2
Mean of bare numerals (not automatically a common-unit mean)501
Bare numeral mean already has target unitsno
Common original unit when one existsUnavailable under the stated input, count or model conditions.
Original common-unit summary when availableUnavailable under the stated input, count or model conditions.
Conventional temperature origin licenses absolute ratiosno

Units: source: retained separately on each row · target: s · variance: s²

Each converted value uses a documented compatible scale and offset. Averaging bare numerals from different scales does not create a common-unit mean. For F=(9/5)C+32 the offset belongs to values, not differences, and variances scale by (9/5)². A conventional Celsius zero does not make Celsius value ratios absolute-temperature ratios. No incompatible quantity is silently coerced.

13. Check multiplicity and unmatched records before summing

A matching key can repeat or omit event-level amountsOriginal left-event amount total=30. Inner-join repeated/selected amount sum=90. Left-join repeated amount sum=90. Bars share zero and a common currency units scale. Pair-level lineage and unmatched IDs remain in the table. A left join retains unmatched events but can still repeat amounts from multiply matched events.A matching key can repeat or omit event-level amountsOriginal left-event amount total30Inner-join repeated/selected amount sum90Left-join repeated amount sum90090currency unitsExact values remain in the accompanying table.
Pair-level lineage and unmatched IDs remain in the table. A left join retains unmatched events but can still repeat amounts from multiply matched events.
Exact retained values, record statuses and stated analytical conditions
Quantity or conditionResult
Original left events[id: o1 · key: c1 · amount: 10; id: o2 · key: c1 · amount: 20]
Original right rows[id: p1 · key: c1; id: p2 · key: c1; id: p3 · key: c1]
Left source row count2
Right source row count3
Per-key multiplicities and pair counts[key: c1 · left: 2 · right: 3 · matchedPairs: 6]
Inner-join matched pairs and source IDs[leftId: o1 · rightId: p1 · key: c1 · amount: 10; leftId: o1 · rightId: p2 · key: c1 · amount: 10; leftId: o1 · rightId: p3 · key: c1 · amount: 10; leftId: o2 · rightId: p1 · key: c1 · amount: 20; leftId: o2 · rightId: p2 · key: c1 · amount: 20; leftId: o2 · rightId: p3 · key: c1 · amount: 20]
Inner-join row count6
Unmatched left event IDsempty
Unmatched left count0
Left-join rows with unmatched right IDs null[leftId: o1 · rightId: p1 · key: c1 · amount: 10; leftId: o1 · rightId: p2 · key: c1 · amount: 10; leftId: o1 · rightId: p3 · key: c1 · amount: 10; leftId: o2 · rightId: p1 · key: c1 · amount: 20; leftId: o2 · rightId: p2 · key: c1 · amount: 20; leftId: o2 · rightId: p3 · key: c1 · amount: 20]
Left-join row count6
Original event amount total30
Inner-joined repeated/selected amount total90
Left-joined repeated amount total90
Inner total divided by source total3
Left join preserves each left event exactly onceno
Join row count is an original event countno

Units: amount: currency units · counts: source events, contact rows or matched pairs, as labelled

A key match forms all matching row pairs; a left multiplicity a and right multiplicity b produce a×b pairs. Pair-level lineage is retained. An inner join can omit unmatched events; a left join retains them with missing right-side fields but still repeats left amounts when there are multiple matches. Neither row-count inflation nor key equality proves new original events or preserves an event-level total.

Worked examples

Keep eligibility, response and outcome distinct

Among 100 eligible people, 80 answer a binary question: 60 yes and 20 no. Compute the response fraction and observed yes fraction. Can the other 20 be entered as no?

  1. Use eligibility as the response denominator: 80/100=4/5=80% answered, and 20/100=1/5=20% are missing this answer.
  2. Among the 80 respondents, the yes fraction is 60/80=3/4=75%. Counts reconcile as 60 yes plus 20 no plus 20 missing.
  3. The recorded yes count is 60% of eligible people, but the missing answers may contain additional yes responses. Their unknown status must be retained.
  4. Entering the 20 missing answers as no would assume their outcomes and change the intended full-outcome analysis. Report the denominator and missing count instead.

Response is 80%, and yes among respondents is 75%. The 20 unknown answers remain unknown; eligibility alone does not identify them as no.

MAR given site does not justify an unadjusted mean

A target has two units at site A, each with outcome 0, and two at site B, each with outcome 10. Both A outcomes and one B outcome are observed. Compare the observed and full means, and describe a compatible MAR mechanism.

  1. The full target values are 0,0,10,10, giving mean 20/4=5 units.
  2. The observed values are 0,0,10, giving mean 10/3 units. Site A now receives weight 2/3 instead of its target weight 1/2.
  3. One compatible collection model observes every A unit and independently observes each B unit with probability 1/2, with outcome independent of response once site is specified. That is MAR given recorded site and can produce this observed pattern.
  4. The realised finite mean difference is a composition effect. A site-adjusted mean using known equal target weights can recover 5 in this toy with constant within-site outcomes, but that relies on the additional site and target information.

The observed mean is 10/3 and the full finite mean is 5. Conditional MAR can coexist with an unadjusted observed mean that does not equal the target mean.

Find all possible full means under a range constraint

Five intended outcomes include observed values 2,4,6 units and two missing values known to lie in [0,10]. Bound the full finite mean.

  1. The observed count is n=3, missing count m=2, full count N=5 and observed sum S=12 units.
  2. The smallest missing sum is 0+0=0, giving minimum mean (12+0)/5=12/5 units.
  3. The largest missing sum is 10+10=20, giving maximum mean (12+20)/5=32/5 units.
  4. Every intermediate missing mean in [0,10] gives a compatible full mean between these limits. This is a finite-record bound, not a repeated-sampling confidence interval.

The compatible full mean lies in [12/5,32/5] units. The observed mean 4 is not identified as the full mean without another assumption.

Bound a binary full-record fraction

Use the 100 eligible people with 60 observed yes, 20 observed no and 20 missing answers. Find the smallest and largest possible full yes fractions.

  1. The missing yes count can be any integer from 0 through 20.
  2. If no missing answer is yes, the full fraction is 60/100=3/5.
  3. If every missing answer is yes, the full fraction is 80/100=4/5.
  4. The exact finite fractions occur on steps of 1/100 within those endpoints. The interval [3/5,4/5] conveniently encloses them; neither endpoint is chosen by the observed response fraction.

The full yes fraction ranges from 60% through 80%. The 75% respondent fraction is a different quantity and is not guaranteed to be the full fraction.

Calculate a spread reduction created by filling cells

Observed values are 2,4,6 units with two additional outcomes missing. Fill the missing cells with the observed mean. Compare empirical variances before and after filling.

  1. The observed mean is 4 units. Deviations are −2,0,2, so the centred sum of squares is M₂=4+0+4=8 square units.
  2. The observed empirical variance is M₂/3=8/3 square units.
  3. Filling both missing entries with 4 adds two zero deviations. The mean and M₂ remain unchanged, while the empirical denominator becomes 5.
  4. The completed-table empirical variance is 8/5 square units. The reduction comes entirely from the imputation rule and must not be presented as newly measured lower variability.

Mean filling changes empirical variance from 8/3 to 8/5 square units without collecting another outcome. The inferred entries retain imputed status.

Show a conclusion’s dependence on a missing-mean assumption

Three observed outcomes have mean 4 units and two are missing. Assume the missing mean is 4+δ. Express the full mean in terms of δ and evaluate δ=−2,0,2.

  1. The observed sum is 3×4=12 units. The assumed missing sum is 2(4+δ).
  2. Divide the full sum by 5: μ_full=[12+8+2δ]/5=4+(2/5)δ.
  3. For δ=−2,0,2, the full means are 16/5,4,24/5 units respectively.
  4. If a decision boundary is 9/2 units, the first two scenarios fall below it and the third exceeds it. The decision is sensitive over these scenarios; the data have not identified which scenario is true.

The full mean is 4+(2/5)δ units. The selected scenarios give 3.2,4,4.8 units and expose the role of an unseen-value assumption.

Separate within and between imputation variance

For an illustrative compatible scalar pooling calculation, three imputed-data analyses give estimates 4,5,6 units and complete-data variance estimates 1,1,1 square units. Calculate Q̄,W,B and T using the stated pooling formula.

  1. There are M=3 completed-data analyses. Their estimate mean is Q̄=(4+5+6)/3=5 units.
  2. The mean within-analysis variance is W=(1+1+1)/3=1 square unit.
  3. Between-imputation variance is B=[(4−5)²+(5−5)²+(6−5)²]/(3−1)=2/2=1 square unit.
  4. The stated total-variance estimate is T=W+(1+1/M)B=1+(4/3)×1=7/3 square units. The associated standard-error scale is √(7/3) units.
  5. This demonstrates the arithmetic and units of the formula. It does not establish that arbitrary imputations are proper, that the analysis models are compatible or that a particular confidence interval has its advertised coverage.

Q̄=5 units, W=1, B=1 and T=7/3 square units. Between-imputation variation contributes to uncertainty rather than being discarded.

A robust centre does not certify an error

Compare 2,3,3,4,8 with 2,3,3,4,80 milliseconds. Find the means and medians, then assess deleting the final value without additional evidence.

  1. The first total is 20 milliseconds, so its mean is 4; its middle ordered value is 3.
  2. The changed total is 92 milliseconds, so its mean is 92/5=18.4; its median remains 3.
  3. The mean responds strongly to the extreme magnitude. The median’s unchanged rank does not establish that 80 is false or irrelevant for a tail-sensitive question.
  4. Deleting the final value leaves 2,3,3,4 with mean 3 milliseconds. That is a summary of a different record; a scientific correction or exclusion needs its own documented justification.

The means are 4 and 18.4 milliseconds, while both medians are 3. Summary sensitivity and evidence of a recording error are distinct.

Retain the interval implied by a detection limit

Three nonnegative concentrations are reported as 3,5 and below 2 milligrams per litre. Interpret the last as [0,2). Bound their mean without imputing a point value.

  1. Let c be the censored concentration, with 0≤c<2 milligrams per litre.
  2. The mean is (3+5+c)/3=(8+c)/3 milligrams per litre.
  3. At c=0 the mean is 8/3; as c approaches 2 from below, the mean approaches 10/3 without reaching it.
  4. The compatible interval is [8/3,10/3). Assigning c=1 would give mean 3, which is one completion inside the interval and is not identified by the report alone.

The mean lies in [8/3,10/3) milligrams per litre. The censored observation is partly informative and is neither a known zero nor a completely unexplained blank.

A duplicate event changes the implicit weights

Two intended events have values 2 and 8 units. An import repeats the first event. Compute the two means and describe the evidence needed before deleting a row.

  1. With one occurrence per intended event, the mean is (2+8)/2=5 units.
  2. The imported values 2,2,8 have mean 12/3=4 units, giving the first event twice the weight.
  3. Check source event identifiers and import lineage to confirm that the two 2s refer to the same event. Equal numerical values alone are insufficient.
  4. If they are a confirmed repeated import, retain the source and a removal record. If they represent two genuine events, removing one would instead discard valid information.

The means are 5 and 4 units. The correct analytical action depends on event identity and provenance, not solely on equal values.

Standardize compatible units before arithmetic

Two equally weighted durations are 1000 milliseconds and 2 seconds. Find their mean in seconds and diagnose the numeral-only average.

  1. Use 1000 milliseconds=1 second. The common-unit values are therefore 1 and 2 seconds.
  2. Their mean is (1+2)/2=3/2 seconds, or 1500 milliseconds.
  3. The numeral-only calculation (1000+2)/2=501 has combined incompatible numerical scales and cannot be labelled as the correct mean in either original unit.
  4. Retain the original values and units, plus the conversion factor. Check whether the question supports equal observation weights rather than introducing an unrelated weighting change.

The mean is 1.5 seconds. Unit standardization is a documented mathematical transformation, not an outlier deletion.

Predict a row multiplication before joining

For one customer key, an order table has two rows with amounts 10 and 20 units of currency. A contact table has three rows for that same key. What happens if they are joined by customer key alone and order amounts are summed?

  1. Each of the two order rows matches each of the three contact rows, producing 2×3=6 rows.
  2. The amount 10 appears three times and 20 appears three times. Their joined sum is 3×10+3×20=90.
  3. The original order total was 10+20=30. The joined sum overcounts that target by a factor of 3.
  4. If the target is order totals, use a relationship and aggregation that preserve each intended order once, or keep contact and order summaries separate. Retain unmatched-key and row-count checks as part of the join record.

The join creates six matched pairs and a misleading order sum of 90 instead of 30. Key equality alone does not preserve the intended observational level.

Try it yourself

  1. A file has an observed duration of 0 seconds in one row and no duration in another after sensor failure. May both be coded as numerical zero for analysis?

    Show the answer and reasoning

    No. Retain the observed zero and the unavailable measurement as different statuses.

    The first row asserts a numerical observation; the second does not reveal the duration. A single zero code would introduce a fictitious value and alter means, counts and plots. A documented status field preserves the difference.

  2. An event never started, so its defined elapsed operating time is inapplicable. Is mean imputation automatically a recovery of that time?

    Show the answer and reasoning

    No. The quantity is not an unrecorded realised duration under that definition.

    A hypothetical duration if the event had started is a different target requiring a model or intervention scenario. Keep inapplicability distinct from a missing value of a quantity that did occur.

  3. Among 100 eligible rows, variable A is missing in 10 and B in 20. Without their positions, what range is possible for rows complete on both?

    Show the answer and reasoning

    From 70 through 80 rows.

    The union of missing rows is at least 20 if A’s missing positions are contained in B’s, and at most 30 if the positions are disjoint. Subtracting that union from 100 gives 80 down to 70. Per-column counts do not identify complete-case count.

  4. Response probability differs by fully recorded site but, within site, does not depend on the outcome after site is given. How does this relate to the lesson’s single-outcome MAR condition?

    Show the answer and reasoning

    It is compatible with P(R=1|Y,X)=P(R=1|X), taking site as X.

    The condition allows observed-site dependence while excluding additional outcome dependence after conditioning. It does not make an unadjusted overall respondent mean representative of a target with another site composition.

  5. No association is detected between missingness and the recorded variables. Does that prove MCAR or rule out MNAR?

    Show the answer and reasoning

    No. A failure to detect recorded dependence does not identify the unseen-value mechanism.

    Power, recorded information and the unavailable outcomes all matter. Different missing-value models can agree on the observed data. State the mechanism as an assumption with scientific support and examine sensitivity where relevant.

  6. Four observed outcomes sum to 20 units and one is missing in [0,10]. Bound the full five-outcome mean.

    Show the answer and reasoning

    It lies in [4,6] units.

    The minimum sum is 20 and maximum sum 30; divide both by 5. These are deterministic finite-record bounds under the range assumption. They are not sampling confidence limits or evidence that the missing value equals the observed mean.

  7. One real-valued outcome is missing with no justified upper limit. Do the finite observed values alone give a finite upper bound on the full mean?

    Show the answer and reasoning

    No. The missing value can be arbitrarily large under the stated information.

    A finite observed sum plus an unbounded possible missing value yields an unbounded possible full sum. A finite upper bound would require an additional domain constraint, observation or explicit assumption.

  8. Observed values 1 and 5 have one additional missing outcome. Fill it with their mean. Compare empirical variance before and after filling.

    Show the answer and reasoning

    The mean is 3; empirical variance changes from 4 to 8/3 square units.

    The centred sum is (1−3)²+(5−3)²=8. The imputed 3 adds zero deviation, leaving the numerator unchanged while the denominator changes from 2 to 3. The apparent reduction does not add observed information.

  9. Using full mean 4+(2/5)δ, at what δ does the mean equal 9/2 units?

    Show the answer and reasoning

    At δ=5/4 units.

    Solve (2/5)δ=1/2, giving δ=(1/2)(5/2)=5/4. The result identifies the scenario boundary at which a decision would change, not the actual mean of the missing outcomes.

  10. Two compatible imputed-data analyses give estimates 2 and 4 units and variance estimates 1 and 1 square unit. Use the lesson’s scalar pooling formula.

    Show the answer and reasoning

    Q̄=3 units, W=1, B=2 and T=4 square units.

    With M=2, B=[(2−3)²+(4−3)²]/1=2. Then T=1+(1+1/2)×2=4. This arithmetic does not validate the imputation models or establish interval coverage by itself.

  11. An 80-millisecond reading is outside a chosen fence but the source log confirms it. What follows from the flag?

    Show the answer and reasoning

    It remains an unusual recorded event to investigate and interpret; the flag alone does not justify deletion.

    A genuine slow event can matter for a tail or reliability question. Check units, instrument conditions and provenance. A documented correction, a robust summary and an exclusion scenario have distinct scientific meanings.

  12. Why can repeatedly deleting the most extreme point under a fitted rule be unreliable when several unusual points exist?

    Show the answer and reasoning

    The unusual points can alter the fitted reference, causing masking or swamping, and repeated testing can change error rates.

    A shifted centre or spread may hide unusual observations or flag ordinary ones. A model-based multiple-outlier procedure needs its own assumptions and analysis; a repeated informal single-point rule does not supply them.

  13. A median stays fixed after a genuine long delay is added. Does that establish that total waiting time per request is unchanged?

    Show the answer and reasoning

    No. A median and a mean or total answer different questions.

    Rank stability can coexist with a large change in a total-sensitive quantity. Choose and label the summary by the scientific target, and preserve the distribution rather than using robustness to declare a real event irrelevant.

  14. Values are 1,3 and one nonnegative value below 2 units, interpreted as [0,2). Bound the mean and retain the open endpoint.

    Show the answer and reasoning

    The mean lies in [4/3,2) units.

    Writing the censored value c gives mean (4+c)/3 with 0≤c<2. The lower endpoint can be attained at c=0; the upper value 2 is approached but not attained. Substituting 1 is one completion, not an observed truth.

  15. Two sensor rows have equal readings but different verified timestamps. Is equality of the readings sufficient reason to remove one as a duplicate?

    Show the answer and reasoning

    No. They can be distinct legitimate observations.

    Define the event key and inspect collection provenance. Deduplicating by numeric value alone can discard real repeated measurements and alter the empirical distribution. Repeated-event structure should also remain available for uncertainty analysis.

  16. Two temperatures are 0°C and 10°C. Convert them to Fahrenheit and compare their means. Does the conversion permit interpreting 10°C as twice 5°C in absolute temperature?

    Show the answer and reasoning

    They become 32°F and 50°F, with mean 41°F corresponding to 5°C. The Celsius ratio is not an absolute-temperature ratio.

    Use F=(9/5)C+32, including the offset for values. Mean conversion is affine, while the conventional zero makes ratios scale-dependent. Unit conversion and the validity of a ratio are separate questions.

  17. A key occurs four times in one table and twice in another. A join on only that key produces how many matched pairs, and does the count prove there are that many distinct original events?

    Show the answer and reasoning

    It produces 4×2=8 pairs; that is not proof of eight original events.

    Each left row matches every right row for the key. Check the intended relationship, row identities and totals. A many-to-many pairing may answer a pair-level question while overcounting an event-level target.

  18. A data set passes its datatype, range and unique-key checks. May the report conclude that it is accurate, representative and free of missing-data bias?

    Show the answer and reasoning

    No. Those checks establish only their stated formal properties.

    Accuracy requires evidence about measurement truth, representativeness concerns selection and target population, and missing-data bias depends on mechanisms and analysis. Report passed checks, provenance, unresolved limitations and sensitivity separately.

What to carry forward

  • Quality is fitness for a defined question; filled and well-formatted records can still be inaccurate or unsuitable.
  • Preserve sources, codebooks, units, identities and a reversible account of analytical changes.
  • Observed zero, unknown value, inapplicable quantity and censoring are different states.
  • MCAR, MAR and MNAR are assumptions about a specified observation process, not labels proved by a missingness plot.
  • Deleting incomplete rows and filling missing cells can change targets, weights, spread and uncertainty.
  • Bounds and sensitivity analyses distinguish what observations determine from what assumptions add.
  • An outlier flag is a reason to investigate; robust summaries and corrections have different roles.
  • Duplicates, repeated measurements, unit conversions and joins must be checked at the correct observational level.

References

Sources for the concepts and teaching approaches in this article.

  1. National Research Council2 sources
    1. National Research Council: Drawing Inferences from Incomplete DataNational Research CouncilReference guidenationalacademies.orgRead source
    2. National Research Council: Principles and Methods of Sensitivity AnalysesNational Research CouncilReference guidenationalacademies.orgRead source
  2. NIST/SEMATECH e-Handbook: Detection of OutliersNIST/SEMATECHReference guideitl.nist.govRead source
  3. UK Government: The Government Data Quality FrameworkUK GovernmentReference guidegov.ukRead source
  4. W3C2 sources
    1. W3C: Metadata Vocabulary for Tabular DataW3CReference guidew3.orgRead source
    2. W3C: PROV-OverviewW3CReference guidew3.orgRead source
  5. R Core: Missing ValuesR CoreReference guidestat.ethz.chRead source
  6. US EPA: Data ConsiderationsUS EPAReference guideepa.govRead source
  7. CDC/NCHS: NHANES Frequently Asked QuestionsCDC/NCHSReference guidewwwn.cdc.govRead source