Course / Tutorials / Week 13 / Q-38
Quick tutorial Q-38 · Week 13 · about 15 min · Core
Say how sure you are in one sentence
Turn a change in a runner's step rate into one sentence with a range in steps a minute and a likelihood word from a named scale, and test that the same function also says when a change is not real.
- Ask
- Collect
- Check
- Interpret (this week)
- Coach (this week)
- Reassess
Download notebook ·Python file ·Read as Markdown ·Data folder ·Chapter 13 (sections 13.3, 13.3.1, 13.3.2, 13.3.3)
Every cell runs in this page; the first run downloads Python (about 30 s). Nothing you load leaves your browser. Helpful first: Q-37 One chart that makes one point.
The decision
The athlete asks: "Did it work?" Decide what one sentence says the change was, how big it might really be, and how sure you are, in words they can repeat.
The raw data
raw/cadence_sessions_synthetic.csv: SYNTHETIC: 15 clips of a runner's step rate (steps a minute), three per session on days 1, 4, 8, 22 and 29, with the phase of the metronome cue. Book example data, Chapter 13 (book/ch13-coaching/data/cadence_sessions.csv), a teaching set of the size and spread the running app reports for one runner.
Try it
Every number in a report has two parts: the value and how sure you are of it (Section 13.3). The athlete needs both in one sentence, in words, with a range in their own units and a likelihood word from a named scale. This tutorial builds that sentence from Chapter 13's teaching set of a runner's step rate, before and after three weeks of running to a metronome.
The change and its 90% range
The typical error (TE) of one clip is the spread of the six baseline clips. The standard error of the change between a mean of n₁ clips and a mean of n₂ clips is TE × √(1/n₁ + 1/n₂), and the 90% range is the change ± 1.645 standard errors.
Type a prediction to enable Run.
Show the expected result without running
typical error 1.19 spm day change se lo hi p_above_3 22 5.3 0.8426 3.9139 6.6861 0.9968 29 5.7 0.8426 4.3139 7.0861 0.9993
From numbers to one sentence
The words come from the calibrated scale of Table 13.4 (after the climate assessments): virtually certain 99–100%, very likely 90–100%, likely 66–100%, about as likely as not 33–66%, unlikely 0–33%, very unlikely 0–10%. Round the values to the first digit of their uncertainty (Section 13.3.3): whole steps a minute.
Type a prediction to enable Run.
Show the expected result without running
Your step rate rose from about 157 to about 163 steps a minute (a change of 4 to 7). It is virtually certain that this is a real change of more than 3. Your step rate rose from about 157 to about 158 steps a minute (a change of 0 to 2). It is very unlikely that this is a real change of more than 3.
The second line matters as much as the first. A function that only ever says "real change" is not a summary; it is a cheerleader (Section 13.14).
The range, drawn
Show the expected result without running

The sentence carries a condition the arithmetic cannot see: it holds on this treadmill at this speed. Step rate rises with speed, so a change of conditions belongs in the sentence too.
For the athlete: "Your step rate on easy runs rose from about 157 to about 163 a minute, somewhere between 4 and 7, and on this treadmill at this speed it is almost certainly real."
Check yourself
The change is +5.7 steps a minute with a 90% range of +4.3 to +7.1. How should it be written for the athlete?
With a standard error of 0.84 and a change of 5.7, what is the chance that the true change is more than 3 steps a minute?
Built 2026-11-30 with Python packages numpy 2.5.5, pandas 3.1.1, matplotlib 3.11.2, scipy 1.18.1. In the browser the same code runs on Pyodide, so the last digit can differ.