GLOBAL KNOWLEDGE ARK

Mathematics · Article

Tables, charts and honest visualisation

Turn recorded observations into tables and graphics whose denominators, units, geometry and uncertainty can be checked. Derive histogram densities and empirical cumulative curves, interpret box plots under stated conventions, and examine how scales, aggregation and missing observations change a visual argument.

Back to Mathematics

After reading, you can

  • Choose a table or graphic that matches the observational unit, measurement scale and question.
  • Distinguish counts, proportions and rates and state the denominator of every comparison.
  • Derive histogram heights from bin width and show how bar area recovers empirical frequency.
  • Read empirical cumulative curves and box plots while retaining ties and quantile conventions.
  • Explain how baselines, transformations, aspect ratios and area encodings affect a comparison.
  • Preserve pairing, time spacing, missing observations and group composition in visual summaries.
  • Distinguish variation among observations from uncertainty in an estimate.
  • Make a chart accessible, reproducible and appropriately limited as a scientific claim.
01

Begin with a question, a unit and an encoding

A chart is a mathematical transformation of records into positions, lengths, areas, colours or other marks. A useful transformation makes a relevant relationship easier to inspect while preserving enough context to check the argument. It begins with the question, the observational unit, the recorded quantity and the population or collection being described. A convincing picture cannot repair an unspecified target or establish a sampling design that the records do not contain.

Suppose a laboratory records one response time for each of five devices. A point may represent a device, its horizontal position may encode time in milliseconds, and a label may retain its identity. If the laboratory instead records a thousand repeated responses from one device, a thousand marks do not become a thousand independently sampled devices. State the unit represented by a row and by a mark. The distinction affects what the picture describes and which later uncertainty calculation could be justified.

Match the encoding to the measurement scale. Named categories call for separate positions or labels; a numerical axis suggests ordered magnitudes and meaningful distances. A category code such as 1,2,3 should not automatically become a continuous measurement. A time axis carries interval information as well as order. A physical quantity needs its unit, and quantities measured on different scales need a justified common transformation before their marks can be compared.

Every graphic also omits information. Binning loses exact positions inside a bin; a mean hides the distribution around it; a smooth curve may conceal discreteness or rounding. The right question is what has been retained, what has been discarded, and whether the discarded information matters for the stated purpose. Keep the underlying table or a clear route to it so a reader can recover values that the picture alone cannot show.

02

Tables make counts and denominators inspectable

A frequency table assigns each observation to a stated category and counts the observations in each category. If the categories are mutually exclusive and exhaustive for n recorded observations, their counts c₁,…,cₖ are nonnegative integers with Σcⱼ=n. Their relative frequencies are pⱼ=cⱼ/n when n>0, so Σpⱼ=1. A percentage is 100pⱼ. State whether categories are exclusive; a question allowing several selections can legitimately have percentages summing above 100%.

The denominator is part of the quantity. Six completed tasks among ten attempted tasks gives 60% of attempts; six among twelve assigned tasks gives 50% of assignments. A count of six has not changed, but the question has. Distinguish a population total, a fraction among observed records and a rate per unit of exposure. Events per thousand operating hours have a denominator with a time unit, unlike a fraction of devices with at least one event. They cannot be substituted simply because both are called rates in casual speech.

A two-way table records two categorical variables together. Row percentages answer a question conditional on the row group; column percentages use another denominator. For example, the fraction passing within each training group and the fraction belonging to each group among those passing describe different conditional compositions. Show counts alongside percentages when possible: 1 of 2 and 500 of 1000 share a displayed fraction but offer different information about the amount and design of the data.

Totals, missing-value counts and exclusions should reconcile. If 80 of 100 invited people answer a question, a table of the 80 answers can accurately sum to 100% of respondents while saying nothing by itself about the other 20 people. Label that denominator explicitly. Rounding percentages separately can produce 99% or 101%; disclose rounding rather than silently changing a category. An empty denominator makes a fraction unavailable, not zero.

A category count needs a named denominatorTwo horizontal bars start at zero and use 42 pixels per record: Completed 6 and Incomplete 4. The count axis runs from 0 to 10 records. If these exhaust ten eligible records, their proportions are 6/10 and 4/10. Against twenty eligible records the same displayed counts give 6/20 and 4/20, with ten other outcomes not displayed. Categories have no numerical distance axis.A category count needs a named denominatorSame counts: six completed and four incomplete recordsCompleted6Incomplete40246810count (records), baseline 0Denominator 10: completed 6/10; incomplete 4/10Denominator 20: completed 6/20; incomplete 4/20The second report also has ten eligible records outside these categories.The category names identify outcomes; their spacing is not a measured scale.
The denominator is part of a proportion. A subset of displayed categories need not add to 100%, and an empty eligible population does not yield a zero proportion.
03

Use bars and points according to their geometry

A bar chart assigns separate bars to categories. Equal bar widths and a common numerical scale make length the intended encoding; the gaps indicate distinct categories rather than intervals of a continuous variable. Category order can follow a meaningful sequence, a stable classification or a declared ranking. Sorting by a measured value helps ranking questions but can make the same categories hard to compare across panels if the order changes without notice.

When bar length represents a nonnegative count or amount, use a common zero baseline. A bar extending from 80 to 100 has length 20, not 100. If bars for values 90 and 100 start at 80, the second looks twice as long although the quantities have ratio 10/9. The plotted numbers may be labelled correctly while the length encoding gives a distorted ratio. A broken axis does not restore a simple proportional-length interpretation.

A point plot encodes position on a labelled scale rather than a filled length from zero. A cropped axis can be appropriate for inspecting small differences, such as measurements between 90 and 100, provided its limits are visible and the caption makes the comparison clear. The choice depends on the question and encoding: asking about a small difference is legitimate, but presenting that difference as a ratio of magnitudes requires a meaningful zero and the correct geometry.

Negative values need an equally explicit interpretation. A diverging bar can represent signed deviations from a stated reference; its two directions encode sign and its length encodes distance from that reference. Do not mix a deviation-from-target bar with a total-amount bar and read their lengths as the same quantity. For several groups or panels, common units, category order and axis limits make direct comparisons easier to assess.

Bar length needs zero; a labelled point crop uses positionValues 90 and 100 units have true ratio 10/9. First, horizontal bars use 4 pixels per unit from zero, giving lengths 360 and 400. Second, deliberately misleading cropped bars subtract 80 and use 20 pixels per unit, giving lengths 200 and 400 and an apparent length ratio 2. Third, points use a clearly labelled80 to 100 crop with 20 pixels per unit: 90 sits halfway and 100 at the end. These positions show a difference without encoding lengths from 80 as values.Bar length needs zero; a labelled point crop uses positionCorrect bars, common zero; 90 and 100 units901000100; length ratio 10/9Misleading bars: crop 80; apparent lengths 10 and 2080 (crop)100; length ratio 2Legitimate labelled point axis: positions, not bar lengths8090100The point crop is explicitly 80–100 units. The value difference is 10 units.The cropped bars exaggerate the length ratio; they are not a recommended display.
A cropped point axis can reveal a small difference when clearly labelled. A crop that turns nonnegative bars into false value ratios is a different encoding.
04

A histogram partitions a numerical scale

A histogram groups numerical observations into bins along their measurement axis. Unlike separated category bars, each bin represents an interval whose width has numerical meaning. Choose increasing boundaries b₀<b₁<⋯<bₖ, with widths wⱼ=bⱼ−bⱼ₋₁>0. State how boundary observations are assigned. Here use left-closed, right-open intervals [bⱼ₋₁,bⱼ), with the last bin closed at its upper endpoint. This assigns each included observation exactly once.

Let cⱼ be the number of observations in bin j and n the number represented across all bins. With equal widths, count heights permit straightforward comparison because bar area is a common width times count. With unequal widths, count heights make a wide bin appear disproportionately important through its area. A histogram intended to encode relative frequency by area instead uses height hⱼ=cⱼ/(n wⱼ). Then its rectangle has area hⱼwⱼ=cⱼ/n, and the total rectangle area is 1.

If x is measured in milliseconds, the density height hⱼ has units per millisecond. Its product with a bin width is dimensionless. A density height can exceed 1 without violating any probability rule: a fraction of 1 packed into a bin of width 1/10 millisecond has height 10 per millisecond. Height alone is not the fraction in that bin. Alternatively, cⱼ/wⱼ gives count per unit, with total area n; label which normalization has been chosen.

The formula requires n>0 and positive widths. Values outside the displayed bins must be counted and disclosed or the denominator explicitly restricted to the included subset. A histogram density describes the binned empirical record; it is not automatically the true density of a population and does not prove observations were sampled independently. The binning convention is part of the reproducible analysis, not a cosmetic setting that can be discarded.

With unequal bins, density makes area the record fractionEight observations in seconds are 0,1,2,3,4,5,8,9. Bins [0,2),[2,6),[6,10] have counts 2,4,2 and widths 2,4,4 seconds. Horizontal scale is 42 pixels per second; vertical scale 1600 pixels per inverse second. Densities are 1/8,1/8,1/16 per second, giving areas 1/4,1/2,1/4. The final bin includes 10; earlier right endpoints are excluded.With unequal bins, density makes area the record fractionDensity (s⁻¹); n=8; numerical bin widths retained01/161/8count 2area 1/4count 4area 1/2count 2area 1/402610time (s)Counts 2,4,2 divided by n×width give 1/8,1/8,1/16 s⁻¹.The rectangle areas sum to 1; boundary values belong to exactly one bin.
Height is count/(n×width), not count. The middle bin has twice the area of the first despite their equal density heights.
05

