Lesson 3 of 4 · Finite-window average age
Measure the whole window
18 minute lesson · 3 checks along the way
Your goal for this lessonCalculate finite-window average age from an event timeline and state its units and observation boundary.
In this lesson 3 sections · 3 checks
Read & understand
Turn a rising line into an area
Between arrivals that advance the newest timestamp, age increases by one minute for every minute that passes. On a graph with elapsed minutes along the horizontal axis and age in minutes vertically, each interval forms a trapezoid under the line. Its area is interval duration multiplied by the mean of its starting and ending ages. This geometric calculation is exact for the straight segments in our model.
For minutes 0 to 4, age rises from zero to four: area is 4 × (0 + 4) / 2 = 8 minute-squared. The arrival at minute 4 then lowers age to two. For minutes 4 to 7, it rises from two to five: area is 3 × (2 + 5) / 2 = 10.5 minute-squared. A vertical drop at one instant has no width, so it contributes no area.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
An old arrival need not split the calculation
After the arrival at minute 7, age rises from one to six just before minute 12. The old packet at minute 8 changes no retained timestamp, so the whole five-minute interval is one straight segment. Its area is 5 × (1 + 6) / 2 = 17.5 minute-squared. You may split it at minute 8 instead: 1 × (1 + 2) / 2 = 1.5, plus 4 × (2 + 6) / 2 = 16. The sum is the same.
From minute 12 to 16, age rises from two to six, giving 4 × (2 + 6) / 2 = 16 minute-squared. Total area is 8 + 10.5 + 17.5 + 16 = 52 minute-squared. Divide by the full 16-minute observation window to obtain average age 3.25 minutes. Dividing by four delivered packets would mix up a duration average with a packet statistic.
Area and finite-window average age
Original fictional example. Endpoint ages are the post-arrival age at the start and the pre-arrival age at the end; instantaneous drops add no area.
Open full-size diagram in a new tab: Area and finite-window average ageRead diagram data as a table
| Interval (min) | Start → end age (min) | Area (min²) |
|---|---|---|
| 0–4 | 0 → 4 | 8 |
| 4–7 | 2 → 5 | 10.5 |
| 7–12 | 1 → 6 | 17.5 |
| 12–16 | 2 → 6 | 16 |
Original fictional example. Endpoint ages are the post-arrival age at the start and the pre-arrival age at the end; instantaneous drops add no area.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Keep the average attached to its window
The mean delivery delay of the four packets is (2 + 1 + 5 + 2) / 4 = 2.5 minutes. That is a valid packet statistic, but it is not the receiver’s 3.25-minute average age. Likewise, the final age is six minutes rather than either average. Use the metric that matches the question: a packet’s travel time, the freshness at one instant, or freshness across an interval.
The result belongs to the stated initial sample and the window from 0 to 16. If a generation-16 sample arrives exactly at minute 16, it makes final age zero but changes none of the preceding area. Extending the window would give the new sample time to affect the average. Do not present this finite exercise as a long-run average or an operational service guarantee.
A small average also does not prove that every moment was fresh enough for a particular task. Brief old intervals can coexist with a lower average, and a timestamp says nothing by itself about calibration or measurement error. Requirements for a useful warning or a trustworthy scientific measurement need evidence beyond this freshness calculation.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.