Read the observationsLesson 14 of 30 · 6 min
Do not shuffle away the clue
Use observation order to detect drift that a pooled summary conceals.
Observation order is part of the evidence. A machine can warm up, a reagent can degrade, or demand can rise. A histogram shows the values but removes their sequence, so it can hide an important time pattern.
The invented time series below declines throughout a session. If A occupies the first half and B the second half, even identical treatments could look different. Plot values against run order before pooling them.
A trend does not identify its own cause. It tells you the stable-population assumption deserves scrutiny. Investigate conditions, block or randomise treatment order, and define warm-up rules before seeing which exclusions favour a treatment. Dropping early results after looking at them can create a new bias.
- Published order
- Same values, rearranged
What would an A-first, B-second schedule make you conclude about this series?
Write a prediction (optional)
Run the prepared example
This page puts the example in the Python editor. Select Run Python with the code unchanged.
Invented data
A saved draft is open. To run the published example, open Editor tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
What to compare
Compare Mean time for A (ms) and Mean time for B (ms). Look at how the time plot changes with run order. Which label gets the later, faster positions under the prepared schedule?
Your result
Result tools
The labels split a declining series. B has the lower mean because it gets later positions in these invented observations.
Published example output
The site ran the original code to produce this reference. Build environment ↗
Run labels: ['A' 'A' 'A' 'A' 'A' 'A' 'B' 'B' 'B' 'B' 'B' 'B'] Mean time for A (ms): 130.0 Mean time for B (ms): 104.0
The labels split a declining series. B has the lower mean because it gets later positions in these invented observations.
Change and run again
In the Python editor, change labels = np.repeat(["A", "B"], 6) to labels = np.tile(["A", "B"], 6). Select Run Python again. Compare Mean time for A (ms) and Mean time for B (ms). Why does reassigning labels on paper answer a scheduling question without testing a real treatment? Return to the Python editor
What this example supports. These values are authored to show drift. Detecting a trend alone does not tell you whether it arose from warm-up, load or another mechanism.
Try a fresh case
A histogram looks symmetric, but the time plot shows a steady increase. Which statement is justified?
Hints for this question
- Identify the information lost by pooling.
- Consider whether the same data in a different order would tell a different story.