Binning changes the picture, so retain the rule

Consider observations 0,1,2,3,4,5,8,9 seconds and bins [0,2),[2,6),[6,10]. Their counts are 2,4,2 and their widths are 2,4,4 seconds. The relative-frequency density heights are 1/8,1/8,1/16 per second. The first two bins have equal heights but different areas: 1/4 and 1/2. Reading height as fraction would miss that the wider middle interval contains twice as many of these observations.

Changing a bin boundary can move an observation from one bin to another without changing the data. Narrow bins expose local structure but can give a sparse, irregular display; wide bins smooth over differences and can merge distinct groups. A shifted starting boundary can also change the apparent pattern. There is no universal bin width that makes all distributions equally informative. Software defaults are starting choices whose definitions and suitability should be checked.

Compare plausible bin widths or starts when the visual conclusion depends on them, while keeping the original record fixed. A second display such as a dot plot or an empirical cumulative curve can show whether an apparent gap or peak survives another representation. Do not repeatedly tune bins to obtain a desired narrative and present the selected picture as if the choice were uniquely forced by the observations. Exploratory choices can be useful when reported honestly.

Measurement resolution sets another limit. Values recorded to the nearest second can form ties even if the underlying quantity varies continuously. A smoothed or finely binned graphic should not imply precision that the instrument did not provide. A histogram also cannot recover the exact positions of observations inside each bin from counts alone. Retain the unbinned records, units, rounding rule and any excluded values so the display can be rebuilt and its limits understood.

06

Cumulative curves preserve threshold questions

The empirical cumulative distribution Fₙ(t)=(1/n)Σ1{xᵢ≤t} gives the fraction of n>0 numerical observations at or below t. Plot it as a nondecreasing step function. At an observed value, the function takes its value after the jump because the inequality includes equality. The curve is right-continuous: immediately to the right of a recorded value, and before the next value, the cumulative fraction remains at that new level.

For records 2,3,3,4,8 milliseconds, the fraction below 3 is 1/5, while Fₙ(3)=3/5. The two observations tied at 3 contribute a single jump of 2/5. A diagram with an open endpoint at the lower level and a filled endpoint at the upper level distinguishes these values. Joining the observations with a sloping line would suggest intermediate cumulative values over thresholds where this empirical function is actually constant.

Threshold fractions follow directly from the definition. The fraction in (a,b] is Fₙ(b)−Fₙ(a) for a≤b. If the intended interval is [a,b], replace Fₙ(a) by the left limit Fₙ(a−), which counts observations strictly below a. At a tie the distinction matters. The vertical axis is dimensionless and bounded between 0 and 1; the horizontal axis retains the observation unit. This representation avoids choosing histogram bins but answers cumulative rather than local-frequency questions.

A tied value makes one right-continuous ECDF jumpThe five times 2,3,3,4,8 milliseconds use 48 pixels per millisecond horizontally. The vertical fraction axis uses 200 pixels per unit. The ECDF jumps to 1/5 at 2, 3/5 at 3, 4/5 at 4 and 1 at 8. Filled points are included right-hand values; hollow points exclude the previous level at the jump. At 3 the jump size is 2/5 because two observations are tied.A tied value makes one right-continuous ECDF jumpFₙ(t), dimensionless; record 2,3,3,4,8 ms01/53/54/510234689threshold t (ms)Immediately left of 3: 1/5. At 3 and just to its right: 3/5.The ties add two record weights; no smoothing or new observations are inserted.
Fₙ(t)=count(xᵢ≤t)/n. The right-continuous value at 3 is 3/5, not 1/5; both observations at 3 count.

Several cumulative curves can be compared on common axes. A consistently higher empirical curve has accumulated more of its recorded mass by each threshold, but crossings mean the ordering depends on the threshold. If F_A(t)≥F_B(t) for every t, the empirical A values are smaller in the first-order stochastic ordering; equality or direction should be stated carefully. Neither this descriptive comparison nor a visually large separation supplies a population significance test without a sampling model and a suitable method.

07

A box plot compresses ranks under declared conventions

A box plot combines selected quantiles with a median and a rule for whiskers and flagged observations. It is compact for comparing several groups, but its exact construction is not universal. State the quartile convention, the whisker rule, how ties are handled, and whether widths encode anything. In this lesson use the linear type 7 quantiles from lesson146: h=1+(n−1)p, with linear interpolation between the adjacent ordered values and separately handled endpoints.

Write Q₁=Q₇(1/4), Q₃=Q₇(3/4), and IQR=Q₃−Q₁. Our fences are Q₁−(3/2)IQR and Q₃+(3/2)IQR. The whiskers end at the smallest and largest recorded observations inside or on those fences; observations strictly outside are marked separately. The fences themselves need not be observed values, so drawing a whisker at a fence would implement a different rule. Other software may use different hinges or endpoint conventions.

For 2,3,3,4,8, the quartiles are 3 and 4, the fences are 3/2 and 11/2, the whiskers end at 2 and 4, and 8 is flagged. A flag identifies an observation for inspection under the stated descriptive rule. It does not prove a recording error, justify deletion or define a universal probability of being unusual. A genuine long tail, a distinct subgroup or a physically meaningful event can produce the flagged value.

Type 7 fences and actual whisker observations differFor 2,3,3,4,8 milliseconds, explicitly linear type 7 quartiles are Q1=3, Q3=4, median 3 and IQR 1. The 1.5 IQR fences are 1.5 and 5.5, drawn as dashed guides. Whiskers use actual unflagged observations 2 and 4; 8 is flagged. A common horizontal scale is 50 pixels per millisecond from 1 to 9. Equality to a fence would be retained as unflagged.Type 7 fences and actual whisker observations differData 2,3,3,4,8 ms; explicitly linear type 7 quartileslower fence 1.5upper fence 5.5flagged 8123456789recorded time (ms)Box 3 to 4; median 3 coincides with its left edge. Whiskers 2 and 4.Closed fences include equality; only values strictly beyond them are flagged.
This is a stated descriptive convention. A fence is not necessarily an observation, and a flag does not establish measurement error or authorize deletion.

The phrase middle 50% is a useful rank intuition, not a guarantee that exactly half a finite record lies inside every interpolated box. With 1,2,3,7,9,10, type 7 gives Q₁=9/4 and Q₃=17/2, and only 3 and 7 lie within the closed box interval: 2 of 6 observations. Ties can put many more than half on the boundaries. A box plot also hides multimodality and individual values, so add points, counts or another distribution view when those features matter.

Interpolated quartiles need not enclose half the recordsThe six numerical observations 1,2,3,7,9,10 share 46 pixels per numerical unit. Linear type 7 quartiles are 9/4 and 17/2, so IQR 25/4. The shaded closed interval from 2.25 to 8.5 contains only recorded values 3 and 7: two of six, or 1/3. Interpolated quartiles are not additional records. No inference or confidence interval is supplied.Interpolated quartiles need not enclose half the recordsRecorded values 1,2,3,7,9,10; linear type 71237910Q₁=9/4Q₃=17/2Closed-box membership: 2/6=1/3; IQR=25/4Horizontal location uses the original numerical units.These quartile positions describe the record; they do not imply an interval test.
A quantile convention locates quartile positions. Its interpolated closed box does not promise exactly 50% finite-record membership.
08

Scales and transformations define the comparison

A linear numerical axis assigns a screen position u=αx+β with α>0. Equal numerical differences then receive equal screen distances. Changing the visible range changes α and can make the same difference look large or small. State axis limits, retain units and use shared limits for direct panel comparisons when that is the intended task. A cropped point plot can inspect a small difference, but an unlabeled crop can conceal its size relative to the quantity being studied.

A logarithmic axis instead places positive values according to u=α log(x/x₀)+β for a stated positive reference x₀ and log base. Equal multiplicative ratios have equal distances because log(x₂/x₀)−log(x₁/x₀)=log(x₂/x₁). Values 2,20,200 therefore have equal successive distances on a base-10 scale. A log axis emphasizes ratios rather than equal additive differences. Label the original positive values at ticks and explain the transformation.

Zero and negative values do not have real logarithms on this axis. They cannot be silently dropped or displayed at an arbitrary nearby positive tick. A declared alternative transformation or a separate display may be appropriate; each changes the interpretation and needs its own domain and rule. Ratios also need a meaningful zero in the original quantity. The numerical ratio of Celsius temperatures does not acquire physical meaning merely because a logarithmic picture can be drawn for a positive subset.

The visual angle of a line depends on both axis scales and the panel aspect ratio. A steep-looking trend is not a unit-free numerical growth rate. In physical data, slope means change in the vertical quantity divided by change in the horizontal quantity, with its resulting units. Two unrelated vertical scales in a dual-axis chart can be adjusted to make curves appear to track each other. Prefer aligned separate panels or a justified common transformation when a shared visual trend would otherwise invite a false comparison.

