GLOBAL KNOWLEDGE ARK

Mathematics · Article

Variables, data types and measurement scales

Decide what an observation records before choosing an operation. Separate category codes from quantities, order from spacing, underlying values from rounded records, and meaningful unit changes from new scientific assumptions. Use explicit examples to build a reliable codebook and interpret summaries correctly.

Back to Mathematics

After reading, you can

  • Identify the observation unit, variable, allowed values, recording convention and scientific target of a dataset.
  • Distinguish categorical and quantitative meaning from the machine format used to store values.
  • Classify discrete and continuous descriptions while separating an underlying quantity from its quantized record.
  • Use nominal, ordinal, interval and ratio structure through the comparisons and transformations they support.
  • Explain why counts, indicators, ordered summaries, means, differences and ratios require different interpretations.
  • Convert Celsius, kelvin, Fahrenheit and mass units while preserving the appropriate comparisons and dimensional references.
  • Distinguish resolution, rounding error, measurement error, uncertainty, missingness and censoring.
  • Handle transformations, circular directions and model assumptions without treating a scale label as a universal statistical decision rule.
01

Start with what a row and a value mean

A variable is a characteristic recorded or considered for observation units. The units might be people, manufactured parts, river samples, households, events or repeated measurements of one object. Before calculating, specify what counts as one observation, which characteristic is being recorded and when or under what procedure it is observed. A table with one row per person differs from one with one row per person per visit. Treating repeated visits as independent people changes the scientific question even if every column contains valid-looking numbers.

A visit row and a person carry different weightsThe 4 rows belong to 2 people. Each visit gets weight 1/4 for the row mean 175 cm. Person means are A: 170; B: 190. Their equal-person mean is 180 cm. Boxes identify records; they do not imply independent people.A visit row and a person carry different weightsVisit records, with person identifier and height (cm)A, visit 1170A, visit 2170A, visit 3170B, visit 1190Weight contributed by each personA3/4 of rows1/2 of peopleB1/4 of rows1/2 of peopleBlue: visit-row mean 175 cm. Orange: equal-person mean 180 cm.These targets do not establish independence or population representativeness.
Repeated identifiers preserve the observation unit. Averaging within person first makes the equal-person target explicit.

For a collection of water samples, one column might identify the sampling site, another record an ordered clarity category, another give a count of visible particles and another give a measured volume with units. Each value needs a definition. Does particle count refer to the whole container or a specified subsample? Does volume include the container’s empty space? Which procedure assigns the clarity category? A short codebook that answers such questions is part of the mathematical information, not an optional decoration added after analysis.

An algebraic variable can stand for an unknown or changing quantity in a formula; a data variable records a characteristic across observations. A random variable additionally belongs to a probability model, which will be developed in later lessons. A column of observed values does not by itself establish a probability law, independence or a sampling design. This article needs proportions, basic algebra and units, not calculus or the preceding differential-equation branch of the map.

Separate the target characteristic from its recorded representation. A person’s height, the rounded height printed by an instrument and a category such as ‘above the doorway limit’ are three related variables with different information. A number without its reference can also be ambiguous: 12 may mean 12 kilograms, category code 12 or the twelfth position in an ordering. Naming the observation unit, target, procedure, unit or category reference, and recording convention prevents an operation from acquiring a meaning it never had.

02

A number can be a label rather than an amount

Categorical variables distinguish classes, while quantitative variables describe numerical amounts or magnitudes under a stated interpretation. A route identifier 12, a material class encoded 3 and a student identifier stored as an integer can all be categorical. Adding their codes does not normally combine routes, materials or students in a meaningful physical or statistical amount. Conversely, storing a measured mass as the text ‘2.40 kg’ does not turn the underlying characteristic into a category. Scientific meaning and machine storage type are different layers.

Some variables have both a category structure and an intentional numerical function. For a nominal outcome A or B, define I_A=1 when the outcome is A and 0 otherwise. The average of this indicator is the observed proportion in category A. That interpretation follows from the explicit definition of the function, not from a claim that arbitrary category codes have an ordinary arithmetic average. Changing labels from A, B to red, blue preserves which observations belong to the designated category if the codebook preserves the correspondence.

The same recorded numeral can describe different kinds of variable. A value 4 might be a count of defects, an ordered satisfaction category, a team code or a temperature in degrees Celsius. Their allowed comparisons differ. Four defects is twice the count of two defects when the counting rules and exposure are comparable. Category 4 need not be twice category 2. A temperature ratio formed from Celsius numerals depends on an arbitrary origin and needs a different analysis. The numeral alone cannot choose the operation.

The classification depends on the question and operational definition. A postal code is a label even if it happens to sort geographically in a useful way; an analyst can derive a distance or region variable from external information, but that is additional structure. A test score defined as the number of correctly answered items is a quantitative count of successes on that test. Treating it as an equal-interval measure of an underlying ability requires a further measurement model. Keep the directly defined variable and the inferred construct distinct.

The same storage format can carry different information
Recorded fieldScientific interpretationA comparison that needs justification
Integer sample identifierNominal label for a sampleThe average identifier or a ratio of identifiers
Integer defect countNumber of defined defects under a stated inspectionComparing rates when inspection exposure differs
Category code 1 to 5An ordered response if the codebook defines that orderEqual category gaps or twice as much of a latent trait
Decimal instrument outputA rounded record of a stated quantityAll digits are accurate or the target is discrete
Text containing a mass and unitA quantitative mass valueArithmetic before parsing and checking units
03

Discrete does not mean integer, and continuous does not mean infinitely printed digits

A discrete numerical description has a finite or countable set of allowed values. Counts 0, 1, 2, … are familiar examples, but integers are not required. A score restricted to 0, 1/2, 1, 3/2, 2 is discrete. Even an allowed set such as {1,1/2,1/3,…} is countable despite its shrinking gaps. Inspect the set defined by the procedure, not whether a spreadsheet displays a decimal point. Category codes also form a finite set, but their discreteness does not make their labels quantitative amounts.

A continuous quantity is commonly modeled as varying through an interval without a prescribed minimum increment. An idealized length or elapsed time can be treated this way even when the instrument reports only a finite number of digits. The observed record then belongs to a grid produced by a recording rule. The underlying target and its recorded version have different allowed-value descriptions. Neither the idealization nor the instrument should be mistaken for an exhaustive assertion about physical reality at every possible scale.

For a grid spacing δ>0, a nearest-grid recorder can be written schematically as Y=Q_δ(X). Once tie handling and the origin of the grid are specified, this is a defined map from underlying values to recorded values. Many different X values produce the same Y. Printing extra zeros afterward does not recover the lost information. Recording 1.73 m as 1.730000 m changes the display, not the measurement resolution or the original uncertainty information.

Allowed scores, an underlying target and its recorded gridThe five allowed scores 0, 1/2, 1, 3/2, 2 are discrete. A positive continuously modeled length can be recorded on a grid of 1/100 m. The selected record 173/100 m combines the input cell [69/40, 347/200) m. Additional printed zeros do not recover the input.Allowed scores, an underlying target and its recorded gridFive allowed scores; decimal points do not make a continuum01/213/22Underlying length inputs in the selected rounding cell (m)69/40347/200record 173/100 mMany inputs share one record; the open/closed ends follow the tie rule.1.73 m and 1.730000 m contain the same retained recording information.
A finite noninteger score set is discrete. Quantization changes the recorded variable, while the target can remain continuously modeled.

Some data require a mixed description rather than a forced two-way label. A device can report an exact ‘no event’ state and otherwise a positive continuously modeled amount; a censored measurement can combine a category flag with a numerical limit. Later probability models distinguish point masses, continuous components and mixtures. Here the practical requirement is to preserve that layered information in the codebook. Treating every zero as an ordinary measured amount or every decimal as a fully resolved continuum value can erase the distinction before analysis starts.

04

Nominal data support equality and counting without arbitrary code arithmetic

A nominal classification distinguishes categories without supplying an intrinsic order or numerical spacing. Material type, a designated treatment label and an observation-site code can be nominal variables. A valid relabeling is a one-to-one correspondence of categories: it changes names while preserving which observations match. Counts and proportions then refer to the same groups. Sorting the labels alphabetically may help display a table, but it does not discover a scientific ranking.

For observations A, A, B, codes 1, 1, 2 have arithmetic mean 4/3. Relabel the same categories with codes 9, 9, 2 and the code mean becomes 20/3. Nothing about the category memberships changed. This demonstrates that the raw code average does not describe an intrinsic average category. The modal category is still A, with count 2, and the category frequencies remain 2/3 and 1/3. The result follows from the permitted change of labels, rather than a vague rule that numbers appearing near categories must never be calculated.

Define the A-indicator explicitly: I_A=(1,1,0) for these three observations. Its sum is 2 and its mean is 2/3, exactly the sample proportion in A. Indicators for all categories add to 1 for each observation when the categories are mutually exclusive and exhaustive. Those assumptions need checking: multi-select responses, overlapping diagnoses or an unrecorded category can violate them. A count table should retain missing or inapplicable cases separately when its denominator requires that distinction.

Relabel categories while keeping the same membershipsThe observations A, A, B retain their categories under both codebooks. First code mean 4/3 and second code mean 20/3 are formal code arithmetic. The event is A; its indicator mean and observed proportion are both 2/3. Category positions in this diagram are schematic and do not supply a ranking.Relabel categories while keeping the same membershipsSame observations; green highlights the designated event AA191A191B220first codessecond codes above; event indicators belowEvent count 2; observed proportion 2/3Code means: 4/3 and 20/3; category counts stay fixed.No population proportion or independent sampling design is supplied.
The indicator is a deliberately defined numerical function. Its interpretation comes from the event definition, rather than from arbitrary category-code averages.

Nominal outcomes can support sophisticated statistical models, comparisons of proportions and prediction of category probabilities. Such work requires a model, design and purpose, not an arithmetic ordering of arbitrary labels. Coding A as 0 and B as 1 can be convenient when the event corresponding to 1 is explicit. Swapping that event changes the interpretation to its complement. The codebook must preserve the event definition so a numerical summary remains a statement about the intended category.

05

Order does not establish equal gaps

An ordinal variable supplies an ordering of categories or levels without, by that fact alone, assigning equal distances between them. Low, medium and high may be ordered, while the change from low to medium need not match the change from medium to high. A permitted recoding preserves the order, so a strictly increasing function of the assigned codes can represent the same ordered information. In metrology, an ordinal quantity is established by a specified procedure with an ordering; it does not automatically acquire the ordinary addition and subtraction rules of interval or ratio quantities.

