
| Point | Value (°C) |
|---|---|
| Day 3 | 20 |
| Day 4 | 22 |
| Day 5 | 24.667 |
| Day 6 | 24 |
Illustrative calculation, not observations from the linked source. Trailing three-day averages of 18, 20, 22, 24, 28 and 20 degrees Celsius, aligned to the last day in each window. The final window averages 24, 28 and 20 to give 24 degrees Celsius. Rounded.
A temperature logger at the edge of a garden records its sharpest afternoon spike on Friday. The next day is markedly cooler, but a three-day average ending Saturday remains above the level that prompted concern earlier in the week. A garden volunteer describes Friday as the hottest day. Another says conditions were still elevated on Saturday. Neither has to be wrong. The first describes an extreme within a particular observation day. The second summarizes a period containing Friday. The two statements become contradictory only when a chart or article treats them as the same measurement.
This distinction matters in ecological field notes because we rarely want a temperature number in isolation. We want to know whether a short hot period coincided with a pollinator watch, whether a run of warm days bracketed a flowering observation, or whether a site experienced sustained daytime heat. The right statistic depends on the claim. A daily maximum can help describe the high end of a day; a trailing average can describe recent conditions; duration above a threshold can describe persistence at a finer cadence. Each answers a different question, and none makes the other two unnecessary.
The examples in this article are illustrative, not station observations, predictions, or thresholds for the welfare of any species. They show how the window, input variable, date assignment, and reportable event rule affect the result. The practical objective is to produce a figure that another person can reproduce and an interpretation that remains true when the same values are viewed without smoothing.
Identify what the daily value summarizes
Start by naming the quantity in each row. The maximum of a day's recorded air temperatures in degrees Celsius is different from the mean of those readings, the mean of that day's minimum and maximum, or the temperature during one particular watch. If inputs are daily maximum temperatures, an average of three inputs is an average of three maxima. It is not an average of every temperature encountered over those three days, an estimate of the temperature at a particular hour, or a measurement of how long the hottest conditions persisted. This precise noun phrase can be awkward at first, but omitting it is how plausible charts become misleading.
Consider a fictional day with readings at 9 a.m., noon, 3 p.m., and 6 p.m. of 19, 23, 27, and 22 degrees Celsius. The largest sample is 27, and the arithmetic mean of those four samples is 22.75. Neither value proves what happened between the samples or overnight. The four-sample mean favors daytime because the design contains only daytime observations. If a second device sampled every minute across an entire day, it might report a higher sampled maximum even if the two sensors agree during the four shared times. Both the sampling cadence and the period included in the reduction affect what is comparable.
A device can supply a genuine day maximum without returning a time series fine enough to establish when it occurred. An instrument may retain a high-water mark since reset, or a dataset may preserve the maximum while discarding the timestamp of that specific reading. In such a case, the measurement is still useful at its available resolution. The date assigned to the maximum identifies a reporting window, not the hour of the peak. Treat any observation time stored alongside a daily maximum cautiously. Its meaning can be the time at which a daily observation was made or a reporting period ended, not the timestamp of the hottest instant.
The NOAA GHCN-Daily documentation is a practical example of why product-specific definitions matter. It describes the daily fields and distinguishes measurement, quality, and source flags. It also describes an observation-time field where provided. Read the documentation for the format actually exported, preserve the original fields, and verify units before applying a reduction. Do not guess how a product represents a missing reading from the appearance of its numbers, or assume every row date has the same relationship to civil midnight as a local field logger.
Air temperature, surface temperature, and a nearby station's value are not interchangeable even when all use degrees Celsius. A garden may have a thermometer in a shield, an infrared measurement of a leaf surface, or a station report meant to describe a wider area. The term hottest day should be qualified by the quantity and source. The addition of a moving average does not repair a mismatch in instrumentation, exposure, or sampling, and a particularly smooth line should not make two differently measured streams appear equivalent.
Work the three-day windows by hand first
The chart uses six invented daily values, in order: 18, 20, 22, 24, 28, and 20 degrees Celsius. For a concrete interpretation, think of them as six daily maxima from a pretend temperature series. The plotted statistic is an equally weighted trailing mean covering three successive calendar days. Label each result with the final day in its window. This convention lets a reader say exactly which values were available at the endpoint, provided those daily inputs had already been reported.
Day 3 is the earliest complete window. It uses Day 1 through Day 3, so 18 plus 20 plus 22 is 60, and the mean is 20. Day 4 uses 20, 22, and 24. The sum is 66 and the mean is 22. Day 5 uses 22, 24, and 28. The sum is 74 and the mean is 24.666 repeating, shown rounded as 24.667. Day 6 uses 24, 28, and 20. The sum is 72 and the mean is 24. The line's unit remains degrees Celsius. The line is not a NOAA series, and the NOAA source near the chart documents data context, not the invented numbers.
Two observations are easy to see from the arithmetic but easy to miss in a screenshot. First, the last point is 24 even though the latest raw value is 20. Two earlier values remain inside the window. That is the algorithm's intended behavior, not an error in the logger. Second, in this particular toy example both the largest daily value and the largest trailing mean have the Day 5 label. This coincidence is not a general guarantee: a peak in the means can occur on another date, and the label still describes the endpoint of a window. Do not describe Day 5's value of 24.667 as the maximum temperature. The maximum of the six daily inputs is 28.
An independent way to validate the chart is to look at what leaves and enters each window. From Day 3 to Day 4, drop 18 and add 24. The window sum rises by six, so the mean rises by two. From Day 4 to Day 5, drop 20 and add 28. The mean rises by eight thirds. From Day 5 to Day 6, drop 22 and add 20. The mean falls by two thirds. This difference check catches a wrong denominator or an off-by-one date even if the plotted values appear smooth. Keep the raw rows and exact calculation values, rounding only for display unless a protocol explicitly says otherwise.
Leave Days 1 and 2 blank on a chart of complete trailing windows. A calculation using one or two values there might be numerically reasonable for a separate exploratory view, but it is not the same statistic as a complete trailing three-day result. Showing those early partial values as equally comparable points can turn the schedule into a false feature of the line. If an article begins on Day 1 but earlier observations exist, another defensible choice is to obtain the preceding two days under the same rules and use them as warm-up context. State that the first plotted point then includes values before the visible range.
The NIST/SEMATECH Engineering Statistics Handbook has a directly readable section on single moving averages. It provides the underlying equal-weight calculation. The scientific question, calendar convention, and field reporting decisions still belong to the analyst. A simple smooth is an exploratory summary. It is not evidence that short changes were noise, that the recent environment will continue unchanged, or that a response is driven by the mean rather than by an unobserved feature of the same period.
Alignment is part of the scientific claim
A trailing average places the result for Days 3 through 5 on Day 5 in the worked example. A centered average can use exactly those same values and place their mean on Day 4, the middle of the window. Its arithmetic has not changed, but its chronological meaning has. With centered alignment, the point marked Day 4 depends partly on the Day 5 result. Using it to describe conditions known at the end of Day 4 would leak later observations into the account. Centered alignment can still make sense for a retrospective description if named clearly and not used as evidence available on the plotted date.
A forward-looking window has a third meaning. Labeling a summary of Days 3 through 5 on Day 3 might be useful when describing the environment during a period after a flowering stage was first recorded. It is not a measure of the conditions leading up to that observation. Using the same curve to tell a before and after story without changing the date convention can invert the apparent order of events. Put the alignment in the caption, preserve the start and end dates in exported rows, and avoid labels that make the window look like a timestamped measurement. A reader should know whether a point displays its beginning, middle, or end without consulting the code.
Lag is not always a fixed number of days. If a signal is rising at a constant rate, an equally weighted trailing three-point mean centered in its information behaves like a point one interval earlier on that rising line. But that result depends on linearity and regular timing. If three or more different rates occur within a window, or if a rise is followed by a sharp drop, there is no universal one-day correction that recovers the raw series. A trailing average can remain high because warm days are still in the calculation; apparent timing in the smoothed series is not necessarily a delay in the physical phenomenon or biological response.
Imagine a different six-day series: 18, 18, 30, 28, 29, and 18. Its maximum input is 30 on Day 3. The three-day trailing means are 22, 25.333 repeating, 29, and 25, so the strongest average is labeled Day 5. In that example, an article that plots only the smoothed peak might imply the hottest day came two days late. What actually peaked later was an average across three warm dates. This is why a report on dates of extrema should retain the daily sequence even if a smooth makes the overall period easier to recognize.
Calendar alignment should be locked before interpreting coincident field events. If a survey note says flowers opened on Day 4 and a chart uses a centered window, its Day 4 point cannot establish that the preceding days were that warm. A defensible retrospective comparison can use one summary ending before the observation, another starting afterward, and a timestamp or date interval describing the observation itself. Avoid attributing a causal result to mere sequence. Better chronology makes a claim easier to interpret; it does not by itself rule out light, site conditions, observer timing, or other explanations.
Decide what the word day is allowed to hide
A 24-hour interval need not begin at midnight, and a date label need not denote a 24-hour interval with the same boundaries at every station. One field team might reset a maximum thermometer at breakfast, then label the next morning's reading by the day of retrieval. Another team might use automated civil-midnight buckets. The same late-afternoon heat could then be stored under different dates. A third service may publish timestamps in UTC, while a pollinator notebook gives local civil time. If a project joins such records by visually identical dates, it may combine genuinely different observation windows.
Write boundaries explicitly when the source allows it. An interval that includes its start and excludes its end is a useful local convention because a reading exactly on the boundary belongs to one bucket. For example, a locally defined day beginning at 00:00 and ending at the next 00:00 includes the midnight reading at its start, not the next day's reading. Do not rewrite a source product under this rule if its native convention is different or unknown. Record both the source label and your interpreted interval; when you cannot reconstruct enough detail, disclose that limit rather than deriving an exact comparison from an approximate crosswalk.
When using local civil time in places that adjust clocks, a date may contain fewer or more than 24 elapsed hours. Three calendar days and the previous 72 elapsed hours can therefore represent different spans around a clock transition, even before considering manual reporting. If calendar days are the meaningful input unit because observations are documented by date, preserve those dates and state that weighting is by daily values. If elapsed exposure is the meaningful unit, use timestamps on a consistent clock and calculate elapsed duration. A short educational example with regular synthetic days is not permission to ignore this distinction in a station merge or watch analysis.
Also consider how a target window crosses the seasonal boundary. An annual report might begin on the first date of the year, but a trailing statistic ending that day can include two dates from the prior year. A weather window around the first observed flowers could include days before the project started. The right solution is not always to suppress data outside the publication period, nor to fabricate earlier rows. Choose whether the scope limits the input data, the eligible event dates, or just the figure's visible range. Preserve enough context to reproduce the first plotted window and document the warm-up interval even if those rows appear only in the underlying table.
Design a reportable event before searching for it
A report called “warm episode” is not reproducible until it states how an episode begins and ends. Define the variable, the reporting day, an illustrative or scientifically justified threshold, the equality rule, the number of required days or subdaily samples, and the handling of a gap. Decide whether adjacent qualifying dates are part of one event and whether a single short dip breaks an episode. Distinguish the first date meeting the rule from the date on which an analyst would have enough evidence to recognize the full event. A rule requiring two consecutive qualifying days recognizes the event at the second day at the earliest, even if the event is later labeled as beginning on the first.
The six toy values illustrate how several defensible rules disagree. A threshold of at least 24 degrees applied to raw daily maxima identifies Days 4 and 5, not Day 6. A threshold of at least 24 applied to the complete three-day trailing means identifies evaluation endpoints Day 5 and Day 6, not Day 4. The latest endpoint shares its label with a raw day below 24. Neither rule is a better detector without a purpose. The raw rule describes days when a sampled maximum met a criterion. The smoothed rule describes a recent history of sustained higher daily maxima, not necessarily three raw exceedances. Report the rule used rather than presenting both intervals interchangeably as the same heat event.
The equality rule makes a real difference even in this tiny series. If the trailing condition is strictly above 24 rather than at least 24, Day 6 no longer qualifies. Rounding can introduce another disagreement. A display value of 24.0 can come from an exact result just below 24. Unless a protocol applies cutoffs at a stated instrument resolution, classify using the stored calculation and round the label afterward. Choose consistent significant figures for narration. The chart includes three decimal places at one point to make the arithmetic traceable; this does not imply a fictional sensor or a real station could measure temperature to that precision.
Another possible question is duration above an exposure threshold. Reconstructing duration requires suitable subdaily observations and a documented treatment of intervals between readings. A maximum cannot say how long the temperature was above the cutoff. Four hours near the maximum and one isolated minute at the maximum might produce the same daily number. Counting sampled exceedances and multiplying by a nominal interval is a separate estimate; it assumes something about what happened between samples and becomes especially questionable when there are irregular gaps. If the intended field conclusion depends on duration, plan a monitoring cadence capable of supporting it rather than substituting a smooth of daily peaks.
Specify tie handling when reporting the highest day or period. The largest value could recur on several dates, either because conditions are similar or because measurement and rounding collapse differences. A statement such as “the first of three dates tied for the highest reported daily maximum” preserves both the identification rule and the nature of the tie. Recording the start, end, and peak within an episode also helps avoid a headline that implies every day was equally hot. Where subdaily peaks tie, specify whether the first, last, all, or no exact peak times are available under the source's resolution.
Preserve the meaning of a complete window
The treatment of missing observations matters here for a narrow reason: a gap changes which days each result can represent. Suppose the value on Day 4 in the toy sequence were unavailable. With a complete three-consecutive-calendar-day rule, Day 3 still returns 20, while the windows ending on Days 4, 5, and 6 each touch Day 4 and therefore have no complete result. Taking the three most recent available values instead would allow a result ending on Day 5 from Days 2, 3, and 5. Those inputs span four calendar days. That may be a useful latest-three-observations statistic, but it is not interchangeable with a trailing three-day summary.
A second option is to use whatever is available inside the intended dates. In the incomplete Day 5 window, the surviving Day 3 and Day 5 values would yield 25, calculated from 22 and 28. That result answers a two-input partial-window question, not the original complete rule. If partial windows are useful, give them distinct marks, exposure counts, or a separately labeled series. The unexplained switch from three to two inputs changes the strength of the illustration and can shift when a threshold first appears crossed. Record why an input is absent or held out where possible, but keep the focus on the interpretation of the resulting window rather than attempting to fill the entire station record.
A flagged value need not be excluded under all possible research protocols, and a missing flag should not be decoded by intuition. Define what makes an input eligible for this particular analysis before reviewing interesting dates. Keep the raw row, any quality and processing flags, the decision, and enough history to reproduce it. A sensitivity comparison with an alternate eligibility policy may be informative, especially when a single flagged reading changes the peak rank. Simply turning off a flag because it breaks a desired run makes the article's claim weaker even if the revised series looks complete.
Windows also overlap. Day 4 and Day 5 each use Days 3 and 4. Day 5 and Day 6 each use Days 4 and 5. Four plotted means are not four independent measurements of heat. They reuse six inputs and reflect their ordering. This affects both visuals and analysis: a series of nearby smooth points can look reassuringly consistent partly because most of their inputs are shared. Do not use the number of plotted windows as though it were the sample size of independent events, and do not use agreement between close smoothed points to claim a confirming series of observations. A real inference about uncertainty needs a design that accounts for temporal dependence and the actual units of replication.
Choose a statistic to match the field decision
For a field coordinator concerned about whether a recorder exceeded its operating limits, inspect the highest observed value at the finest credible resolution and the instrument's recorded state. A sequence of average daily maxima does not identify a brief excursion. For a gardener comparing whether the lead-up to bloom was warmer this year, a predeclared multiday average may be useful, provided the comparison uses the same definition and equivalent seasonal anchors. For a person deciding whether to repeat a watch during a cooler part of the day, the temperature during the watch intervals is more directly relevant than a daily maximum many hours away. These are different decisions that all sound like questions about the “hottest period.”
A three-day average is a choice, not a natural constant. Try a one-day window in the toy sequence and the result is just the original daily series. A five-day trailing average ends on Day 5 at 22.4 and on Day 6 at 22.8. The raw peak remains Day 5, the three-day mean peaks on Day 5, and the larger window peaks on Day 6. The five-day average increased because Day 6's 20 replaced Day 1's 18, even though it was much cooler than Day 5. When people ask why the longer smooth is still rising, show the two windows and identify the replaced reading. This is a useful explanation of the mathematical behavior, not evidence that the garden actually warmed overnight.
Do not pick the duration that makes a favored date line up with a biological observation. State a reason to choose the primary window before comparing summaries, for example to represent a set of recent comparable observation days before a defined visit. Secondary windows can be informative if labeled as sensitivity checks rather than presented as independently planned tests. If interpretation changes substantially among plausible windows, report that instability. It may mean the event was brief, the data are sparse, or the question has not specified a relevant timescale. A range of exploratory results often tells a more honest story than a single chosen curve.
Use the same principle for weighting. Equal weight per daily input is easy to understand and is appropriate for the deliberately simple chart. When hourly data are irregularly spaced, equally weighting observed samples gives denser periods more influence. An elapsed-time average under an explicit interpolation assumption gives each interval a weight linked to its duration. That is not the same calculation as a mean of daily maxima. At daily resolution, weighting a day's maximum by its total duration does not reconstruct the mean temperature of that day. Identify what you want to weight before the calculation, and preserve the distinction between weighting observations and estimating exposure.
A moving average is also not a forecast. A watch scheduled tomorrow might be influenced by the recent past, but an upward historical line does not predict what the next measurement will be unless you state and evaluate a predictive approach. Likewise, rising temperatures and rising insect counts during one afternoon are not sufficient to identify a causal relationship. Matching the specific windows improves the quality of description, and adding information about observation conditions improves the comparison, but neither automatically turns an observational figure into a controlled test.
Compare places and events on the same calendar basis
Imagine two field teams using the same kind of recorder at two gardens. The first takes hourly readings all day; the second records during regular morning watches. Averaging the reported daily maxima from those teams would not yield a fair measure of which garden was hotter overall. One summary can sample afternoon conditions and the other cannot. You could compare values during shared observation hours or gather comparable all-day measurements. Whichever scope you choose, label it. Reporting only a moving average of the two existing series can hide the fact that the difference may stem from when observations were made.
Cross-site reports often have a second choice: align by date or align by an event. A date-aligned plot may show that both gardens experienced a warm spell on the same calendar dates. An event-aligned plot may examine the three days preceding each garden's first eligible flowering observation. The latter can be useful even when flowering occurs on different dates, but the anchor is the date the stage was recorded, not necessarily the date it began. If the first flowering fell in an uncertain interval, explore plausible anchor dates or present the interval instead of depicting a single exact onset. The anchor convention belongs beside the window convention.
When describing a maximum across a group of sites, the order of operations matters. The highest value at any site on each day gives a regional daily maximum series that may be dominated by a different site each day. Averaging site temperatures first and finding a peak of the regional mean instead produces a date that fits a different claim. Even the maximum of each site's three-day mean need not occur on the same date. If the public narrative says all gardens experienced three warm days together, establish that claim from events with a shared date definition and a rule applied to each relevant site. Do not infer it from a composite series assembled from whichever site was highest.
Look for comparable base units before interpreting ranks. A local logger beside a south-facing wall might reasonably run warmer than a shaded open station. Differences in siting are part of certain applied questions; they are confounders in others. A smooth late-afternoon pattern can be defensible evidence about that sheltered position, but describing it as a regional anomaly would require a different comparison. Record the actual exposure and instrument source when they plausibly change the claim. Then use the simplest comparison that answers the stated question without asking readers to infer which sites, dates, and conditions underlie a line.
Build an audit trail that can survive a graph redesign
A reusable table for complete windows can store the start date, end date, display date, statistic name, variable and unit, number of eligible inputs, result before display rounding, and a link to the exact source rows or version. If the same document reports a peak event, keep separate fields for the peak value and its date or tied dates. A single column called temperature makes it too easy for a plotting library, export script, or later analyst to substitute one series for another. A name that specifies trailing three-day mean of daily maximum, for example, allows a review to catch mismatched labels before publication.
Use a validation fixture small enough to compute without software. The six values here should reproduce four full windows with the last value exactly 24. A constant series should return the constant for every full window. A one-day window should be identical to the eligible input when dates are correctly aligned. A series with a deliberate gap should suppress or clearly mark the affected windows under the declared policy. Test a case where the current day's value falls but the moving average rises, such as the five-day calculation above. This verifies that the pipeline is performing the declared aggregation rather than secretly clipping, smoothing twice, or copying the raw labels.
If the source is a set of timestamps rather than a published daily product, test a boundary case exactly at midnight, a local offset change when relevant, and a duplicate time. Decide what to do with a late-arriving observation that changes a computed daily peak. Keeping one version of the rows used to make a report, or a reliable reference to that version, makes it possible to explain why a dashboard refreshed today differs from a table in last week's article. A correction to a source observation can affect several overlapping results, so regenerate from the corrected input series rather than hand-editing a single displayed point.
At publication, show the raw daily sequence and the smooth together when both are essential to the argument. If space allows only one visual, put the companion series in a table with units and a descriptive heading, and tell readers where to compare Day 5 and Day 6. Make the legend explicit: daily maximum and trailing three-day mean of daily maxima are distinct traces. Render an absent full-window result without joining the gap if doing so would imply values were calculated. A graph's smooth-looking path should not obscure missing coverage, independent event dates, or the date to which each average is attached.
A careful caption for this article could say that six fictional daily inputs generate four complete three-day averages and that each average is labeled by the last day of its window. For a real report, add the reporting time basis, source, and eligibility policy or provide a clear route to those details. Avoid recasting a chart peak as an exact hour or a biological trigger. If a figure contains several kinds of time evidence, ensure the data table also preserves the distinctions; it should not flatten all rows into dates and unlabeled numbers.
Finally, state the conclusion at the resolution supported by the data. In the example, the largest daily input is 28 on Day 5, while the mean of Days 4 through 6 is 24 even though Day 6 itself is 20. That is a useful result without a richer story. It exposes the central difference: a peak records the most extreme eligible reading or summary within a defined range; a moving average allocates context across a series of windows. Reporting both with clear timing lets readers see which part of an event was sharp, which part persisted in the summary, and which part still requires a better measurement.
Write the result as two sentences, then add a limitation
In a field bulletin, name the immediate observation and the recent context in separate sentences. A fictional example could read: “The highest reported daily maximum in the six-day example was 28 degrees Celsius on Day 5. The trailing three-day mean of daily maxima was 24 degrees Celsius at the end of Day 6, after a Day 6 maximum of 20.” The first sentence describes an extreme among reported values. The second fixes the date convention and states why an average can stay high while the current value drops. Neither says the site was continuously at 24 degrees, or that a particular watch reached the daily peak.
Then add the unresolved issue most relevant to the decision. A crew comparing visits might add that its logger was not read during the watches, so the temperatures experienced during those watches are unknown. A team with only noon and evening readings should say the statistic is a sampled maximum, not assert it captured every excursion. An analyst comparing a warmer late-season average across years should say whether the windows cover equivalent dates or equivalent stages. Make the limitation specific enough to explain which new measurement, if eventually collected, could test the claim.
Keep these reporting choices together with the workbook rather than solely in the prose. An editor may shorten the abstract or excerpt a figure, but the calculation notes, raw inputs, and date convention should remain available. A consistent caption and export make it harder to mistake the mean for the peak when the visual is reused.