Equal log distances represent equal positive ratiosOriginal values 2,20,200 units lie 180 pixels apart on a base 10 logarithmic horizontal axis: log10(x/1unit) is approximately 0.30103,1.30103,2.30103. Each step represents multiplication by 10, while additive changes are 18 and 180 units. The marks are points, not bars. Zero and negative values have no coordinate on this ordinary real log scale.Equal log distances represent equal positive ratiosCoordinate log₁₀(x /1unit); original values printed2 units≈0.3010320 units≈1.30103200 units≈2.30103×10×10Equal coordinate steps 1; unequal value changes 18 and 180Coordinates shown are explicit rounded logarithmic approximations.Ordinary real log axes require positive values; zero is unavailable here.
Retain the original values and declare the log base and positive reference. A log display does not silently replace zero, preserve additive gaps or identify a causal process.
09

Area, colour and volume need their own rules

When an area represents a nonnegative value v, the area must be proportional to v. For a circular mark A=πr², so A=kv with k>0 requires r=√(kv/π). The radius is proportional to √v, not to v. If one value is four times another, an area encoding should double the radius and quadruple the area. Using four times the radius instead makes sixteen times the area, exaggerating the intended ratio.

To encode value by circle area, take a square-root radiusValues 10 and 40 units have ratio 4. In the upper correct area row, radius 20 drawing pixels for 10 and 40 pixels for 40 gives circle area ratio 4 and radius ratio 2. In the lower deliberately wrong direct-radius row, radii 20 and 80 give area ratio 16. Circles are centred at 160 and 400 in both rows; positions are schematic, not a measured data axis. The drawing radius scale is 20 pixels for the reference value 10.To encode value by circle area, take a square-root radiusCorrect: area ratio 4; radius ratio 2value 10; radius 20 pxvalue 40; radius 40 pxWrong direct-radius encoding: area ratio 16value 10; radius 20 pxvalue 40; radius 80 pxCircle centres are schematic; only area/radius has an encoding role.
Circle area is πr². Keep area proportional to value with r proportional to√value; using the value directly as radius squares the intended ratio.

The same issue appears when a three-dimensional symbol encodes a value by its volume. Similar shapes have volume proportional to the cube of their linear scale, so their linear dimensions must scale with the cube root of the value. Perspective, occlusion and decorative depth can make the encoding even harder to read. Choose a simpler position or length encoding when precise numerical comparison matters more than a pictorial effect. A legend should show the quantity represented, rather than leaving the reader to guess whether radius, area or volume carries the number.

Colour has different roles. Distinct categories need distinguishable colours without implying an unsupported numerical order. A sequential colour scale can represent an ordered magnitude; a diverging scale can emphasize deviations around a meaningful reference. The reference, limits and units belong in the legend. Equal steps in a numeric colour map do not ensure equal perceived steps, and a rainbow-like palette can create apparent boundaries unrelated to the measurements. Colour is therefore an encoding to justify, not an independent confirmation of a pattern.

Use labels, positions, patterns or shapes as well as colour so the interpretation survives common differences in colour vision and monochrome printing. Keep text legible against its background and avoid making a critical distinction depend on a tiny or faint mark. Missing observations need a distinct documented treatment: assigning them the colour of a numerical zero converts absence of information into a numerical claim. A colour legend and a table of values make the transformation more inspectable.

10

A scatter plot must preserve observational pairing

A scatter plot places one mark at (xᵢ,yᵢ) for each paired observational unit. The horizontal and vertical coordinates must come from the same unit under the stated collection rule. A plot can reveal nonlinear association, clusters, changing spread and isolated points that a single summary misses. Label both units, distinguish groups when relevant and retain sample size or multiplicity when several observations occupy the same screen position.

Pairing contains information that the two separate distributions do not. Observations x=1,2,3 paired with y=1,2,3 form an increasing diagonal. Pair the same x values with y=3,2,1 and the pattern decreases instead. The marginal lists and their means are unchanged. Sorting each column independently before plotting would therefore destroy the observed joint relationship and replace it with an artificial pairing. Record which row or unit joins the two quantities.

Association is a pattern in a joint record or distribution, while a causal claim concerns what would change under a specified intervention. A third variable, selection, reverse influence or a common time trend can produce association without the claimed causal direction. A graph can motivate a scientific question but does not itself rule out those explanations. The data-quality and question-design lessons develop the collection and design issues that a picture alone cannot settle.

Overlapping marks can conceal frequency. Appropriate transparency, small multiples, declared jitter or binned counts can help, but each needs an explanation. Jitter changes displayed coordinates and must not be mistaken for additional measurement precision; keep the exact values available. A line fitted through points is another summary with assumptions and limits, not a substitute for the observed spread. Avoid extrapolating a visual relationship far beyond the observed range without a justified model.

A scatter plot preserves pairs; association is not causationFour exact paired observations are (1 hour,2 score units),(2,4),(3,6),(4,8). The horizontal axis uses 100 pixels per hour; the vertical uses 25 pixels per score unit. Points rise together in this finite record. There is no intervention, randomized assignment, population sampling model or causal identification in the example; the points alone do not identify why they rise.A scatter plot preserves pairs; association is not causationEach dot is one paired observation0246801234observed time (hours)score (units)No fitted line, confidence band or hypothesis test is implied.Pairing is retained; reversing one column would change the observations.
Keep the paired rows, both units and the observation context. A visible association does not establish a direction or mechanism of cause.
11

A time plot must preserve intervals and missingness

Time series use temporal order and elapsed intervals. On a linear time axis, the distance from day 1 to day 2 should be one tenth the distance from day 2 to day 12. Placing these dates at equally spaced category positions can make an unequal-rate process look regular. If the question concerns a rate of change, calculate Δy/Δt using the actual elapsed time and state its units rather than reading a line angle as the rate.

Joining observed values with line segments indicates a visual interpolation between those observations. It does not establish that every intermediate value was measured or that the process followed a straight line. With observations 10 units on day 1, 12 on day 2 and 14 on day 12, the successive average changes are 2 units per day and 1/5 unit per day. Equal vertical changes have very different time rates. A caption should distinguish observed points from an interpolating or modelled line.

An unobserved value is not automatically zero. If a sensor failed on day 3, drawing a point at zero invents a reading; joining across the gap without qualification may conceal the loss. A visible gap, an annotation or a separately styled interpolation can retain the distinction. For irregularly observed data, also distinguish a scheduled-but-missing record from an interval during which no observation was scheduled. The meaning depends on the collection process, not just the empty cell.

Comparisons across time need stable definitions and relevant exposure. A rise in recorded cases can reflect more observations, a changed reporting rule or longer operating time as well as a change in the underlying rate. A cumulative total is expected to be nondecreasing when increments are nonnegative; that shape does not imply an accelerating incidence rate. Retain period lengths, counts and denominators, and annotate known definition or instrument changes instead of letting one continuous line imply a single unchanged measurement process.

Actual time spacing and missing observations stay visibleMeasurements at days 0,1,4,5 are 2,3,missing,5 litres. The horizontal scale uses 80 pixels per day, so the three-day gap 1 to 4 is three times the one-day gap 0 to 1. The vertical scale uses 40 pixels per litre from zero. Only consecutive observed rows 0 to 1 are connected. Day 4 is labelled missing below the measured-value axis; it is not a zero measurement. There is no line bridging the missing row to day 5.Actual time spacing and missing observations stay visibleMeasured volume (L); actual elapsed time in days0123450145day 4: missingelapsed time (days)There is no measured point at (4,0) and no line across the missing row.The short 0-to-1 segment is a display interpolation between those observations.
Missing is a record status. Equal spacing by row index or insertion of a zero would change the display’s meaning; interpolation requires an explicit choice.
12

Aggregation changes weights and can reverse comparisons

A combined fraction is a weighted average of the group fractions when the numerators and denominators have compatible definitions. If group g has successes s_g among n_g>0 cases, the combined fraction is Σs_g/Σn_g=Σw_g(s_g/n_g), with weights w_g=n_g/Σn_g. Averaging the displayed percentages equally would use different weights. This identity is descriptive arithmetic; it does not establish that the groups are comparable for a causal question.

Consider two methods evaluated on easy and hard tasks. Method A succeeds on 9 of 10 easy tasks and 1 of 10 hard tasks. Method B succeeds on 19 of 20 easy tasks and 18 of 100 hard tasks. B has the higher recorded success fraction in each group: 19/20>9/10 and 18/100>1/10. Overall, A has 10/20=1/2 while B has 37/120, which is less than 1/2. Both the within-group and combined calculations can be correct.

The reversal occurs because the methods have different group compositions. A gives easy tasks weight 1/2, while B gives them weight 1/6. B is evaluated much more heavily on the group with lower success fractions. A grouped chart, counts and a table of weights reveal what a single overall bar conceals. Reporting only the favourable aggregate or only the favourable stratification can both hide the actual comparison being made.

A common-weight comparison can answer a defined standardization question: with half easy and half hard tasks, the weighted recorded fractions would be 1/2 for A and (19/20+18/100)/2=113/200 for B. These are summaries under chosen common weights, not automatically intervention effects. Choosing which variables to condition on requires substantive design knowledge; adjustment can introduce bias as well as remove it. State the target composition, preserve original counts and resist declaring one picture the universally correct answer to every question.