For ordered categories coded 1, 2, 3, replace the codes by 1, 2, 100. The middle ordered observation remains the middle category, but the arithmetic mean changes from 2 to 103/3. A statement such as ‘the typical observation is the middle category’ can survive the recoding when based on that order statistic. A statement that the top category lies exactly one equal-sized step above the middle does not. Counting observations below, at or above a specified category also uses the ordering without inventing a metric gap.

Median conventions need care. For an odd sample size, the middle order statistic commutes with a strictly increasing recoding: applying the recoding to that observed category gives the new middle category. For an even size, reporting the central ordered pair or an appropriate median category/interval respects the available information. Averaging two central numeric codes need not commute with an arbitrary increasing recoding and may produce a value that is not an allowed category. An unqualified claim that every numerical median convention is automatically ordinally meaningful is too broad.

Ranks survive recoding while the numerical gaps can changeCategory order is low, middle, high. First codes are 1, 2, 3 and second codes 1, 2, 100. The central ordered categories are middle. The code means are 2 and 103/3. Category columns are schematic, not latent-trait distances.Ranks survive recoding while the numerical gaps can changeCategory columns show order, not measured distanceslow11middle22high3100First adjacent gaps: 1, 1New adjacent gaps: 1, 98Central categories: middleFormal code means: 2 and 103/3.The recoding supplies neither equal trait gaps nor a universal median midpoint rule.
An odd middle order statistic follows an increasing recoding. For an even sample, the central ordered pair is retained without assuming an intrinsic arithmetic midpoint.

Ordered response scales can be modeled using latent variables, threshold models or substantively justified scores. These approaches add assumptions about distances or probabilities; they should be explained and evaluated rather than smuggled in through labels 1 to 5. A sum of several item codes is a defined score, but interpreting it as an interval measure of a psychological or educational construct requires more than knowing that each item is ordered. Scale classification informs the question; it does not alone settle the validity of a particular model or estimator.

06

Test a claim by changing an allowed representation

The classic nominal, ordinal, interval and ratio classification is useful when expressed through transformations that preserve the intended structure. Nominal labels allow bijective relabeling. Ordinal codes allow strictly increasing recoding. An interval representation allows y=ax+b with a>0: the unit and origin may change while equal differences remain comparable. A ratio representation allows y=ax with a>0: a meaningful zero is retained while the unit changes. These are descriptions of represented information, with the application’s assumptions stated, not a claim that every real variable fits one simple class without qualification.

For an interval change y=ax+b, the difference between two values becomes y₂−y₁=a(x₂−x₁). Its sign is preserved, equal differences remain equal, and ratios of nonzero differences are unchanged. A raw ratio y₂/y₁ generally changes because of b. For a ratio change y=ax, x₂/x₁ is preserved whenever the denominator is nonzero. These calculations explain why a change of origin and a change of unit have different consequences. The condition a>0 preserves the chosen direction of the ordering.

A meaningful summary need not keep the identical numerical value after changing units. If a mean length is 2 m, the same mean is 200 cm. The required property is consistent transformation of the statement or statistic, often called equivariance. An invariant comparison may be a ratio or an order relation, while an equivariant value may change by the representation’s rule. Demanding that every useful statistic be numerically unchanged would incorrectly reject ordinary unit conversion.

A useful claim must respect its representation changeFour structural rows show nominal bijection, ordinal increasing recoding, positive affine interval change and positive ratio rescaling. Membership, order, equal-gap comparisons and meaningful-zero ratios require different structure. Equivariant summaries can change numerical value consistently. These structures do not independently certify statistical-model assumptions.A useful claim must respect its representation changeNominalone-to-one relabelingCorresponding memberships and countsOrdinalstrictly increasing recodingOrder and middle observed categoriesIntervaly = a x + b, a > 0Equal gaps rescale; the origin can shiftRatioy = a x, a > 0Zero retained; admitted ratios unchangedExample: a mean of 2 m becomes 200 cm; that is consistent transformation.Scale structure alone proves no normality, independence, test validity or causality.
Invariance preserves a comparison; equivariance transforms a value consistently. Neither property supplies an observation design or inferential model.

Stevens’s historical scale framework organizes these distinctions, but it is not a universal menu that automatically approves or bans statistical tests. Independence, distributional assumptions, measurement validity, sampling design and the target of inference remain separate. A continuous ratio variable need not be normally distributed; an ordinal outcome can be analyzed with a suitable ordinal model; nominal outcomes can be represented with explicit indicators. Ask what the calculation means, which transformations preserve that meaning, and what additional model makes an inferential claim justified.

Representations and the information they preserve
StructureAllowed representation changeExamples of preserved information
NominalBijective relabelingCategory membership, equality and corresponding category counts
OrdinalStrictly increasing recodingOrdering, cumulative counts and middle order statistics
Intervaly=ax+b, a>0Ordering, equality of gaps and ratios of nonzero differences
Ratioy=ax, a>0Ordering, meaningful zero and ratios with a nonzero denominator
07

Temperature makes the role of an origin visible

For Celsius numerical value t_C and thermodynamic temperature numerical value T_K, T_K=t_C+273.15. Fahrenheit numerical values satisfy t_F=(9/5)t_C+32. Thus 20 °C corresponds to 293.15 K and 68 °F, while 30 °C corresponds to 303.15 K and 86 °F. These are representations of the same two temperature states. Their Celsius-number ratio is 3/2, their kelvin-number ratio is 6063/5863, and their Fahrenheit-number ratio is 43/34. An arbitrary-origin numerical ratio is not representation independent.

The difference between these states is 10 Celsius degrees, 10 kelvins or 18 Fahrenheit degrees. Temperature intervals have the same numerical size in kelvins and Celsius degrees, while Fahrenheit intervals rescale by 9/5. Two Celsius intervals of 10 and 20 degrees have ratio 1/2; after conversion to Fahrenheit intervals, 18/36 is still 1/2. Ratios of differences behave differently from ratios of the original readings because the offset cancels before division.

The SI kelvin is defined using a fixed value of the Boltzmann constant; the former water triple-point definition is historical. The Celsius offset of 273.15 is exact in the relation to kelvins. A ratio of positive thermodynamic temperatures has a specific physical interpretation within that quantity scale. It must not be paraphrased as a universal claim of ‘twice as hot’, twice the thermal energy of arbitrary objects or twice the perceived warmth. Heat content and human sensation depend on additional physical and physiological information.

A mean temperature can transform consistently under these affine changes even though a raw Celsius ratio does not. The mean of 20 °C and 30 °C is 25 °C, corresponding to 298.15 K and 77 °F, which are also the means of the converted readings. Whether this arithmetic mean answers a particular physical question is another matter: pooling temperatures to predict an equilibrium can require masses, heat capacities and a model of energy exchange. Representation consistency is necessary for interpretation, not a substitute for the application’s physics.

The same states have different numerical originsThe paired states are 20, 30 degrees Celsius, 5863/20, 6063/20 kelvins and 68, 86 degrees Fahrenheit. Second-to-first numerical ratios are 3/2, 6063/5863 and 43/34. Rows are paired-value cards, not a common zeroed physical ruler.The same states have different numerical originsTwo physical states, aligned as columns; values retain their unitsCelsius20 °C30 °Csecond / first = 3/2kelvin5863/20 K6063/20 Ksecond / first = 6063/5863Fahrenheit68 °F86 °Fsecond / first = 43/34Differences: 10 °C; 10 K; 18 °FMeans: 25 °C; 5963/20 K; 77 °F.Each zero denominator is unassigned; the zero-kelvin case is a boundary.
Offsets cancel in temperature differences, while raw reading ratios depend on the represented origin. No universal warmth or thermal-energy ratio follows.
08

A meaningful zero allows some ratios, with their denominators checked

For a ratio quantity, changing the unit rescales numerical values by a common positive factor while preserving the intended zero. Masses of 2 kg and 3 kg become 2000 g and 3000 g, and the second-to-first ratio remains 3/2. The same argument works for lengths or durations under a specified definition. Ratios compare quantities of the same kind with a nonzero denominator; mixing a mass and a temperature does not become dimensionless merely because both are recorded as numbers.

Zero needs an operational meaning. Zero counted defects means no events meeting the defined defect rule in the inspected exposure. Zero elapsed duration is the absence of elapsed time between the specified endpoints. A balance reading after taring refers to mass relative to the declared tare procedure; its metadata still matters. An instrument reading of zero can also mean below detection, a rounded small value or a missing-value code. Those recording states must not be confused with a known exact zero of the target quantity.

A ratio statement also needs a relevant denominator and comparison context. Twice the number of particles in twice the sampled volume does not imply twice the particle concentration. A count per volume has its own units and is a derived variable. A ratio of 0 to a positive amount is defined; a ratio with denominator 0 is not. Negative recorded values can arise from a difference variable, calibration correction or error and need interpretation rather than an automatic declaration that every field with a physical unit is a nonnegative ratio measurement.

A common unit factor preserves an admitted mass ratioMasses 2, 3 kg become 2000, 3000 g. Bars use a common physical-mass reference across representations, so their relative lengths match. The second-to-first ratio is 3/2 in kg and 3/2 in g. A zero numerator and a zero denominator are distinct.A common unit factor preserves an admitted mass ratioOriginal representation, kg12 kg23 kgmultiply numerals by 1000Same masses, g12000 g23000 gRatios: 3/2 in kg; 3/2 in g.A stipulated mathematical zero is not an interpretation of an unknown device flag.
The positive scale factor changes unit numerals consistently. A zero first mass leaves the second-to-first ratio undefined.

Absolute scale structure does not make an application model automatic. A mass ratio is meaningful under common units, but it does not imply that two materials have the same density, value or energy content in that ratio. A duration ratio says nothing by itself about productivity or causal effects. Preserve what the quantity represents and which operation created a derived rate. This allows unit-aware algebra to support a scientific comparison without turning a valid numerical ratio into a broader unsupported claim.

09

A summary should transform consistently with its meaning

For readings x₁,…,xₙ and an affine change yᵢ=axᵢ+b with a>0, the arithmetic mean satisfies ȳ=a x̄+b. Subtracting gives yᵢ−ȳ=a(xᵢ−x̄). Consequently a variance computed with the same denominator in the two representations scales by a², and the standard deviation scales by a. The origin shift disappears from differences. These are algebraic transformation facts; they do not require the observations to be independent or normally distributed. Such assumptions enter later inferential uses, not this identity.

