apopt.comCBE 493R Data-Driven Athletics

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.

  1. 1Gather
  2. 2Statistics
  3. 3Visualize
  4. 4Cleanse
  5. 5Features
  6. 6Balance
  7. 7Scale
  8. 8Split
  9. 9Deploy (used)
  1. Ask
  2. Collect
  3. Check
  4. Interpret (this week)
  5. Coach (this week)
  6. Reassess

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

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.

PythonTypical error, change and range

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.

PythonOne sentence, two tests

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

PythonThe change and its 90% range against the worthwhile change

Show the expected result without runningTwo horizontal bars, for day 22 and day 29, each a dot at the change of about 5.3 and 5.7 steps a minute with a line for its 90% range; a dashed vertical line at 3 steps a minute (worthwhile) and a solid one at zero.

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

  1. 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?

  2. 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?

    probability

0 of 2 answered · 0 right the first time

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.