Changing composition can reverse the pooled comparisonAll horizontal bars use 400 pixels per unit success fraction from zero. Easy stratum: A 9/10, B 19/20. Hard stratum: A 1/10, B 18/100. Thus B has the higher rate within both strata. Pooled: A 10/20=1/2, B 37/120, so A has the higher overall rate. A weights Easy and Hard 1/2 each, while B weights them 1/6 and 5/6. This hypothetical association and composition example identifies no treatment or causal effect.Changing composition can reverse the pooled comparisonEasyA9/10B19/20HardA1/10B18/100PooledA10/20B37/12000.250.50.751success proportion (dimensionless)A composition: (1/2,1/2). B composition: (1/6,5/6). No causal claim.
The aggregate target uses each group’s own denominator and stratum weights. A within-stratum comparison and a pooled comparison answer different weighted questions.
13

Label what an interval actually represents

A vertical interval can represent spread among observations, uncertainty in an estimated mean, a model prediction range or another defined quantity. Its appearance does not identify its meaning. A label such as error bars is incomplete. State the centre, interval construction, level when applicable, units, sample size and assumptions. The standard deviation s describes spread in the recorded sample, whereas a standard error concerns variation of an estimator across a stated repeated-sampling model.

For independent identically distributed observations with finite variance σ², Var(X̄)=σ²/n. Replacing σ by sample standard deviation s gives the familiar estimated standard error s/√n under that sampling framework. For n=25 and s=10 milliseconds, the estimated standard error is 2 milliseconds, although the sample spread remains 10 milliseconds. Repeated readings on the same correlated device need not provide the same effective information as independent readings; the formula cannot be justified by count alone.

A frequentist 95% confidence interval is produced by a method with specified repeated-sampling coverage under its assumptions. The target parameter is fixed in that model; before sampling, the interval endpoints are random. A 95% coverage statement means the method covers the parameter in 95% of repetitions in its stated setting, exactly or approximately as justified. It does not assign a 95% posterior probability to the parameter being inside one realised fixed interval without an additional Bayesian model and interpretation.

Even the same centre and standard error do not uniquely specify an interval. A multiplier near 2 is a particular normal-approximation choice, while an exact normal-sample mean interval with estimated variance uses a t multiplier and its assumptions. A prediction interval for a future observation also includes individual variability and usually differs from an interval for the mean. Graphical comparison should preserve these definitions rather than relabel all displayed ranges as interchangeable uncertainty.

The error-bar label is part of the statistical statementAll rows share 20 pixels per numerical unit from 0 to 20. The illustrative mean estimate is 10. Independent identically distributed normal observations are stipulated, with known individual population SD 10 and n=25. A ±1 SD span is 0 to 20; a±1SE span is 8 to 12 because SE=10/√25=2. The normal known-variance CI uses rounded multiplier 1.96, with half-width 98/25 and endpoints 152/25 and 348/25, approximately 6.08 and 13.92. Its repeated-sampling method coverage is approximately 95% under the stated model. SD and SE spans are not labelled 95%; overlap alone is not a test.The error-bar label is part of the statistical statementKnown σ=10 units; n=25; illustrative mean estimate 10Individual SD 10: spread of single observations±10 unitsMean SE 2: SD of the mean estimator±2 unitsApprox. 95% normal-method CI: known σ, rounded 1.96±98/25 units05101520common value axis (units)No label → no assigned SD/SE/CI meaning. Overlap is not a formal test.
These three quantities describe different targets. The CI’s coverage statement belongs to its declared sampling method; interval overlap alone does not test a difference.
14

Interval overlap is not a universal comparison test

Two intervals can be useful visual summaries without providing a complete rule for comparing the quantities. The uncertainty of a difference depends on the two variances and their covariance: Var(A−B)=Var(A)+Var(B)−2Cov(A,B), when these quantities exist. Separate marginal intervals generally do not show that covariance. A paired design can make the uncertainty of a difference quite different from what two standalone error bars suggest.

For illustration, suppose two independent estimators are approximately normal and each has a known standard error of 1 unit. Their approximate marginal 95% normal intervals have half-width 1.96. If their estimates differ by 3 units, those intervals overlap because 3<3.92. Yet the approximate standard error of their difference is √2, and 3>1.96√2. The corresponding approximate 95% normal interval for the difference excludes zero. This is a demonstration of a stated model, not a general invitation to infer tests from overlap.

Changing the interval type, level, dependence, target or inferential procedure changes that comparison. Multiple selected comparisons and repeated peeking create further questions that a graphic alone cannot settle. Prefer an interval or analysis directly for the defined difference when that is the scientific question. When no inferential model has been justified, report the descriptive differences and the collection limits without attaching an invented significance claim.

Uncertainty in measurement, sampling, model choice and data processing can be different sources. A narrow sampling interval may omit systematic calibration error, nonresponse bias or uncertainty about the chosen model. Explain the sources represented and those left outside the calculation. Neither a small error bar nor a large sample repairs an invalid measurement definition or an unrepresentative selection process. This connects the chart to the next lessons on data quality and answerable questions.

15

Make the numerical argument accessible

A reader should be able to identify the question, quantity, unit, population or record, period, denominator and source without reconstructing them from context. Use an informative title and a caption that explains transformations and conventions. Axis labels should name the quantity rather than merely repeat x and y. Direct labels can reduce the memory burden of repeatedly matching a mark to a distant legend, especially when several categories share a panel.

Do not make colour the sole carrier of an essential distinction. Combine it with labels, line patterns, shapes or separated positions, using a consistent key. Text and marks need sufficient contrast at their intended display size. A colour scale should retain a meaningful order when one is intended and should not hide missing values or imply sharp boundaries that the data do not define. Accessibility supports scientific checking because more readers can identify exactly what each mark claims.

Provide a useful text description and a structured table where feasible. A description should explain the relevant pattern and limitations, rather than merely say chart of data. The table supplies precise values and denominators that a graphic may only approximate. A scrollable wide table should retain column headings, while a small-screen graphic should keep labels and units readable or offer a clear larger view. Shrinking all text until it fits is not a mathematical solution to limited screen width.

Interactive controls should expose their current selection, have meaningful names, work from the keyboard and leave the underlying quantity inspectable. Changing a case should update its table, units and explanation together. Retain a useful initial state and a clear reset. An animation or hover-only label can supplement a chart but should not be the only way to learn an essential value or assumption. A reproducible static view remains valuable when an interaction cannot be used.

16

Treat the display as a reproducible scientific argument

A reproducible chart has a traceable path from source records to plotted marks. Preserve the source and version, observational units, inclusion rules, missing-value handling, transformations, bin boundaries, quantile convention, weights and axis specifications. If a table is rounded for display, calculate from the retained unrounded quantities when appropriate and state the rounding. Distinguish measured values, interpolated values and modelled estimates in both the data and the caption.

Inspect several layers of correctness. The arithmetic may be right while the denominator answers the wrong question; the table may be right while the chart encodes radius instead of area; the marks may be right while the title makes an unsupported causal claim. Check the question and design, the calculations, the mapping into geometry and the written interpretation. These checks complement one another. A computer rendering without errors is evidence of successful rendering, not a scientific review.

Visual exploration can suggest relationships, anomalies and new questions. Keep that role distinct from a later confirmatory claim based on a planned analysis. Preserve alternate plausible bin choices, transformations or groupings when they materially affect the conclusion. If a result is sensitive to one reasonable choice, explaining that sensitivity teaches more than hiding it behind a polished picture. The aim is a reader who can evaluate the evidence, not a mark arrangement that compels agreement.

The connections extend across science. Histogram area links a discrete count to integration and density units; an empirical cumulative curve links thresholds to inequalities; log scales link ratios to additive distances; paired scatter plots retain a joint relation; and aggregation exposes the role of weighted averages. Each connection has assumptions and limits. The next lesson examines how missing, mistaken or selectively collected records affect the evidence before the choice of a chart even begins.

Explore chart choices, scales and assumptions

Choose a finite preset. Exact table values, named denominators, unavailable cases and scientific qualifications remain visible. Logarithms, square roots and drawing positions are marked numerical approximations.

1. Name the count and its denominator

Counts start at zero; proportions name their denominatorCategory counts and proportions: [name: Completed · count: 6 · proportion: 3/5; name: Incomplete · count: 4 · proportion: 2/5]. Denominator: all ten eligible records. All bar lengths share a common zero count scale.Counts start at zero; proportions name their denominatorCount (records); common zero baselineCompleted6Proportion: 3/5Incomplete4Proportion: 2/506 recordsEligible denominator: 10 records
Categories encode named outcomes. Count and proportion remain separately labelled; a displayed subset need not add to one.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Eligible denominator10
Denominator meaningall ten eligible records
Displayed count total10
Displayed categories exhaust the denominatoryes
Eligible records not displayed0
Each named count and proportion[name: Completed · count: 6 · proportion: 3/5; name: Incomplete · count: 4 · proportion: 2/5]
Sum of displayed proportions1

Units: count: records · proportion: dimensionless