For nominal labels, a mode refers to the corresponding category with greatest count; a bijective relabeling changes its name consistently. For ordinal observations, an odd-sample middle order statistic follows an increasing recoding. The arithmetic mean does not generally do so under arbitrary increasing transformations. An interval mean is affine-equivariant, while a raw ratio of two interval means is generally not invariant to shifting the origin. Asking which property should survive is more precise than asking whether a summary is simply ‘allowed’ or ‘forbidden’ by a four-word scale classification.

The coefficient of variation illustrates the role of a zero. For an original mean x̄≠0 and a transformed mean a x̄+b≠0, CV=s/x̄ changes under y=ax+b, a>0, to a s/(a x̄+b). Positive rescaling with b=0 preserves the ratio, but an arbitrary shift does not. Reporting a Celsius CV as if it were an origin-independent relative temperature variability therefore lacks that interpretation. Additional complications arise for zero or negative means and for whether relative variability is substantively useful. Having a computable formula is not enough to justify its scientific meaning.

Mean and spread transform together; CV needs an originOriginal readings 1, 3, 5 transform by y=2x+(10) to 12, 16, 20. Means are 3 and 16; n-denominator variances are 8/3 and 32/3. Each axis is drawn in its own converted units, so corresponding points align. CV formulas are 2/9 sqrt(6) and 1/12 sqrt(6); no relative-variability interpretation is established.Mean and spread transform together; CV needs an originBlue: original readings in original interval units135mean 3Orange: y = 2x + (10), converted axis121620mean 16Variances (denominator n): 8/3 → 32/3.CV formulas: 2/9 sqrt(6) → 1/12 sqrt(6); interpretation is separate.
The matched axes illustrate affine equivariance. Exact standard deviations retain radicals; zero means leave the CV formula unassigned.

A nonlinear transformation can intentionally create a new variable and a new question. Its mean need not be the transformation of the original mean. For example the arithmetic mean of 2 and 8 is 5, while averaging their logarithms and transforming back gives the geometric mean 4. Neither is a mistake when the target and assumptions are clear. They summarize different structures. The later lessons on averages and models will develop these choices; the present task is to retain the transformation and interpretation in the record.

Some exact transformation behaviors
Summary or comparisonUnder y=ax+b, a>0Interpretive qualification
Arithmetic meanȳ=a x̄+bConsistent affine representation does not prove the mean answers every physical question
Differencey₂−y₁=a(x₂−x₁)A numerical gap uses an established interval structure
Variance and standard deviationVariance scales by a²; standard deviation by aRetain units and the chosen denominator
Ratio of nonzero differencesThe common a cancelsThe denominator difference must not be zero
Coefficient of variationa s/(a x̄+b)Generally shift dependent; zero and interpretation matter
Odd-sample middle order statisticFollows any strictly increasing recodingAn averaged even-sample code convention has weaker invariance
10

A display step is not a complete uncertainty statement

Instrument resolution concerns the smallest change in the measured quantity that causes a perceptible change in the corresponding indication. Display resolution instead concerns the smallest difference between displayed indications that can be meaningfully distinguished. A chosen recording or rounding increment is another convention; it should not be substituted for instrument resolution or for measurement uncertainty. Suppose positive lengths are rounded to the nearest centimetre, with exact half ties rounded upward. A record of 1.73 m then corresponds, for the rounding rule alone, to underlying input values in [1.725,1.735) m. The lower endpoint rounds to 1.73 and the upper endpoint to 1.74. Different tie rules can change endpoint inclusion, so an exact interval claim must specify that convention rather than rely only on a printed decimal place.

Relative to a stipulated reference value of 1.734 m, the signed difference of the recorded value and reference is 1.730−1.734=−0.004 m. The sign indicates that the record is smaller. Metrology distinguishes measurement error, a measured value minus a reference value, from measurement uncertainty, which characterizes dispersion attributed to the measurand using available information. A real reference can itself have uncertainty. One cannot generally infer a known error relative to an unknown true value just because an uncertainty number has been supplied.

The rounding cell bounds only the error from that idealized quantization stage. Calibration, sensor response, environment, repeatability, sampling location and the definition of the measurand can contribute additional uncertainty. Assigning a uniform distribution within a rounding cell is an extra model, not a consequence of the interval endpoints. Under that explicitly adopted model, the rounding component’s standard deviation is δ/√12; without the model, the cell alone does not provide that probabilistic interpretation or a confidence level.

A known record anchor is not every rounded input outputThe fixed record 173/100 m has cell [69/40, 347/200) m under positive half-up rounding. Selected input 867/500 m rounds to 173/100 m. The anchor-minus-reference difference is -1/250 m; the selected rounded-output-minus-reference difference is -1/250 m. The figure distinguishes these values explicitly.A known record anchor is not every rounded input outputFixed anchor cell; filled lower endpoint, open upper endpoint69/40 m347/200 mselected input867/500 mknown anchor173/100 mrounded output173/100 mDashed: stipulated reference 867/500 mInput in anchor cell: yes; anchor error -4 mm.The optional uniform rounding component requires an additional probability model.
The exact tie rule fixes endpoint inclusion. The rounding-stage cell is neither total measurement uncertainty nor a probability law.

More displayed digits, a smaller standard deviation of repeated readings and a smaller total uncertainty are different claims. A miscalibrated device can repeat almost identical readings while remaining systematically displaced from a reference. Repeated measurements may also share environmental or calibration effects. Keep the resolution, rounding convention, reference information, repeated-measurement conditions and uncertainty assessment separately documented. This preserves the information needed for later error propagation and statistical modeling without presenting an instrument grid as the whole measurement process.

11

Preserve states that a numerical column can easily hide

A codebook should specify the variable’s name, observation unit, target meaning, allowed values, units or category labels, ordering if any, recording procedure and version. It should distinguish actual values from flags for missing, not applicable, refused, invalid or not yet observed. A sentinel such as −999 is a storage convention, not a measured value. Including it in an arithmetic mean can produce a result dominated by the code rather than the observations. Validating a column requires its schema and meaning together.

Censoring is not ordinary missingness. A ‘below 0.2 mg/L’ record contains an upper-limit statement under the detection procedure; it is not an exact concentration of zero or necessarily a value of 0.1 mg/L. Similarly, a device that records every value above its range as ‘greater than 100’ supplies a lower bound rather than an exact reading of 100. Replacing such records by fixed numbers adds an imputation rule or model. Preserve the original flag and threshold even if a later analysis introduces a justified replacement.

A categorical ‘not applicable’ state can be scientifically different from ‘unknown’. For example an item about equipment-maintenance time may be inapplicable when no equipment is present, whereas a blank response from an equipment owner is missing. Collapsing both into zero minutes asserts a fact that was never observed. Denominators for proportions and summaries should follow the intended population of applicable observations and the analysis rule, with exclusions or missingness explicitly reported. Selection and nonresponse will be developed further in the sampling lesson.

A flag, a bound and a measured zero are different recordsThe 3 records include 2 exact observed values with mean 11 stated reading unit. Each remaining record retains its observed, missing status. A sentinel is a storage code; strict censoring bounds are conditional interval information rather than exact imputed readings.A flag, a bound and a measured zero are different recordsEach row shows a value or its retained information flag1: observed10 stated reading unit2: observed12 stated reading unit3: missingstorage code -999exact value unassignedObserved count 2; mean 11 stated reading unit.An idealized detection interval is not a total uncertainty statement or an imputation.
The observed-valid-record mean uses its declared denominator. Missingness, applicability and censoring remain visible for later analysis.

Machine types remain useful safeguards. A string identifier can preserve leading zeros; a category dictionary can prevent accidental new spellings; unit-aware fields can reject adding kilograms to metres. But a schema cannot alone verify that a label is scientifically valid, a calibration is correct or a missingness mechanism is harmless. Keep raw records and documented transformations so an interpretation can be traced back to its source. Correcting metadata should not silently rewrite the underlying historical observations.

12

A transformation changes the question unless it is just a representation change

A unit conversion preserves a quantity while changing its representation. A nonlinear transformation generally defines a new variable with a new interpretation. For a positive quantity x and a stated positive reference x₀ of the same kind, z=ln(x/x₀) has a dimensionless logarithm argument. If x and x₀ are both converted from centimetres to metres, their ratio and hence z remain unchanged. Taking a logarithm of an isolated dimensional numerical value without documenting the reference hides a unit-dependent choice.

The identity ln(x₂/x₀)−ln(x₁/x₀)=ln(x₂/x₁) turns a positive ratio into a difference on the log scale. Multiplying all x values by a factor becomes an additive shift when the reference is held fixed. Changing the reference also shifts the log values in a known way. These are explicit algebraic relationships, not proof that the transformed observations are normally distributed or have a linear relationship with another variable. The transformation’s usefulness depends on the scientific and statistical model.

Zeros and negative values require attention. The real logarithm is undefined at zero and for negative inputs. Adding an arbitrary constant before logging defines another transformation whose meaning depends on that constant and its units. A true zero, a below-detection flag and a missing code should not be made indistinguishable merely to make software return finite numbers. A model or a different representation may be needed; the original records should remain recoverable.

Averaging on a transformed scale also defines a different summary. For positive values xᵢ relative to x₀, exp((1/n)Σln(xᵢ/x₀))x₀ is the geometric mean. For 2 kg and 8 kg it is 4 kg, while the arithmetic mean is 5 kg. Both transform properly under a common unit rescaling, but they answer different averaging questions. Choosing between them requires a rationale about additive amounts, multiplicative factors, a distribution model or another substantive target, rather than a preference for a smoother plot.

A logarithm needs a positive dimensionless argumentStored inputs are 2, 8; admitted masses use kg, while a negative sentinel remains a storage code. The reference is 1 kg. Each log is admitted only for a positive ratio. The dimensionless ratios are 2, 8; the geometric mean is 4 kg. Exact symbolic logs and approximate values remain separate.A logarithm needs a positive dimensionless argumentReference x0 = 1 kg; both columns use that referencex = 2 kgx/x0 = 2ln(2)≈ 0.69315x = 8 kgx/x0 = 8ln(8)≈ 2.0794Geometric mean: 4 kgArithmetic quantity mean: 5 kg.Unit conversion preserves admitted log ratios; it does not certify a distribution.
Convert the reference together with the values. A new nonlinear summary answers a different question; invalid values retain their flags and domain failures.
13