Category position has no numerical distance meaning. Count bars start at zero. A proportion explicitly uses the named eligible-record denominator; displayed categories may be only a subset. A zero denominator is unavailable, not a zero proportion.

2. Give unequal bins their actual widths

Histogram density preserves area with unequal bin widthsExact selected bins: [lower: 0 · upper: 2 · rightEndpointIncluded: no · width: 2 · count: 2 · proportion: 1/4 · density: 1/8 · area: 1/4; lower: 2 · upper: 6 · rightEndpointIncluded: no · width: 4 · count: 4 · proportion: 1/2 · density: 1/8 · area: 1/2; lower: 6 · upper: 10 · rightEndpointIncluded: yes · width: 4 · count: 2 · proportion: 1/4 · density: 1/16 · area: 1/4]. Each rectangle has its actual numerical width; its area equals the stated fraction. Each bin is [lower,upper), except the final bin includes its right endpoint.Histogram density preserves area with unequal bin widthsDensity (1/s)0≈ 0.0625≈ 0.1251/821/841/16202610Recorded quantity (s)Numbers inside rectangles are counts; heights are densities.
Coordinate positions are numerical plotting approximations. Exact boundaries, densities, areas and endpoint membership remain in the table.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Recorded observations[0; 1; 2; 3; 4; 5; 8; 9]
Record count n8
Bin boundaries[0; 2; 6; 10]
Strictly increasing boundariesyes
Count covered by declared bins8
Endpoint conventionEach bin is [lower,upper), except the final bin includes its right endpoint.
Density definitioncount / (n × bin width)
Each exact count, width, density and area[lower: 0 · upper: 2 · rightEndpointIncluded: no · width: 2 · count: 2 · proportion: 1/4 · density: 1/8 · area: 1/4; lower: 2 · upper: 6 · rightEndpointIncluded: no · width: 4 · count: 4 · proportion: 1/2 · density: 1/8 · area: 1/2; lower: 6 · upper: 10 · rightEndpointIncluded: yes · width: 4 · count: 2 · proportion: 1/4 · density: 1/16 · area: 1/4]
Total rectangle area1

Units: horizontal: s · density: 1/s · area: dimensionless proportion

Numerical bin widths occupy their actual horizontal widths. Density is count/(n×width), and rectangle area equals the record fraction in that bin. Raw count height in unequal-width bins would not preserve that area interpretation. Endpoint membership is explicit; no record is silently dropped or counted twice.

3. Retain ties and right-continuous steps

ECDF ties retain their right-continuous cumulative weightSelected exact ECDF jumps: [threshold: 2 · multiplicity: 1 · leftFraction: 0 · rightFraction: 1/5; threshold: 3 · multiplicity: 2 · leftFraction: 1/5 · rightFraction: 3/5; threshold: 4 · multiplicity: 1 · leftFraction: 3/5 · rightFraction: 4/5; threshold: 8 · multiplicity: 1 · leftFraction: 4/5 · rightFraction: 1]. A filled right value is included at its threshold; the hollow lower value is excluded.ECDF ties retain their right-continuous cumulative weightFₙ(t), dimensionless cumulative fraction00.512348Threshold (ms)Filled endpoint: count(xᵢ≤t)/n; hollow endpoint: count(xᵢ<t)/n.
Both tied observations contribute. Horizontal positions use the recorded threshold scale; vertical position is a cumulative fraction, not a density.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Sorted records[2; 3; 3; 4; 8]
Record count5
DefinitionF_n(t) = count(x_i ≤ t) / n
Right-continuous conventionyes
Threshold, multiplicity, excluded left and included right fraction[threshold: 2 · multiplicity: 1 · leftFraction: 0 · rightFraction: 1/5; threshold: 3 · multiplicity: 2 · leftFraction: 1/5 · rightFraction: 3/5; threshold: 4 · multiplicity: 1 · leftFraction: 3/5 · rightFraction: 4/5; threshold: 8 · multiplicity: 1 · leftFraction: 4/5 · rightFraction: 1]
Exact threshold queries[threshold: 1 · cumulativeCount: 0 · fraction: 0; threshold: 2 · cumulativeCount: 1 · fraction: 1/5; threshold: 3 · cumulativeCount: 3 · fraction: 3/5; threshold: 7 · cumulativeCount: 4 · fraction: 4/5; threshold: 8 · cumulativeCount: 5 · fraction: 1; threshold: 9 · cumulativeCount: 5 · fraction: 1]

Units: threshold: ms · cumulativeFraction: dimensionless

Each observation contributes 1/n; a tie of multiplicity k makes one jump of k/n. The filled point at a recorded threshold is the included right-continuous value. Hollow lower endpoints are excluded. An ECDF is a descriptive record distribution, not a fitted population model or confidence band.

4. Declare quartiles, fences and whisker rules

Declared type 7 quartiles, inclusive fences and actual whiskersExact quartiles, fences, whiskers and flagged records: q1: 3 · median: 3 · q3: 4 · lowerFence: 3/2 · upperFence: 11/2 · lowerWhisker: 2 · upperWhisker: 4 · flagged: [8]. Equality to a fence is unflagged.Declared type 7 quartiles, inclusive fences and actual whiskersType 7; fence equality remains unflagged3/211/2≈ 1.5≈ 8Recorded quantity (ms)Actual closed-box fraction: 3/5
Flags are descriptive and do not establish errors. The closed-box record fraction is counted independently of interpolated quartile positions.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Sorted observations[2; 3; 3; 4; 8]
Quantile conventionLinear type 7: h=1+(n−1)p; one-based linear interpolation.
Lower quartile Q₁3
Median3
Upper quartile Q₃4
IQR1
Fence multiplier3/2
Lower fence3/2
Upper fence11/2
Fence equality is unflaggedyes
Lower actual whisker2
Upper actual whisker4
Flagged recorded values[8]
Unflagged recorded values[2; 3; 3; 4]
Records inside the closed quartile box3
Actual closed-box record fraction3/5

Units: locations: ms · iqr: ms · recordFraction: dimensionless

This explicitly uses linear type7 quartiles, not a software package’s unspecified hinges. Whiskers end at extreme recorded values inside the inclusive fences; the fences themselves need not be observations. Equality to a fence is unflagged. A flagged observation is not established as an error. Interpolated quartile positions need not enclose exactly half the finite observations.

5. Distinguish bar length from point position

Correct zero bars, misleading cropped bars and a point cropValues [90; 100], zero-bar ratio 10/9, cropped baseline 80, deliberately misleading cropped length ratio 2. The separately labelled points encode positions, not lengths.Correct zero bars, misleading cropped bars and a point cropCorrect bars; baseline 0; upper scale 100 units90100True value ratio: 10/9Misleading crop 80; apparent lengths1020Separate point crop: 80 to 100 units90100Vertical offsets are schematic; horizontal positions encode values.
Different panels state their own scales. A cropped point axis is legitimate when labelled; the cropped bars deliberately show the ratio error.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Original values[90; 100]
Correct zero baseline0
Correct bar lengths[90; 100]
Deliberately cropped baseline80
Cropped apparent bar lengths[10; 20]
True second/first value ratio10/9
Misleading cropped second/first length ratio2
Length-ratio distortion factor9/5
A labelled point crop encodes position onlyyes

Units: values: units · baselines: units · ratios: dimensionless

A nonnegative bar’s length is measured from zero. Removing 80 from 90 and100 changes lengths to10 and20 and their ratio to2, whereas the values have ratio10/9. The deliberately misleading cropped bars are labelled as such. A clearly labelled cropped point axis may legitimately emphasize differences because its marks encode position, not bar length. No ratio to zero is supplied.

6. Interpret positive ratios on a log axis

Original positive values on a declared logarithmic axisOriginal values [2; 20; 200]; base 10; reference 1. Exact adjacent ratios [10; 10]. Log coordinates are declared numerical approximations.Original positive values on a declared logarithmic axislog base 10 of x/reference; reference 1 units2≈ 0.3010320≈ 1.301200≈ 2.301Original values above; approximate log coordinates below.Adjacent exact ratios: [10; 10]
Equal log-coordinate distances represent equal multiplicative ratios. The argument x/reference is dimensionless; no zero replacement or additive-gap claim is made.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Original recorded values[2; 20; 200]
Declared logarithm base10
Reference with the same original units1
Dimensionless log arguments[2; 20; 200]
Exact adjacent value ratios[10; 10]
Equal adjacent ratiosyes
Log coordinates (numerical approximations)[≈ 0.30103; ≈ 1.30103; ≈ 2.30103]
Log-coordinate differences (numerical approximations)[≈ 1; ≈ 1]

Units: originalValues: units · reference: units · logArgument: dimensionless x/reference · logCoordinate: dimensionless

The plotted coordinate is log_base(x/reference); original positive values remain printed. Equal log-coordinate differences represent equal multiplicative ratios, not equal additive changes. Logarithms and their plotted coordinates are explicitly numerical approximations. Zero and negative values are unavailable on this ordinary real log axis; no arbitrary positive replacement is inserted.

7. Encode area with a square-root radius

Correct area encoding and the direct-radius distortionExact selected values [10; 40]. Correct area ratio 4; correct radius ratio √(4) (≈ 2); wrong direct area ratio 16. Drawing radii are numerical approximations to the stated exact squared radii.Correct area encoding and the direct-radius distortionCorrect: radius ∝ √value; labelled drawing radius (px)value 10value 40Wrong: radius directly proportional to valuevalue 10value 40Correct area ratio 4; wrong area ratio 16
Circle centres are schematic. Correct areas are proportional to values; the lower direct-radius comparison deliberately demonstrates a distorted area ratio.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Original values[10; 40]
Reference value10
Reference drawing radius (px)20
Exact squared radii, labelled radical radii and wrong direct-radius comparison[value: 10 · relativeValue: 1 · correctRadiusSquared: 400 · correctRadius: √(400) (≈ 20) · correctAreaDividedByPi: 400 · wrongDirectRadius: 20 · wrongAreaDividedByPi: 400; value: 40 · relativeValue: 4 · correctRadiusSquared: 1600 · correctRadius: √(1600) (≈ 40) · correctAreaDividedByPi: 1600 · wrongDirectRadius: 80 · wrongAreaDividedByPi: 6400]
Second/first value ratio4
Correct second/first area ratio4
Correct second/first radius ratio√(4) (≈ 2)
Wrong direct second/first radius ratio4
Wrong direct second/first area ratio16

Units: value: units · radius: drawing pixels (a display scale, not a data unit) · area: drawing pixels²; π cancels from area ratios · ratios: dimensionless

To make circle area proportional to a nonnegative value v, radius must be proportional to √v. Exact squared radii and area ratios are retained; radical radii and drawing coordinates are marked approximations. Directly scaling radius by v squares the intended value ratio in the areas. A zero value has zero area, but a ratio with zero in its denominator is unavailable.

8. Preserve paired observations without a causal claim

One paired observation per point; no causal identificationPaired exact coordinates [x: 1 · y: 2; x: 2 · y: 4; x: 3 · y: 6; x: 4 · y: 8]. The axes retain their declared units. No causal effect is identified.One paired observation per point; no causal identificationVertical: score units0408Horizontal: hoursCorrelation defined: yes; causal effect identified: no.
The data table retains pairing. Constant-coordinate correlation is unavailable, and zero centred cross-sum does not establish independence or absence of pattern.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Paired observations[x: 1 · y: 2; x: 2 · y: 4; x: 3 · y: 6; x: 4 · y: 8]
Count4
Horizontal mean5/2
Vertical mean5
Centred horizontal sum of squares5
Centred vertical sum of squares20
Centred cross-sum10
Empirical covariance5/2
Correlation is definedyes
Squared correlation (exact)1
Correlation (labelled numerical approximation)1
Causal effect identifiedno
Population sampling model suppliedno

Units: horizontal: hours · vertical: score units · covariance: hours × score units · correlation: dimensionless

Each dot preserves one x,y pairing and its axis units. The finite-record centred cross-sum describes linear association; zero linear association need not mean no pattern. A constant coordinate makes correlation unavailable. No randomized intervention, causal identification, regression test or population sampling model is supplied.

9. Use elapsed time and preserve missing values

Actual elapsed time; gaps remain missingTimed exact record [time: 0 · value: 2 · missing: no; time: 1 · value: 3 · missing: no; time: 4 · value: Unavailable under the stated input, count or model conditions. · missing: yes; time: 5 · value: 5 · missing: no]. Only consecutive observed rows are connected: [fromTime: 0 · toTime: 1 · fromValue: 2 · toValue: 3 · elapsed: 1 · slope: 1]. Missing labels sit outside the measured-value axis and are not zero-valued observations.Actual elapsed time; gaps remain missingMeasured value (L)01missing4505Elapsed time (days)Missing status is outside the measured-value axis.
Horizontal positions use actual elapsed time. Connecting segments explicitly interpolate between adjacent observed rows; no bridge crosses a missing measurement.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Timed records and missing status[time: 0 · value: 2 · missing: no; time: 1 · value: 3 · missing: no; time: 4 · value: Unavailable under the stated input, count or model conditions. · missing: yes; time: 5 · value: 5 · missing: no]
Strictly increasing timesyes
Observed measurements3
Missing measurements1
Actual consecutive elapsed times[1; 3; 1]
Only adjacent observed segments and exact slopes[fromTime: 0 · toTime: 1 · fromValue: 2 · toValue: 3 · elapsed: 1 · slope: 1]
Bridge across missing measurementsno
Missing means zerono
Observation index is elapsed timeno

Units: horizontal: days · vertical: L · slope: L/days

Horizontal position uses actual elapsed time, not equal spacing by row index. Missing measurements are shown as missing outside the measured-value axis and are never replaced by zero. Only consecutive observed rows are connected; no line bridges a missing row. A connecting segment is an explicit visual interpolation, not an additional measurement or a demonstrated continuous trajectory.

10. Inspect the composition behind an aggregate rate

Stratum and pooled rates use their declared denominatorsSelected group A successes: 10 · count: 20 · overallRate: 1/2 · strata: [name: Easy · successes: 9 · count: 10 · rate: 9/10 · compositionWeight: 1/2; name: Hard · successes: 1 · count: 10 · rate: 1/10 · compositionWeight: 1/2] · equalStratumStandardizedRate: 1/2. Selected group B successes: 37 · count: 120 · overallRate: 37/120 · strata: [name: Easy · successes: 19 · count: 20 · rate: 19/20 · compositionWeight: 1/6; name: Hard · successes: 18 · count: 100 · rate: 9/50 · compositionWeight: 5/6] · equalStratumStandardizedRate: 113/200. Each displayed rate uses its own labelled denominator; causal identification is not supplied.Stratum and pooled rates use their declared denominatorsEasyA9/10B19/20HardA1/10B9/50PooledA1/2B37/12000.51Success proportion (dimensionless)Composition reversal: yes; causal effect identified: no.
Bar lengths share zero and one success-proportion scale. A zero stratum denominator stays unavailable; it is not drawn as a zero-rate bar.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Group A counts, rates and compositionsuccesses: 10 · count: 20 · overallRate: 1/2 · strata: [name: Easy · successes: 9 · count: 10 · rate: 9/10 · compositionWeight: 1/2; name: Hard · successes: 1 · count: 10 · rate: 1/10 · compositionWeight: 1/2] · equalStratumStandardizedRate: 1/2
Group B counts, rates and compositionsuccesses: 37 · count: 120 · overallRate: 37/120 · strata: [name: Easy · successes: 19 · count: 20 · rate: 19/20 · compositionWeight: 1/6; name: Hard · successes: 18 · count: 100 · rate: 9/50 · compositionWeight: 5/6] · equalStratumStandardizedRate: 113/200
B higher in each corresponding stratum[yes; yes]
All stratum rates are availableyes
B strictly higher in all stratayes
A higher overallyes
This composition reversal occursyes
Separate equal-stratum standardization weights[1/2; 1/2]
Causal effect identifiedno

Units: count: records · rate: successes/eligible records, dimensionless · composition: stratum records/group records, dimensionless

Pooled rates weight stratum rates by each group’s own record composition. In the reversal preset B has the higher rate in both strata but A has the higher pooled rate because composition differs. Equal-stratum standardization is a different declared target, not an automatic causal adjustment. A zero stratum denominator gives an unavailable rate, not zero success probability. No treatment assignment or causal effect is identified.

11. Read the error-bar label and its assumptions

Read the stated SD, SE or CI meaning before comparisonSelected kind SD, estimate 10, exact interval endpoints 0 and 20. Model: Independent identically distributed normal observations; known individual population SD10 units; n=25; the mean estimate10 is illustrative.. The displayed ±1 SD span concerns individual-value spread in the stipulated model. It is not a confidence interval for the mean and makes no distribution-free percentage statement.Read the stated SD, SE or CI meaning before comparisonSelected meaning: SDKnown individual SD 10; n=25; mean SE 2020estimate 1005101520Common value axis (units)Half-width: 10 units; overlap is not a test.
The common illustrative axis runs from 0 to 20 units for these supplied cases. An overlap pattern is not a hypothesis test; confidence wording belongs only to the declared CI method.
Exact values and declared conditions for the selected chart example
Quantity or conditionResult
Illustrative mean estimate10
Stated modelIndependent identically distributed normal observations; known individual population SD10 units; n=25; the mean estimate10 is illustrative.
Sample size25
Known individual population SD10
Mean-estimator SE under the stated model2
Declared span meaningSD
Displayed half-width10
Lower endpoint0
Upper endpoint20
CI critical multiplier (CI only)Not assigned to this span meaning.
CI critical value is roundedno
Confidence label (CI only)Not assigned to this span meaning.
Method-coverage interpretation (CI only)Not assigned to this span meaning.
Interval overlap is a hypothesis testno

Units: estimate: units · individualSD: units · standardError: units · intervalEndpoints: units

The displayed ±1 SD span concerns individual-value spread in the stipulated model. It is not a confidence interval for the mean and makes no distribution-free percentage statement.

Worked examples

Two percentages from the same six successes