Some values have geometry beyond a straight ordered line

Directions measured around a circle wrap around: 0° and 360° represent the same direction. Bearings 359° and 1° are close, although their ordinary numerical difference is 358°. Their arithmetic code average is 180°, pointing the opposite way from the neighborhood occupied by both observations. The problem is the geometry of the represented variable, not insufficient decimal precision. Choosing a different angular origin can move the apparent numerical discontinuity without changing the directions themselves.

As an optional geometric connection, represent direction θ by the unit vector (cosθ,sinθ). Average these vectors and, if the resulting vector is nonzero, use its direction as a circular mean. For equal weights at 359° and 1°, the sine components cancel and the cosine components are positive, so the mean direction is 0°. For antipodal directions such as 90° and 270°, the mean vector is zero and this mean direction is undefined. The method therefore has an explicit nonzero-result condition rather than a universal numerical answer for every dataset.

Wrap-around calls for vectors, with a nonzero-result conditionEqual-weight bearings 359 degrees and 1 degree have ordinary code mean 180 degrees. Blue and orange unit vectors are drawn on an equal-scale circle of radius 100 pixels. Their green mean vector has exact components cos(pi/180), 0. Its direction is 0 degrees. Approx coordinates do not decide the zero condition.Wrap-around calls for vectors, with a nonzero-result condition0°90°180°270°Mean direction:0°Zero certified exactly:noBearings: 359 degrees and 1 degree; ordinary code mean 180°.Green: mean vector when nonzero; red centre: exact zero resultant.
Named-angle identities certify cancellation exactly. No default atan2(0,0) angle is assigned for a zero mean vector.

Other scientific variables have several components. A position vector, a velocity and a collection of separate measurements require their component meanings, coordinate conventions and units. A list of numbers is not automatically a set of exchangeable scalar observations. Changing coordinates can transform all components together, and combining quantities with different units in an ordinary Euclidean distance requires reference scales or another justified metric. These issues extend the earlier algebraic lesson that a representation carries structure, not just values.

The four classic scale classes are useful for scalar comparisons, but they should not force a circular direction, a graph label or a structured object into an inappropriate straight-line ordering. One can derive scalar variables, such as an angular separation under a stated convention or a speed from a velocity vector. Doing so is a defined mathematical operation with its own loss of information and interpretation. Preserve the original structured record when a later analysis uses such a derived value.

14

A data type does not certify a statistical model

Knowing that a variable is a count does not establish a Poisson model, independence or a common exposure. Knowing that a measured value is continuously modeled does not establish a normal distribution or rule out bounds, mixtures or censoring. Knowing that a response is ordinal does not identify the spacing between its categories. A measurement description states what was recorded and which comparisons are meaningful; a statistical model adds a structure for variation, relationships and inference that must be justified for the task.

An ordinal threshold model is one example of an added structure. It imagines an unobserved variable Z and cut points such that the recorded category indicates the interval containing Z. The observed ordering alone does not identify the distribution, origin or scale of Z. A particular model supplies assumptions and identification conventions. Its estimated coefficients are conditional on those choices, not facts obtained just by replacing category labels with integers. Similar care applies to scoring rules that combine several ordered items.

For a nominal outcome, a model can predict category probabilities through explicitly defined indicator variables. Those probabilities have numerical meaning even though the labels do not have a meaningful arithmetic average. For a ratio quantity, a regression or a test can still be inappropriate if the design, dependence, functional form or error assumptions fail. Neither the most detailed measurement scale nor an impressive software output supplies all the missing model conditions.

Transformations can be diagnostic tools rather than automatic licenses. If a conclusion changes under a harmless relabeling or unit conversion in a way that its claimed meaning should not, inspect the calculation and interpretation. If a deliberately nonlinear transformation changes the target, document that change and justify it. Questions about robustness, uncertainty and model fit then become explicit parts of the analysis. This is more informative than applying a rigid list of permitted statistics without considering what they estimate.

15

A useful dataset retains meaning through the whole calculation

To design a small study of packaged material, define one observation unit, such as one selected package at a specified inspection. Keep the package identifier as a nominal label, the material category with its controlled vocabulary, the count of defined defects with the inspected exposure, the mass with its unit and procedure, and any ordered quality rating with its category descriptions. A count of inspections, a count of packages and a count of defects are different denominators. Their meanings should remain visible when constructing summaries.

Document transformations as operations: converting grams to kilograms, forming a defect rate per inspected area, defining an indicator for a target category, rounding a displayed value or creating a log-ratio variable. Record missing and censored states separately, retain original values, and specify which observations enter each calculation. The observation design also matters: repeated packages from one production run can share conditions, and a convenience sample may not represent the intended population. The next lesson takes up that sampling question directly.

Counts and exposed area answer different questionsDefect counts are 6, 12 with inspected areas 3, 12 square metres. Rates are 2, 1 defects per square metre. Each quantity row uses its own scale; blue and orange identify inspections 1 and 2. Zero exposure leaves a rate unassigned. These are descriptive observed inspections, not a causal comparison.Counts and exposed area answer different questionscount (defects); separate row scale612exposure (m²); separate row scale312rate (defects/m²); separate row scale21Second / first count: 2; rate: 1/2.Changing exposure units preserves an admitted rate ratio, not an inferential design.
Pair the count with its exposure and units. A larger count can coexist with a smaller rate; an undefined denominator is never replaced by zero.

The connections to earlier mathematics are concrete. Equality classes explain nominal labels; order relations explain ordinal information; affine functions explain interval conversions; proportions and dimensional analysis explain ratios; functions explain quantization and derived variables; geometry explains directions and vectors. These connections provide reasons for a calculation instead of a memorized vocabulary list. They also show where information is lost or additional assumptions are introduced.

Before accepting an output, ask four questions: what was observed, what structure was retained, what operation was applied, and what claim is now being made? A correctly computed mean of identifiers still lacks an average-identifier interpretation. A correctly converted temperature ratio can still answer the wrong physical question. Conversely, an explicitly defined category proportion or model-based ordinal analysis can be entirely meaningful. Good data reasoning keeps the scientific target, representation, calculation and inference connected without treating any one of them as a substitute for the rest.

A compact codebook carries the analysis assumptions forward
FieldInformation to retainA failure it helps prevent
Observation unit and timeWhat one row represents, including repeat observationsTreating visits or subsamples as different independent units
Categories and orderAllowed labels, definitions, and any established orderingArithmetic on arbitrary codes or invented equal gaps
Quantity and unitTarget, reference, unit and measurement procedureCombining incompatible values or confusing origins
Resolution and qualityRecording rule, calibration and uncertainty informationTreating the last displayed digit as total accuracy
Missing and censored statesDistinct flags, applicability and thresholdsTurning unobserved or bounded values into exact zeros
Derived variableFormula, reference scales, exclusions and purposeLosing track of a changed scientific question

Change the representation, preserve the question

Each selector changes one declared example. Exact fractions and radical expressions remain separate from approximate log, trigonometric and decimal displays. A valid numerical operation still needs the stated scientific target and information conditions.

Units, recording rules and unassigned values

Temperature arrays describe the same paired states in different units. Ratios require a nonzero denominator; rates require positive exposure; real logarithms require positive values and reference. The known record anchor and actual rounded output are distinct. Censoring bounds are explicitly idealized, and missing flags never become exact zero or midpoint observations.

Representation structure does not supply a model

Category membership, order, affine intervals, positive rescaling and circular geometry preserve different information. An algebraically defined CV at a negative mean is not automatically an interpretable relative variability. Approximate coordinates never decide exact antipodal cancellation. No panel establishes independence, a distribution, representativeness, total uncertainty or causality.

1. Labels and explicitly defined indicators

Relabel categories while keeping the same membershipsThe observations A, A, B retain their categories under both codebooks. First code mean 4/3 and second code mean 20/3 are formal code arithmetic. The event is A; its indicator mean and observed proportion are both 2/3. Category positions in this diagram are schematic and do not supply a ranking.Relabel categories while keeping the same membershipsSame observations; green highlights the designated event AA191A191B220first codessecond codes above; event indicators belowEvent count 2; observed proportion 2/3Code means: 4/3 and 20/3; category counts stay fixed.No population proportion or independent sampling design is supplied.
The indicator is a deliberately defined numerical function. Its interpretation comes from the event definition, rather than from arbitrary category-code averages.
Membership-preserving relabeling and observed indicators
Quantity and conditionsSelected result
Original observed category labels[A; A; B]
First nominal codebook{ a: 1; b: 2 }
Second nominal codebook{ a: 9; b: 2 }
Both codebooks preserve one-to-one category labelsyes
Category counts[{ label: A; count: 2 }; { label: B; count: 1 }]
Observed category proportions[{ label: A; proportion: 2/3 }; { label: B; proportion: 1/3 }]
Modal category or categories[A]
First observed code vector[1; 1; 2]
Second observed code vector[9; 9; 2]
Formal mean of first codes4/3
Formal mean of second codes20/3
Explicit designated eventA
Event indicator values[1; 1; 0]
Event count2
Observed event proportion2/3
Indicator mean2/3
Indicator mean minus observed proportion0

Units: Category memberships and dimensionless observed proportions; arbitrary codes have no quantity unit.

Both codebooks preserve exactly the same category memberships. The two code means are formal arithmetic on chosen labels, not intrinsic average categories. The event indicator is deliberately defined; its mean is an observed proportion, without a sampling, independence or population claim.

2. Ordered categories and central observations

Ranks survive recoding while the numerical gaps can changeCategory order is low, middle, high. First codes are 1, 2, 3 and second codes 1, 2, 100. The central ordered categories are middle. The code means are 2 and 103/3. Category columns are schematic, not latent-trait distances.Ranks survive recoding while the numerical gaps can changeCategory columns show order, not measured distanceslow11middle22high3100First adjacent gaps: 1, 1New adjacent gaps: 1, 98Central categories: middleFormal code means: 2 and 103/3.The recoding supplies neither equal trait gaps nor a universal median midpoint rule.
An odd middle order statistic follows an increasing recoding. For an even sample, the central ordered pair is retained without assuming an intrinsic arithmetic midpoint.
Order, recoding and numerical midpoint limits
Quantity and conditionsSelected result
Declared category order[low; middle; high]
Observed category indexes, beginning at zero[0; 1; 2]
Ordered observed category indexes[0; 1; 2]
First assigned codes[1; 2; 3]
Increasing recoded values[1; 2; 100]
Both assigned codebooks respect the orderyes
First observed code vector[1; 2; 3]
Recoded observed vector[1; 2; 100]
Formal first-code mean2
Formal recoded mean103/3
First numerical category gaps[1; 1]
Recoded numerical category gaps[1; 98]
Sample size is oddyes
Central observed category or ordered pair[middle]
First codes of the central category/pair[2]
Recoded central category/pair[2]
Odd-sample middle category, if applicablemiddle
Formal first-code central midpoint2
Formal recoded central midpoint2
First midpoint happens to be an allowed codeyes
Recoded midpoint happens to be an allowed codeyes
Recoding of that first midpoint category, if present2
A universal increasing-recoding midpoint rule is establishedno