A team completes 6 tasks. It attempted 10 of the 12 assigned tasks. Construct a table that distinguishes completion among attempts from completion among assignments.

  1. Keep the three counts separate: assigned 12, attempted 10, completed 6. Here completion implies an attempt, so the table reconciles to 4 attempted but incomplete and 2 not attempted.
  2. For completion among attempts, use denominator 10: 6/10=3/5=60%.
  3. For completion among assignments, use denominator 12: 6/12=1/2=50%.
  4. Label the question answered by each fraction. A bar titled completion rate without its denominator would leave two defensible quantities indistinguishable.

The team completed 60% of attempted tasks and 50% of assigned tasks. The difference comes from the denominator, not from a change in the six completions.

Recover frequency from histogram area

Eight observations in seconds are 0,1,2,3,4,5,8,9. Use bins [0,2),[2,6),[6,10]. Find counts, relative-frequency density heights and areas.

  1. The first bin contains 0 and 1; the second contains 2,3,4,5; the last contains 8 and 9. Counts are 2,4,2, and the total is n=8.
  2. The respective widths are 2,4,4 seconds. Divide each count by n times its width: 2/(8×2)=1/8, 4/(8×4)=1/8, and 2/(8×4)=1/16 per second.
  3. Multiply height by width to recover each rectangle area: 1/4,1/2,1/4. These areas sum to 1 and match the relative frequencies.
  4. The first two heights agree although the middle bin contains twice as many observations. Its doubled width supplies the doubled area. Height is density, not the bin fraction.

Density heights are 1/8,1/8,1/16 per second and areas are 1/4,1/2,1/4. The original record, boundaries and endpoint rule are all retained.

Read a tied cumulative jump

For observations 2,3,3,4,8 milliseconds, find the fractions in (3,4] and [3,4]. Explain how a step plot distinguishes them.

  1. The empirical curve has Fₙ(3)=3/5 and Fₙ(4)=4/5. Its left limit at 3 is Fₙ(3−)=1/5.
  2. The interval (3,4] excludes both observations equal to 3. Its fraction is Fₙ(4)−Fₙ(3)=1/5.
  3. The interval [3,4] includes them, so its fraction is Fₙ(4)−Fₙ(3−)=3/5.
  4. The jump at 3 has size 2/5. A filled point at cumulative level 3/5 shows the inclusive value, and an open point at level 1/5 shows the level just before the jump.

The fractions are 1/5 and 3/5. Inclusion of the lower endpoint changes the answer because the record has ties at that endpoint.

Build one fully specified box plot

Use type 7 quartiles and closed 1.5 IQR fences for 2,3,3,4,8. Identify the median, box, whisker endpoints and flagged values.

  1. For n=5, h=1+4p. At p=1/4 the rank is 2 and at p=3/4 it is 4, so Q₁=3 and Q₃=4. The median is the third ordered value, 3.
  2. The IQR is 1. The lower fence is 3−3/2=3/2 and the upper fence is 4+3/2=11/2.
  3. The observed values inside or on those fences are 2,3,3,4. The whiskers end at the smallest and largest of these: 2 and 4.
  4. The observation 8 lies strictly above the upper fence and is marked separately. Retain it in the source record; the rule has flagged it without diagnosing a mistake.

The box spans 3 to 4, the median is 3, the whiskers end at 2 and 4, and 8 is flagged. Fences and whisker endpoints are different quantities.

Why a box need not contain exactly half the records

For 1,2,3,7,9,10, use type 7 quartiles. How many observations lie inside the closed quartile interval?

  1. At p=1/4, h=1+5/4=9/4. Interpolate one quarter of the way from the second to the third observation: Q₁=2+(1/4)(3−2)=9/4.
  2. At p=3/4, h=1+15/4=19/4. Interpolate three quarters of the way from the fourth to the fifth observation: Q₃=7+(3/4)(9−7)=17/2.
  3. The closed interval is [9/4,17/2]. Among the six records, only 3 and 7 lie in it. Neither interpolated endpoint is a new observation.
  4. The count 2/6 does not contradict the chosen quantile definition. Finite interpolation and ties prevent a universal exact-half count interpretation.

The quartiles are 9/4 and 17/2, with IQR 25/4; 2 of 6 recorded values lie in the closed box interval.

Compare magnitudes and compare differences

Two quantities are 90 and 100 units. A bar display begins at 80. Compare its visible-length ratio with the quantity ratio, then propose a suitable display for a small-difference question.

  1. With baseline 80, the visible lengths are 90−80=10 and 100−80=20 units of the plotted scale. Their ratio is 2.
  2. The magnitudes have ratio 100/90=10/9, and their difference is 10 units. The doubled visible length is not their magnitude ratio.
  3. For a bar encoding of total amount, begin both lengths at zero. For an explicit small-difference question, use labelled points on a clearly shown cropped axis.
  4. The point display can make the 10-unit difference easy to inspect while preserving the limits and original values. Its caption should not turn screen separation into an unsupported magnitude ratio.

A cropped bar makes a ratio of 2 from quantities whose ratio is 10/9. A labelled point plot can legitimately focus on the 10-unit difference.

Make area proportional to value

Circular marks represent values 10 and 40. The first radius is 3 millimetres. Find the second radius for an area encoding, and compare it with scaling radius directly by value.

  1. The value ratio is 40/10=4. Proportional areas require the second area to be four times the first.
  2. Since area is πr², the radius ratio must be √4=2. The correct second radius is 6 millimetres.
  3. Scaling radius directly by the value ratio would give 12 millimetres. Its area would be (12/3)²=16 times the first.
  4. Label the legend as value encoded by area and retain values 10 and 40. The drawing is an encoding of those values, not a new physical measurement of circles.

The area-correct radius is 6 millimetres. A 12-millimetre radius would encode an area ratio of 16 instead of the intended 4.

Read equal distances on a logarithmic axis

Positive values are 2,20,200 units. Explain their spacing on a base-10 axis and state what happens to a zero reading.

  1. Use the dimensionless ratio x/x₀ with x₀=2 units. The ratios are 1,10,100.
  2. Their base-10 logarithms are 0,1,2, so the successive screen distances are equal under a linear mapping of those logarithms.
  3. The equal distances encode equal factors of 10. The additive differences, 18 and 180 units, are unequal.
  4. A zero has no real logarithm here. Keep its count and identity available and choose a declared alternative or separate display instead of placing it at a fictitious positive value.

Equal log distances represent ratios of 10, not equal additive changes. Zero is unavailable on this real log axis and must be handled explicitly.

Pairing changes the relationship

Compare paired sets (1,1),(2,2),(3,3) and (1,3),(2,2),(3,1). What information changes and what stays the same?

  1. Both have horizontal marginal list 1,2,3 and vertical marginal list 1,2,3. Both marginal means are 2.
  2. The first set lies on y=x, so its association is increasing. The second lies on y=4−x, so its association is decreasing.
  3. For an optional centred check, the sum Σ(xᵢ−2)(yᵢ−2) is 2 for the first set and −2 for the second. The sign changes because the pairing changes.
  4. The two separate value lists cannot identify the joint relation. Preserve the row pairing and avoid assigning a causal direction from either diagram alone.

The marginal distributions and centres agree, but the paired association reverses. A scatter plot depends on joint records, not just two sorted columns.

Equal changes over unequal intervals

A quantity is 10 on day 1, 12 on day 2 and 14 on day 12. Compute the average rate on each observed interval and describe a faithful time plot.

  1. From day 1 to day 2, the change is 2 units over 1 day, giving 2 units per day.
  2. From day 2 to day 12, the change is again 2 units but over 10 days, giving 1/5 unit per day.
  3. On a linear time axis, the second horizontal gap is ten times the first. Equal category spacing would conceal this interval difference.
  4. Mark the three observed values. Any connecting line is an interpolation; if a scheduled reading is missing, show or annotate that gap rather than invent a zero.

The interval rates are 2 and 1/5 units per day. Their equal vertical changes do not imply equal time rates.

Calculate an aggregation reversal without a contradiction

Method A has easy-task successes 9/10 and hard-task successes 1/10. Method B has 19/20 and 18/100. Compare within-group, overall and equal-composition recorded fractions.

  1. Within easy tasks, 19/20=0.95 exceeds 9/10=0.9. Within hard tasks, 18/100=0.18 exceeds 1/10=0.1. B is higher in each recorded group.
  2. A has total 10 successes among 20 tasks, giving 1/2. B has 37 among 120, giving 37/120. Since 60/120>37/120, A is higher overall.
  3. The easy-task weights are 10/20=1/2 for A and 20/120=1/6 for B. The overall fractions therefore use different compositions.
  4. Under common half-easy, half-hard weights, A gives (9/10+1/10)/2=1/2 and B gives (19/20+18/100)/2=113/200. This answers a declared standardization question and does not by itself identify a causal effect.

B is higher within both groups and under the specified equal composition, while A is higher in the original overall records. The original group counts explain the reversal.

The same sample can have different honest error bars

An independent identically distributed sample has n=25 response times and sample standard deviation 10 milliseconds. What do a one-SD bar and an estimated one-SE bar represent, and does either automatically define a 95% confidence interval?

  1. The sample standard deviation is 10 milliseconds. A bar of one sample SD describes a spread scale among the recorded observations.
  2. Under the stated independent identically distributed finite-variance framework, the estimated standard error of the mean is s/√n=10/5=2 milliseconds.
  3. The one-SE bar concerns an estimator under repeated sampling, not the fraction of observations lying within it. Neither a one-SD bar nor a one-SE bar is automatically a 95% confidence interval.
  4. A confidence interval needs a method, multiplier or construction and assumptions, with its stated coverage interpretation. Correlation, selection bias or an unsuitable model would require further treatment.

One SD is 10 milliseconds and the estimated SE of the mean is 2 milliseconds under the stated sampling framework. Their targets differ, and the interval method must be specified separately.

Try it yourself

  1. Of 50 invited participants, 40 answer a question and 12 answer yes. Give the yes fraction among respondents and among invitees, and say what the missing answers prevent you from claiming.

    Show the answer and reasoning

    The fractions are 12/40=30% of respondents and 12/50=24% of invitees recorded as yes. The true yes fraction among all invitees is not determined.

    Ten invited people did not answer. Their missing responses cannot be classified as no merely to complete a percentage. The observed yes count gives a recorded fraction among invitees, while a claim about all invitees needs assumptions or information about the missing answers.

  2. A survey lets each person select several interests. Category percentages sum to 160%. Is that necessarily an arithmetic mistake?

    Show the answer and reasoning

    No. The categories can overlap, so the sum need not be 100%.

    The identity Σcⱼ=n requires exclusive, exhaustive categories for n observations. Multiple selections count a person in more than one category. Report the denominator and that multiple selections were allowed; do not force the displayed total to 100% by changing the data.

  3. A relative-frequency histogram bin has width 4 seconds and contains 6 of 24 observations. Find its density height and area.

    Show the answer and reasoning

    The height is 1/16 per second and the area is 1/4.

    Use h=c/(n w)=6/(24×4)=1/16 per second. Its area h w=4/16=1/4 is the relative frequency. Reading 1/16 as the fraction in the bin would omit its width.

  4. All observations fall in a single bin of width 1/10 metre. What normalized density height gives total area 1, and is that height invalid because it exceeds 1?

    Show the answer and reasoning

    The height is 10 per metre; it is valid.

    The height is 1 divided by the width. Multiplying 10 per metre by 1/10 metre gives dimensionless area 1. A density value is not itself the probability or relative frequency assigned to a point.

  5. Use bins [0,2),[2,6),[6,10] for values 0,2,6,10. Give the counts and explain why the last bracket matters.

    Show the answer and reasoning

    The counts are 1,1,2. The final closed endpoint includes 10.

    Zero belongs to the first bin, 2 to the second and both 6 and 10 to the last. A single consistent endpoint rule prevents double counting; without the last closed endpoint, 10 would lie outside the stated coverage and would need separate accounting.

  6. For 1,2,2,5, find Fₙ(2), Fₙ(2−) and the jump at 2.

    Show the answer and reasoning

    They are 3/4,1/4 and 1/2.

    Three observations are at most 2, only one is strictly below 2, and two of four equal 2. A right-continuous empirical curve takes the higher value at the jump.

  7. For 2,3,3,4,8, calculate the fraction in [3,8) and distinguish it from the fraction in (3,8].

    Show the answer and reasoning

    The fraction in [3,8) is 3/5; the fraction in (3,8] is 2/5.

    The first interval contains 3,3,4 and excludes 8. The second contains 4,8 and excludes both 3s. Endpoint changes matter at observed values; the record must be checked against the exact inequalities.

  8. A box-plot upper fence is 11/2 and the largest observation inside or on it is 4. Under this lesson’s rule, where does the upper whisker end?

    Show the answer and reasoning

    At 4, not at 11/2.

    The fence is a calculated boundary for the flagging rule. The whisker ends at an actual retained observation meeting that rule. Other drawing conventions exist, which is why the construction must be stated.

  9. An observation lies outside a 1.5 IQR fence. Does the plot justify deleting it?

    Show the answer and reasoning

    No. The flag calls for inspection and context.

    A genuine extreme event, subgroup, long-tailed distribution or recording mistake could each produce such a value. Preserve the record, investigate provenance and measurement, and document any justified correction or exclusion rather than equating the visual flag with an error.

  10. Values 48 and 50 are drawn as bars starting at 46. Compare the visible-length ratio with the actual magnitude ratio.

    Show the answer and reasoning

    The visible-length ratio is 4/2=2; the actual ratio is 50/48=25/24.

    The crop changes the lengths to distances above 46. A zero-baseline bar is appropriate for proportional amounts; a labelled point plot may focus on the two-unit difference without claiming that the magnitudes have doubled.

  11. A circle for value 9 has radius 2 centimetres. What radius encodes value 81 proportionally by area?

    Show the answer and reasoning

    6 centimetres.

    The value ratio is 81/9=9, so the radius ratio is √9=3. The radius becomes 3×2=6 centimetres. Scaling radius by 9 would multiply area by 81 and exaggerate the intended ratio.

  12. On a log axis, 3,30,300 are equally spaced. Are their additive gaps equal, and can −3 be placed on the same real logarithmic axis?

    Show the answer and reasoning

    The gaps are 27 and 270, so they are unequal. −3 has no real logarithm on that axis.

    Equal log distances represent equal multiplicative ratios, here factors of 10. Nonpositive values need explicit alternative handling. Silently dropping a negative value changes the displayed record and hides a domain restriction.

  13. An analyst sorts the temperature column and the energy-use column independently before drawing their scatter plot. What has been lost?

    Show the answer and reasoning

    The original observational pairing and therefore the joint relationship.

    Two marginal lists do not determine which values belong to the same unit or time. Independent sorting can manufacture an apparent increasing relation. Retain row identity and plot only scientifically defined pairs.

  14. Readings are 2 units on day 1, 4 on day 3 and 6 on day 11. Find the two interval rates.

    Show the answer and reasoning

    They are 1 unit per day and 1/4 unit per day.

    The changes are both 2 units, but the elapsed times are 2 and 8 days. An equally spaced category plot would hide that distinction. A linear time axis preserves the actual intervals; connections between points remain declared interpolations.

  15. A sensor has no reading at noon because its power failed. What is wrong with drawing a zero at noon?

    Show the answer and reasoning

    It replaces a missing measurement with an invented numerical reading.

    Keep missingness distinct from an observed zero. Show a gap or annotate an interpolation and retain its status separately from measured values. Whether the instrument could have measured zero does not tell you its unobserved noon value.

  16. Using the methods in the worked reversal example, give the easy-task weight for each method and the overall B fraction. Why is the unweighted average of B’s two group fractions different?

    Show the answer and reasoning

    The easy weights are 1/2 for A and 1/6 for B; B overall is 37/120. Its unweighted group average is 113/200 because it uses half-and-half weights.

    B has 20 easy and 100 hard tasks, so its observed composition gives weights 1/6 and 5/6. A standardized equal-composition summary answers a different stated question. Preserve both the original counts and the chosen comparison weights.

  17. A sample has n=16 and sample SD 8 seconds. Under independent identically distributed finite-variance sampling, what is the estimated SE of its mean? Does the formula remain justified merely because a correlated series also has 16 readings?

    Show the answer and reasoning

    The estimated SE is 8/√16=2 seconds. Count alone does not justify it for a correlated series.

    The variance of a mean includes covariance terms. The familiar s/√n expression uses the stated sampling framework; dependence or a changing process needs another analysis. SD and SE should keep their different target labels.

  18. Two independent approximately normal estimators have known SE 1 and differ by 3 units. Their approximate marginal 95% intervals overlap. Does that force the approximate 95% interval for their difference to include zero?

    Show the answer and reasoning

    No. The difference SE is √2 and 3>1.96√2, so that approximate difference interval excludes zero.

    Marginal half-widths are 1.96 each, so the marginal intervals can overlap for separation 3. A comparison interval uses the variance and covariance of the difference. This conclusion depends on the explicitly stated normal approximation, known SEs and independence; overlap is not a universal test rule.

What to carry forward

  • A chart should preserve the question, observational unit, units, denominator and source of the records.
  • A histogram with unequal widths needs density heights when area is intended to represent frequency.
  • Empirical cumulative curves retain ties and threshold conventions; box plots retain quantile and whisker rules.
  • Bars, points, areas, colour and logarithmic axes encode different mathematical comparisons.
  • Pairing, elapsed time, missing observations and group composition can change the visual conclusion.
  • Spread among observations, estimated standard errors, confidence intervals and predictions have different targets.
  • Interval overlap is not a universal significance rule, and a chart alone does not establish causation.
  • Accessible labels, values, declared conventions and retained source records make the argument checkable.

References

Sources for the concepts and teaching approaches in this article.

  1. R Core3 sources
    1. R Core: HistogramsR CoreReference guidestat.ethz.chRead source
    2. R Core: Empirical cumulative distribution functionR CoreReference guidestat.ethz.chRead source
    3. R Core: Box plot statisticsR CoreReference guidestat.ethz.chRead source
  2. Office for National Statistics3 sources
    1. Office for National Statistics: Axes and gridlinesOffice for National StatisticsReference guideservice-manual.ons.gov.ukRead source
    2. Office for National Statistics: Showing uncertainty in chartsOffice for National StatisticsReference guideservice-manual.ons.gov.ukRead source
    3. Office for National Statistics: Using colours in chartsOffice for National StatisticsReference guideservice-manual.ons.gov.ukRead source