Units: Ordered categories; codes and their spacings are representations, not supplied latent-trait units.

Increasing recoding preserves ranks, central categories and an odd-sample middle order statistic. Arithmetic code means/gaps and the displayed central-code midpoint are representation-dependent calculations. Even samples retain their central ordered pair; no general nonlinear midpoint rule or equal-gap trait measurement is inferred.

3. Temperature origins, differences and means

The same states have different numerical originsThe paired states are 20, 30 degrees Celsius, 5863/20, 6063/20 kelvins and 68, 86 degrees Fahrenheit. Second-to-first numerical ratios are 3/2, 6063/5863 and 43/34. Rows are paired-value cards, not a common zeroed physical ruler.The same states have different numerical originsTwo physical states, aligned as columns; values retain their unitsCelsius20 °C30 °Csecond / first = 3/2kelvin5863/20 K6063/20 Ksecond / first = 6063/5863Fahrenheit68 °F86 °Fsecond / first = 43/34Differences: 10 °C; 10 K; 18 °FMeans: 25 °C; 5963/20 K; 77 °F.Each zero denominator is unassigned; the zero-kelvin case is a boundary.
Offsets cancel in temperature differences, while raw reading ratios depend on the represented origin. No universal warmth or thermal-energy ratio follows.
Exact affine temperature conversions and ratio domains
Quantity and conditionsSelected result
Celsius readings, °C[20; 30]
Same states in K[5863/20; 6063/20]
Same states in °F[68; 86]
Kelvin states are nonnegativeyes
Second-to-first Celsius numeral ratio3/2
Second-to-first kelvin numeral ratio6063/5863
Second-to-first Fahrenheit numeral ratio43/34
Both thermodynamic temperatures are positiveyes
Second-minus-first difference, Celsius degrees10
Same difference, K10
Same difference, Fahrenheit degrees18
Arithmetic mean, °C25
Same mean, K5963/20
Same mean, °F77
Kelvin mean conversion residual0
Fahrenheit mean conversion residual0
Two stipulated intervals, Celsius degrees[10; 20]
Converted intervals, K[10; 20]
Converted intervals, Fahrenheit degrees[18; 36]
First-to-second interval ratio, Celsius representation1/2
Interval ratio, kelvin representation1/2
Interval ratio, Fahrenheit representation1/2

Units: { celsius: degrees Celsius; kelvin: K; fahrenheit: degrees Fahrenheit; ratios: dimensionless when defined }

These arrays represent the same two temperature states. Offsets cancel in differences and means transform affinely. Raw numerical ratios depend on origin; each zero denominator is explicitly unassigned. The zero-kelvin case is a mathematical boundary, not an achievable measurement claim. Positive thermodynamic-temperature ratios do not by themselves compare perceived warmth or arbitrary thermal energies.

4. Unit factors and ratio denominators

A common unit factor preserves an admitted mass ratioMasses 2, 3 kg become 2000, 3000 g. Bars use a common physical-mass reference across representations, so their relative lengths match. The second-to-first ratio is 3/2 in kg and 3/2 in g. A zero numerator and a zero denominator are distinct.A common unit factor preserves an admitted mass ratioOriginal representation, kg12 kg23 kgmultiply numerals by 1000Same masses, g12000 g23000 gRatios: 3/2 in kg; 3/2 in g.A stipulated mathematical zero is not an interpretation of an unknown device flag.
The positive scale factor changes unit numerals consistently. A zero first mass leaves the second-to-first ratio undefined.
Same-kind mass ratios under positive unit scaling
Quantity and conditionsSelected result
Masses in kg[2; 3]
Same masses in g[2000; 3000]
Positive kg-to-g numerical factor1000
Ratio denominator is nonzeroyes
Second mass is zerono
Second-to-first ratio in kg3/2
Second-to-first ratio in g3/2
Converted ratio minus original ratio0

Units: { original: kg; converted: g; ratio: dimensionless }

A common positive unit factor preserves a same-kind second-to-first ratio only when its denominator is nonzero. Zero in the numerator can give a defined zero; zero in the denominator gives no ratio. The stipulated mathematical zeros are not interpretations of an unspecified instrument indication.

5. Affine summaries and CV conditions

Mean and spread transform together; CV needs an originOriginal readings 1, 3, 5 transform by y=2x+(10) to 12, 16, 20. Means are 3 and 16; n-denominator variances are 8/3 and 32/3. Each axis is drawn in its own converted units, so corresponding points align. CV formulas are 2/9 sqrt(6) and 1/12 sqrt(6); no relative-variability interpretation is established.Mean and spread transform together; CV needs an originBlue: original readings in original interval units135mean 3Orange: y = 2x + (10), converted axis121620mean 16Variances (denominator n): 8/3 → 32/3.CV formulas: 2/9 sqrt(6) → 1/12 sqrt(6); interpretation is separate.
The matched axes illustrate affine equivariance. Exact standard deviations retain radicals; zero means leave the CV formula unassigned.
Exact mean and spread transformations with explicit CV limits
Quantity and conditionsSelected result
Original interval readings[1; 3; 5]
Positive affine scale a2
Affine origin offset b10
Transformed readings ax+b[12; 16; 20]
Explicit variance denominator n3
Variance conventionmean squared deviation with denominator n
Original mean3
Transformed mean16
Original deviations[-2; 0; 2]
Transformed deviations[-4; 0; 4]
Original n-denominator variance8/3
Transformed n-denominator variance32/3
Exact original standard deviation: coefficient times sqrt(radicand){ coefficient: 2/3; radicand: 6 }
Exact transformed standard deviation{ coefficient: 4/3; radicand: 6 }
Original standard deviation, approximate≈ 1.6329932
Transformed standard deviation, approximate≈ 3.2659863
Mean equivariance residual0
Variance scaling residual0
Deviation scaling residuals[0; 0; 0]
Original s/mean formula is algebraically definedyes
Transformed s/mean formula is algebraically definedyes
Original signed CV expression{ coefficient: 2/9; radicand: 6 }
Transformed signed CV expression{ coefficient: 1/12; radicand: 6 }
Original squared CV formula8/27
Transformed squared CV formula1/24
Original signed formula, approximate≈ 0.54433105
Transformed signed formula, approximate≈ 0.20412415
Sign of original mean1
Sign of transformed mean1
Transformation is positive rescaling without origin shiftno
A scientific relative-variability interpretation is establishedno

Units: Interval-reading units; variances use squared units. The standard-deviation/mean formula is dimensionless where defined.

The affine mean/deviation/variance identities require no normality or independence assumption. CV is algebraically unassigned at a zero mean. A negative formula value is labelled by the mean sign, not interpreted as an ordinary relative variability measure. Even a computable interval-scale CV is not certified as origin-independent; pure positive rescaling and arbitrary origin shifts are different operations.

6. Rounding, a fixed anchor and a reference

A known record anchor is not every rounded input outputThe fixed record 173/100 m has cell [69/40, 347/200) m under positive half-up rounding. Selected input 867/500 m rounds to 173/100 m. The anchor-minus-reference difference is -1/250 m; the selected rounded-output-minus-reference difference is -1/250 m. The figure distinguishes these values explicitly.A known record anchor is not every rounded input outputFixed anchor cell; filled lower endpoint, open upper endpoint69/40 m347/200 mselected input867/500 mknown anchor173/100 mrounded output173/100 mDashed: stipulated reference 867/500 mInput in anchor cell: yes; anchor error -4 mm.The optional uniform rounding component requires an additional probability model.
The exact tie rule fixes endpoint inclusion. The rounding-stage cell is neither total measurement uncertainty nor a probability law.
Half-up cell and actual selected-input output
Quantity and conditionsSelected result
Recording grid spacing, m1/100
Known fixed record anchor, m173/100
Selected underlying input, m867/500
Stipulated reference, m867/500
Anchor cell lower endpoint, m69/40
Anchor cell upper endpoint, m347/200
Lower endpoint is includedyes
Upper endpoint is includedno
Selected input belongs to the anchor cellyes
Actual rounded output of selected input, m173/100
Actual rounded output equals the known anchoryes
Known anchor minus reference, m-1/250
Known anchor minus reference, mm-4
Actual rounded output minus reference, m-1/250
Rounded output minus selected input, m-1/250
Maximum absolute rounding-stage error, m1/200
Selected rounding-stage error satisfies the half-step boundyes
Conditional uniform-cell component only; its probability assumption is not adopted for the actual measurement{ variance metres squared: 1/120000; standard deviation metres: { coefficient: 1/600; radicand: 3 }; assumption adopted for actual measurement: no }
Total measurement uncertainty is determinedno
Two display strings with the same retained record information[1.73 m; 1.730000 m]

Units: Lengths in m; signed converted anchor error in mm; conditional variance in m².

Positive nearest-grid inputs use exact half ties upward. The fixed record anchor defines the displayed half-open cell; it is distinct from the actual rounded output of the selected input. The upper-half-tie input rounds to the next record and does not belong to the anchor cell. Record-minus-reference is a signed stipulated comparison. The optional uniform-cell expression is conditional and supplies neither total uncertainty nor a confidence level.

7. Missingness, censoring and observed zero

A flag, a bound and a measured zero are different recordsThe 3 records include 2 exact observed values with mean 11 stated reading unit. Each remaining record retains its observed, missing status. A sentinel is a storage code; strict censoring bounds are conditional interval information rather than exact imputed readings.A flag, a bound and a measured zero are different recordsEach row shows a value or its retained information flag1: observed10 stated reading unit2: observed12 stated reading unit3: missingstorage code -999exact value unassignedObserved count 2; mean 11 stated reading unit.An idealized detection interval is not a total uncertainty statement or an imputation.
The observed-valid-record mean uses its declared denominator. Missingness, applicability and censoring remain visible for later analysis.
Preserved record information and declared observed denominator
Quantity and conditionsSelected result
Preserved raw records and flags[{ status: observed; value: 10 }; { status: observed; value: 12 }; { status: missing; raw sentinel: -999 }]
Counts by original status{ observed: 2; missing: 1 }
Total record rows3
Exact observed-valid-value count2
Rows not flagged not-applicable3
Observed values entering the valid-record mean[10; 12]
Mean of exact observed-valid records only11
Naive arithmetic including the sentinel, shown only as a code-arithmetic contrast-977/3
That sentinel arithmetic is a valid measurement meanno
Exact values, retained flags and conditional censoring bounds[{ index: 0; status: observed; raw sentinel: Unassigned in this case; see its domain and information conditions.; exact observed value: 10; idealized interval: Unassigned in this case; see its domain and information conditions.; threshold interpretation: Unassigned in this case; see its domain and information conditions. }; { index: 1; status: observed; raw sentinel: Unassigned in this case; see its domain and information conditions.; exact observed value: 12; idealized interval: Unassigned in this case; see its domain and information conditions.; threshold interpretation: Unassigned in this case; see its domain and information conditions. }; { index: 2; status: missing; raw sentinel: -999; exact observed value: Unassigned in this case; see its domain and information conditions.; idealized interval: Unassigned in this case; see its domain and information conditions.; threshold interpretation: Unassigned in this case; see its domain and information conditions. }]
An exact imputed value has been assignedno
A full-target or population mean is establishedno

Units: stated reading unit

Only exact observed values enter the observed-valid-record mean. Missing, not-applicable and censored records retain their flags and thresholds; none is silently converted to zero or a midpoint. The idealized censoring interval is conditional on the stated threshold convention, not an uncertainty-free assertion about an actual instrument. Sentinel arithmetic is shown solely as an invalid measurement-summary contrast. Applicable rows, observed rows and the inferential target are separate denominators.

8. Positive dimensionless logarithms

A logarithm needs a positive dimensionless argumentStored inputs are 2, 8; admitted masses use kg, while a negative sentinel remains a storage code. The reference is 1 kg. Each log is admitted only for a positive ratio. The dimensionless ratios are 2, 8; the geometric mean is 4 kg. Exact symbolic logs and approximate values remain separate.A logarithm needs a positive dimensionless argumentReference x0 = 1 kg; both columns use that referencex = 2 kgx/x0 = 2ln(2)≈ 0.69315x = 8 kgx/x0 = 8ln(8)≈ 2.0794Geometric mean: 4 kgArithmetic quantity mean: 5 kg.Unit conversion preserves admitted log ratios; it does not certify a distribution.
Convert the reference together with the values. A new nonlinear summary answers a different question; invalid values retain their flags and domain failures.
Reference-aware logarithms and distinct averaging targets
Quantity and conditionsSelected result
Stored mass numerals in kg[2; 8]
Declared reference in kg1
Converted mass numerals in g[2000; 8000]
Converted reference in g1000
Reference is positiveyes
Stored numerals are admitted as nonnegative quantity valuesyes
Value/reference numerical ratios where the positive-reference condition holds[2; 8]
Ratios after converting both values and reference[2; 8]
Unit-conversion ratio residuals[0; 0]
Positive real-log domain, separately for each value[yes; yes]
Every required real log is admittedyes
Exact symbolic logarithms where admitted[ln(2); ln(8)]
Logarithms, approximate where admitted[≈ 0.69314718; ≈ 2.0794415]
Mean logarithm, approximate when all terms are admitted≈ 1.3862944
Formal arithmetic on stored numerals; not necessarily a physical summary5
Arithmetic mean admitted as a quantity summary, kg5
Exact geometric mean, kg{ coefficient: 4; radicand: 1 }
Exact same geometric mean, g{ coefficient: 4000; radicand: 1 }
Geometric mean, approximate kg4
Same geometric summary via approximate logs/exponential4
Exact expression for the difference of the two admitted logsln(4)

Units: Masses and reference in kg or g; logarithms use dimensionless same-kind ratios.

A positive reference is converted together with the values. Real logs are assigned only to positive ratios; zero, negative sentinel and zero-reference cases retain explicit failures rather than finite replacements. Stored-numeral arithmetic involving a negative sentinel is not a physical mass summary. Geometric and arithmetic means answer different questions. Approx logarithms/exponentials do not certify normality or any inferential model.

9. Circular directions and exact cancellation

Wrap-around calls for vectors, with a nonzero-result conditionEqual-weight bearings 359 degrees and 1 degree have ordinary code mean 180 degrees. Blue and orange unit vectors are drawn on an equal-scale circle of radius 100 pixels. Their green mean vector has exact components cos(pi/180), 0. Its direction is 0 degrees. Approx coordinates do not decide the zero condition.Wrap-around calls for vectors, with a nonzero-result condition0°90°180°270°Mean direction:0°Zero certified exactly:noBearings: 359 degrees and 1 degree; ordinary code mean 180°.Green: mean vector when nonzero; red centre: exact zero resultant.
Named-angle identities certify cancellation exactly. No default atan2(0,0) angle is assigned for a zero mean vector.
Exact angular structure and unassigned zero-resultant direction
Quantity and conditionsSelected result
Exact rational coefficients of pi[359/180; 1/180]
Named original angle convention[359 degrees; 1 degree]
Explicit nonnegative direction weights[1; 1]
Total direction weight2
Exact named-angle components and separate approximate coordinates[{ cos exact: Unassigned in this case; see its domain and information conditions.; sin exact: Unassigned in this case; see its domain and information conditions.; cos expression: cos(pi/180); sin expression: -sin(pi/180); cos approx: ≈ 0.9998477; sin approx: ≈ -0.017452406 }; { cos exact: Unassigned in this case; see its domain and information conditions.; sin exact: Unassigned in this case; see its domain and information conditions.; cos expression: cos(pi/180); sin expression: sin(pi/180); cos approx: ≈ 0.9998477; sin approx: ≈ 0.017452406 }]
Ordinary code mean as a coefficient of pi1
Ordinary code mean in degrees180
Rational cosine mean where a rational expression is availableUnassigned in this case; see its domain and information conditions.
Exact rational sine mean where available0
Exact symbolic mean cosine expressioncos(pi/180)
Exact symbolic mean sine expression0
Mean vector coordinates, approximate[≈ 0.9998477; 0]
Rational squared resultant where availableUnassigned in this case; see its domain and information conditions.
Exact symbolic squared resultantcos(pi/180)^2
Exact radical resultant where rational-square data allow itUnassigned in this case; see its domain and information conditions.
Resultant length, approximate≈ 0.9998477
Resultant is certified exactly zerono
Exact positive-cosine condition for the near-wrap pair0 < pi/180 < pi/2, so cos(pi/180)>0
The circular mean direction is definedyes
Exact mean direction as a coefficient of pi0
Exact circular mean direction in degrees0
A floating tolerance decides the zero conditionno

Units: Angles as exact rational multiples of pi, or degrees; unit-vector components and resultant are dimensionless.

Exact quarter/half-turn components certify antipodal cancellation; the near-wrap pair uses exact sine cancellation and positive cosine. Approx plotted coordinates do not decide whether the resultant is zero. A zero mean vector has no circular mean direction, so atan2(0,0) is never used to assign one. The ordinary arithmetic code mean is only a comparison with the circular representation.

10. Compare a count with its exposure

Counts and exposed area answer different questionsDefect counts are 6, 12 with inspected areas 3, 12 square metres. Rates are 2, 1 defects per square metre. Each quantity row uses its own scale; blue and orange identify inspections 1 and 2. Zero exposure leaves a rate unassigned. These are descriptive observed inspections, not a causal comparison.Counts and exposed area answer different questionscount (defects); separate row scale612exposure (m²); separate row scale312rate (defects/m²); separate row scale21Second / first count: 2; rate: 1/2.Changing exposure units preserves an admitted rate ratio, not an inferential design.
Pair the count with its exposure and units. A larger count can coexist with a smaller rate; an undefined denominator is never replaced by zero.
Observed counts, rates and their unit/denominator conditions
Quantity and conditionsSelected result
Common event definitionsame inspection definition
Observed defect counts[6; 12]
Inspected areas, m²[3; 12]
Same inspected areas, cm²[30000; 120000]
Area-unit numerical factor10000
Positive-exposure condition for each rate[yes; yes]
Descriptive rates, defects/m²[2; 1]
Converted descriptive rates, defects/cm²[1/5000; 1/10000]
Numerical rate conversion residuals[0; 0]
Second-to-first count ratio2
Second-to-first rate ratio1/2
Rate ratio after area-unit conversion1/2
Converted rate ratio minus original0
Population or causal conclusion establishedno

Units: { count: defined defects; exposure: m² or cm²; rate: defects/m² or defects/cm²; ratio: dimensionless where defined }

A rate needs positive exposure and a rate ratio needs a nonzero first rate, separately from a count ratio. Zero exposure leaves that rate unassigned; a zero event count over positive exposure is a defined zero rate. Common area-unit conversion changes numerical rates consistently and preserves an admitted ratio. These are descriptive inspection comparisons, without uncertainty, representativeness or causality claims.

11. Visits versus equally weighted people

A visit row and a person carry different weightsThe 4 rows belong to 2 people. Each visit gets weight 1/4 for the row mean 175 cm. Person means are A: 170; B: 190. Their equal-person mean is 180 cm. Boxes identify records; they do not imply independent people.A visit row and a person carry different weightsVisit records, with person identifier and height (cm)A, visit 1170A, visit 2170A, visit 3170B, visit 1190Weight contributed by each personA3/4 of rows1/2 of peopleB1/4 of rows1/2 of peopleBlue: visit-row mean 175 cm. Orange: equal-person mean 180 cm.These targets do not establish independence or population representativeness.
Repeated identifiers preserve the observation unit. Averaging within person first makes the equal-person target explicit.
Observation units and explicit two-stage weighting
Quantity and conditionsSelected result
Visit rows with retained person/visit identifiers[{ person: A; visit: 1; height: 170 }; { person: A; visit: 2; height: 170 }; { person: A; visit: 3; height: 170 }; { person: B; visit: 1; height: 190 }]
Number of visit rows4
Number of distinct observed people2
Within-person values, means and explicit person weights[{ person: A; visits: 3; values: [170; 170; 170]; person mean: 170; row implied person weight: 3/4; equal person weight: 1/2 }; { person: B; visits: 1; values: [190]; person mean: 190; row implied person weight: 1/4; equal person weight: 1/2 }]
Equal-visit row weights[1/4; 1/4; 1/4; 1/4]
Equivalent row weights for an equal-person target[1/6; 1/6; 1/6; 1/2]
Visit-row mean175
Mean of equally weighted person means180
Same equal-person summary via equivalent row weights180
Equivalent-weighting residual0
Visit-row mean minus equal-person mean-5
Sum of equal-visit weights1
Sum of equal-person target row weights1
Independent person sampling established by this calculationno
A population inference is establishedno

Units: cm

Visit rows and people are different observation units. The equal-person summary first averages within each person, then weights those person means equally; its equivalent per-row weights account for visit count. The row mean instead gives each visit equal weight. Neither calculation supplies an independence, sampling or population argument.

Worked examples

Keep category proportions while changing arbitrary codes

The observations are A, A, B. Compare code means using A=1,B=2 and A=9,B=2. Then define an indicator for A and interpret its mean.

  1. Under the first encoding the stored values are 1, 1, 2, with mean (1+1+2)/3=4/3. Under the second they are 9, 9, 2, with mean 20/3.
  2. The category memberships did not change, so those two code averages cannot be an intrinsic average category. Both encodings are valid one-to-one nominal relabelings.
  3. Define I_A=1 for A and 0 for B. The indicator values are 1, 1, 0, with mean 2/3. This is the observed fraction of the three records belonging to A.
  4. The count of A remains 2 and its proportion remains 2/3 under corresponding relabeling. The indicator is a deliberately defined numerical function of membership; no independence or population representativeness has been assumed.

The raw code means are 4/3 and 20/3; the explicitly defined A-indicator mean is the meaningful category proportion 2/3.

Preserve the middle category without inventing equal spacing

Three ordered observations use codes 1, 2, 3. Recode them as 1, 2, 100. Compare the mean and odd-sample median. What warning follows for averaging the two central codes in an even sample?

  1. The increasing recoding preserves the order and the category represented by the middle observation. The odd-sample median remains that middle category, whose new code is 2.
  2. The arithmetic mean changes from 2 to (1+2+100)/3=103/3. Equal spacing was not part of the original ordered information, so the mean’s change exposes an additional scoring assumption.
  3. For an even sample consisting of categories coded 1 and 3, averaging the codes gives 2 before recoding and (1+100)/2=101/2 afterward. A recoding that maps the middle category’s code 2 to 2 does not map that first average to the second average.
  4. Report the central ordered pair or a stated ordinal median convention when only order is justified. A numerical average of central codes can be appropriate under additional interval/scoring assumptions, but it is not preserved by every ordinally valid recoding.

The ordered middle category is preserved, while the means are 2 and 103/3. Averaging two central codes is not a generally ordinal-equivariant median convention.

Compare readings, intervals and means on three temperature scales

Convert 20 °C and 30 °C to kelvins and Fahrenheit degrees. Compare raw numerical ratios, their difference and their arithmetic mean.

  1. Adding 273.15 gives 293.15 K and 303.15 K. Applying t_F=(9/5)t_C+32 gives 68 °F and 86 °F.
  2. The raw numerical ratios are 30/20=3/2, 303.15/293.15=6063/5863 and 86/68=43/34. They differ because the representations have different origins.
  3. The interval is 10 Celsius degrees, 10 K or 18 Fahrenheit degrees. The mean is 25 °C, 298.15 K or 77 °F. The converted mean agrees with the mean of converted readings because the conversions are affine.
  4. These algebraic facts do not make ‘twice as hot’ a universal physical interpretation. A thermodynamic-temperature ratio and a physical energy-exchange prediction require their respective quantity definition and physical assumptions.

The raw ratios differ; the interval and mean transform consistently: 10 °C of difference equals 10 K or 18 °F, and the mean is 25 °C=298.15 K=77 °F.

Preserve a ratio while changing mass units

Two sample masses are 2 kg and 3 kg. Compare their second-to-first ratio before and after conversion to grams. What changes if the first mass is zero?

  1. Conversion to grams multiplies both numerical values by 1000, giving 2000 g and 3000 g.
  2. The ratio is 3/2 in kilograms and 3000/2000=3/2 in grams. The common positive scaling cancels, and the units also cancel because the quantities are of the same kind.
  3. If the first mass is zero, the second-to-first ratio is undefined. A true zero divided by a positive mass, in the opposite ratio direction, would be a defined zero; the denominator condition matters.
  4. An instrument’s zero indication is not necessarily a known exact zero sample mass. Tare, rounding and below-detection conventions belong in the measurement record before interpreting a ratio.

Both unit systems give 3/2 for the stated nonzero first mass; division by a zero first mass is undefined.

Separate a discrete score from a rounded continuous target

A score can take only 0, 0.5, 1, 1.5, 2. A length is continuously modeled but stored to the nearest centimetre. Which descriptions are discrete, and what information can added trailing zeros recover?

  1. The score has exactly five allowed values, so it is discrete even though some allowed values are not integers.
  2. The idealized underlying length is continuously modeled. Its recorded nearest-centimetre value belongs to a numerical grid and is a different, quantized variable.
  3. Many underlying lengths can produce the same recorded value. Appending trailing zeros, such as writing 1.73 m as 1.730000 m, does not invert that many-to-one recording map.
  4. Classify the target and record separately and retain the increment and tie rule. A decimal display alone cannot decide whether the underlying variable is continuous or how accurate the record is.

The five-value score and the quantized length record are discrete descriptions; the underlying length model is continuous, and extra printed zeros restore no lost information.

Compute a recording cell without treating it as total uncertainty

Positive length inputs are rounded to the nearest 0.01 m, with exact half ties upward. A record is 1.73 m. Find its input cell and the signed difference from a stipulated reference of 1.734 m.

  1. Half the recording step is 0.005 m. The lower midpoint 1.725 m rounds upward to 1.73 m, while 1.735 m rounds upward to 1.74 m.
  2. The input cell for the stated quantization rule is therefore [1.725,1.735) m, with the endpoint inclusion dictated by the tie rule.
  3. The recorded-minus-reference difference is 1.730−1.734=−0.004 m=−4 mm. It is a signed comparison with the stipulated reference, not an assertion that every unknown measurement error is known.
  4. The cell describes rounding alone. Calibration and other uncertainty components remain separate, and a uniform probability law over the cell has not been established merely by giving its endpoints.

The rounding cell is [1.725,1.735) m and the signed reference difference is −0.004 m; total uncertainty has not been determined.

Transform the mean and spread without confusing equivariance with invariance

For interval readings 1, 3, 5, use the mean squared deviation with denominator 3 as the variance convention. Transform by y=2x+10 and compare mean, variance and coefficient of variation.

  1. The original mean is 3. Squared deviations are 4, 0, 4, so the stated variance is 8/3 and the standard deviation is s=√(8/3). This denominator convention is explicit; no unbiased-estimator claim is being made.
  2. The transformed readings are 12, 16, 20, with mean 16=2·3+10. Their squared deviations from 16 are 16, 0, 16, giving variance 32/3=4·(8/3) and standard deviation 2s.
  3. The numerical coefficients of variation are s/3 and (2s)/16=s/8. They differ because the transformation shifts the origin. Under a pure change y=2x, the CV would instead be 2s/6=s/3.
  4. The mean and spread have transformed consistently with the interval representation. That does not make CV an origin-independent interpretation of relative variability for these interval readings, nor does it validate any distributional model.

Means 3→16, stated variances 8/3→32/3 and standard deviations s→2s transform correctly; CV changes from s/3 to s/8 under the origin shift.

Keep a missing sentinel and a detection limit out of exact-value arithmetic

A file contains valid readings 10 and 12 and uses −999 for one missing record. Separately, a concentration record is flagged ‘below 0.2 mg/L’. What can be calculated without inventing an exact third value?

  1. Treating −999 as a measurement gives (10+12−999)/3=−977/3. This is arithmetic on a storage code, not a mean of the observed measurements.
  2. The mean of the two observed valid readings is 11. It describes those observed records; it is not automatically the mean of all three target values or an unbiased estimate for a wider population.
  3. A below-detection flag supplies information according to the measurement procedure, not an exact concentration of zero or 0.1 mg/L. Under an explicitly idealized nonnegative, error-free threshold interpretation it would constrain the value to [0,0.2) mg/L; an actual measurement model may need additional uncertainty qualifications.
  4. Preserve both the missing flag and the detection threshold. Any imputation, denominator change or probability model must be recorded separately so a later reader can distinguish observed values from assumptions.

The observed valid-record mean is 11. The missing and below-detection records should remain flagged; no exact replacement value follows from either code alone.

Use a dimensionless reference when changing to a log scale

For masses 2 kg and 8 kg with reference x₀=1 kg, compare the arithmetic and geometric means. Show that converting every mass and the reference to grams does not change the log-ratios.

  1. The dimensionless ratios are 2 and 8. The mean of their logarithms is (ln2+ln8)/2=ln4, so transforming back gives geometric mean 4 kg.
  2. The arithmetic mean is (2+8)/2=5 kg. It is a different summary, not a failed calculation of the same mean.
  3. In grams the masses are 2000 and 8000 g and the reference is 1000 g. The ratios remain 2 and 8, and the geometric mean is 4000 g, representing the same 4 kg.
  4. Taking ln of a zero, negative mass code or missing sentinel would be undefined in the real logarithm. Changing the reference or adding a constant before logging must be documented as a different representation or transformation, with its own meaning.

The arithmetic mean is 5 kg and the geometric mean is 4 kg. The dimensionless log-ratios are unchanged by a common conversion of values and reference.

Respect angular wrap-around and admit an undefined mean direction

Compare the ordinary arithmetic code mean and vector-based circular mean for equal-weight bearings 359° and 1°. What happens for equal-weight bearings 90° and 270°?

  1. The arithmetic average of the first two numerical codes is (359+1)/2=180°. This lies opposite the small angular neighborhood of both observations.
  2. Their sine components cancel because sin359°=−sin1°, while cos359°=cos1°>0. The average unit vector therefore points along 0°, which is the same direction as 360°.
  3. For 90° and 270°, the unit vectors are (0,1) and (0,−1). Their mean vector is exactly zero, so its direction is undefined.
  4. A geometry-aware summary can solve the wrap-around problem without guaranteeing an answer in every configuration. The nonzero-result condition and the angular convention are part of the method.

For 359° and 1°, the ordinary code mean is 180° but the circular mean direction is 0°. For the antipodal pair, this circular mean direction is undefined.

A larger count can coexist with a smaller rate

Two inspections use the same stated defect definition. The first finds 6 defects over 3 m², and the second 12 defects over 12 m². Compare counts and area-based rates without making a causal claim.

  1. The second inspection has twice the defect count: 12/6=2. This compares event counts, not rates.
  2. The first rate is 6/3=2 defects per m². The second is 12/12=1 defect per m², so the second-to-first rate ratio is 1/2.
  3. Counts and rates answer different questions because the inspected areas differ. Converting both areas to square centimetres changes both numerical rates by the same factor and preserves the dimensionless rate ratio.
  4. These are descriptive calculations for the observed inspections. A population comparison, uncertainty interval or claim that a production change caused improvement requires a design and a model; none follows merely from the type of the count variable.

The second count is twice as large, but its observed area-based defect rate is half as large: 1 rather than 2 defects/m².

Changing the observation unit changes the weighting

A file has three visits from person A, each recording a height of 170 cm, and one visit from person B recording 190 cm. Compare the mean over visit rows with an equal-person mean in this stipulated example.

  1. The four row values are 170, 170, 170, 190. Their row mean is (3·170+190)/4=175 cm.
  2. Giving each of the two persons equal weight, with the stipulated constant within-person values, gives (170+190)/2=180 cm.
  3. The row mean weights A three times as much as B because A contributes three visits. That is not an arithmetic error if the target is a mean over these visit records; it is the wrong target if one intended an equal-person mean.
  4. The repeated rows are not four distinct people, and no population inference or independence assumption has been supplied. Keep the observation identifier and repeated-measurement structure so the weighting can match the actual question.

The visit-row mean is 175 cm and the equal-person mean is 180 cm; they use different observation units and weights.

Try it yourself

  1. A table has one row per household per month. Is the number of rows necessarily the number of distinct households, and are the rows automatically independent?

    Show the answer and reasoning

    Neither follows; households can contribute repeated rows, and independence needs a design or model.

    The observation unit includes both household and month. An identifier and time field preserve the repeated structure, which can affect weighting and uncertainty even when each value has valid units.

  2. A material type is stored as integer code 12. Does its machine type make it a quantitative amount?

    Show the answer and reasoning

    No; it can be a nominal label.

    The codebook determines what equality, order and arithmetic mean. Storing a label as an integer supplies no intrinsic size or spacing, just as storing a mass as text does not erase its quantitative meaning.

  3. A score is restricted to 0, 1/2, 1, 3/2, 2. Is it continuous because some values have decimal representations?

    Show the answer and reasoning

    No. It has five allowed values and is discrete.

    Discrete numerical values can be nonintegers. Allowed values and the measurement procedure matter; a decimal point is only a recording convention.

  4. Does recording an idealized continuously varying length to the nearest millimetre make the underlying target a millimetre-grid quantity?

    Show the answer and reasoning

    No; the recorded variable is quantized while the target can remain continuously modeled.

    Many underlying inputs map to the same record. Preserve both the target definition and recording rule, and do not treat appended digits as recovered information.

  5. For category observations A, B, A, A, define I_A=1 for A and 0 otherwise. What is its mean, and what has not been assumed?

    Show the answer and reasoning

    3/4, the observed A proportion; independence and population representativeness have not been assumed.

    The indicator is an intentionally defined numerical membership function. Its average is meaningful even though an arithmetic mean of arbitrary nominal category codes would lack an intrinsic category interpretation.

  6. Three ordered categories use codes 1, 2, 3. Does their order establish that the upper-to-middle gap equals the middle-to-lower gap?

    Show the answer and reasoning

    No; equal spacing is an additional assumption.

    The increasing recoding 1, 2, 100 preserves order and changes the gaps. Ordered comparisons and cumulative counts survive, while arbitrary gap arithmetic does not automatically do so.

  7. Which statement is justified under every strictly increasing recoding: an odd-sample middle order statistic follows the recoding, or the arithmetic average of two central numeric codes always does?

    Show the answer and reasoning

    The odd-sample middle order statistic follows the recoding; the averaged two-code convention does not generally do so.

    Increasing functions preserve ranks but need not preserve arithmetic midpoints. For even ordinal samples, retain the central ordered pair or state a justified median convention.

  8. Under y=3x+7, what happens to x₂−x₁ and to a ratio of two nonzero differences?

    Show the answer and reasoning

    Each difference is multiplied by 3, and the ratio of differences is unchanged.

    The offset cancels in subtraction and the common positive factor cancels in a ratio. A raw ratio of the original readings generally does not have that shift invariance.

  9. Is 30 °C ‘one and a half times the temperature’ of 20 °C in an origin-independent numerical-ratio sense?

    Show the answer and reasoning

    No. The Celsius numerical ratio changes when the same states are represented in kelvins or Fahrenheit degrees.

    Temperature intervals convert consistently, and positive thermodynamic-temperature ratios have their own physical interpretation. Neither licenses an unqualified claim about perceived warmth or arbitrary heat content.

  10. Masses 4 kg and 10 kg become 4000 g and 10000 g. Which ratio is preserved, and what denominator condition is required?

    Show the answer and reasoning

    The second-to-first ratio 5/2 is preserved, with a nonzero first mass.

    A common positive scaling cancels in the ratio. A zero denominator would make that ratio undefined; a zero instrument indication also needs its recording interpretation checked.

  11. For y=ax+b with a>0, how do the mean, variance and standard deviation transform when the variance convention is kept the same?

    Show the answer and reasoning

    Mean becomes a x̄+b, variance is multiplied by a², and standard deviation by a.

    Subtracting the new mean gives yᵢ−ȳ=a(xᵢ−x̄). The result is an algebraic transformation identity, not a claim that the data are independent, normal or physically summarized adequately by an unweighted mean.

  12. Why is s/x̄ generally not an origin-independent coefficient of relative variability for an interval scale?

    Show the answer and reasoning

    An origin shift changes it to a s/(a x̄+b), which generally differs from s/x̄.

    A pure positive rescaling preserves CV, but an arbitrary interval origin shift does not. A nonzero mean and a scientifically justified relative-variability interpretation are also needed.

  13. Does a nearest-centimetre display by itself establish a uniform rounding distribution, a 95% confidence interval or the total measurement uncertainty?

    Show the answer and reasoning

    No.

    The increment and tie rule can define a quantization cell, but a probability law within it is an added assumption. Calibration, repeatability, environment and reference information can contribute additional uncertainty.

  14. A recorded length is 2.50 m and a stipulated reference is 2.503 m. What is the signed recorded-minus-reference difference?

    Show the answer and reasoning

    −0.003 m, or −3 mm.

    The negative sign means the record is below that reference. The calculation does not imply that all real measurement errors are known, or that an actual reference has no uncertainty.

  15. Should ‘missing’, ‘not applicable’, ‘below detection’ and a measured zero automatically share the same numerical code for arithmetic?

    Show the answer and reasoning

    No; they represent distinct information states.

    A common zero code can invent an exact value, change denominators and lose censoring information. Preserve flags and thresholds; any imputation or analysis exclusion requires its own stated rule.

  16. Why write ln(x/x₀) for positive same-kind quantities with a positive reference rather than logging an unexplained dimensional number?

    Show the answer and reasoning

    The ratio is dimensionless and remains unchanged when both values and reference undergo the same unit conversion.

    The reference states what the transformed variable means. Zero and negative inputs are outside the real logarithm’s domain, and a nonlinear transformation changes the summary question rather than merely adding display digits.

  17. Why does the vector-based circular mean direction fail for equal-weight directions 0° and 180°?

    Show the answer and reasoning

    Their unit vectors average to zero, which has no direction.

    A geometry-aware method still has applicability conditions. It must report the undefined direction rather than assign a misleading default angle.

  18. A variable is continuous and on a ratio scale. Does that alone justify a normal model, independence, a causal comparison or a particular statistical test?

    Show the answer and reasoning

    No; those require their own design, substantive and statistical assumptions.

    Measurement structure describes recorded information and meaningful transformations. It does not certify a distribution, sampling mechanism, functional relationship or causal identification strategy.

What to carry forward

  • Define the observation unit, target variable, allowed values, procedure and recording convention before calculating.
  • A numerical storage code can be a label, and a text record can represent a quantitative value.
  • Discrete variables can have noninteger values; a rounded record and a continuously modeled underlying target are different variables.
  • Nominal labels support equality and corresponding counts; explicit indicators supply meaningful category proportions.
  • Ordinal information supplies order without equal spacing, and median conventions need their correct transformation qualifications.
  • Interval representations allow positive affine changes; ratio representations preserve an intended zero under positive rescaling.
  • Meaningful values can transform equivariantly rather than remain numerically unchanged after a unit conversion.
  • Celsius and Fahrenheit origins invalidate raw arbitrary-origin temperature ratios; differences and affine means transform consistently.
  • Ratios need compatible quantities, a relevant denominator and a stated interpretation of zero.
  • Resolution, rounding, signed reference error and uncertainty are distinct parts of a measurement description.
  • Missing, inapplicable, censored and true-zero records must not silently become the same exact numerical value.
  • Logarithms require dimensionless references and valid domains; averaging after transformation can define a different target.
  • Circular and multicomponent variables require their geometry and metadata, beyond a forced ordinary scalar ordering.
  • A scale label does not approve a statistical model: design, dependence, distribution and scientific purpose remain separate.
  • Keep original records, transformation rules and codebook history so each result can be traced to what was actually observed.

References

Sources for the concepts and teaching approaches in this article.

  1. Types of variablesStatistics CanadaStatistics: Power from Data! · §4.2, categorical codes and numerical variableswww150.statcan.gc.caRead source
  2. On the Theory of Scales of MeasurementS. S. StevensOriginal research · Science 103(2684), 677–680 (1946); Table 1 on p.678 · PDFfaculty.ucmerced.eduRead source
  3. Bureau International des Poids et Mesures (BIPM)2 sources
    1. International vocabulary of metrology (VIM), third editionJoint Committee for Guides in MetrologyAuthoritative metrology vocabulary · §§1.19, 1.26, 1.30, 2.16, 2.26, 4.14 and 4.15jcgm.bipm.orgRead source
    2. The International System of Units (SI), ninth editionBureau International des Poids et MesuresOfficial SI Brochure · version 4.01 (June 2026), English p.129: kelvin and Celsiusbipm.orgRead source